2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_use_threads_default=
626 ac_subst_vars='LTLIBOBJS
628 systemd_system_unit_dir
703 INTL_LIBTOOL_SUFFIX_PREFIX
710 BUILD_INCLUDED_LIBINTL
720 INTL_DEFAULT_VERBOSITY
739 XGETTEXT_EXTRA_OPTIONS
747 GETTEXT_MACRO_VERSION
859 program_transform_name
870 ac_subst_files='MCONFIG
876 PUBLIC_CONFIG_HEADER'
878 enable_option_checking
884 enable_maintainer_mode
885 enable_symlink_install
886 enable_relative_symlinks
887 enable_symlink_relative_symlinks
889 enable_verbose_makecmds
898 enable_developer_features
908 enable_e2initrd_helper
914 enable_bmap_stats_ops
921 with_included_gettext
931 with_systemd_unit_dir
933 ac_precious_vars='build_alias
951 # Initialize some variables set by options.
953 ac_init_version=false
954 ac_unrecognized_opts=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name=s,x,x,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 runstatedir='${localstatedir}/run'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1240 -runstatedir | --runstatedir | --runstatedi | --runstated \
1241 | --runstate | --runstat | --runsta | --runst | --runs \
1242 | --run | --ru | --r)
1243 ac_prev=runstatedir ;;
1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246 | --run=* | --ru=* | --r=*)
1247 runstatedir=$ac_optarg ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1268 -site=* | --site=* | --sit=*)
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1324 eval with_$ac_useropt=no ;;
1327 # Obsolete; use --with-x.
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir runstatedir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1395 # Be sure to have absolute directory names.
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 if test -n "$ac_init_help"; then
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-maintainer-mode enable makefile rules useful for maintainers
1572 --enable-symlink-install use symlinks when installing instead of hard links
1573 --enable-relative-symlinks use relative symlinks when installing
1575 --enable-symlink-build use symlinks while building instead of hard links
1576 --enable-verbose-makecmds enable verbose make command output
1577 --enable-elf-shlibs select ELF shared libraries
1578 --enable-bsd-shlibs select BSD shared libraries
1579 --enable-profile build profiling libraries
1580 --enable-gcov build for coverage testing using gcov
1581 --enable-hardening build for coverage testing using gcov
1582 --enable-jbd-debug enable journal debugging
1583 --enable-blkid-debug enable blkid debugging
1584 --disable-testio-debug disable the use of the test I/O manager for debugging
1585 --enable-developer-features enable features for use by ext4 developers
1586 --enable-libuuid build and use private uuid library
1587 --enable-libblkid build and use private blkid library
1588 --enable-subset enable subset-only build
1589 --disable-backtrace disable use backtrace
1590 --disable-debugfs disable support of debugfs program
1591 --disable-imager disable support of e2image program
1592 --disable-resizer disable support of e2resize program
1593 --disable-defrag disable support of e4defrag program
1594 --enable-fsck build fsck wrapper program
1595 --enable-e2initrd-helper build e2initrd-helper program
1596 --disable-tls disable use of thread local support
1597 --disable-uuidd disable building the uuid daemon
1598 --disable-mmp disable support mmp, Multi Mount Protection
1599 --disable-tdb disable tdb support
1600 --disable-bmap-stats disable collection of bitmap stats.
1601 --enable-bmap-stats-ops enable collection of additional bitmap stats
1602 --disable-nls do not use Native Language Support
1603 --enable-threads={posix|solaris|pth|windows}
1604 specify multithreading API
1605 --disable-threads build without multithread safety
1606 --disable-rpath do not hardcode runtime library paths
1607 --disable-fuse2fs do not build fuse2fs
1608 --enable-lto enable link time optimization
1609 --enable-ubsan enable undefined behavior sanitizer
1610 --enable-addrsan enable address sanitizer
1611 --enable-threadsan enable thread sanitizer
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1616 --with-diet-libc use diet libc
1617 --with-cc no longer supported, use CC= instead
1618 --with-ccopts no longer supported, use CFLAGS= instead
1619 --with-ldopts no longer supported, use LDFLAGS= instead
1620 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1623 --without-libpth-prefix don't search for libpth in includedir and libdir
1624 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1625 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1626 --with-included-gettext use the GNU gettext library included here
1627 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1628 --without-libintl-prefix don't search for libintl in includedir and libdir
1629 --with-multiarch=ARCH specify the multiarch triplet
1630 --with-udev-rules-dir[=DIR]
1631 Install udev rules into DIR.
1632 --with-crond-dir[=DIR] Install system crontabs into DIR.
1633 --with-systemd-unit-dir[=DIR]
1634 Install systemd system units into DIR.
1636 Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1645 PKG_CONFIG path to pkg-config utility
1647 directories to add to pkg-config's search path
1649 path overriding pkg-config's built-in search path
1650 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1651 udev_LIBS linker flags for udev, overriding pkg-config
1653 C compiler flags for systemd, overriding pkg-config
1655 linker flags for systemd, overriding pkg-config
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1660 Report bugs to the package provider.
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1690 .) # We are building in place.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1724 generated by GNU Autoconf 2.69
1726 Copyright (C) 2012 Free Software Foundation, Inc.
1727 This configure script is free software; the Free Software Foundation
1728 gives unlimited permission to copy, distribute and modify it.
1733 ## ------------------------ ##
1734 ## Autoconf initialization. ##
1735 ## ------------------------ ##
1737 # ac_fn_c_try_compile LINENO
1738 # --------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_compile
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_link
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } > conftest.i && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1858 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861 # the include files in INCLUDES and setting the cache variable VAR
1863 ac_fn_c_check_header_mongrel ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if eval \${$3+:} false; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 # Is the header compilable?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878 $as_echo_n "checking $2 usability... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1887 ac_header_compiler=no
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891 $as_echo "$ac_header_compiler" >&6; }
1893 # Is the header present?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895 $as_echo_n "checking $2 presence... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1900 if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1903 ac_header_preproc=no
1905 rm -f conftest.err conftest.i conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907 $as_echo "$ac_header_preproc" >&6; }
1909 # So? What about this header?
1910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1935 eval "$3=\$ac_header_compiler"
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_header_mongrel
1945 # ac_fn_c_try_run LINENO
1946 # ----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1948 # that executables *can* be run.
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_link"
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>&5
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1963 { { case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_try") 2>&5
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; }; }; then :
1975 $as_echo "$as_me: program exited with status $ac_status" >&5
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1979 ac_retval=$ac_status
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1987 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists and can be compiled using the include files in
1990 # INCLUDES, setting the cache variable VAR accordingly.
1991 ac_fn_c_check_header_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2004 if ac_fn_c_try_compile "$LINENO"; then :
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_header_compile
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2056 if ac_fn_c_try_compile "$LINENO"; then :
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_type
2072 # ac_fn_c_check_func LINENO FUNC VAR
2073 # ----------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_c_check_func ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 #define $2 innocuous_$2
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
2095 # include <limits.h>
2097 # include <assert.h>
2102 /* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined __stub_$2 || defined __stub___$2
2124 if ac_fn_c_try_link "$LINENO"; then :
2129 rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_func
2139 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2140 # ---------------------------------------------
2141 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2143 ac_fn_c_check_decl ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 as_decl_name=`echo $2|sed 's/ *(.*//'`
2147 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2149 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 #ifndef $as_decl_name
2161 (void) $as_decl_use;
2163 (void) $as_decl_name;
2171 if ac_fn_c_try_compile "$LINENO"; then :
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_decl
2185 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2186 # --------------------------------------------
2187 # Tries to find the compile-time value of EXPR in a program that includes
2188 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2190 ac_fn_c_compute_int ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if test "$cross_compiling" = yes; then
2194 # Depending upon the size, compute the lo and hi bounds.
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 static int test_array [1 - 2 * !(($2) >= 0)];
2203 return test_array [0];
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid; break
2229 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2230 if test $ac_lo -le $ac_mid; then
2234 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) < 0)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_lo=$ac_mid; break
2273 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2274 if test $ac_mid -le $ac_hi; then
2278 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 # Binary search between lo and hi bounds.
2289 while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2299 return test_array [0];
2305 if ac_fn_c_try_compile "$LINENO"; then :
2308 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2320 static long int longval () { return $2; }
2321 static unsigned long int ulongval () { return $2; }
2328 FILE *f = fopen ("conftest.val", "w");
2333 long int i = longval ();
2336 fprintf (f, "%ld", i);
2340 unsigned long int i = ulongval ();
2343 fprintf (f, "%lu", i);
2345 /* Do not output a trailing newline, as this causes \r\n confusion
2346 on some platforms. */
2347 return ferror (f) || fclose (f) != 0;
2353 if ac_fn_c_try_run "$LINENO"; then :
2354 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2359 conftest.$ac_objext conftest.beam conftest.$ac_ext
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_compute_int
2368 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2369 # ----------------------------------------------------
2370 # Tries to find if the field MEMBER exists in type AGGR, after including
2371 # INCLUDES, setting cache variable VAR accordingly.
2372 ac_fn_c_check_member ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2376 $as_echo_n "checking for $2.$3... " >&6; }
2377 if eval \${$4+:} false; then :
2378 $as_echo_n "(cached) " >&6
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2393 if ac_fn_c_try_compile "$LINENO"; then :
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2403 if (sizeof ac_aggr.$3)
2409 if ac_fn_c_try_compile "$LINENO"; then :
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 } # ac_fn_c_check_member
2424 cat >config.log <<_ACEOF
2425 This file contains any messages produced by compilers while
2426 running configure, to aid debugging if configure makes a mistake.
2428 It was created by $as_me, which was
2429 generated by GNU Autoconf 2.69. Invocation command line was
2441 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2442 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2443 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2444 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2445 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2447 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2448 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2450 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2451 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2452 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2453 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2454 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2455 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2456 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 $as_echo "PATH: $as_dir"
2481 # Keep a trace of the command line.
2482 # Strip out --no-create and --no-recursion so they do not pile up.
2483 # Strip out --silent because we don't want to record it for future runs.
2484 # Also quote any args containing shell meta-characters.
2485 # Make two passes to allow for proper duplicate-argument suppression.
2489 ac_must_keep_next=false
2495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497 | -silent | --silent | --silen | --sile | --sil)
2500 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2503 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2505 as_fn_append ac_configure_args1 " '$ac_arg'"
2506 if test $ac_must_keep_next = true; then
2507 ac_must_keep_next=false # Got value, back to normal.
2510 *=* | --config-cache | -C | -disable-* | --disable-* \
2511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513 | -with-* | --with-* | -without-* | --without-* | --x)
2514 case "$ac_configure_args0 " in
2515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2518 -* ) ac_must_keep_next=true ;;
2521 as_fn_append ac_configure_args " '$ac_arg'"
2526 { ac_configure_args0=; unset ac_configure_args0;}
2527 { ac_configure_args1=; unset ac_configure_args1;}
2529 # When interrupted or exit'd, cleanup temporary files, and complete
2530 # config.log. We remove comments because anyway the quotes in there
2531 # would cause problems or look ugly.
2532 # WARNING: Use '\'' to represent an apostrophe within the trap.
2533 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534 trap 'exit_status=$?
2535 # Save into config.log some information that might help in debugging.
2539 $as_echo "## ---------------- ##
2540 ## Cache variables. ##
2541 ## ---------------- ##"
2543 # The following way of writing the cache mishandles newlines in values,
2545 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2546 eval ac_val=\$$ac_var
2550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2554 _ | IFS | as_nl) ;; #(
2555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556 *) { eval $ac_var=; unset $ac_var;} ;;
2561 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2562 *${as_nl}ac_space=\ *)
2564 "s/'\''/'\''\\\\'\'''\''/g;
2565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2575 $as_echo "## ----------------- ##
2576 ## Output variables. ##
2577 ## ----------------- ##"
2579 for ac_var in $ac_subst_vars
2581 eval ac_val=\$$ac_var
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -n "$ac_subst_files"; then
2590 $as_echo "## ------------------- ##
2591 ## File substitutions. ##
2592 ## ------------------- ##"
2594 for ac_var in $ac_subst_files
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2605 if test -s confdefs.h; then
2606 $as_echo "## ----------- ##
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2621 for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2627 rm -f -r conftest* confdefs.h
2629 $as_echo "/* confdefs.h */" > confdefs.h
2631 # Predefined preprocessor variables.
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_NAME "$PACKAGE_NAME"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_STRING "$PACKAGE_STRING"
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_URL "$PACKAGE_URL"
2658 # Let the site file select an alternate cache file if it wants to.
2659 # Prefer an explicitly selected file to automatically selected ones.
2662 if test -n "$CONFIG_SITE"; then
2663 # We do not want a PATH search for config.site.
2664 case $CONFIG_SITE in #((
2665 -*) ac_site_file1=./$CONFIG_SITE;;
2666 */*) ac_site_file1=$CONFIG_SITE;;
2667 *) ac_site_file1=./$CONFIG_SITE;;
2669 elif test "x$prefix" != xNONE; then
2670 ac_site_file1=$prefix/share/config.site
2671 ac_site_file2=$prefix/etc/config.site
2673 ac_site_file1=$ac_default_prefix/share/config.site
2674 ac_site_file2=$ac_default_prefix/etc/config.site
2676 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2678 test "x$ac_site_file" = xNONE && continue
2679 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
2684 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site script $ac_site_file
2687 See \`config.log' for more details" "$LINENO" 5; }
2691 if test -r "$cache_file"; then
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 $as_echo "$as_me: loading cache $cache_file" >&6;}
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 $as_echo "$as_me: creating cache $cache_file" >&6;}
2708 gt_needs="$gt_needs "
2709 as_fn_append ac_header_list " stdlib.h"
2710 as_fn_append ac_header_list " unistd.h"
2711 as_fn_append ac_header_list " sys/param.h"
2712 as_fn_append ac_func_list " symlink"
2713 # Check that the precious variables saved in the cache have kept the same
2715 ac_cache_corrupted=false
2716 for ac_var in $ac_precious_vars; do
2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718 eval ac_new_set=\$ac_env_${ac_var}_set
2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720 eval ac_new_val=\$ac_env_${ac_var}_value
2721 case $ac_old_set,$ac_new_set in
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2732 if test "x$ac_old_val" != "x$ac_new_val"; then
2733 # differences in whitespace do not lead to failure.
2734 ac_old_val_w=`echo x $ac_old_val`
2735 ac_new_val_w=`echo x $ac_new_val`
2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739 ac_cache_corrupted=:
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743 eval $ac_var=\$ac_old_val
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2746 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2748 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2751 # Pass precious variables to config.status.
2752 if test "$ac_new_set" = set; then
2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 *) ac_arg=$ac_var=$ac_new_val ;;
2757 case " $ac_configure_args " in
2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2763 if $ac_cache_corrupted; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2768 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2770 ## -------------------- ##
2771 ## Main body of script. ##
2772 ## -------------------- ##
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 for ac_dir in config "$srcdir"/config; do
2784 if test -f "$ac_dir/install-sh"; then
2786 ac_install_sh="$ac_aux_dir/install-sh -c"
2788 elif test -f "$ac_dir/install.sh"; then
2790 ac_install_sh="$ac_aux_dir/install.sh -c"
2792 elif test -f "$ac_dir/shtool"; then
2794 ac_install_sh="$ac_aux_dir/shtool install -c"
2798 if test -z "$ac_aux_dir"; then
2799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2802 # These three variables are undocumented and unsupported,
2803 # and are intended to be withdrawn in a future Autoconf release.
2804 # They can cause serious problems if a builder's source tree is in a directory
2805 # whose full name contains unusual characters.
2806 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2807 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2808 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2811 ac_config_headers="$ac_config_headers lib/config.h"
2817 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2818 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2819 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2820 | tr \" " " | awk '{print $1}'`
2821 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2822 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2823 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2825 if expr $YEAR ">" 1900 > /dev/null ; then
2826 E2FSPROGS_YEAR=$YEAR
2827 elif expr $YEAR ">" 90 >/dev/null ; then
2828 E2FSPROGS_YEAR=19$YEAR
2830 E2FSPROGS_YEAR=20$YEAR
2834 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2835 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2836 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2837 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2838 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2839 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2840 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2841 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2842 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2843 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2844 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2845 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2846 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2847 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2850 base_ver=`echo $E2FSPROGS_VERSION | \
2851 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2853 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2855 case $E2FSPROGS_VERSION in
2857 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2860 E2FSPROGS_PKGVER="$base_ver"
2864 unset DATE MONTH YEAR base_ver pre_vers date_spec
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2866 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2868 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2877 # Check whether --with-diet-libc was given.
2878 if test "${with_diet_libc+set}" = set; then :
2879 withval=$with_diet_libc; CC="diet cc -nostdinc"
2885 LIBS="$LIBS -lcompat"
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2888 $as_echo "CC=$CC" >&6; }
2890 # Make sure we can run config.sub.
2891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2895 $as_echo_n "checking build system type... " >&6; }
2896 if ${ac_cv_build+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 ac_build_alias=$build_alias
2900 test "x$ac_build_alias" = x &&
2901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2902 test "x$ac_build_alias" = x &&
2903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2909 $as_echo "$ac_cv_build" >&6; }
2910 case $ac_cv_build in
2912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2915 ac_save_IFS=$IFS; IFS='-'
2921 # Remember, the first character of IFS is used to create $*,
2922 # except with old shells:
2925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2929 $as_echo_n "checking host system type... " >&6; }
2930 if ${ac_cv_host+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test "x$host_alias" = x; then
2934 ac_cv_host=$ac_cv_build
2936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2942 $as_echo "$ac_cv_host" >&6; }
2945 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2948 ac_save_IFS=$IFS; IFS='-'
2954 # Remember, the first character of IFS is used to create $*,
2955 # except with old shells:
2958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3006 if test -z "$ac_cv_prog_CC"; then
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3044 if test "x$ac_ct_CC" = x; then
3047 case $cross_compiling:$ac_tool_warned in
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="${ac_tool_prefix}cc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3100 if test -z "$CC"; then
3101 # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120 ac_prog_rejected=yes
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3135 if test $# != 0; then
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl.exe
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$CC" && break
3200 if test -z "$CC"; then
3202 for ac_prog in cl.exe
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_CC="$ac_prog"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3241 test -n "$ac_ct_CC" && break
3244 if test "x$ac_ct_CC" = x; then
3247 case $cross_compiling:$ac_tool_warned in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "no acceptable C compiler found in \$PATH
3263 See \`config.log' for more details" "$LINENO" 5; }
3265 # Provide some information about the compiler.
3266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269 for ac_option in --version -v -V -qversion; do
3270 { { ac_try="$ac_compiler $ac_option >&5"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3279 if test -s conftest.err; then
3281 ... rest of stderr output deleted ...
3282 10q' conftest.err >conftest.er1
3283 cat conftest.er1 >&5
3285 rm -f conftest.er1 conftest.err
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307 $as_echo_n "checking whether the C compiler works... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314 for ac_file in $ac_files
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323 if { { ac_try="$ac_link_default"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link_default") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3339 for ac_file in $ac_files ''
3341 test -f "$ac_file" || continue
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3346 # We found the default executable, but exeext='' is most
3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369 if test -z "$ac_file"; then :
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error 77 "C compiler cannot create executables
3378 See \`config.log' for more details" "$LINENO" 5; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 ac_exeext=$ac_cv_exeext
3389 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3408 for ac_file in conftest.exe conftest conftest.*; do
3409 test -f "$ac_file" || continue
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details" "$LINENO" 5; }
3423 rm -f conftest conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3436 FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3443 ac_clean_files="$ac_clean_files conftest.out"
3444 # Check that the compiler produces executables we can run. If not, either
3445 # the compiler is broken, or we cross compile.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447 $as_echo_n "checking whether we are cross compiling... " >&6; }
3448 if test "$cross_compiling" != yes; then
3449 { { ac_try="$ac_link"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 if { ac_try='./conftest$ac_cv_exeext'
3461 { { case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_try") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3473 if test "$cross_compiling" = maybe; then
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot run C compiled programs.
3479 If you meant to cross compile, use \`--host'.
3480 See \`config.log' for more details" "$LINENO" 5; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485 $as_echo "$cross_compiling" >&6; }
3487 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490 $as_echo_n "checking for suffix of object files... " >&6; }
3491 if ${ac_cv_objext+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 rm -f conftest.o conftest.obj
3506 if { { ac_try="$ac_compile"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_compile") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 for ac_file in conftest.o conftest.obj conftest.*; do
3518 test -f "$ac_file" || continue;
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3532 See \`config.log' for more details" "$LINENO" 5; }
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if ${ac_cv_c_compiler_gnu+:} false; then :
3543 $as_echo_n "(cached) " >&6
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570 if test $ac_compiler_gnu = yes; then
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3579 if ${ac_cv_prog_cc_g+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_save_c_werror_flag=$ac_c_werror_flag
3583 ac_c_werror_flag=yes
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 if ac_fn_c_try_compile "$LINENO"; then :
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 if ac_fn_c_try_compile "$LINENO"; then :
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639 $as_echo "$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3649 if test "$GCC" = yes; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657 if ${ac_cv_prog_cc_c89+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_cv_prog_cc_c89=no
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3681 s = g (p, va_arg (v,int));
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 rm -f conftest.$ac_ext
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3741 if test "x$ac_cv_prog_cc_c89" != xno; then :
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3754 if ${ac_cv_lib_dl_dlopen+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 ac_check_lib_save_LIBS=$LIBS
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3762 /* Override any GCC internal prototype to avoid an error.
3763 Use char because int might match the return type of a GCC
3764 builtin and then its argument prototype would still apply. */
3777 if ac_fn_c_try_link "$LINENO"; then :
3778 ac_cv_lib_dl_dlopen=yes
3780 ac_cv_lib_dl_dlopen=no
3782 rm -f core conftest.err conftest.$ac_objext \
3783 conftest$ac_exeext conftest.$ac_ext
3784 LIBS=$ac_check_lib_save_LIBS
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3788 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3794 # Check whether --with-cc was given.
3795 if test "${with_cc+set}" = set; then :
3796 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3800 # Check whether --with-ccopts was given.
3801 if test "${with_ccopts+set}" = set; then :
3802 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3806 # Check whether --with-ldopts was given.
3807 if test "${with_ldopts+set}" = set; then :
3808 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 $as_echo "$CC" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3855 if test -z "$ac_cv_prog_CC"; then
3857 # Extract the first word of "gcc", so it can be a program name with args.
3858 set dummy gcc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -n "$ac_ct_CC"; then
3865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_ac_ct_CC="gcc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885 if test -n "$ac_ct_CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887 $as_echo "$ac_ct_CC" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3893 if test "x$ac_ct_CC" = x; then
3896 case $cross_compiling:$ac_tool_warned in
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900 ac_tool_warned=yes ;;
3908 if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}cc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_CC="${ac_tool_prefix}cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3949 if test -z "$CC"; then
3950 # Extract the first word of "cc", so it can be a program name with args.
3951 set dummy cc; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if ${ac_cv_prog_CC+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969 ac_prog_rejected=yes
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 if test $ac_prog_rejected = yes; then
3981 # We found a bogon in the path, so make sure we never use it.
3982 set dummy $ac_cv_prog_CC
3984 if test $# != 0; then
3985 # We chose a different compiler from the bogus one.
3986 # However, it has the same basename, so the bogon will be chosen
3987 # first if we set CC to just the basename; use the full file name.
3989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4005 if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 for ac_prog in cl.exe
4009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 $as_echo_n "checking for $ac_word... " >&6; }
4013 if ${ac_cv_prog_CC+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039 $as_echo "$CC" >&6; }
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4046 test -n "$CC" && break
4049 if test -z "$CC"; then
4051 for ac_prog in cl.exe
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_CC="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081 if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083 $as_echo "$ac_ct_CC" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$ac_ct_CC" && break
4093 if test "x$ac_ct_CC" = x; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned=yes ;;
4109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "no acceptable C compiler found in \$PATH
4112 See \`config.log' for more details" "$LINENO" 5; }
4114 # Provide some information about the compiler.
4115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4118 for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4128 if test -s conftest.err; then
4130 ... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
4134 rm -f conftest.er1 conftest.err
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4141 if ${ac_cv_c_compiler_gnu+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4158 if ac_fn_c_try_compile "$LINENO"; then :
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4169 if test $ac_compiler_gnu = yes; then
4174 ac_test_CFLAGS=${CFLAGS+set}
4175 ac_save_CFLAGS=$CFLAGS
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4178 if ${ac_cv_prog_cc_g+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_save_c_werror_flag=$ac_c_werror_flag
4182 ac_c_werror_flag=yes
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4227 if ac_fn_c_try_compile "$LINENO"; then :
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_c_werror_flag=$ac_save_c_werror_flag
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238 $as_echo "$ac_cv_prog_cc_g" >&6; }
4239 if test "$ac_test_CFLAGS" = set; then
4240 CFLAGS=$ac_save_CFLAGS
4241 elif test $ac_cv_prog_cc_g = yes; then
4242 if test "$GCC" = yes; then
4248 if test "$GCC" = yes; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4256 if ${ac_cv_prog_cc_c89+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 ac_cv_prog_cc_c89=no
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4267 struct buf { int x; };
4268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4269 static char *e (p, i)
4275 static char *f (char * (*g) (char **, int), char **p, ...)
4280 s = g (p, va_arg (v,int));
4285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4286 function prototypes and stuff, but not '\xHH' hex character constants.
4287 These don't provoke an error unfortunately, instead are silently treated
4288 as 'x'. The following induces an error, until -std is added to get
4289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4290 array size at least. It's necessary to write '\x00'==0 to get something
4291 that's true only with -std. */
4292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4295 inside strings and character constants. */
4297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4299 int test (int i, double x);
4300 struct s1 {int (*f) (int a);};
4301 struct s2 {int (*f) (double a);};
4302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4316 CC="$ac_save_CC $ac_arg"
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_prog_cc_c89=$ac_arg
4320 rm -f core conftest.err conftest.$ac_objext
4321 test "x$ac_cv_prog_cc_c89" != "xno" && break
4323 rm -f conftest.$ac_ext
4328 case "x$ac_cv_prog_cc_c89" in
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331 $as_echo "none needed" >&6; } ;;
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4334 $as_echo "unsupported" >&6; } ;;
4336 CC="$CC $ac_cv_prog_cc_c89"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4340 if test "x$ac_cv_prog_cc_c89" != xno; then :
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 if test "$GCC" = yes; then
4351 RDYNAMIC="-rdynamic"
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4360 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4361 # On Suns, sometimes $CPP names a directory.
4362 if test -n "$CPP" && test -d "$CPP"; then
4365 if test -z "$CPP"; then
4366 if ${ac_cv_prog_CPP+:} false; then :
4367 $as_echo_n "(cached) " >&6
4369 # Double quotes because CPP needs to be expanded
4370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4373 for ac_c_preproc_warn_flag in '' yes
4375 # Use a header file that comes with gcc, so configuring glibc
4376 # with a fresh cross-compiler works.
4377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4378 # <limits.h> exists even on freestanding compilers.
4379 # On the NeXT, cc -E runs the code through the compiler's parser,
4380 # not just through cpp. "Syntax error" is here to catch this case.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4384 # include <limits.h>
4386 # include <assert.h>
4390 if ac_fn_c_try_cpp "$LINENO"; then :
4393 # Broken: fails on valid input.
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4398 # OK, works on sane cases. Now check whether nonexistent headers
4399 # can be detected and how.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <ac_nonexistent.h>
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4405 # Broken: success on invalid input.
4408 # Passes both tests.
4412 rm -f conftest.err conftest.i conftest.$ac_ext
4415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4416 rm -f conftest.i conftest.err conftest.$ac_ext
4417 if $ac_preproc_ok; then :
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4430 $as_echo "$CPP" >&6; }
4432 for ac_c_preproc_warn_flag in '' yes
4434 # Use a header file that comes with gcc, so configuring glibc
4435 # with a fresh cross-compiler works.
4436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 # <limits.h> exists even on freestanding compilers.
4438 # On the NeXT, cc -E runs the code through the compiler's parser,
4439 # not just through cpp. "Syntax error" is here to catch this case.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4452 # Broken: fails on valid input.
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <ac_nonexistent.h>
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: success on invalid input.
4467 # Passes both tests.
4471 rm -f conftest.err conftest.i conftest.$ac_ext
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.i conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then :
4479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4482 See \`config.log' for more details" "$LINENO" 5; }
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4492 $as_echo_n "checking for additional special compiler flags... " >&6; }
4493 if test "$GCC" = yes
4496 alpha) addcflags="-mieee" ;;
4499 if test "x$addcflags" != x
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4502 $as_echo "$addcflags" >&6; }
4503 CFLAGS="$addcflags $CFLAGS"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4506 $as_echo "(none)" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if ${ac_cv_path_GREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 as_fn_executable_p "$ac_path_GREP" || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4533 $as_echo_n 0123456789 >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 $ac_path_GREP_found && break 3
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 ac_cv_path_GREP=$GREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP="$ac_cv_path_GREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if ${ac_cv_path_EGREP+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578 then ac_cv_path_EGREP="$GREP -E"
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in egrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 as_fn_executable_p "$ac_path_EGREP" || continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 $as_echo_n 0123456789 >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP="$ac_path_EGREP"
4612 ac_path_EGREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 $ac_path_EGREP_found && break 3
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 ac_cv_path_EGREP=$EGREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP="$ac_cv_path_EGREP"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4640 $as_echo_n "checking for ANSI C header files... " >&6; }
4641 if ${ac_cv_header_stdc+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_header_stdc=yes
4662 ac_cv_header_stdc=no
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "memchr" >/dev/null 2>&1; then :
4677 ac_cv_header_stdc=no
4683 if test $ac_cv_header_stdc = yes; then
4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "free" >/dev/null 2>&1; then :
4694 ac_cv_header_stdc=no
4700 if test $ac_cv_header_stdc = yes; then
4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4702 if test "$cross_compiling" = yes; then :
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4732 if ac_fn_c_try_run "$LINENO"; then :
4735 ac_cv_header_stdc=no
4737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4738 conftest.$ac_objext conftest.beam conftest.$ac_ext
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4744 $as_echo "$ac_cv_header_stdc" >&6; }
4745 if test $ac_cv_header_stdc = yes; then
4747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4759 cat >>confdefs.h <<_ACEOF
4760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4769 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4770 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4777 if test "$MINIX" = yes; then
4779 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4782 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4785 $as_echo "#define _MINIX 1" >>confdefs.h
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4791 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4792 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4798 # define __EXTENSIONS__ 1
4799 $ac_includes_default
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_safe_to_define___extensions__=yes
4811 ac_cv_safe_to_define___extensions__=no
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4816 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4817 test $ac_cv_safe_to_define___extensions__ = yes &&
4818 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4820 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4822 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4824 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4826 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4833 # Check whether --with-root-prefix was given.
4834 if test "${with_root_prefix+set}" = set; then :
4835 withval=$with_root_prefix; root_prefix=$withval
4839 # Check whether --enable-maintainer-mode was given.
4840 if test "${enable_maintainer_mode+set}" = set; then :
4841 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4845 $as_echo "Disabling maintainer mode" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4849 $as_echo "Enabling maintainer mode" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4855 $as_echo "Disabling maintainer mode by default" >&6; }
4860 # Check whether --enable-symlink-install was given.
4861 if test "${enable_symlink_install+set}" = set; then :
4862 enableval=$enable_symlink_install; if test "$enableval" = "no"
4864 LINK_INSTALL_FLAGS=-f
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4866 $as_echo "Disabling symlinks for install" >&6; }
4868 LINK_INSTALL_FLAGS=-sf
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4870 $as_echo "Enabling symlinks for install" >&6; }
4874 LINK_INSTALL_FLAGS=-f
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4876 $as_echo "Disabling symlinks for install by default" >&6; }
4881 relative_symlink_defined=
4882 # Check whether --enable-relative-symlinks was given.
4883 if test "${enable_relative_symlinks+set}" = set; then :
4884 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4887 relative_symlink_defined=yes
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4889 $as_echo "Disabling relative symlinks for install" >&6; }
4891 SYMLINK_RELATIVE=--relative
4892 relative_symlink_defined=yes
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4894 $as_echo "Enabling relative symlinks for install" >&6; }
4898 # Check whether --enable-symlink-relative-symlinks was given.
4899 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4900 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4902 SYMLINK_RELATIVE=yes
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4904 $as_echo "Disabling relative symlinks for install" >&6; }
4906 SYMLINK_RELATIVE=--relative
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4908 $as_echo "Enabling relative symlinks for install" >&6; }
4912 if test -z "$relative_symlink_defined"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4916 $as_echo "Disabling relative symlinks for install by default" >&6; }
4922 # Check whether --enable-symlink-build was given.
4923 if test "${enable_symlink_build+set}" = set; then :
4924 enableval=$enable_symlink_build; if test "$enableval" = "no"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4928 $as_echo "Disabling symlinks for build" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4932 $as_echo "Enabling symlinks for build" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4938 $as_echo "Disabling symlinks for build by default" >&6; }
4943 # Check whether --enable-verbose-makecmds was given.
4944 if test "${enable_verbose_makecmds+set}" = set; then :
4945 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4948 $as_echo "Disabling verbose make commands" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4954 $as_echo "Enabling verbose make commands" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4962 $as_echo "Disabling verbose make commands" >&6; }
4972 E2_PKG_CONFIG_STATIC=--static
4975 # Check whether --enable-elf-shlibs was given.
4976 if test "${enable_elf_shlibs+set}" = set; then :
4977 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4980 MAKEFILE_ELF=/dev/null
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4982 $as_echo "Disabling ELF shared libraries" >&6; }
4984 E2_PKG_CONFIG_STATIC=
4986 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4989 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4995 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4997 $as_echo "Enabling ELF shared libraries" >&6; }
5001 MAKEFILE_ELF=/dev/null
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5004 $as_echo "Disabling ELF shared libraries by default" >&6; }
5010 # Check whether --enable-bsd-shlibs was given.
5011 if test "${enable_bsd_shlibs+set}" = set; then :
5012 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5015 MAKEFILE_BSDLIB=/dev/null
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5017 $as_echo "Disabling BSD shared libraries" >&6; }
5019 E2_PKG_CONFIG_STATIC=
5021 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5025 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5030 $as_echo "Enabling BSD shared libraries" >&6; }
5034 MAKEFILE_BSDLIB=/dev/null
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5037 $as_echo "Disabling BSD shared libraries by default" >&6; }
5043 # Check whether --enable-profile was given.
5044 if test "${enable_profile+set}" = set; then :
5045 enableval=$enable_profile; if test "$enableval" = "no"
5048 MAKEFILE_PROFILE=/dev/null
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5050 $as_echo "Disabling profiling libraries" >&6; }
5053 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5054 PROFILED_LIB_EXT=_p.a
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5056 $as_echo "Building profiling libraries" >&6; }
5061 MAKEFILE_PROFILE=/dev/null
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5063 $as_echo "Disabling profiling libraries by default" >&6; }
5069 # Check whether --enable-gcov was given.
5070 if test "${enable_gcov+set}" = set; then :
5071 enableval=$enable_gcov; if test "$enableval" = "yes"
5073 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5074 LDFLAGS="-fprofile-arcs -ftest-coverage"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5076 $as_echo "Enabling gcov support" >&6; }
5081 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5082 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5083 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5084 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5085 # Check whether --enable-hardening was given.
5086 if test "${enable_hardening+set}" = set; then :
5087 enableval=$enable_hardening; if test "$enableval" = "yes"
5089 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5090 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5091 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5092 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5093 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5094 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5095 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5096 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5098 $as_echo "Enabling hardening support" >&6; }
5108 # Check whether --enable-jbd-debug was given.
5109 if test "${enable_jbd_debug+set}" = set; then :
5110 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5113 $as_echo "Disabling journal debugging" >&6; }
5116 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5119 $as_echo "Enabling journal debugging" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5124 $as_echo "Disabling journal debugging by default" >&6; }
5128 # Check whether --enable-blkid-debug was given.
5129 if test "${enable_blkid_debug+set}" = set; then :
5130 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5133 $as_echo "Disabling blkid debugging" >&6; }
5136 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5139 $as_echo "Enabling blkid debugging" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5144 $as_echo "Disabling blkid debugging by default" >&6; }
5148 # Check whether --enable-testio-debug was given.
5149 if test "${enable_testio_debug+set}" = set; then :
5150 enableval=$enable_testio_debug;
5151 if test "$enableval" = "no"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5154 $as_echo "Disabling testio debugging" >&6; }
5158 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5161 $as_echo "Enabling testio debugging" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5166 $as_echo "Enabling testio debugging by default" >&6; }
5167 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5174 # Check whether --enable-developer-features was given.
5175 if test "${enable_developer_features+set}" = set; then :
5176 enableval=$enable_developer_features;
5177 if test "$enableval" = "yes"
5180 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5183 $as_echo "Enabling ext4 developer features" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5186 $as_echo "Disabling ext4 developer features" >&6; }
5187 DEV_FEATURES_CMT="#"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5192 $as_echo "Disabling ext4 developer features by default" >&6; }
5205 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5212 $as_echo_n "(cached) " >&6
5216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5238 if test -n "$PKG_CONFIG"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5240 $as_echo "$PKG_CONFIG" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5248 if test -z "$ac_cv_path_PKG_CONFIG"; then
5249 ac_pt_PKG_CONFIG=$PKG_CONFIG
5250 # Extract the first word of "pkg-config", so it can be a program name with args.
5251 set dummy pkg-config; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 case $ac_pt_PKG_CONFIG in
5259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5281 if test -n "$ac_pt_PKG_CONFIG"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5283 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5289 if test "x$ac_pt_PKG_CONFIG" = x; then
5292 case $cross_compiling:$ac_tool_warned in
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5298 PKG_CONFIG=$ac_pt_PKG_CONFIG
5301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5305 if test -n "$PKG_CONFIG"; then
5306 _pkg_min_version=0.9.0
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5308 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5323 DEPPROFILED_LIBUUID=
5325 # Check whether --enable-libuuid was given.
5326 if test "${enable_libuuid+set}" = set; then :
5327 enableval=$enable_libuuid; if test "$enableval" = "no"
5329 if test -z "$PKG_CONFIG"; then
5330 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5334 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5335 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 ac_check_lib_save_LIBS=$LIBS
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5343 /* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5349 char uuid_generate ();
5353 return uuid_generate ();
5358 if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_lib_uuid_uuid_generate=yes
5361 ac_cv_lib_uuid_uuid_generate=no
5363 rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 LIBS=$ac_check_lib_save_LIBS
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5368 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5369 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5370 LIBUUID=`$PKG_CONFIG --libs uuid`;
5371 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5373 as_fn_error $? "external uuid library not found" "$LINENO" 5
5376 PROFILED_LIBUUID=$LIBUUID
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5379 $as_echo "Disabling private uuid library" >&6; }
5381 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5383 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5384 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5385 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5386 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5388 $as_echo "Enabling private uuid library" >&6; }
5392 if test -n "$PKG_CONFIG"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5394 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5395 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 ac_check_lib_save_LIBS=$LIBS
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5403 /* Override any GCC internal prototype to avoid an error.
5404 Use char because int might match the return type of a GCC
5405 builtin and then its argument prototype would still apply. */
5409 char uuid_generate ();
5413 return uuid_generate ();
5418 if ac_fn_c_try_link "$LINENO"; then :
5419 ac_cv_lib_uuid_uuid_generate=yes
5421 ac_cv_lib_uuid_uuid_generate=no
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5428 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5429 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5430 LIBUUID=`$PKG_CONFIG --libs uuid`;
5431 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5435 if test -n "$LIBUUID"; then
5436 PROFILED_LIBUUID=$LIBUUID
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5439 $as_echo "Using system uuid by default" >&6; }
5441 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5443 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5444 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5445 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5446 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5448 $as_echo "Enabling private uuid library by default" >&6; }
5467 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5474 $as_echo_n "(cached) " >&6
5478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5500 if test -n "$PKG_CONFIG"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5502 $as_echo "$PKG_CONFIG" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5510 if test -z "$ac_cv_path_PKG_CONFIG"; then
5511 ac_pt_PKG_CONFIG=$PKG_CONFIG
5512 # Extract the first word of "pkg-config", so it can be a program name with args.
5513 set dummy pkg-config; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 case $ac_pt_PKG_CONFIG in
5521 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5543 if test -n "$ac_pt_PKG_CONFIG"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5545 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5551 if test "x$ac_pt_PKG_CONFIG" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5560 PKG_CONFIG=$ac_pt_PKG_CONFIG
5563 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5567 if test -n "$PKG_CONFIG"; then
5568 _pkg_min_version=0.9.0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5570 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5571 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573 $as_echo "yes" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5585 DEPPROFILED_LIBBLKID=
5588 # Check whether --enable-libblkid was given.
5589 if test "${enable_libblkid+set}" = set; then :
5590 enableval=$enable_libblkid; if test "$enableval" = "no"
5592 if test -z "$PKG_CONFIG"; then
5593 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5597 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5598 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5599 $as_echo_n "(cached) " >&6
5601 ac_check_lib_save_LIBS=$LIBS
5602 LIBS="-lblkid -luuid $LIBS"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5612 char blkid_get_cache ();
5616 return blkid_get_cache ();
5621 if ac_fn_c_try_link "$LINENO"; then :
5622 ac_cv_lib_blkid_blkid_get_cache=yes
5624 ac_cv_lib_blkid_blkid_get_cache=no
5626 rm -f core conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628 LIBS=$ac_check_lib_save_LIBS
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5631 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5632 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5633 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5634 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5636 as_fn_error $? "external blkid library not found" "$LINENO" 5
5640 PROFILED_LIBBLKID=$LIBBLKID
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5642 $as_echo "Disabling private blkid library" >&6; }
5644 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5645 DEPLIBBLKID=$LIBBLKID
5646 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5647 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5648 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5649 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5650 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5653 $as_echo "Enabling private blkid library" >&6; }
5657 if test -n "$PKG_CONFIG"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5659 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5660 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 ac_check_lib_save_LIBS=$LIBS
5664 LIBS="-lblkid $LIBS"
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5668 /* Override any GCC internal prototype to avoid an error.
5669 Use char because int might match the return type of a GCC
5670 builtin and then its argument prototype would still apply. */
5674 char blkid_get_cache ();
5678 return blkid_get_cache ();
5683 if ac_fn_c_try_link "$LINENO"; then :
5684 ac_cv_lib_blkid_blkid_get_cache=yes
5686 ac_cv_lib_blkid_blkid_get_cache=no
5688 rm -f core conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690 LIBS=$ac_check_lib_save_LIBS
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5693 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5694 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5695 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5696 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5700 if test -n "$LIBBLKID"; then
5702 PROFILED_LIBBLKID=$LIBBLKID
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5704 $as_echo "Using system blkid library by default" >&6; }
5706 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5707 DEPLIBBLKID=$LIBBLKID
5708 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5709 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5710 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5711 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5712 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5715 $as_echo "Enabling private blkid library by default" >&6; }
5729 # Check whether --enable-subset was given.
5730 if test "${enable_subset+set}" = set; then :
5731 enableval=$enable_subset; if test "$enableval" = "no"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5735 $as_echo "Disabling subset-only build" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5739 $as_echo "Enabling subset-only-build" >&6; }
5747 # Check whether --enable-backtrace was given.
5748 if test "${enable_backtrace+set}" = set; then :
5749 enableval=$enable_backtrace; if test "$enableval" = "no"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5752 $as_echo "Disabling use of backtrace" >&6; }
5753 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5757 $as_echo "Enabling use of backtrace" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5762 $as_echo "Enabling use of backtrace by default" >&6; }
5766 # Check whether --enable-debugfs was given.
5767 if test "${enable_debugfs+set}" = set; then :
5768 enableval=$enable_debugfs; if test "$enableval" = "no"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5771 $as_echo "Disabling debugfs support" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5776 $as_echo "Enabling debugfs support" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5781 $as_echo "Enabling debugfs support by default" >&6; }
5787 # Check whether --enable-imager was given.
5788 if test "${enable_imager+set}" = set; then :
5789 enableval=$enable_imager; if test "$enableval" = "no"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5792 $as_echo "Disabling e2image support" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5797 $as_echo "Enabling e2image support" >&6; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5802 $as_echo "Enabling e2image support by default" >&6; }
5808 # Check whether --enable-resizer was given.
5809 if test "${enable_resizer+set}" = set; then :
5810 enableval=$enable_resizer; if test "$enableval" = "no"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5813 $as_echo "Disabling e2resize support" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5818 $as_echo "Enabling e2resize support" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5823 $as_echo "Enabling e2resize support by default" >&6; }
5829 # Check whether --enable-defrag was given.
5830 if test "${enable_defrag+set}" = set; then :
5831 enableval=$enable_defrag; if test "$enableval" = "no"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5834 $as_echo "Disabling e4defrag support" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5839 $as_echo "Enabling e4defrag support" >&6; }
5843 if test -z "$WITH_DIET_LIBC"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5846 $as_echo "Enabling e4defrag support by default" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5850 $as_echo "Disabling e4defrag support by default" >&6; }
5857 # Check whether --enable-fsck was given.
5858 if test "${enable_fsck+set}" = set; then :
5859 enableval=$enable_fsck; if test "$enableval" = "no"
5861 FSCK_PROG='' FSCK_MAN=''
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5863 $as_echo "Not building fsck wrapper" >&6; }
5865 FSCK_PROG=fsck FSCK_MAN=fsck.8
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5867 $as_echo "Building fsck wrapper" >&6; }
5873 FSCK_PROG='' FSCK_MAN=''
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5875 $as_echo "Not building fsck wrapper by default" >&6; }
5878 FSCK_PROG=fsck FSCK_MAN=fsck.8
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5880 $as_echo "Building fsck wrapper by default" >&6; }
5887 # Check whether --enable-e2initrd-helper was given.
5888 if test "${enable_e2initrd_helper+set}" = set; then :
5889 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5891 E2INITRD_PROG='' E2INITRD_MAN=''
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5893 $as_echo "Not building e2initrd helper" >&6; }
5895 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5897 $as_echo "Building e2initrd helper" >&6; }
5901 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5903 $as_echo "Building e2initrd helper by default" >&6; }
5909 # Check whether --enable-tls was given.
5910 if test "${enable_tls+set}" = set; then :
5911 enableval=$enable_tls; if test "$enableval" = "no"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5915 $as_echo "Disabling thread local support" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5919 $as_echo "Enabling thread local support" >&6; }
5923 if test -n "$WITH_DIET_LIBC"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5927 $as_echo "Diet libc does not support thread local support" >&6; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5931 $as_echo "Try using thread local support by default" >&6; }
5936 if test "$try_tls" = "yes"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5940 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5941 if ${ac_cv_tls+:} false; then :
5942 $as_echo_n "(cached) " >&6
5945 ax_tls_keywords="__thread __declspec(thread) none"
5946 for ax_tls_keyword in $ax_tls_keywords; do
5947 case $ax_tls_keyword in
5948 none) ac_cv_tls=none ; break ;;
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5955 static $ax_tls_keyword int bar;
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 ac_cv_tls=$ax_tls_keyword ; break
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 if test "$ac_cv_tls" != "none"; then
5981 cat >>confdefs.h <<_ACEOF
5982 #define TLS $ac_cv_tls
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5987 $as_echo "$ac_cv_tls" >&6; }
5991 # Check whether --enable-uuidd was given.
5992 if test "${enable_uuidd+set}" = set; then :
5993 enableval=$enable_uuidd; if test "$enableval" = "no"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5996 $as_echo "Not building uuidd" >&6; }
5999 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6003 $as_echo "Building uuidd" >&6; }
6007 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6009 if test -z "$UUID_CMT"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6013 $as_echo "Building uuidd by default" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6017 $as_echo "Disabling uuidd by default" >&6; }
6024 # Check whether --enable-mmp was given.
6025 if test "${enable_mmp+set}" = set; then :
6026 enableval=$enable_mmp; if test "$enableval" = "no"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6029 $as_echo "Disabling mmp support" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6032 $as_echo "Enabling mmp support" >&6; }
6033 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6039 $as_echo "Enabling mmp support by default" >&6; }
6040 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6046 # Check whether --enable-tdb was given.
6047 if test "${enable_tdb+set}" = set; then :
6048 enableval=$enable_tdb; if test "$enableval" = "no"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6051 $as_echo "Disabling tdb support" >&6; }
6053 TDB_MAN_COMMENT='.\"'
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6056 $as_echo "Enabling tdb support" >&6; }
6057 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6065 $as_echo "Enabling mmp support by default" >&6; }
6066 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6076 # Check whether --enable-bmap-stats was given.
6077 if test "${enable_bmap_stats+set}" = set; then :
6078 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6081 $as_echo "Disabling bitmap statistics support" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6084 $as_echo "Enabling bitmap statistics support" >&6; }
6085 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6091 $as_echo "Enabling bitmap statistics support by default" >&6; }
6092 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6098 # Check whether --enable-bmap-stats-ops was given.
6099 if test "${enable_bmap_stats_ops+set}" = set; then :
6100 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6103 $as_echo "Disabling additional bitmap statistics" >&6; }
6105 if test "x${enable_bmap_stats}" = "xno"; then :
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6109 See \`config.log' for more details" "$LINENO" 5; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6113 $as_echo "Enabling additional bitmap statistics" >&6; }
6114 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6120 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6124 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6126 GETTEXT_PACKAGE=e2fsprogs
6128 VERSION="$E2FSPROGS_VERSION"
6131 cat >>confdefs.h <<_ACEOF
6132 #define PACKAGE "$PACKAGE"
6136 cat >>confdefs.h <<_ACEOF
6137 #define VERSION "$VERSION"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6147 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6148 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6149 $as_echo_n "(cached) " >&6
6151 cat >conftest.make <<\_ACEOF
6154 @echo '@@@%%%=$(MAKE)=@@@%%%'
6156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6159 eval ac_cv_prog_make_${ac_make}_set=yes;;
6161 eval ac_cv_prog_make_${ac_make}_set=no;;
6165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6167 $as_echo "yes" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 SET_MAKE="MAKE=${MAKE-make}"
6175 # Find a good install program. We prefer a C program (faster),
6176 # so one script is as good as another. But avoid the broken or
6177 # incompatible versions:
6178 # SysV /etc/install, /usr/sbin/install
6179 # SunOS /usr/etc/install
6180 # IRIX /sbin/install
6182 # AmigaOS /C/install, which installs bootblocks on floppy discs
6183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6186 # OS/2's system install, which has a completely different semantic
6187 # ./install, which can be erroneously created by make from ./install.sh.
6188 # Reject install programs that cannot install multiple files.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6190 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6191 if test -z "$INSTALL"; then
6192 if ${ac_cv_path_install+:} false; then :
6193 $as_echo_n "(cached) " >&6
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 # Account for people who put trailing slashes in PATH elements.
6201 case $as_dir/ in #((
6202 ./ | .// | /[cC]/* | \
6203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6207 # OSF1 and SCO ODT 3.0 have their own names for install.
6208 # Don't use installbsd from OSF since it installs stuff as root
6210 for ac_prog in ginstall scoinst install; do
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6213 if test $ac_prog = install &&
6214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6215 # AIX install. It has an incompatible calling convention.
6217 elif test $ac_prog = install &&
6218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6219 # program-specific install script used by HP pwplus--don't use.
6222 rm -rf conftest.one conftest.two conftest.dir
6223 echo one > conftest.one
6224 echo two > conftest.two
6226 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6227 test -s conftest.one && test -s conftest.two &&
6228 test -s conftest.dir/conftest.one &&
6229 test -s conftest.dir/conftest.two
6231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6244 rm -rf conftest.one conftest.two conftest.dir
6247 if test "${ac_cv_path_install+set}" = set; then
6248 INSTALL=$ac_cv_path_install
6250 # As a last resort, use the slow shell script. Don't cache a
6251 # value for INSTALL within a source directory, because that will
6252 # break other packages using the cache if that directory is
6253 # removed, or if the value is a relative name.
6254 INSTALL=$ac_install_sh
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6258 $as_echo "$INSTALL" >&6; }
6260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6261 # It thinks the first close brace ends the variable substitution.
6262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6269 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6270 if test -z "$MKDIR_P"; then
6271 if ${ac_cv_path_mkdir+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6278 test -z "$as_dir" && as_dir=.
6279 for ac_prog in mkdir gmkdir; do
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6282 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6283 'mkdir (GNU coreutils) '* | \
6284 'mkdir (coreutils) '* | \
6285 'mkdir (fileutils) '4.1*)
6286 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6296 test -d ./--version && rmdir ./--version
6297 if test "${ac_cv_path_mkdir+set}" = set; then
6298 MKDIR_P="$ac_cv_path_mkdir -p"
6300 # As a last resort, use the slow shell script. Don't cache a
6301 # value for MKDIR_P within a source directory, because that will
6302 # break other packages using the cache if that directory is
6303 # removed, or if the value is a relative name.
6304 MKDIR_P="$ac_install_sh -d"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6308 $as_echo "$MKDIR_P" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6311 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6312 if ${ac_cv_path_SED+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6316 for ac_i in 1 2 3 4 5 6 7; do
6317 ac_script="$ac_script$as_nl$ac_script"
6319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6320 { ac_script=; unset ac_script;}
6321 if test -z "$SED"; then
6322 ac_path_SED_found=false
6323 # Loop through the user's path and test for each of PROGNAME-LIST
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_prog in sed gsed; do
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6332 as_fn_executable_p "$ac_path_SED" || continue
6333 # Check for GNU ac_path_SED and select it if it is found.
6334 # Check for GNU $ac_path_SED
6335 case `"$ac_path_SED" --version 2>&1` in
6337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6340 $as_echo_n 0123456789 >"conftest.in"
6343 cat "conftest.in" "conftest.in" >"conftest.tmp"
6344 mv "conftest.tmp" "conftest.in"
6345 cp "conftest.in" "conftest.nl"
6346 $as_echo '' >> "conftest.nl"
6347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6349 as_fn_arith $ac_count + 1 && ac_count=$as_val
6350 if test $ac_count -gt ${ac_path_SED_max-0}; then
6351 # Best one so far, save it but keep looking for a better one
6352 ac_cv_path_SED="$ac_path_SED"
6353 ac_path_SED_max=$ac_count
6355 # 10*(2^10) chars as input seems more than enough
6356 test $ac_count -gt 10 && break
6358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6361 $ac_path_SED_found && break 3
6366 if test -z "$ac_cv_path_SED"; then
6367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6375 $as_echo "$ac_cv_path_SED" >&6; }
6376 SED="$ac_cv_path_SED"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6381 $as_echo_n "checking whether NLS is requested... " >&6; }
6382 # Check whether --enable-nls was given.
6383 if test "${enable_nls+set}" = set; then :
6384 enableval=$enable_nls; USE_NLS=$enableval
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6390 $as_echo "$USE_NLS" >&6; }
6395 GETTEXT_MACRO_VERSION=0.18
6400 # Prepare PATH_SEPARATOR.
6401 # The user is always right.
6402 if test "${PATH_SEPARATOR+set}" != set; then
6403 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6404 # contains only /bin. Note that ksh looks also at the FPATH variable,
6405 # so we have to set that as well for the test.
6407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6408 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6409 || PATH_SEPARATOR=';'
6413 # Find out how to test for executable files. Don't use a zero-byte file,
6414 # as systems may use methods other than mode bits to determine executability.
6415 cat >conf$$.file <<_ASEOF
6419 chmod +x conf$$.file
6420 if test -x conf$$.file >/dev/null 2>&1; then
6421 ac_executable_p="test -x"
6423 ac_executable_p="test -f"
6427 # Extract the first word of "msgfmt", so it can be a program name with args.
6428 set dummy msgfmt; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_path_MSGFMT+:} false; then :
6432 $as_echo_n "(cached) " >&6
6436 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6439 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH; do
6442 test -z "$ac_dir" && ac_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6445 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6446 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6447 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6448 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6455 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6459 MSGFMT="$ac_cv_path_MSGFMT"
6460 if test "$MSGFMT" != ":"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6462 $as_echo "$MSGFMT" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6469 set dummy gmsgfmt; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_path_GMSGFMT+:} false; then :
6473 $as_echo_n "(cached) " >&6
6477 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6499 GMSGFMT=$ac_cv_path_GMSGFMT
6500 if test -n "$GMSGFMT"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6502 $as_echo "$GMSGFMT" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6510 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6511 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6512 *) MSGFMT_015=$MSGFMT ;;
6515 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6516 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6517 *) GMSGFMT_015=$GMSGFMT ;;
6522 # Prepare PATH_SEPARATOR.
6523 # The user is always right.
6524 if test "${PATH_SEPARATOR+set}" != set; then
6525 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6526 # contains only /bin. Note that ksh looks also at the FPATH variable,
6527 # so we have to set that as well for the test.
6529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6530 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6531 || PATH_SEPARATOR=';'
6535 # Find out how to test for executable files. Don't use a zero-byte file,
6536 # as systems may use methods other than mode bits to determine executability.
6537 cat >conf$$.file <<_ASEOF
6541 chmod +x conf$$.file
6542 if test -x conf$$.file >/dev/null 2>&1; then
6543 ac_executable_p="test -x"
6545 ac_executable_p="test -f"
6549 # Extract the first word of "xgettext", so it can be a program name with args.
6550 set dummy xgettext; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_path_XGETTEXT+:} false; then :
6554 $as_echo_n "(cached) " >&6
6558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6561 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6562 for ac_dir in $PATH; do
6564 test -z "$ac_dir" && ac_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6567 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6568 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6569 (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
6570 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6577 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6581 XGETTEXT="$ac_cv_path_XGETTEXT"
6582 if test "$XGETTEXT" != ":"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6584 $as_echo "$XGETTEXT" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6592 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6593 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6594 *) XGETTEXT_015=$XGETTEXT ;;
6599 # Prepare PATH_SEPARATOR.
6600 # The user is always right.
6601 if test "${PATH_SEPARATOR+set}" != set; then
6602 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6603 # contains only /bin. Note that ksh looks also at the FPATH variable,
6604 # so we have to set that as well for the test.
6606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6607 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6608 || PATH_SEPARATOR=';'
6612 # Find out how to test for executable files. Don't use a zero-byte file,
6613 # as systems may use methods other than mode bits to determine executability.
6614 cat >conf$$.file <<_ASEOF
6618 chmod +x conf$$.file
6619 if test -x conf$$.file >/dev/null 2>&1; then
6620 ac_executable_p="test -x"
6622 ac_executable_p="test -f"
6626 # Extract the first word of "msgmerge", so it can be a program name with args.
6627 set dummy msgmerge; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_path_MSGMERGE+:} false; then :
6631 $as_echo_n "(cached) " >&6
6635 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6638 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6639 for ac_dir in $PATH; do
6641 test -z "$ac_dir" && ac_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6644 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6645 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6646 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6653 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6657 MSGMERGE="$ac_cv_path_MSGMERGE"
6658 if test "$MSGMERGE" != ":"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6660 $as_echo "$MSGMERGE" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6667 test -n "$localedir" || localedir='${datadir}/locale'
6670 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6673 ac_config_commands="$ac_config_commands po-directories"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6678 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6679 if ${ac_cv_gnu_library_2+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 #include <features.h>
6686 #ifdef __GNU_LIBRARY__
6687 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6695 ac_cv_gnu_library_2=yes
6697 ac_cv_gnu_library_2=no
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6705 $as_echo "$ac_cv_gnu_library_2" >&6; }
6707 GLIBC2="$ac_cv_gnu_library_2"
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_RANLIB+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741 $as_echo "$RANLIB" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781 $as_echo "$ac_ct_RANLIB" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6787 if test "x$ac_ct_RANLIB" = x; then
6790 case $cross_compiling:$ac_tool_warned in
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6796 RANLIB=$ac_ct_RANLIB
6799 RANLIB="$ac_cv_prog_RANLIB"
6806 if test -n "$GCC"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6808 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6809 if ${gl_cv_cc_vis_werror+:} false; then :
6810 $as_echo_n "(cached) " >&6
6813 gl_save_CFLAGS="$CFLAGS"
6814 CFLAGS="$CFLAGS -Werror"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 gl_cv_cc_vis_werror=yes
6829 gl_cv_cc_vis_werror=no
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 CFLAGS="$gl_save_CFLAGS"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6836 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6838 $as_echo_n "checking for simple visibility declarations... " >&6; }
6839 if ${gl_cv_cc_visibility+:} false; then :
6840 $as_echo_n "(cached) " >&6
6843 gl_save_CFLAGS="$CFLAGS"
6844 CFLAGS="$CFLAGS -fvisibility=hidden"
6845 if test $gl_cv_cc_vis_werror = yes; then
6846 CFLAGS="$CFLAGS -Werror"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6851 extern __attribute__((__visibility__("default"))) int exportedvar;
6852 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6853 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6854 void dummyfunc (void) {}
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_cc_visibility=yes
6867 gl_cv_cc_visibility=no
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 CFLAGS="$gl_save_CFLAGS"
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6874 $as_echo "$gl_cv_cc_visibility" >&6; }
6875 if test $gl_cv_cc_visibility = yes; then
6876 CFLAG_VISIBILITY="-fvisibility=hidden"
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6889 $as_echo_n "checking for inline... " >&6; }
6890 if ${ac_cv_c_inline+:} false; then :
6891 $as_echo_n "(cached) " >&6
6894 for ac_kw in inline __inline__ __inline; do
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6899 static $ac_kw foo_t static_foo () {return 0; }
6900 $ac_kw foo_t foo () {return 0; }
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 ac_cv_c_inline=$ac_kw
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 test "$ac_cv_c_inline" != no && break
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6913 $as_echo "$ac_cv_c_inline" >&6; }
6915 case $ac_cv_c_inline in
6918 case $ac_cv_c_inline in
6920 *) ac_val=$ac_cv_c_inline;;
6922 cat >>confdefs.h <<_ACEOF
6924 #define inline $ac_val
6930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6931 if test "x$ac_cv_type_size_t" = xyes; then :
6935 cat >>confdefs.h <<_ACEOF
6936 #define size_t unsigned int
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6943 $as_echo_n "checking for stdint.h... " >&6; }
6944 if ${gl_cv_header_stdint_h+:} false; then :
6945 $as_echo_n "(cached) " >&6
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <sys/types.h>
6954 uintmax_t i = (uintmax_t) -1; return !i;
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 gl_cv_header_stdint_h=yes
6962 gl_cv_header_stdint_h=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6967 $as_echo "$gl_cv_header_stdint_h" >&6; }
6968 if test $gl_cv_header_stdint_h = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_STDINT_H_WITH_UINTMAX 1
6976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6977 # for constant arguments. Useless!
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6979 $as_echo_n "checking for working alloca.h... " >&6; }
6980 if ${ac_cv_working_alloca_h+:} false; then :
6981 $as_echo_n "(cached) " >&6
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6989 char *p = (char *) alloca (2 * sizeof (int));
6995 if ac_fn_c_try_link "$LINENO"; then :
6996 ac_cv_working_alloca_h=yes
6998 ac_cv_working_alloca_h=no
7000 rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7004 $as_echo "$ac_cv_working_alloca_h" >&6; }
7005 if test $ac_cv_working_alloca_h = yes; then
7007 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7012 $as_echo_n "checking for alloca... " >&6; }
7013 if ${ac_cv_func_alloca_works+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7019 # define alloca __builtin_alloca
7022 # include <malloc.h>
7023 # define alloca _alloca
7025 # ifdef HAVE_ALLOCA_H
7026 # include <alloca.h>
7031 # ifndef alloca /* predefined by HP cc +Olibcalls */
7032 void *alloca (size_t);
7042 char *p = (char *) alloca (1);
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 ac_cv_func_alloca_works=yes
7051 ac_cv_func_alloca_works=no
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7057 $as_echo "$ac_cv_func_alloca_works" >&6; }
7059 if test $ac_cv_func_alloca_works = yes; then
7061 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7065 # that cause trouble. Some versions do not even contain alloca or
7066 # contain a buggy version. If you still want to use their alloca,
7067 # use ar to extract alloca.o from them instead of compiling alloca.c.
7069 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7071 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7075 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7076 if ${ac_cv_os_cray+:} false; then :
7077 $as_echo_n "(cached) " >&6
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #if defined CRAY && ! defined CRAY2
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "webecray" >/dev/null 2>&1; then :
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7098 $as_echo "$ac_cv_os_cray" >&6; }
7099 if test $ac_cv_os_cray = yes; then
7100 for ac_func in _getb67 GETB67 getb67; do
7101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7103 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7105 cat >>confdefs.h <<_ACEOF
7106 #define CRAY_STACKSEG_END $ac_func
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7116 $as_echo_n "checking stack direction for C alloca... " >&6; }
7117 if ${ac_cv_c_stack_direction+:} false; then :
7118 $as_echo_n "(cached) " >&6
7120 if test "$cross_compiling" = yes; then :
7121 ac_cv_c_stack_direction=0
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 $ac_includes_default
7127 find_stack_direction (int *addr, int depth)
7132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7138 main (int argc, char **argv)
7140 return find_stack_direction (0, argc + !argv + 20) < 0;
7143 if ac_fn_c_try_run "$LINENO"; then :
7144 ac_cv_c_stack_direction=1
7146 ac_cv_c_stack_direction=-1
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7154 $as_echo "$ac_cv_c_stack_direction" >&6; }
7155 cat >>confdefs.h <<_ACEOF
7156 #define STACK_DIRECTION $ac_cv_c_stack_direction
7165 for ac_header in $ac_header_list
7167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7170 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7171 cat >>confdefs.h <<_ACEOF
7172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186 for ac_func in getpagesize
7188 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7189 if test "x$ac_cv_func_getpagesize" = xyes; then :
7190 cat >>confdefs.h <<_ACEOF
7191 #define HAVE_GETPAGESIZE 1
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7198 $as_echo_n "checking for working mmap... " >&6; }
7199 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test "$cross_compiling" = yes; then :
7203 ac_cv_func_mmap_fixed_mapped=no
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 /* malloc might have been renamed as rpl_malloc. */
7211 /* Thanks to Mike Haertel and Jim Avera for this test.
7212 Here is a matrix of mmap possibilities:
7213 mmap private not fixed
7214 mmap private fixed at somewhere currently unmapped
7215 mmap private fixed at somewhere already mapped
7216 mmap shared not fixed
7217 mmap shared fixed at somewhere currently unmapped
7218 mmap shared fixed at somewhere already mapped
7219 For private mappings, we should verify that changes cannot be read()
7220 back from the file, nor mmap's back from the file at a different
7221 address. (There have been systems where private was not correctly
7222 implemented like the infamous i386 svr4.0, and systems where the
7223 VM page cache was not coherent with the file system buffer cache
7224 like early versions of FreeBSD and possibly contemporary NetBSD.)
7225 For shared mappings, we should conversely verify that changes get
7226 propagated back to all the places they're supposed to be.
7228 Grep wants private fixed already mapped.
7229 The main things grep needs to know about mmap are:
7230 * does it exist and is it safe to write into the mmap'd area
7231 * how to use it (BSD variants) */
7234 #include <sys/mman.h>
7236 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7240 /* This mess was copied from the GNU getpagesize.h. */
7241 #ifndef HAVE_GETPAGESIZE
7242 # ifdef _SC_PAGESIZE
7243 # define getpagesize() sysconf(_SC_PAGESIZE)
7244 # else /* no _SC_PAGESIZE */
7245 # ifdef HAVE_SYS_PARAM_H
7246 # include <sys/param.h>
7247 # ifdef EXEC_PAGESIZE
7248 # define getpagesize() EXEC_PAGESIZE
7249 # else /* no EXEC_PAGESIZE */
7251 # define getpagesize() NBPG * CLSIZE
7254 # endif /* no CLSIZE */
7255 # else /* no NBPG */
7257 # define getpagesize() NBPC
7258 # else /* no NBPC */
7260 # define getpagesize() PAGESIZE
7261 # endif /* PAGESIZE */
7262 # endif /* no NBPC */
7263 # endif /* no NBPG */
7264 # endif /* no EXEC_PAGESIZE */
7265 # else /* no HAVE_SYS_PARAM_H */
7266 # define getpagesize() 8192 /* punt totally */
7267 # endif /* no HAVE_SYS_PARAM_H */
7268 # endif /* no _SC_PAGESIZE */
7270 #endif /* no HAVE_GETPAGESIZE */
7275 char *data, *data2, *data3;
7280 pagesize = getpagesize ();
7282 /* First, make a file with some known garbage in it. */
7283 data = (char *) malloc (pagesize);
7286 for (i = 0; i < pagesize; ++i)
7287 *(data + i) = rand ();
7289 fd = creat ("conftest.mmap", 0600);
7292 if (write (fd, data, pagesize) != pagesize)
7296 /* Next, check that the tail of a page is zero-filled. File must have
7297 non-zero length, otherwise we risk SIGBUS for entire page. */
7298 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7302 if (write (fd2, cdata2, 1) != 1)
7304 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7305 if (data2 == MAP_FAILED)
7307 for (i = 0; i < pagesize; ++i)
7311 if (munmap (data2, pagesize))
7314 /* Next, try to mmap the file at a fixed address which already has
7315 something else allocated at it. If we can, also make sure that
7316 we see the same garbage. */
7317 fd = open ("conftest.mmap", O_RDWR);
7320 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7321 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data2 + i))
7327 /* Finally, make sure that changes to the mapped area do not
7328 percolate back to the file as seen by read(). (This is a bug on
7329 some variants of i386 svr4.0.) */
7330 for (i = 0; i < pagesize; ++i)
7331 *(data2 + i) = *(data2 + i) + 1;
7332 data3 = (char *) malloc (pagesize);
7335 if (read (fd, data3, pagesize) != pagesize)
7337 for (i = 0; i < pagesize; ++i)
7338 if (*(data + i) != *(data3 + i))
7346 if ac_fn_c_try_run "$LINENO"; then :
7347 ac_cv_func_mmap_fixed_mapped=yes
7349 ac_cv_func_mmap_fixed_mapped=no
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7357 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7360 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7363 rm -f conftest.mmap conftest.txt
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7368 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7369 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7370 $as_echo_n "(cached) " >&6
7373 gt_cv_int_divbyzero_sigfpe=
7375 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7376 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7377 # compiling. If we were to perform the real test, 1 Crash Report
7378 # dialog window would pop up.
7380 i[34567]86 | x86_64)
7381 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7385 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7386 if test "$cross_compiling" = yes; then :
7388 # Guess based on the CPU.
7390 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7391 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7393 gt_cv_int_divbyzero_sigfpe="guessing no";;
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7404 sigfpe_handler (int sig)
7406 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7407 exit (sig != SIGFPE);
7417 signal (SIGFPE, sigfpe_handler);
7418 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7419 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7420 signal (SIGTRAP, sigfpe_handler);
7422 /* Linux/SPARC yields signal SIGILL. */
7423 #if defined (__sparc__) && defined (__linux__)
7424 signal (SIGILL, sigfpe_handler);
7433 if ac_fn_c_try_run "$LINENO"; then :
7434 gt_cv_int_divbyzero_sigfpe=yes
7436 gt_cv_int_divbyzero_sigfpe=no
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7446 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7447 case "$gt_cv_int_divbyzero_sigfpe" in
7452 cat >>confdefs.h <<_ACEOF
7453 #define INTDIV0_RAISES_SIGFPE $value
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7459 $as_echo_n "checking for inttypes.h... " >&6; }
7460 if ${gl_cv_header_inttypes_h+:} false; then :
7461 $as_echo_n "(cached) " >&6
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 #include <inttypes.h>
7472 uintmax_t i = (uintmax_t) -1; return !i;
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 gl_cv_header_inttypes_h=yes
7480 gl_cv_header_inttypes_h=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7485 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7486 if test $gl_cv_header_inttypes_h = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7496 $as_echo_n "checking for unsigned long long int... " >&6; }
7497 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7498 $as_echo_n "(cached) " >&6
7500 ac_cv_type_unsigned_long_long_int=yes
7501 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7505 /* For now, do not test the preprocessor; as of 2007 there are too many
7506 implementations with broken preprocessors. Perhaps this can
7507 be revisited in 2012. In the meantime, code should not expect
7508 #if to work with literals wider than 32 bits. */
7509 /* Test literals. */
7510 long long int ll = 9223372036854775807ll;
7511 long long int nll = -9223372036854775807LL;
7512 unsigned long long int ull = 18446744073709551615ULL;
7513 /* Test constant expressions. */
7514 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7516 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7522 /* Test availability of runtime routines for shift and division. */
7523 long long int llmax = 9223372036854775807ll;
7524 unsigned long long int ullmax = 18446744073709551615ull;
7525 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7526 | (llmax / ll) | (llmax % ll)
7527 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7528 | (ullmax / ull) | (ullmax % ull));
7534 if ac_fn_c_try_link "$LINENO"; then :
7537 ac_cv_type_unsigned_long_long_int=no
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7544 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7545 if test $ac_cv_type_unsigned_long_long_int = yes; then
7547 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7554 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7556 test $ac_cv_type_unsigned_long_long_int = yes \
7557 && ac_type='unsigned long long' \
7558 || ac_type='unsigned long'
7560 cat >>confdefs.h <<_ACEOF
7561 #define uintmax_t $ac_type
7566 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7571 for ac_header in inttypes.h
7573 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7574 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7575 cat >>confdefs.h <<_ACEOF
7576 #define HAVE_INTTYPES_H 1
7583 if test $ac_cv_header_inttypes_h = yes; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7585 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7586 if ${gt_cv_inttypes_pri_broken+:} false; then :
7587 $as_echo_n "(cached) " >&6
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7593 #include <inttypes.h>
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 gt_cv_inttypes_pri_broken=no
7609 gt_cv_inttypes_pri_broken=yes
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7615 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7617 if test "$gt_cv_inttypes_pri_broken" = yes; then
7619 cat >>confdefs.h <<_ACEOF
7620 #define PRI_MACROS_BROKEN 1
7634 # Check whether --enable-threads was given.
7635 if test "${enable_threads+set}" = set; then :
7636 enableval=$enable_threads; gl_use_threads=$enableval
7638 if test -n "$gl_use_threads_default"; then
7639 gl_use_threads="$gl_use_threads_default"
7642 osf*) gl_use_threads=no ;;
7645 1.[0-5].*) gl_use_threads=no ;;
7646 *) gl_use_threads=yes ;;
7649 *) gl_use_threads=yes ;;
7655 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7656 # For using <pthread.h>:
7659 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7660 # groks <pthread.h>. cc also understands the flag -pthread, but
7661 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7662 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7663 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7664 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7665 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7668 # Some systems optimize for single-threaded programs by default, and
7669 # need special flags to disable these optimizations. For example, the
7670 # definition of 'errno' in <errno.h>.
7672 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7673 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7681 if test "X$prefix" = "XNONE"; then
7682 acl_final_prefix="$ac_default_prefix"
7684 acl_final_prefix="$prefix"
7686 if test "X$exec_prefix" = "XNONE"; then
7687 acl_final_exec_prefix='${prefix}'
7689 acl_final_exec_prefix="$exec_prefix"
7691 acl_save_prefix="$prefix"
7692 prefix="$acl_final_prefix"
7693 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7694 prefix="$acl_save_prefix"
7698 # Check whether --with-gnu-ld was given.
7699 if test "${with_gnu_ld+set}" = set; then :
7700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7705 # Prepare PATH_SEPARATOR.
7706 # The user is always right.
7707 if test "${PATH_SEPARATOR+set}" != set; then
7708 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7709 # contains only /bin. Note that ksh looks also at the FPATH variable,
7710 # so we have to set that as well for the test.
7712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7713 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7714 || PATH_SEPARATOR=';'
7719 if test "$GCC" = yes; then
7720 # Check if gcc -print-prog-name=ld gives a path.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7722 $as_echo_n "checking for ld used by $CC... " >&6; }
7725 # gcc leaves a trailing carriage return which upsets mingw
7726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7731 # Accept absolute paths.
7733 re_direlt='/[^/][^/]*/\.\./'
7734 # Canonicalize the pathname of ld
7735 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7736 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7737 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7739 test -z "$LD" && LD="$ac_prog"
7742 # If it fails, then pretend we aren't using GCC.
7746 # If it is relative, then search for the first ld in PATH.
7750 elif test "$with_gnu_ld" = yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7752 $as_echo_n "checking for GNU ld... " >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7755 $as_echo_n "checking for non-GNU ld... " >&6; }
7757 if ${acl_cv_path_LD+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -z "$LD"; then
7761 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 for ac_dir in $PATH; do
7764 test -z "$ac_dir" && ac_dir=.
7765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7766 acl_cv_path_LD="$ac_dir/$ac_prog"
7767 # Check to see if the program is GNU ld. I'd rather use --version,
7768 # but apparently some variants of GNU ld only accept -v.
7769 # Break only if it was the GNU/non-GNU ld that we prefer.
7770 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7771 *GNU* | *'with BFD'*)
7772 test "$with_gnu_ld" != no && break
7775 test "$with_gnu_ld" != yes && break
7782 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7786 LD="$acl_cv_path_LD"
7787 if test -n "$LD"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7789 $as_echo "$LD" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7797 if ${acl_cv_prog_gnu_ld+:} false; then :
7798 $as_echo_n "(cached) " >&6
7800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7801 case `$LD -v 2>&1 </dev/null` in
7802 *GNU* | *'with BFD'*)
7803 acl_cv_prog_gnu_ld=yes
7806 acl_cv_prog_gnu_ld=no
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7811 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7812 with_gnu_ld=$acl_cv_prog_gnu_ld
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7818 $as_echo_n "checking for shared library run path origin... " >&6; }
7819 if ${acl_cv_rpath+:} false; then :
7820 $as_echo_n "(cached) " >&6
7823 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7824 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7831 $as_echo "$acl_cv_rpath" >&6; }
7833 acl_libext="$acl_cv_libext"
7834 acl_shlibext="$acl_cv_shlibext"
7835 acl_libname_spec="$acl_cv_libname_spec"
7836 acl_library_names_spec="$acl_cv_library_names_spec"
7837 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7838 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7839 acl_hardcode_direct="$acl_cv_hardcode_direct"
7840 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7841 # Check whether --enable-rpath was given.
7842 if test "${enable_rpath+set}" = set; then :
7843 enableval=$enable_rpath; :
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7856 $as_echo_n "checking for 64-bit host... " >&6; }
7857 if ${gl_cv_solaris_64bit+:} false; then :
7858 $as_echo_n "(cached) " >&6
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7870 gl_cv_solaris_64bit=yes
7872 gl_cv_solaris_64bit=no
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7879 $as_echo "$gl_cv_solaris_64bit" >&6; }
7880 if test $gl_cv_solaris_64bit = yes; then
7881 acl_libdirstem=lib/64
7883 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7884 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7889 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7890 if test -n "$searchpath"; then
7891 acl_save_IFS="${IFS= }"; IFS=":"
7892 for searchdir in $searchpath; do
7893 if test -d "$searchdir"; then
7894 case "$searchdir" in
7895 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7897 # Better ignore directories of this form. They are misleading.
7899 *) searchdir=`cd "$searchdir" && pwd`
7900 case "$searchdir" in
7901 */lib64 ) acl_libdirstem=lib64 ;;
7910 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7919 if test "$gl_use_threads" != no; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7921 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7922 if ${gl_cv_have_weak+:} false; then :
7923 $as_echo_n "(cached) " >&6
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 extern void xyzzy ();
7938 if ac_fn_c_try_link "$LINENO"; then :
7939 gl_cv_have_weak=maybe
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 if test $gl_cv_have_weak = maybe; then
7944 if test "$cross_compiling" = yes; then :
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7948 Extensible Linking Format
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7954 gl_cv_have_weak="guessing yes"
7956 gl_cv_have_weak="guessing no"
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7969 return (fputs == NULL);
7972 if ac_fn_c_try_run "$LINENO"; then :
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7985 $as_echo "$gl_cv_have_weak" >&6; }
7986 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7987 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7988 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7989 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7990 if test "x$ac_cv_header_pthread_h" = xyes; then :
7991 gl_have_pthread_h=yes
7993 gl_have_pthread_h=no
7997 if test "$gl_have_pthread_h" = yes; then
7998 # Other possible tests:
7999 # -lpthreads (FSU threads, PCthreads)
8002 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8003 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8004 # the second one only in libpthread, and lock.c needs it.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <pthread.h>
8011 pthread_mutex_lock((pthread_mutex_t*)0);
8012 pthread_mutexattr_init((pthread_mutexattr_t*)0);
8017 if ac_fn_c_try_link "$LINENO"; then :
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8023 # since it is defined as a macro on OSF/1.)
8024 if test -n "$gl_have_pthread"; then
8025 # The program links fine without libpthread. But it may actually
8026 # need to link with libpthread in order to create multiple threads.
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8028 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8029 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8030 $as_echo_n "(cached) " >&6
8032 ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-lpthread $LIBS"
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8037 /* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8043 char pthread_kill ();
8047 return pthread_kill ();
8052 if ac_fn_c_try_link "$LINENO"; then :
8053 ac_cv_lib_pthread_pthread_kill=yes
8055 ac_cv_lib_pthread_pthread_kill=no
8057 rm -f core conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8062 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8063 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8064 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8065 # On Solaris and HP-UX, most pthread functions exist also in libc.
8066 # Therefore pthread_in_use() needs to actually try to create a
8067 # thread: pthread_create from libc will fail, whereas
8068 # pthread_create will actually create a thread.
8072 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8079 # Some library is needed. Try libpthread and libc_r.
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8081 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8082 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8083 $as_echo_n "(cached) " >&6
8085 ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-lpthread $LIBS"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8096 char pthread_kill ();
8100 return pthread_kill ();
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 ac_cv_lib_pthread_pthread_kill=yes
8108 ac_cv_lib_pthread_pthread_kill=no
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8115 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8116 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8118 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8119 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8122 if test -z "$gl_have_pthread"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8125 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8126 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 ac_check_lib_save_LIBS=$LIBS
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8134 /* Override any GCC internal prototype to avoid an error.
8135 Use char because int might match the return type of a GCC
8136 builtin and then its argument prototype would still apply. */
8140 char pthread_kill ();
8144 return pthread_kill ();
8149 if ac_fn_c_try_link "$LINENO"; then :
8150 ac_cv_lib_c_r_pthread_kill=yes
8152 ac_cv_lib_c_r_pthread_kill=no
8154 rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156 LIBS=$ac_check_lib_save_LIBS
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8159 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8160 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8162 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8163 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8168 if test -n "$gl_have_pthread"; then
8169 gl_threads_api=posix
8171 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8173 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8174 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8176 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8185 if test -z "$gl_have_pthread"; then
8186 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8187 gl_have_solaristhread=
8188 gl_save_LIBS="$LIBS"
8189 LIBS="$LIBS -lthread"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8204 if ac_fn_c_try_link "$LINENO"; then :
8205 gl_have_solaristhread=yes
8207 rm -f core conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LIBS="$gl_save_LIBS"
8210 if test -n "$gl_have_solaristhread"; then
8211 gl_threads_api=solaris
8213 LTLIBTHREAD=-lthread
8214 LIBMULTITHREAD="$LIBTHREAD"
8215 LTLIBMULTITHREAD="$LTLIBTHREAD"
8217 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8219 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8221 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8229 if test "$gl_use_threads" = pth; then
8230 gl_save_CPPFLAGS="$CPPFLAGS"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8237 $as_echo_n "checking how to link with libpth... " >&6; }
8238 if ${ac_cv_libpth_libs+:} false; then :
8239 $as_echo_n "(cached) " >&6
8251 acl_save_prefix="$prefix"
8252 prefix="$acl_final_prefix"
8253 acl_save_exec_prefix="$exec_prefix"
8254 exec_prefix="$acl_final_exec_prefix"
8256 eval additional_includedir=\"$includedir\"
8257 eval additional_libdir=\"$libdir\"
8259 exec_prefix="$acl_save_exec_prefix"
8260 prefix="$acl_save_prefix"
8263 # Check whether --with-libpth-prefix was given.
8264 if test "${with_libpth_prefix+set}" = set; then :
8265 withval=$with_libpth_prefix;
8266 if test "X$withval" = "Xno"; then
8269 if test "X$withval" = "X"; then
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8276 eval additional_includedir=\"$includedir\"
8277 eval additional_libdir=\"$libdir\"
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8283 additional_includedir="$withval/include"
8284 additional_libdir="$withval/$acl_libdirstem"
8285 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8286 && ! test -d "$withval/$acl_libdirstem"; then
8287 additional_libdir="$withval/$acl_libdirstem2"
8301 names_already_handled=
8302 names_next_round='pth '
8303 while test -n "$names_next_round"; do
8304 names_this_round="$names_next_round"
8306 for name in $names_this_round; do
8308 for n in $names_already_handled; do
8309 if test "$n" = "$name"; then
8314 if test -z "$already_handled"; then
8315 names_already_handled="$names_already_handled $name"
8316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8317 eval value=\"\$HAVE_LIB$uppername\"
8318 if test -n "$value"; then
8319 if test "$value" = yes; then
8320 eval value=\"\$LIB$uppername\"
8321 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8322 eval value=\"\$LTLIB$uppername\"
8323 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8333 if test -n "$acl_shlibext"; then
8334 shrext=".$acl_shlibext" # typically: shrext=.so
8338 if test $use_additional = yes; then
8339 dir="$additional_libdir"
8340 if test -n "$acl_shlibext"; then
8341 if test -f "$dir/$libname$shrext"; then
8343 found_so="$dir/$libname$shrext"
8345 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8346 ver=`(cd "$dir" && \
8347 for f in "$libname$shrext".*; do echo "$f"; done \
8348 | sed -e "s,^$libname$shrext\\\\.,," \
8349 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8350 | sed 1q ) 2>/dev/null`
8351 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8353 found_so="$dir/$libname$shrext.$ver"
8356 eval library_names=\"$acl_library_names_spec\"
8357 for f in $library_names; do
8358 if test -f "$dir/$f"; then
8367 if test "X$found_dir" = "X"; then
8368 if test -f "$dir/$libname.$acl_libext"; then
8370 found_a="$dir/$libname.$acl_libext"
8373 if test "X$found_dir" != "X"; then
8374 if test -f "$dir/$libname.la"; then
8375 found_la="$dir/$libname.la"
8379 if test "X$found_dir" = "X"; then
8380 for x in $LDFLAGS $LTLIBPTH; do
8382 acl_save_prefix="$prefix"
8383 prefix="$acl_final_prefix"
8384 acl_save_exec_prefix="$exec_prefix"
8385 exec_prefix="$acl_final_exec_prefix"
8387 exec_prefix="$acl_save_exec_prefix"
8388 prefix="$acl_save_prefix"
8392 dir=`echo "X$x" | sed -e 's/^X-L//'`
8393 if test -n "$acl_shlibext"; then
8394 if test -f "$dir/$libname$shrext"; then
8396 found_so="$dir/$libname$shrext"
8398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8399 ver=`(cd "$dir" && \
8400 for f in "$libname$shrext".*; do echo "$f"; done \
8401 | sed -e "s,^$libname$shrext\\\\.,," \
8402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8403 | sed 1q ) 2>/dev/null`
8404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8406 found_so="$dir/$libname$shrext.$ver"
8409 eval library_names=\"$acl_library_names_spec\"
8410 for f in $library_names; do
8411 if test -f "$dir/$f"; then
8420 if test "X$found_dir" = "X"; then
8421 if test -f "$dir/$libname.$acl_libext"; then
8423 found_a="$dir/$libname.$acl_libext"
8426 if test "X$found_dir" != "X"; then
8427 if test -f "$dir/$libname.la"; then
8428 found_la="$dir/$libname.la"
8433 if test "X$found_dir" != "X"; then
8438 if test "X$found_dir" != "X"; then
8439 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8440 if test "X$found_so" != "X"; then
8441 if test "$enable_rpath" = no \
8442 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8443 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8444 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8447 for x in $ltrpathdirs; do
8448 if test "X$x" = "X$found_dir"; then
8453 if test -z "$haveit"; then
8454 ltrpathdirs="$ltrpathdirs $found_dir"
8456 if test "$acl_hardcode_direct" = yes; then
8457 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8459 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8460 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8462 for x in $rpathdirs; do
8463 if test "X$x" = "X$found_dir"; then
8468 if test -z "$haveit"; then
8469 rpathdirs="$rpathdirs $found_dir"
8473 for x in $LDFLAGS $LIBPTH; do
8475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8483 if test "X$x" = "X-L$found_dir"; then
8488 if test -z "$haveit"; then
8489 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8491 if test "$acl_hardcode_minus_L" != no; then
8492 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8494 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8500 if test "X$found_a" != "X"; then
8501 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8503 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8506 additional_includedir=
8507 case "$found_dir" in
8508 */$acl_libdirstem | */$acl_libdirstem/)
8509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8510 if test "$name" = 'pth'; then
8511 LIBPTH_PREFIX="$basedir"
8513 additional_includedir="$basedir/include"
8515 */$acl_libdirstem2 | */$acl_libdirstem2/)
8516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8517 if test "$name" = 'pth'; then
8518 LIBPTH_PREFIX="$basedir"
8520 additional_includedir="$basedir/include"
8523 if test "X$additional_includedir" != "X"; then
8524 if test "X$additional_includedir" != "X/usr/include"; then
8526 if test "X$additional_includedir" = "X/usr/local/include"; then
8527 if test -n "$GCC"; then
8529 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8533 if test -z "$haveit"; then
8534 for x in $CPPFLAGS $INCPTH; do
8536 acl_save_prefix="$prefix"
8537 prefix="$acl_final_prefix"
8538 acl_save_exec_prefix="$exec_prefix"
8539 exec_prefix="$acl_final_exec_prefix"
8541 exec_prefix="$acl_save_exec_prefix"
8542 prefix="$acl_save_prefix"
8544 if test "X$x" = "X-I$additional_includedir"; then
8549 if test -z "$haveit"; then
8550 if test -d "$additional_includedir"; then
8551 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8557 if test -n "$found_la"; then
8558 save_libdir="$libdir"
8560 */* | *\\*) . "$found_la" ;;
8561 *) . "./$found_la" ;;
8563 libdir="$save_libdir"
8564 for dep in $dependency_libs; do
8567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8568 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8569 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8571 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8572 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8573 if test -n "$GCC"; then
8575 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8579 if test -z "$haveit"; then
8581 for x in $LDFLAGS $LIBPTH; do
8583 acl_save_prefix="$prefix"
8584 prefix="$acl_final_prefix"
8585 acl_save_exec_prefix="$exec_prefix"
8586 exec_prefix="$acl_final_exec_prefix"
8588 exec_prefix="$acl_save_exec_prefix"
8589 prefix="$acl_save_prefix"
8591 if test "X$x" = "X-L$additional_libdir"; then
8596 if test -z "$haveit"; then
8597 if test -d "$additional_libdir"; then
8598 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8602 for x in $LDFLAGS $LTLIBPTH; do
8604 acl_save_prefix="$prefix"
8605 prefix="$acl_final_prefix"
8606 acl_save_exec_prefix="$exec_prefix"
8607 exec_prefix="$acl_final_exec_prefix"
8609 exec_prefix="$acl_save_exec_prefix"
8610 prefix="$acl_save_prefix"
8612 if test "X$x" = "X-L$additional_libdir"; then
8617 if test -z "$haveit"; then
8618 if test -d "$additional_libdir"; then
8619 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8626 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8627 if test "$enable_rpath" != no; then
8629 for x in $rpathdirs; do
8630 if test "X$x" = "X$dir"; then
8635 if test -z "$haveit"; then
8636 rpathdirs="$rpathdirs $dir"
8639 for x in $ltrpathdirs; do
8640 if test "X$x" = "X$dir"; then
8645 if test -z "$haveit"; then
8646 ltrpathdirs="$ltrpathdirs $dir"
8651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8657 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8658 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8664 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8665 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8671 if test "X$rpathdirs" != "X"; then
8672 if test -n "$acl_hardcode_libdir_separator"; then
8674 for found_dir in $rpathdirs; do
8675 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8677 acl_save_libdir="$libdir"
8679 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8680 libdir="$acl_save_libdir"
8681 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8683 for found_dir in $rpathdirs; do
8684 acl_save_libdir="$libdir"
8686 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8687 libdir="$acl_save_libdir"
8688 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8692 if test "X$ltrpathdirs" != "X"; then
8693 for found_dir in $ltrpathdirs; do
8694 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8703 ac_cv_libpth_libs="$LIBPTH"
8704 ac_cv_libpth_ltlibs="$LTLIBPTH"
8705 ac_cv_libpth_cppflags="$INCPTH"
8706 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8710 $as_echo "$ac_cv_libpth_libs" >&6; }
8711 LIBPTH="$ac_cv_libpth_libs"
8712 LTLIBPTH="$ac_cv_libpth_ltlibs"
8713 INCPTH="$ac_cv_libpth_cppflags"
8714 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8716 for element in $INCPTH; do
8718 for x in $CPPFLAGS; do
8720 acl_save_prefix="$prefix"
8721 prefix="$acl_final_prefix"
8722 acl_save_exec_prefix="$exec_prefix"
8723 exec_prefix="$acl_final_exec_prefix"
8725 exec_prefix="$acl_save_exec_prefix"
8726 prefix="$acl_save_prefix"
8728 if test "X$x" = "X$element"; then
8733 if test -z "$haveit"; then
8734 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8746 gl_save_LIBS="$LIBS"
8747 LIBS="$LIBS $LIBPTH"
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8759 if ac_fn_c_try_link "$LINENO"; then :
8762 rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LIBS="$gl_save_LIBS"
8765 if test -n "$gl_have_pth"; then
8768 LTLIBTHREAD="$LTLIBPTH"
8769 LIBMULTITHREAD="$LIBTHREAD"
8770 LTLIBMULTITHREAD="$LTLIBTHREAD"
8772 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8774 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8775 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8777 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8784 CPPFLAGS="$gl_save_CPPFLAGS"
8787 if test -z "$gl_have_pthread"; then
8788 case "$gl_use_threads" in
8789 yes | windows | win32) # The 'win32' is for backward compatibility.
8790 if { case "$host_os" in
8795 gl_threads_api=windows
8797 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8805 $as_echo_n "checking for multithread API to use... " >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8807 $as_echo "$gl_threads_api" >&6; }
8819 if test "$gl_threads_api" = posix; then
8820 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8821 # pthread_rwlock_* functions.
8822 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8824 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8826 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8830 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8834 #include <pthread.h>
8839 #if __FreeBSD__ == 4
8840 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8841 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8842 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8843 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8845 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8853 if ac_fn_c_try_compile "$LINENO"; then :
8855 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 acl_save_prefix="$prefix"
8876 prefix="$acl_final_prefix"
8877 acl_save_exec_prefix="$exec_prefix"
8878 exec_prefix="$acl_final_exec_prefix"
8880 eval additional_includedir=\"$includedir\"
8881 eval additional_libdir=\"$libdir\"
8883 exec_prefix="$acl_save_exec_prefix"
8884 prefix="$acl_save_prefix"
8887 # Check whether --with-libiconv-prefix was given.
8888 if test "${with_libiconv_prefix+set}" = set; then :
8889 withval=$with_libiconv_prefix;
8890 if test "X$withval" = "Xno"; then
8893 if test "X$withval" = "X"; then
8895 acl_save_prefix="$prefix"
8896 prefix="$acl_final_prefix"
8897 acl_save_exec_prefix="$exec_prefix"
8898 exec_prefix="$acl_final_exec_prefix"
8900 eval additional_includedir=\"$includedir\"
8901 eval additional_libdir=\"$libdir\"
8903 exec_prefix="$acl_save_exec_prefix"
8904 prefix="$acl_save_prefix"
8907 additional_includedir="$withval/include"
8908 additional_libdir="$withval/$acl_libdirstem"
8909 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8910 && ! test -d "$withval/$acl_libdirstem"; then
8911 additional_libdir="$withval/$acl_libdirstem2"
8925 names_already_handled=
8926 names_next_round='iconv '
8927 while test -n "$names_next_round"; do
8928 names_this_round="$names_next_round"
8930 for name in $names_this_round; do
8932 for n in $names_already_handled; do
8933 if test "$n" = "$name"; then
8938 if test -z "$already_handled"; then
8939 names_already_handled="$names_already_handled $name"
8940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8941 eval value=\"\$HAVE_LIB$uppername\"
8942 if test -n "$value"; then
8943 if test "$value" = yes; then
8944 eval value=\"\$LIB$uppername\"
8945 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8946 eval value=\"\$LTLIB$uppername\"
8947 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8956 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8957 if test -n "$acl_shlibext"; then
8958 shrext=".$acl_shlibext" # typically: shrext=.so
8962 if test $use_additional = yes; then
8963 dir="$additional_libdir"
8964 if test -n "$acl_shlibext"; then
8965 if test -f "$dir/$libname$shrext"; then
8967 found_so="$dir/$libname$shrext"
8969 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8970 ver=`(cd "$dir" && \
8971 for f in "$libname$shrext".*; do echo "$f"; done \
8972 | sed -e "s,^$libname$shrext\\\\.,," \
8973 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8974 | sed 1q ) 2>/dev/null`
8975 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8977 found_so="$dir/$libname$shrext.$ver"
8980 eval library_names=\"$acl_library_names_spec\"
8981 for f in $library_names; do
8982 if test -f "$dir/$f"; then
8991 if test "X$found_dir" = "X"; then
8992 if test -f "$dir/$libname.$acl_libext"; then
8994 found_a="$dir/$libname.$acl_libext"
8997 if test "X$found_dir" != "X"; then
8998 if test -f "$dir/$libname.la"; then
8999 found_la="$dir/$libname.la"
9003 if test "X$found_dir" = "X"; then
9004 for x in $LDFLAGS $LTLIBICONV; do
9006 acl_save_prefix="$prefix"
9007 prefix="$acl_final_prefix"
9008 acl_save_exec_prefix="$exec_prefix"
9009 exec_prefix="$acl_final_exec_prefix"
9011 exec_prefix="$acl_save_exec_prefix"
9012 prefix="$acl_save_prefix"
9016 dir=`echo "X$x" | sed -e 's/^X-L//'`
9017 if test -n "$acl_shlibext"; then
9018 if test -f "$dir/$libname$shrext"; then
9020 found_so="$dir/$libname$shrext"
9022 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9023 ver=`(cd "$dir" && \
9024 for f in "$libname$shrext".*; do echo "$f"; done \
9025 | sed -e "s,^$libname$shrext\\\\.,," \
9026 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9027 | sed 1q ) 2>/dev/null`
9028 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9030 found_so="$dir/$libname$shrext.$ver"
9033 eval library_names=\"$acl_library_names_spec\"
9034 for f in $library_names; do
9035 if test -f "$dir/$f"; then
9044 if test "X$found_dir" = "X"; then
9045 if test -f "$dir/$libname.$acl_libext"; then
9047 found_a="$dir/$libname.$acl_libext"
9050 if test "X$found_dir" != "X"; then
9051 if test -f "$dir/$libname.la"; then
9052 found_la="$dir/$libname.la"
9057 if test "X$found_dir" != "X"; then
9062 if test "X$found_dir" != "X"; then
9063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9064 if test "X$found_so" != "X"; then
9065 if test "$enable_rpath" = no \
9066 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9067 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9071 for x in $ltrpathdirs; do
9072 if test "X$x" = "X$found_dir"; then
9077 if test -z "$haveit"; then
9078 ltrpathdirs="$ltrpathdirs $found_dir"
9080 if test "$acl_hardcode_direct" = yes; then
9081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9083 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9086 for x in $rpathdirs; do
9087 if test "X$x" = "X$found_dir"; then
9092 if test -z "$haveit"; then
9093 rpathdirs="$rpathdirs $found_dir"
9097 for x in $LDFLAGS $LIBICONV; do
9099 acl_save_prefix="$prefix"
9100 prefix="$acl_final_prefix"
9101 acl_save_exec_prefix="$exec_prefix"
9102 exec_prefix="$acl_final_exec_prefix"
9104 exec_prefix="$acl_save_exec_prefix"
9105 prefix="$acl_save_prefix"
9107 if test "X$x" = "X-L$found_dir"; then
9112 if test -z "$haveit"; then
9113 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9115 if test "$acl_hardcode_minus_L" != no; then
9116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9118 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9124 if test "X$found_a" != "X"; then
9125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9127 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9130 additional_includedir=
9131 case "$found_dir" in
9132 */$acl_libdirstem | */$acl_libdirstem/)
9133 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9134 if test "$name" = 'iconv'; then
9135 LIBICONV_PREFIX="$basedir"
9137 additional_includedir="$basedir/include"
9139 */$acl_libdirstem2 | */$acl_libdirstem2/)
9140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9141 if test "$name" = 'iconv'; then
9142 LIBICONV_PREFIX="$basedir"
9144 additional_includedir="$basedir/include"
9147 if test "X$additional_includedir" != "X"; then
9148 if test "X$additional_includedir" != "X/usr/include"; then
9150 if test "X$additional_includedir" = "X/usr/local/include"; then
9151 if test -n "$GCC"; then
9153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9157 if test -z "$haveit"; then
9158 for x in $CPPFLAGS $INCICONV; do
9160 acl_save_prefix="$prefix"
9161 prefix="$acl_final_prefix"
9162 acl_save_exec_prefix="$exec_prefix"
9163 exec_prefix="$acl_final_exec_prefix"
9165 exec_prefix="$acl_save_exec_prefix"
9166 prefix="$acl_save_prefix"
9168 if test "X$x" = "X-I$additional_includedir"; then
9173 if test -z "$haveit"; then
9174 if test -d "$additional_includedir"; then
9175 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9181 if test -n "$found_la"; then
9182 save_libdir="$libdir"
9184 */* | *\\*) . "$found_la" ;;
9185 *) . "./$found_la" ;;
9187 libdir="$save_libdir"
9188 for dep in $dependency_libs; do
9191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9192 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9193 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9195 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9196 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9197 if test -n "$GCC"; then
9199 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9203 if test -z "$haveit"; then
9205 for x in $LDFLAGS $LIBICONV; do
9207 acl_save_prefix="$prefix"
9208 prefix="$acl_final_prefix"
9209 acl_save_exec_prefix="$exec_prefix"
9210 exec_prefix="$acl_final_exec_prefix"
9212 exec_prefix="$acl_save_exec_prefix"
9213 prefix="$acl_save_prefix"
9215 if test "X$x" = "X-L$additional_libdir"; then
9220 if test -z "$haveit"; then
9221 if test -d "$additional_libdir"; then
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9226 for x in $LDFLAGS $LTLIBICONV; do
9228 acl_save_prefix="$prefix"
9229 prefix="$acl_final_prefix"
9230 acl_save_exec_prefix="$exec_prefix"
9231 exec_prefix="$acl_final_exec_prefix"
9233 exec_prefix="$acl_save_exec_prefix"
9234 prefix="$acl_save_prefix"
9236 if test "X$x" = "X-L$additional_libdir"; then
9241 if test -z "$haveit"; then
9242 if test -d "$additional_libdir"; then
9243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9251 if test "$enable_rpath" != no; then
9253 for x in $rpathdirs; do
9254 if test "X$x" = "X$dir"; then
9259 if test -z "$haveit"; then
9260 rpathdirs="$rpathdirs $dir"
9263 for x in $ltrpathdirs; do
9264 if test "X$x" = "X$dir"; then
9269 if test -z "$haveit"; then
9270 ltrpathdirs="$ltrpathdirs $dir"
9275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9281 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9295 if test "X$rpathdirs" != "X"; then
9296 if test -n "$acl_hardcode_libdir_separator"; then
9298 for found_dir in $rpathdirs; do
9299 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9301 acl_save_libdir="$libdir"
9303 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9304 libdir="$acl_save_libdir"
9305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9307 for found_dir in $rpathdirs; do
9308 acl_save_libdir="$libdir"
9310 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9311 libdir="$acl_save_libdir"
9312 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9316 if test "X$ltrpathdirs" != "X"; then
9317 for found_dir in $ltrpathdirs; do
9318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9333 am_save_CPPFLAGS="$CPPFLAGS"
9335 for element in $INCICONV; do
9337 for x in $CPPFLAGS; do
9339 acl_save_prefix="$prefix"
9340 prefix="$acl_final_prefix"
9341 acl_save_exec_prefix="$exec_prefix"
9342 exec_prefix="$acl_final_exec_prefix"
9344 exec_prefix="$acl_save_exec_prefix"
9345 prefix="$acl_save_prefix"
9347 if test "X$x" = "X$element"; then
9352 if test -z "$haveit"; then
9353 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9359 $as_echo_n "checking for iconv... " >&6; }
9360 if ${am_cv_func_iconv+:} false; then :
9361 $as_echo_n "(cached) " >&6
9364 am_cv_func_iconv="no, consider installing GNU libiconv"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9375 iconv_t cd = iconv_open("","");
9376 iconv(cd,NULL,NULL,NULL,NULL);
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 am_cv_func_iconv=yes
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test "$am_cv_func_iconv" != yes; then
9388 am_save_LIBS="$LIBS"
9389 LIBS="$LIBS $LIBICONV"
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9399 iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9406 if ac_fn_c_try_link "$LINENO"; then :
9408 am_cv_func_iconv=yes
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS="$am_save_LIBS"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9417 $as_echo "$am_cv_func_iconv" >&6; }
9418 if test "$am_cv_func_iconv" = yes; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9420 $as_echo_n "checking for working iconv... " >&6; }
9421 if ${am_cv_func_iconv_works+:} false; then :
9422 $as_echo_n "(cached) " >&6
9425 am_save_LIBS="$LIBS"
9426 if test $am_cv_lib_iconv = yes; then
9427 LIBS="$LIBS $LIBICONV"
9429 if test "$cross_compiling" = yes; then :
9432 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9433 *) am_cv_func_iconv_works="guessing yes" ;;
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9445 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9448 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9449 if (cd_utf8_to_88591 != (iconv_t)(-1))
9451 static const char input[] = "\342\202\254"; /* EURO SIGN */
9453 const char *inptr = input;
9454 size_t inbytesleft = strlen (input);
9456 size_t outbytesleft = sizeof (buf);
9457 size_t res = iconv (cd_utf8_to_88591,
9458 (char **) &inptr, &inbytesleft,
9459 &outptr, &outbytesleft);
9462 iconv_close (cd_utf8_to_88591);
9465 /* Test against Solaris 10 bug: Failures are not distinguishable from
9466 successful returns. */
9468 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9469 if (cd_ascii_to_88591 != (iconv_t)(-1))
9471 static const char input[] = "\263";
9473 const char *inptr = input;
9474 size_t inbytesleft = strlen (input);
9476 size_t outbytesleft = sizeof (buf);
9477 size_t res = iconv (cd_ascii_to_88591,
9478 (char **) &inptr, &inbytesleft,
9479 &outptr, &outbytesleft);
9482 iconv_close (cd_ascii_to_88591);
9485 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9487 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9488 if (cd_88591_to_utf8 != (iconv_t)(-1))
9490 static const char input[] = "\304";
9491 static char buf[2] = { (char)0xDE, (char)0xAD };
9492 const char *inptr = input;
9493 size_t inbytesleft = 1;
9495 size_t outbytesleft = 1;
9496 size_t res = iconv (cd_88591_to_utf8,
9497 (char **) &inptr, &inbytesleft,
9498 &outptr, &outbytesleft);
9499 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9501 iconv_close (cd_88591_to_utf8);
9504 #if 0 /* This bug could be worked around by the caller. */
9505 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9507 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9508 if (cd_88591_to_utf8 != (iconv_t)(-1))
9510 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9512 const char *inptr = input;
9513 size_t inbytesleft = strlen (input);
9515 size_t outbytesleft = sizeof (buf);
9516 size_t res = iconv (cd_88591_to_utf8,
9517 (char **) &inptr, &inbytesleft,
9518 &outptr, &outbytesleft);
9521 iconv_close (cd_88591_to_utf8);
9525 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9527 if (/* Try standardized names. */
9528 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9529 /* Try IRIX, OSF/1 names. */
9530 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9531 /* Try AIX names. */
9532 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9533 /* Try HP-UX names. */
9534 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9539 if ac_fn_c_try_run "$LINENO"; then :
9540 am_cv_func_iconv_works=yes
9542 am_cv_func_iconv_works=no
9544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545 conftest.$ac_objext conftest.beam conftest.$ac_ext
9548 LIBS="$am_save_LIBS"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9552 $as_echo "$am_cv_func_iconv_works" >&6; }
9553 case "$am_cv_func_iconv_works" in
9554 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9555 *) am_func_iconv=yes ;;
9558 am_func_iconv=no am_cv_lib_iconv=no
9560 if test "$am_func_iconv" = yes; then
9562 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9565 if test "$am_cv_lib_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9567 $as_echo_n "checking how to link with libiconv... " >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9569 $as_echo "$LIBICONV" >&6; }
9571 CPPFLAGS="$am_save_CPPFLAGS"
9578 if test "$am_cv_func_iconv" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9580 $as_echo_n "checking for iconv declaration... " >&6; }
9581 if ${am_cv_proto_iconv+:} false; then :
9582 $as_echo_n "(cached) " >&6
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9594 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9595 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 am_cv_proto_iconv_arg1=""
9611 am_cv_proto_iconv_arg1="const"
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 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);"
9617 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9619 $am_cv_proto_iconv" >&5
9621 $am_cv_proto_iconv" >&6; }
9623 cat >>confdefs.h <<_ACEOF
9624 #define ICONV_CONST $am_cv_proto_iconv_arg1
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9652 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9657 cat >>confdefs.h <<_ACEOF
9658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9665 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9666 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9667 argz_stringify argz_next __fsetlocking
9669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9672 cat >>confdefs.h <<_ACEOF
9673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9680 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9682 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9688 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9691 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9693 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9706 for ac_prog in bison
9708 # Extract the first word of "$ac_prog", so it can be a program name with args.
9709 set dummy $ac_prog; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_prog_INTLBISON+:} false; then :
9713 $as_echo_n "(cached) " >&6
9715 if test -n "$INTLBISON"; then
9716 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725 ac_cv_prog_INTLBISON="$ac_prog"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 INTLBISON=$ac_cv_prog_INTLBISON
9736 if test -n "$INTLBISON"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9738 $as_echo "$INTLBISON" >&6; }
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9745 test -n "$INTLBISON" && break
9748 if test -z "$INTLBISON"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9752 $as_echo_n "checking version of bison... " >&6; }
9753 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9754 case $ac_prog_version in
9755 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9756 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9757 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9758 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9761 $as_echo "$ac_prog_version" >&6; }
9763 if test $ac_verc_fail = yes; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9770 $as_echo_n "checking for long long int... " >&6; }
9771 if ${ac_cv_type_long_long_int+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 ac_cv_type_long_long_int=yes
9775 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9776 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9777 if test $ac_cv_type_long_long_int = yes; then
9778 if test "$cross_compiling" = yes; then :
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9786 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9787 # define LLONG_MAX (HALF - 1 + HALF)
9792 long long int n = 1;
9796 long long int m = n << i;
9799 if (LLONG_MAX / 2 < m)
9807 if ac_fn_c_try_run "$LINENO"; then :
9810 ac_cv_type_long_long_int=no
9812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9813 conftest.$ac_objext conftest.beam conftest.$ac_ext
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9820 $as_echo "$ac_cv_type_long_long_int" >&6; }
9821 if test $ac_cv_type_long_long_int = yes; then
9823 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9829 $as_echo_n "checking for wchar_t... " >&6; }
9830 if ${gt_cv_c_wchar_t+:} false; then :
9831 $as_echo_n "(cached) " >&6
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9836 wchar_t foo = (wchar_t)'\0';
9845 if ac_fn_c_try_compile "$LINENO"; then :
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9853 $as_echo "$gt_cv_c_wchar_t" >&6; }
9854 if test $gt_cv_c_wchar_t = yes; then
9856 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9862 $as_echo_n "checking for wint_t... " >&6; }
9863 if ${gt_cv_c_wint_t+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9871 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9872 before <wchar.h>. */
9877 wint_t foo = (wchar_t)'\0';
9886 if ac_fn_c_try_compile "$LINENO"; then :
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9894 $as_echo "$gt_cv_c_wint_t" >&6; }
9895 if test $gt_cv_c_wint_t = yes; then
9897 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9905 $as_echo_n "checking for intmax_t... " >&6; }
9906 if ${gt_cv_c_intmax_t+:} false; then :
9907 $as_echo_n "(cached) " >&6
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9914 #if HAVE_STDINT_H_WITH_UINTMAX
9917 #if HAVE_INTTYPES_H_WITH_UINTMAX
9918 #include <inttypes.h>
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 gt_cv_c_intmax_t=yes
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9938 $as_echo "$gt_cv_c_intmax_t" >&6; }
9939 if test $gt_cv_c_intmax_t = yes; then
9941 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9948 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9949 if ${gt_cv_func_printf_posix+:} false; then :
9950 $as_echo_n "(cached) " >&6
9953 if test "$cross_compiling" = yes; then :
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9958 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9964 $EGREP "notposix" >/dev/null 2>&1; then :
9965 gt_cv_func_printf_posix="guessing no"
9967 gt_cv_func_printf_posix="guessing yes"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9978 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9979 dollar expansion (possibly an autoconf bug). */
9980 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9981 static char buf[100];
9984 sprintf (buf, format, 33, 55);
9985 return (strcmp (buf, "55 33") != 0);
9988 if ac_fn_c_try_run "$LINENO"; then :
9989 gt_cv_func_printf_posix=yes
9991 gt_cv_func_printf_posix=no
9993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9994 conftest.$ac_objext conftest.beam conftest.$ac_ext
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
10000 $as_echo "$gt_cv_func_printf_posix" >&6; }
10001 case $gt_cv_func_printf_posix in
10004 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10011 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10012 if ${ac_cv_gnu_library_2_1+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 #include <features.h>
10019 #ifdef __GNU_LIBRARY__
10020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "Lucky" >/dev/null 2>&1; then :
10031 ac_cv_gnu_library_2_1=yes
10033 ac_cv_gnu_library_2_1=no
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10041 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10043 GLIBC21="$ac_cv_gnu_library_2_1"
10047 for ac_header in stdint.h
10049 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10050 if test "x$ac_cv_header_stdint_h" = xyes; then :
10051 cat >>confdefs.h <<_ACEOF
10052 #define HAVE_STDINT_H 1
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10060 $as_echo_n "checking for SIZE_MAX... " >&6; }
10061 if ${gl_cv_size_max+:} false; then :
10062 $as_echo_n "(cached) " >&6
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10069 #include <limits.h>
10071 #include <stdint.h>
10078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10079 $EGREP "Found it" >/dev/null 2>&1; then :
10084 if test -z "$gl_cv_size_max"; then
10085 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10086 #include <limits.h>"; then :
10089 size_t_bits_minus_1=
10092 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10098 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10099 if test $fits_in_uint = 1; then
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 #include <stddef.h>
10104 extern unsigned long foo;
10114 if ac_fn_c_try_compile "$LINENO"; then :
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 if test $fits_in_uint = 1; then
10120 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10122 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10125 gl_cv_size_max='((size_t)~(size_t)0)'
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10131 $as_echo "$gl_cv_size_max" >&6; }
10132 if test "$gl_cv_size_max" != yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define SIZE_MAX $gl_cv_size_max
10143 for ac_header in stdint.h
10145 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10146 if test "x$ac_cv_header_stdint_h" = xyes; then :
10147 cat >>confdefs.h <<_ACEOF
10148 #define HAVE_STDINT_H 1
10159 for ac_func in $ac_func_list
10161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10163 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10164 cat >>confdefs.h <<_ACEOF
10165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10179 $as_echo_n "checking for working fcntl.h... " >&6; }
10180 if ${gl_cv_header_working_fcntl_h+:} false; then :
10181 $as_echo_n "(cached) " >&6
10183 if test "$cross_compiling" = yes; then :
10184 gl_cv_header_working_fcntl_h=cross-compiling
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188 #include <sys/types.h>
10189 #include <sys/stat.h>
10191 # include <unistd.h>
10192 #else /* on Windows with MSVC */
10194 # include <stdlib.h>
10195 # defined sleep(n) _sleep ((n) * 1000)
10199 #define O_NOATIME 0
10202 #define O_NOFOLLOW 0
10204 static int const constants[] =
10206 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10207 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10214 int result = !constants;
10217 static char const sym[] = "conftest.sym";
10218 if (symlink ("/dev/null", sym) != 0)
10222 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10229 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10233 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10244 static char const file[] = "confdefs.h";
10245 int fd = open (file, O_RDONLY | O_NOATIME);
10251 if (fstat (fd, &st0) != 0)
10257 if (read (fd, &c, 1) != 1)
10261 if (close (fd) != 0)
10266 if (stat (file, &st1) != 0)
10269 if (st0.st_atime != st1.st_atime)
10281 if ac_fn_c_try_run "$LINENO"; then :
10282 gl_cv_header_working_fcntl_h=yes
10285 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10286 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10287 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10288 *) gl_cv_header_working_fcntl_h='no';;
10291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10297 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10299 case $gl_cv_header_working_fcntl_h in #(
10300 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_WORKING_O_NOATIME $ac_val
10309 case $gl_cv_header_working_fcntl_h in #(
10310 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10321 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10322 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10323 $as_echo_n "(cached) " >&6
10325 gt_save_LIBS="$LIBS"
10326 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 #include <CoreFoundation/CFPreferences.h>
10333 CFPreferencesCopyAppValue(NULL, NULL)
10338 if ac_fn_c_try_link "$LINENO"; then :
10339 gt_cv_func_CFPreferencesCopyAppValue=yes
10341 gt_cv_func_CFPreferencesCopyAppValue=no
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS="$gt_save_LIBS"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10348 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10349 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10351 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10355 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10356 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10357 $as_echo_n "(cached) " >&6
10359 gt_save_LIBS="$LIBS"
10360 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 #include <CoreFoundation/CFLocale.h>
10367 CFLocaleCopyCurrent();
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 gt_cv_func_CFLocaleCopyCurrent=yes
10375 gt_cv_func_CFLocaleCopyCurrent=no
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 LIBS="$gt_save_LIBS"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10382 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10383 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10385 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10390 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10402 case "$enable_silent_rules" in
10403 yes) INTL_DEFAULT_VERBOSITY=0;;
10404 no) INTL_DEFAULT_VERBOSITY=1;;
10405 *) INTL_DEFAULT_VERBOSITY=1;;
10409 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10410 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10414 $as_echo "#define ptrdiff_t long" >>confdefs.h
10419 for ac_header in features.h stddef.h stdlib.h string.h
10421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10433 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10438 cat >>confdefs.h <<_ACEOF
10439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10446 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10448 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10454 cat >>confdefs.h <<_ACEOF
10455 #define HAVE_DECL__SNPRINTF $ac_have_decl
10457 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10459 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10465 cat >>confdefs.h <<_ACEOF
10466 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10470 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10472 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10478 cat >>confdefs.h <<_ACEOF
10479 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10483 case $gt_cv_func_printf_posix in
10484 *yes) HAVE_POSIX_PRINTF=1 ;;
10485 *) HAVE_POSIX_PRINTF=0 ;;
10488 if test "$ac_cv_func_asprintf" = yes; then
10494 if test "$ac_cv_func_snprintf" = yes; then
10500 if test "$ac_cv_func_newlocale" = yes; then
10506 if test "$ac_cv_func_wprintf" = yes; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10515 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10516 if ${am_cv_langinfo_codeset+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <langinfo.h>
10525 char* cs = nl_langinfo(CODESET); return !cs;
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 am_cv_langinfo_codeset=yes
10533 am_cv_langinfo_codeset=no
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10540 $as_echo "$am_cv_langinfo_codeset" >&6; }
10541 if test $am_cv_langinfo_codeset = yes; then
10543 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10549 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10550 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10555 #include <locale.h>
10564 if ac_fn_c_try_link "$LINENO"; then :
10565 gt_cv_val_LC_MESSAGES=yes
10567 gt_cv_val_LC_MESSAGES=no
10569 rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10573 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10574 if test $gt_cv_val_LC_MESSAGES = yes; then
10576 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10581 if test "$enable_shared" = yes; then
10583 mingw* | cygwin*) is_woe32dll=yes ;;
10584 *) is_woe32dll=no ;;
10589 WOE32DLL=$is_woe32dll
10593 mingw* | cygwin*) is_woe32=yes ;;
10598 if test $WOE32 = yes; then
10599 if test -n "$ac_tool_prefix"; then
10600 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}windres; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_WINDRES+:} false; then :
10605 $as_echo_n "(cached) " >&6
10607 if test -n "$WINDRES"; then
10608 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 WINDRES=$ac_cv_prog_WINDRES
10628 if test -n "$WINDRES"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10630 $as_echo "$WINDRES" >&6; }
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10638 if test -z "$ac_cv_prog_WINDRES"; then
10639 ac_ct_WINDRES=$WINDRES
10640 # Extract the first word of "windres", so it can be a program name with args.
10641 set dummy windres; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10645 $as_echo_n "(cached) " >&6
10647 if test -n "$ac_ct_WINDRES"; then
10648 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_ac_ct_WINDRES="windres"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10668 if test -n "$ac_ct_WINDRES"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10670 $as_echo "$ac_ct_WINDRES" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10676 if test "x$ac_ct_WINDRES" = x; then
10679 case $cross_compiling:$ac_tool_warned in
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683 ac_tool_warned=yes ;;
10685 WINDRES=$ac_ct_WINDRES
10688 WINDRES="$ac_cv_prog_WINDRES"
10694 hpux*) LTLIBC="" ;;
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10725 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10726 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10727 $as_echo_n "(cached) " >&6
10729 gt_save_LIBS="$LIBS"
10730 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <CoreFoundation/CFPreferences.h>
10737 CFPreferencesCopyAppValue(NULL, NULL)
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 gt_cv_func_CFPreferencesCopyAppValue=yes
10745 gt_cv_func_CFPreferencesCopyAppValue=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS="$gt_save_LIBS"
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10752 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10755 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10759 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10760 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10761 $as_echo_n "(cached) " >&6
10763 gt_save_LIBS="$LIBS"
10764 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 #include <CoreFoundation/CFLocale.h>
10771 CFLocaleCopyCurrent();
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 gt_cv_func_CFLocaleCopyCurrent=yes
10779 gt_cv_func_CFLocaleCopyCurrent=no
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS="$gt_save_LIBS"
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10786 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10787 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10789 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10793 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10794 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10802 BUILD_INCLUDED_LIBINTL=no
10803 USE_INCLUDED_LIBINTL=no
10809 case " $gt_needs " in
10810 *" need-formatstring-macros "*) gt_api_version=3 ;;
10811 *" need-ngettext "*) gt_api_version=2 ;;
10812 *) gt_api_version=1 ;;
10814 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10815 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10817 if test "$USE_NLS" = "yes"; then
10818 gt_use_preinstalled_gnugettext=no
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10821 $as_echo_n "checking whether included gettext is requested... " >&6; }
10823 # Check whether --with-included-gettext was given.
10824 if test "${with_included_gettext+set}" = set; then :
10825 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10827 nls_cv_force_use_gnu_gettext=no
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10831 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10833 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10834 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10837 if test $gt_api_version -ge 3; then
10838 gt_revision_test_code='
10839 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10840 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10842 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10845 gt_revision_test_code=
10847 if test $gt_api_version -ge 2; then
10848 gt_expression_test_code=' + * ngettext ("", "", 0)'
10850 gt_expression_test_code=
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10854 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10855 if eval \${$gt_func_gnugettext_libc+:} false; then :
10856 $as_echo_n "(cached) " >&6
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10861 #include <libintl.h>
10862 $gt_revision_test_code
10863 extern int _nl_msg_cat_cntr;
10864 extern int *_nl_domain_bindings;
10870 bindtextdomain ("", "");
10871 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10877 if ac_fn_c_try_link "$LINENO"; then :
10878 eval "$gt_func_gnugettext_libc=yes"
10880 eval "$gt_func_gnugettext_libc=no"
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10885 eval ac_res=\$$gt_func_gnugettext_libc
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10889 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 acl_save_exec_prefix="$exec_prefix"
10903 exec_prefix="$acl_final_exec_prefix"
10905 eval additional_includedir=\"$includedir\"
10906 eval additional_libdir=\"$libdir\"
10908 exec_prefix="$acl_save_exec_prefix"
10909 prefix="$acl_save_prefix"
10912 # Check whether --with-libintl-prefix was given.
10913 if test "${with_libintl_prefix+set}" = set; then :
10914 withval=$with_libintl_prefix;
10915 if test "X$withval" = "Xno"; then
10918 if test "X$withval" = "X"; then
10920 acl_save_prefix="$prefix"
10921 prefix="$acl_final_prefix"
10922 acl_save_exec_prefix="$exec_prefix"
10923 exec_prefix="$acl_final_exec_prefix"
10925 eval additional_includedir=\"$includedir\"
10926 eval additional_libdir=\"$libdir\"
10928 exec_prefix="$acl_save_exec_prefix"
10929 prefix="$acl_save_prefix"
10932 additional_includedir="$withval/include"
10933 additional_libdir="$withval/$acl_libdirstem"
10934 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10935 && ! test -d "$withval/$acl_libdirstem"; then
10936 additional_libdir="$withval/$acl_libdirstem2"
10950 names_already_handled=
10951 names_next_round='intl '
10952 while test -n "$names_next_round"; do
10953 names_this_round="$names_next_round"
10955 for name in $names_this_round; do
10957 for n in $names_already_handled; do
10958 if test "$n" = "$name"; then
10959 already_handled=yes
10963 if test -z "$already_handled"; then
10964 names_already_handled="$names_already_handled $name"
10965 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10966 eval value=\"\$HAVE_LIB$uppername\"
10967 if test -n "$value"; then
10968 if test "$value" = yes; then
10969 eval value=\"\$LIB$uppername\"
10970 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10971 eval value=\"\$LTLIB$uppername\"
10972 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10981 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10982 if test -n "$acl_shlibext"; then
10983 shrext=".$acl_shlibext" # typically: shrext=.so
10987 if test $use_additional = yes; then
10988 dir="$additional_libdir"
10989 if test -n "$acl_shlibext"; then
10990 if test -f "$dir/$libname$shrext"; then
10992 found_so="$dir/$libname$shrext"
10994 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10995 ver=`(cd "$dir" && \
10996 for f in "$libname$shrext".*; do echo "$f"; done \
10997 | sed -e "s,^$libname$shrext\\\\.,," \
10998 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10999 | sed 1q ) 2>/dev/null`
11000 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11002 found_so="$dir/$libname$shrext.$ver"
11005 eval library_names=\"$acl_library_names_spec\"
11006 for f in $library_names; do
11007 if test -f "$dir/$f"; then
11016 if test "X$found_dir" = "X"; then
11017 if test -f "$dir/$libname.$acl_libext"; then
11019 found_a="$dir/$libname.$acl_libext"
11022 if test "X$found_dir" != "X"; then
11023 if test -f "$dir/$libname.la"; then
11024 found_la="$dir/$libname.la"
11028 if test "X$found_dir" = "X"; then
11029 for x in $LDFLAGS $LTLIBINTL; do
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
11041 dir=`echo "X$x" | sed -e 's/^X-L//'`
11042 if test -n "$acl_shlibext"; then
11043 if test -f "$dir/$libname$shrext"; then
11045 found_so="$dir/$libname$shrext"
11047 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11048 ver=`(cd "$dir" && \
11049 for f in "$libname$shrext".*; do echo "$f"; done \
11050 | sed -e "s,^$libname$shrext\\\\.,," \
11051 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11052 | sed 1q ) 2>/dev/null`
11053 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11055 found_so="$dir/$libname$shrext.$ver"
11058 eval library_names=\"$acl_library_names_spec\"
11059 for f in $library_names; do
11060 if test -f "$dir/$f"; then
11069 if test "X$found_dir" = "X"; then
11070 if test -f "$dir/$libname.$acl_libext"; then
11072 found_a="$dir/$libname.$acl_libext"
11075 if test "X$found_dir" != "X"; then
11076 if test -f "$dir/$libname.la"; then
11077 found_la="$dir/$libname.la"
11082 if test "X$found_dir" != "X"; then
11087 if test "X$found_dir" != "X"; then
11088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11089 if test "X$found_so" != "X"; then
11090 if test "$enable_rpath" = no \
11091 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11092 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11096 for x in $ltrpathdirs; do
11097 if test "X$x" = "X$found_dir"; then
11102 if test -z "$haveit"; then
11103 ltrpathdirs="$ltrpathdirs $found_dir"
11105 if test "$acl_hardcode_direct" = yes; then
11106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11108 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11111 for x in $rpathdirs; do
11112 if test "X$x" = "X$found_dir"; then
11117 if test -z "$haveit"; then
11118 rpathdirs="$rpathdirs $found_dir"
11122 for x in $LDFLAGS $LIBINTL; do
11124 acl_save_prefix="$prefix"
11125 prefix="$acl_final_prefix"
11126 acl_save_exec_prefix="$exec_prefix"
11127 exec_prefix="$acl_final_exec_prefix"
11129 exec_prefix="$acl_save_exec_prefix"
11130 prefix="$acl_save_prefix"
11132 if test "X$x" = "X-L$found_dir"; then
11137 if test -z "$haveit"; then
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11140 if test "$acl_hardcode_minus_L" != no; then
11141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11143 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11149 if test "X$found_a" != "X"; then
11150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11155 additional_includedir=
11156 case "$found_dir" in
11157 */$acl_libdirstem | */$acl_libdirstem/)
11158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11159 if test "$name" = 'intl'; then
11160 LIBINTL_PREFIX="$basedir"
11162 additional_includedir="$basedir/include"
11164 */$acl_libdirstem2 | */$acl_libdirstem2/)
11165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11166 if test "$name" = 'intl'; then
11167 LIBINTL_PREFIX="$basedir"
11169 additional_includedir="$basedir/include"
11172 if test "X$additional_includedir" != "X"; then
11173 if test "X$additional_includedir" != "X/usr/include"; then
11175 if test "X$additional_includedir" = "X/usr/local/include"; then
11176 if test -n "$GCC"; then
11178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11182 if test -z "$haveit"; then
11183 for x in $CPPFLAGS $INCINTL; do
11185 acl_save_prefix="$prefix"
11186 prefix="$acl_final_prefix"
11187 acl_save_exec_prefix="$exec_prefix"
11188 exec_prefix="$acl_final_exec_prefix"
11190 exec_prefix="$acl_save_exec_prefix"
11191 prefix="$acl_save_prefix"
11193 if test "X$x" = "X-I$additional_includedir"; then
11198 if test -z "$haveit"; then
11199 if test -d "$additional_includedir"; then
11200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11206 if test -n "$found_la"; then
11207 save_libdir="$libdir"
11208 case "$found_la" in
11209 */* | *\\*) . "$found_la" ;;
11210 *) . "./$found_la" ;;
11212 libdir="$save_libdir"
11213 for dep in $dependency_libs; do
11216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11217 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11218 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11220 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11221 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11222 if test -n "$GCC"; then
11224 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11228 if test -z "$haveit"; then
11230 for x in $LDFLAGS $LIBINTL; do
11232 acl_save_prefix="$prefix"
11233 prefix="$acl_final_prefix"
11234 acl_save_exec_prefix="$exec_prefix"
11235 exec_prefix="$acl_final_exec_prefix"
11237 exec_prefix="$acl_save_exec_prefix"
11238 prefix="$acl_save_prefix"
11240 if test "X$x" = "X-L$additional_libdir"; then
11245 if test -z "$haveit"; then
11246 if test -d "$additional_libdir"; then
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11251 for x in $LDFLAGS $LTLIBINTL; do
11253 acl_save_prefix="$prefix"
11254 prefix="$acl_final_prefix"
11255 acl_save_exec_prefix="$exec_prefix"
11256 exec_prefix="$acl_final_exec_prefix"
11258 exec_prefix="$acl_save_exec_prefix"
11259 prefix="$acl_save_prefix"
11261 if test "X$x" = "X-L$additional_libdir"; then
11266 if test -z "$haveit"; then
11267 if test -d "$additional_libdir"; then
11268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11275 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11276 if test "$enable_rpath" != no; then
11278 for x in $rpathdirs; do
11279 if test "X$x" = "X$dir"; then
11284 if test -z "$haveit"; then
11285 rpathdirs="$rpathdirs $dir"
11288 for x in $ltrpathdirs; do
11289 if test "X$x" = "X$dir"; then
11294 if test -z "$haveit"; then
11295 ltrpathdirs="$ltrpathdirs $dir"
11300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11303 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11307 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11313 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11320 if test "X$rpathdirs" != "X"; then
11321 if test -n "$acl_hardcode_libdir_separator"; then
11323 for found_dir in $rpathdirs; do
11324 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11326 acl_save_libdir="$libdir"
11328 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11329 libdir="$acl_save_libdir"
11330 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11332 for found_dir in $rpathdirs; do
11333 acl_save_libdir="$libdir"
11334 libdir="$found_dir"
11335 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11336 libdir="$acl_save_libdir"
11337 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11341 if test "X$ltrpathdirs" != "X"; then
11342 for found_dir in $ltrpathdirs; do
11343 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11353 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11354 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11355 $as_echo_n "(cached) " >&6
11357 gt_save_CPPFLAGS="$CPPFLAGS"
11358 CPPFLAGS="$CPPFLAGS $INCINTL"
11359 gt_save_LIBS="$LIBS"
11360 LIBS="$LIBS $LIBINTL"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 #include <libintl.h>
11365 $gt_revision_test_code
11366 extern int _nl_msg_cat_cntr;
11371 const char *_nl_expand_alias (const char *);
11377 bindtextdomain ("", "");
11378 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 eval "$gt_func_gnugettext_libintl=yes"
11387 eval "$gt_func_gnugettext_libintl=no"
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11392 LIBS="$LIBS $LIBICONV"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <libintl.h>
11397 $gt_revision_test_code
11398 extern int _nl_msg_cat_cntr;
11403 const char *_nl_expand_alias (const char *);
11409 bindtextdomain ("", "");
11410 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 LIBINTL="$LIBINTL $LIBICONV"
11418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11419 eval "$gt_func_gnugettext_libintl=yes"
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11425 CPPFLAGS="$gt_save_CPPFLAGS"
11426 LIBS="$gt_save_LIBS"
11428 eval ac_res=\$$gt_func_gnugettext_libintl
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11430 $as_echo "$ac_res" >&6; }
11433 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11434 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11435 && test "$PACKAGE" != gettext-runtime \
11436 && test "$PACKAGE" != gettext-tools; }; then
11437 gt_use_preinstalled_gnugettext=yes
11445 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446 nls_cv_use_gnu_gettext=yes
11450 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11451 BUILD_INCLUDED_LIBINTL=yes
11452 USE_INCLUDED_LIBINTL=yes
11453 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11454 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11455 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11459 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11460 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11465 if test -n "$INTL_MACOSX_LIBS"; then
11466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11476 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11484 $as_echo_n "checking whether to use NLS... " >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11486 $as_echo "$USE_NLS" >&6; }
11487 if test "$USE_NLS" = "yes"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11489 $as_echo_n "checking where the gettext function comes from... " >&6; }
11490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11491 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11492 gt_source="external libintl"
11497 gt_source="included intl directory"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11500 $as_echo "$gt_source" >&6; }
11503 if test "$USE_NLS" = "yes"; then
11505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11508 $as_echo_n "checking how to link with libintl... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11510 $as_echo "$LIBINTL" >&6; }
11512 for element in $INCINTL; do
11514 for x in $CPPFLAGS; do
11516 acl_save_prefix="$prefix"
11517 prefix="$acl_final_prefix"
11518 acl_save_exec_prefix="$exec_prefix"
11519 exec_prefix="$acl_final_exec_prefix"
11521 exec_prefix="$acl_save_exec_prefix"
11522 prefix="$acl_save_prefix"
11524 if test "X$x" = "X$element"; then
11529 if test -z "$haveit"; then
11530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11537 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11540 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11548 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11549 BUILD_INCLUDED_LIBINTL=yes
11556 nls_cv_header_intl=
11557 nls_cv_header_libgt=
11569 if test "$USE_INCLUDED_LIBINTL" = yes; then
11570 INTLOBJS="\$(GETTOBJS)"
11574 INTL_LIBTOOL_SUFFIX_PREFIX=
11578 INTLLIBS="$LIBINTL"
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11587 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11589 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11590 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 cat >conftest.make <<\_ACEOF
11596 @echo '@@@%%%=$(MAKE)=@@@%%%'
11598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11600 *@@@%%%=?*=@@@%%%*)
11601 eval ac_cv_prog_make_${ac_make}_set=yes;;
11603 eval ac_cv_prog_make_${ac_make}_set=no;;
11605 rm -f conftest.make
11607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614 SET_MAKE="MAKE=${MAKE-make}"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11618 $as_echo_n "checking for GNU make... " >&6; }
11619 if ${_cv_gnu_make_command+:} false; then :
11620 $as_echo_n "(cached) " >&6
11622 _cv_gnu_make_command='' ;
11623 if test -n "$FORCE_NATIVE_MAKE" ; then
11626 MAKES="make gmake gnumake"
11628 for a in "$MAKE" $MAKES ; do
11629 if test -z "$a" ; then continue ; fi ;
11630 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11631 _cv_gnu_make_command=$a ;
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11638 $as_echo "$_cv_gnu_make_command" >&6; } ;
11639 if test "x$_cv_gnu_make_command" != "x" ; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11646 $as_echo "\"Not found\"" >&6; };
11651 # Extract the first word of "ln", so it can be a program name with args.
11652 set dummy ln; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_path_LN+:} false; then :
11656 $as_echo_n "(cached) " >&6
11660 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11683 if test -n "$LN"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11685 $as_echo "$LN" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11694 $as_echo_n "checking whether ln -s works... " >&6; }
11696 if test "$LN_S" = "ln -s"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698 $as_echo "yes" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11701 $as_echo "no, using $LN_S" >&6; }
11704 # Extract the first word of "mv", so it can be a program name with args.
11705 set dummy mv; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_path_MV+:} false; then :
11709 $as_echo_n "(cached) " >&6
11713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11736 if test -n "$MV"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11738 $as_echo "$MV" >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11745 # Extract the first word of "cp", so it can be a program name with args.
11746 set dummy cp; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_CP+:} false; then :
11750 $as_echo_n "(cached) " >&6
11754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11777 if test -n "$CP"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11779 $as_echo "$CP" >&6; }
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11786 # Extract the first word of "rm", so it can be a program name with args.
11787 set dummy rm; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_RM+:} false; then :
11791 $as_echo_n "(cached) " >&6
11795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11818 if test -n "$RM"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11820 $as_echo "$RM" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11827 # Extract the first word of "chmod", so it can be a program name with args.
11828 set dummy chmod; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_path_CHMOD+:} false; then :
11832 $as_echo_n "(cached) " >&6
11836 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11858 CHMOD=$ac_cv_path_CHMOD
11859 if test -n "$CHMOD"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11861 $as_echo "$CHMOD" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11868 for ac_prog in gawk mawk nawk awk
11870 # Extract the first word of "$ac_prog", so it can be a program name with args.
11871 set dummy $ac_prog; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_prog_AWK+:} false; then :
11875 $as_echo_n "(cached) " >&6
11877 if test -n "$AWK"; then
11878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_prog_AWK="$ac_prog"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 AWK=$ac_cv_prog_AWK
11898 if test -n "$AWK"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11900 $as_echo "$AWK" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11907 test -n "$AWK" && break
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11911 $as_echo_n "checking for egrep... " >&6; }
11912 if ${ac_cv_path_EGREP+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11916 then ac_cv_path_EGREP="$GREP -E"
11918 if test -z "$EGREP"; then
11919 ac_path_EGREP_found=false
11920 # Loop through the user's path and test for each of PROGNAME-LIST
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11925 test -z "$as_dir" && as_dir=.
11926 for ac_prog in egrep; do
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11929 as_fn_executable_p "$ac_path_EGREP" || continue
11930 # Check for GNU ac_path_EGREP and select it if it is found.
11931 # Check for GNU $ac_path_EGREP
11932 case `"$ac_path_EGREP" --version 2>&1` in
11934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11937 $as_echo_n 0123456789 >"conftest.in"
11940 cat "conftest.in" "conftest.in" >"conftest.tmp"
11941 mv "conftest.tmp" "conftest.in"
11942 cp "conftest.in" "conftest.nl"
11943 $as_echo 'EGREP' >> "conftest.nl"
11944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11946 as_fn_arith $ac_count + 1 && ac_count=$as_val
11947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11948 # Best one so far, save it but keep looking for a better one
11949 ac_cv_path_EGREP="$ac_path_EGREP"
11950 ac_path_EGREP_max=$ac_count
11952 # 10*(2^10) chars as input seems more than enough
11953 test $ac_count -gt 10 && break
11955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11958 $ac_path_EGREP_found && break 3
11963 if test -z "$ac_cv_path_EGREP"; then
11964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11967 ac_cv_path_EGREP=$EGREP
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11973 $as_echo "$ac_cv_path_EGREP" >&6; }
11974 EGREP="$ac_cv_path_EGREP"
11977 # Extract the first word of "sed", so it can be a program name with args.
11978 set dummy sed; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_SED+:} false; then :
11982 $as_echo_n "(cached) " >&6
11986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12008 SED=$ac_cv_path_SED
12009 if test -n "$SED"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12011 $as_echo "$SED" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12018 # Extract the first word of "perl", so it can be a program name with args.
12019 set dummy perl; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if ${ac_cv_path_PERL+:} false; then :
12023 $as_echo_n "(cached) " >&6
12027 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12049 PERL=$ac_cv_path_PERL
12050 if test -n "$PERL"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12052 $as_echo "$PERL" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12059 # Extract the first word of "ldconfig", so it can be a program name with args.
12060 set dummy ldconfig; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_LDCONFIG+:} false; then :
12064 $as_echo_n "(cached) " >&6
12068 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12090 LDCONFIG=$ac_cv_path_LDCONFIG
12091 if test -n "$LDCONFIG"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12093 $as_echo "$LDCONFIG" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12100 if test -n "$ac_tool_prefix"; then
12101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12102 set dummy ${ac_tool_prefix}ar; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_prog_AR+:} false; then :
12106 $as_echo_n "(cached) " >&6
12108 if test -n "$AR"; then
12109 ac_cv_prog_AR="$AR" # Let the user override the test.
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118 ac_cv_prog_AR="${ac_tool_prefix}ar"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 if test -n "$AR"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12131 $as_echo "$AR" >&6; }
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 if test -z "$ac_cv_prog_AR"; then
12141 # Extract the first word of "ar", so it can be a program name with args.
12142 set dummy ar; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12146 $as_echo_n "(cached) " >&6
12148 if test -n "$ac_ct_AR"; then
12149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_ac_ct_AR="ar"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12169 if test -n "$ac_ct_AR"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12171 $as_echo "$ac_ct_AR" >&6; }
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12177 if test "x$ac_ct_AR" = x; then
12180 case $cross_compiling:$ac_tool_warned in
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12184 ac_tool_warned=yes ;;
12189 AR="$ac_cv_prog_AR"
12192 if test -n "$ac_tool_prefix"; then
12193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_prog_RANLIB+:} false; then :
12198 $as_echo_n "(cached) " >&6
12200 if test -n "$RANLIB"; then
12201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 RANLIB=$ac_cv_prog_RANLIB
12221 if test -n "$RANLIB"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12223 $as_echo "$RANLIB" >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12231 if test -z "$ac_cv_prog_RANLIB"; then
12232 ac_ct_RANLIB=$RANLIB
12233 # Extract the first word of "ranlib", so it can be a program name with args.
12234 set dummy ranlib; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12238 $as_echo_n "(cached) " >&6
12240 if test -n "$ac_ct_RANLIB"; then
12241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_ac_ct_RANLIB="ranlib"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12261 if test -n "$ac_ct_RANLIB"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12263 $as_echo "$ac_ct_RANLIB" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12269 if test "x$ac_ct_RANLIB" = x; then
12272 case $cross_compiling:$ac_tool_warned in
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12278 RANLIB=$ac_ct_RANLIB
12281 RANLIB="$ac_cv_prog_RANLIB"
12284 if test -n "$ac_tool_prefix"; then
12285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12286 set dummy ${ac_tool_prefix}strip; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_STRIP+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 if test -n "$STRIP"; then
12293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 STRIP=$ac_cv_prog_STRIP
12313 if test -n "$STRIP"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12315 $as_echo "$STRIP" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12323 if test -z "$ac_cv_prog_STRIP"; then
12325 # Extract the first word of "strip", so it can be a program name with args.
12326 set dummy strip; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 if test -n "$ac_ct_STRIP"; then
12333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_ac_ct_STRIP="strip"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12353 if test -n "$ac_ct_STRIP"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12355 $as_echo "$ac_ct_STRIP" >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12361 if test "x$ac_ct_STRIP" = x; then
12364 case $cross_compiling:$ac_tool_warned in
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12368 ac_tool_warned=yes ;;
12373 STRIP="$ac_cv_prog_STRIP"
12376 # Extract the first word of "makeinfo", so it can be a program name with args.
12377 set dummy makeinfo; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_MAKEINFO+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$MAKEINFO"; then
12384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_MAKEINFO="makeinfo"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 MAKEINFO=$ac_cv_prog_MAKEINFO
12404 if test -n "$MAKEINFO"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12406 $as_echo "$MAKEINFO" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12413 if test "_$MAKEINFO" = "_"; then
12414 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12416 case "$MAKEINFO" in
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12419 *** Makeinfo is missing. Info documentation will not be built." >&5
12420 $as_echo "$as_me: WARNING:
12421 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12429 # See if we need a separate native compiler.
12430 if test $cross_compiling = no; then
12434 for ac_prog in gcc cc
12436 # Extract the first word of "$ac_prog", so it can be a program name with args.
12437 set dummy $ac_prog; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_prog_BUILD_CC+:} false; then :
12441 $as_echo_n "(cached) " >&6
12443 if test -n "$BUILD_CC"; then
12444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_prog_BUILD_CC="$ac_prog"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 BUILD_CC=$ac_cv_prog_BUILD_CC
12464 if test -n "$BUILD_CC"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12466 $as_echo "$BUILD_CC" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12473 test -n "$BUILD_CC" && break
12477 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12482 cat >>confdefs.h <<_ACEOF
12483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12491 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12493 for i in dd gdd ; do
12494 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12499 if test -n "$DD" ; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12501 $as_echo "$DD" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12504 $as_echo "not found, using dd" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12507 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12511 for ac_header in net/if.h
12513 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12514 #if HAVE_SYS_TYPES_H
12515 #include <sys/types.h>
12517 #if HAVE_SYS_SOCKET
12518 #include <sys/socket.h>
12522 if test "x$ac_cv_header_net_if_h" = xyes; then :
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_NET_IF_H 1
12531 for ac_func in vprintf
12533 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12534 if test "x$ac_cv_func_vprintf" = xyes; then :
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_VPRINTF 1
12539 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12540 if test "x$ac_cv_func__doprnt" = xyes; then :
12542 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12550 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12552 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12554 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12558 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12559 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_STRUCT_STAT_ST_ATIM 1
12568 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12570 if test "x$ac_cv_type_ssize_t" = xyes; then :
12572 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12576 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12578 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12580 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12584 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12585 #define _LARGEFILE64_SOURCE
12586 #include <unistd.h>
12588 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12590 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12594 # The cast to long int works around a bug in the HP C Compiler
12595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12597 # This bug is HP SR number 8606223364.
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12599 $as_echo_n "checking size of short... " >&6; }
12600 if ${ac_cv_sizeof_short+:} false; then :
12601 $as_echo_n "(cached) " >&6
12603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12606 if test "$ac_cv_type_short" = yes; then
12607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12609 as_fn_error 77 "cannot compute sizeof (short)
12610 See \`config.log' for more details" "$LINENO" 5; }
12612 ac_cv_sizeof_short=0
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12618 $as_echo "$ac_cv_sizeof_short" >&6; }
12622 cat >>confdefs.h <<_ACEOF
12623 #define SIZEOF_SHORT $ac_cv_sizeof_short
12627 # The cast to long int works around a bug in the HP C Compiler
12628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630 # This bug is HP SR number 8606223364.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12632 $as_echo_n "checking size of int... " >&6; }
12633 if ${ac_cv_sizeof_int+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12639 if test "$ac_cv_type_int" = yes; then
12640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12642 as_fn_error 77 "cannot compute sizeof (int)
12643 See \`config.log' for more details" "$LINENO" 5; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12651 $as_echo "$ac_cv_sizeof_int" >&6; }
12655 cat >>confdefs.h <<_ACEOF
12656 #define SIZEOF_INT $ac_cv_sizeof_int
12660 # The cast to long int works around a bug in the HP C Compiler
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12665 $as_echo_n "checking size of long... " >&6; }
12666 if ${ac_cv_sizeof_long+:} false; then :
12667 $as_echo_n "(cached) " >&6
12669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12672 if test "$ac_cv_type_long" = yes; then
12673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12675 as_fn_error 77 "cannot compute sizeof (long)
12676 See \`config.log' for more details" "$LINENO" 5; }
12678 ac_cv_sizeof_long=0
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12684 $as_echo "$ac_cv_sizeof_long" >&6; }
12688 cat >>confdefs.h <<_ACEOF
12689 #define SIZEOF_LONG $ac_cv_sizeof_long
12693 # The cast to long int works around a bug in the HP C Compiler
12694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696 # This bug is HP SR number 8606223364.
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12698 $as_echo_n "checking size of long long... " >&6; }
12699 if ${ac_cv_sizeof_long_long+:} false; then :
12700 $as_echo_n "(cached) " >&6
12702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12705 if test "$ac_cv_type_long_long" = yes; then
12706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12708 as_fn_error 77 "cannot compute sizeof (long long)
12709 See \`config.log' for more details" "$LINENO" 5; }
12711 ac_cv_sizeof_long_long=0
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12717 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12726 # The cast to long int works around a bug in the HP C Compiler
12727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729 # This bug is HP SR number 8606223364.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12731 $as_echo_n "checking size of off_t... " >&6; }
12732 if ${ac_cv_sizeof_off_t+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12738 if test "$ac_cv_type_off_t" = yes; then
12739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 as_fn_error 77 "cannot compute sizeof (off_t)
12742 See \`config.log' for more details" "$LINENO" 5; }
12744 ac_cv_sizeof_off_t=0
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12750 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12754 cat >>confdefs.h <<_ACEOF
12755 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12759 # The cast to long int works around a bug in the HP C Compiler
12760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762 # This bug is HP SR number 8606223364.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12764 $as_echo_n "checking size of time_t... " >&6; }
12765 if ${ac_cv_sizeof_time_t+:} false; then :
12766 $as_echo_n "(cached) " >&6
12768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12771 if test "$ac_cv_type_time_t" = yes; then
12772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error 77 "cannot compute sizeof (time_t)
12775 See \`config.log' for more details" "$LINENO" 5; }
12777 ac_cv_sizeof_time_t=0
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12783 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12792 SIZEOF_SHORT=$ac_cv_sizeof_short
12793 SIZEOF_INT=$ac_cv_sizeof_int
12794 SIZEOF_LONG=$ac_cv_sizeof_long
12795 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12796 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12797 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12805 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12806 if ${ac_cv_c_bigendian+:} false; then :
12807 $as_echo_n "(cached) " >&6
12809 ac_cv_c_bigendian=unknown
12810 # See if we're dealing with a universal compiler.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #ifndef __APPLE_CC__
12814 not a universal capable compiler
12819 if ac_fn_c_try_compile "$LINENO"; then :
12821 # Check for potential -arch flags. It is not universal unless
12822 # there are at least two -arch flags with different values.
12825 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12826 if test -n "$ac_prev"; then
12828 i?86 | x86_64 | ppc | ppc64)
12829 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12832 ac_cv_c_bigendian=universal
12838 elif test "x$ac_word" = "x-arch"; then
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 if test $ac_cv_c_bigendian = unknown; then
12845 # See if sys/param.h defines the BYTE_ORDER macro.
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include <sys/types.h>
12849 #include <sys/param.h>
12854 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12855 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12857 bogus endian macros
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 # It does; now see whether it defined to BIG_ENDIAN or not.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <sys/types.h>
12869 #include <sys/param.h>
12874 #if BYTE_ORDER != BIG_ENDIAN
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 ac_cv_c_bigendian=yes
12885 ac_cv_c_bigendian=no
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 if test $ac_cv_c_bigendian = unknown; then
12892 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 #include <limits.h>
12900 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12901 bogus endian macros
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909 # It does; now see whether it defined to _BIG_ENDIAN or not.
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <limits.h>
12917 #ifndef _BIG_ENDIAN
12925 if ac_fn_c_try_compile "$LINENO"; then :
12926 ac_cv_c_bigendian=yes
12928 ac_cv_c_bigendian=no
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 if test $ac_cv_c_bigendian = unknown; then
12935 # Compile a test program.
12936 if test "$cross_compiling" = yes; then :
12937 # Try to guess by grepping values from an object file.
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 short int ascii_mm[] =
12941 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12942 short int ascii_ii[] =
12943 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12944 int use_ascii (int i) {
12945 return ascii_mm[i] + ascii_ii[i];
12947 short int ebcdic_ii[] =
12948 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12949 short int ebcdic_mm[] =
12950 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12951 int use_ebcdic (int i) {
12952 return ebcdic_mm[i] + ebcdic_ii[i];
12959 return use_ascii (foo) == use_ebcdic (foo);
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12966 ac_cv_c_bigendian=yes
12968 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12969 if test "$ac_cv_c_bigendian" = unknown; then
12970 ac_cv_c_bigendian=no
12972 # finding both strings is unlikely to happen, but who knows?
12973 ac_cv_c_bigendian=unknown
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 $ac_includes_default
12986 /* Are we little or big endian? From Harbison&Steele. */
12990 char c[sizeof (long int)];
12993 return u.c[sizeof (long int) - 1] == 1;
12999 if ac_fn_c_try_run "$LINENO"; then :
13000 ac_cv_c_bigendian=no
13002 ac_cv_c_bigendian=yes
13004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13005 conftest.$ac_objext conftest.beam conftest.$ac_ext
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13011 $as_echo "$ac_cv_c_bigendian" >&6; }
13012 case $ac_cv_c_bigendian in #(
13014 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13020 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13024 as_fn_error $? "unknown endianness
13025 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13028 if test $cross_compiling = no; then
13029 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13031 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13033 ASM_TYPES_HEADER=./asm_types.h
13035 echo "/* These defines are needed for the public ext2fs.h header file */" \
13037 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13038 uniq tmp_config.$$ >> public_config.h
13040 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13042 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13043 uniq tmp_config.$$ >> public_config.h
13045 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13047 rm -f tmp_config.$$
13048 PUBLIC_CONFIG_HEADER=./public_config.h
13050 for ac_header in inttypes.h
13052 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_INTTYPES_H 1
13062 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13063 if test "x$ac_cv_type_intptr_t" = xyes; then :
13065 cat >>confdefs.h <<_ACEOF
13066 #define HAVE_INTPTR_T 1
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13073 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13074 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13075 $as_echo_n "(cached) " >&6
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <sys/stat.h>
13083 struct stat stat; stat.st_flags = 0;
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089 e2fsprogs_cv_struct_st_flags=yes
13091 e2fsprogs_cv_struct_st_flags=no
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13097 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13098 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13100 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13101 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13102 $as_echo_n "(cached) " >&6
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <sys/stat.h>
13110 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13115 if ac_fn_c_try_compile "$LINENO"; then :
13116 e2fsprogs_cv_struct_st_flags_immut=yes
13118 e2fsprogs_cv_struct_st_flags_immut=no
13120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13124 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13125 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13127 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13131 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13132 #include <sys/socket.h>
13134 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_SA_LEN 1
13142 if test -n "$BLKID_CMT"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13144 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13145 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
13146 $as_echo_n "(cached) " >&6
13148 ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lblkid $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13159 char blkid_probe_get_topology ();
13163 return blkid_probe_get_topology ();
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13171 ac_cv_lib_blkid_blkid_probe_get_topology=no
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13178 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13179 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
13181 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13186 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13187 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
13188 $as_echo_n "(cached) " >&6
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lblkid $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13201 char blkid_probe_enable_partitions ();
13205 return blkid_probe_enable_partitions ();
13210 if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13213 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13220 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13221 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
13223 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13228 if test -n "$DLOPEN_LIB" ; then
13229 ac_cv_func_dlopen=yes
13231 for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13236 cat >>confdefs.h <<_ACEOF
13237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13245 $as_echo_n "checking for socket in -lsocket... " >&6; }
13246 if ${ac_cv_lib_socket_socket+:} false; then :
13247 $as_echo_n "(cached) " >&6
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lsocket $LIBS"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 ac_cv_lib_socket_socket=yes
13272 ac_cv_lib_socket_socket=no
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13279 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13280 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13281 SOCKET_LIB=-lsocket
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13286 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13287 if ${ac_cv_lib_magic_magic_file+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-lmagic $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. */
13301 char magic_file ();
13305 return magic_file ();
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_magic_magic_file=yes
13313 ac_cv_lib_magic_magic_file=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_magic_magic_file" >&5
13320 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13321 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13323 for ac_header in magic.h
13325 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_magic_h" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_MAGIC_H 1
13337 if test "$ac_cv_func_dlopen" = yes ; then
13338 MAGIC_LIB=$DLOPEN_LIB
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13342 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13343 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13344 $as_echo_n "(cached) " >&6
13346 ac_check_lib_save_LIBS=$LIBS
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13357 char clock_gettime ();
13361 return clock_gettime ();
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 ac_cv_lib_rt_clock_gettime=yes
13369 ac_cv_lib_rt_clock_gettime=no
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LIBS=$ac_check_lib_save_LIBS
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13377 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13378 CLOCK_GETTIME_LIB=-lrt
13384 # Check whether --enable-fuse2fs was given.
13385 if test "${enable_fuse2fs+set}" = set; then :
13386 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13390 $as_echo "Disabling fuse2fs" >&6; }
13392 for ac_header in pthread.h fuse.h
13394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13396 #define FUSE_USE_VERSION 29
13398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13406 as_fn_error $? "Cannot find fuse2fs headers.
13407 See \`config.log' for more details" "$LINENO" 5; }
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415 #define FUSE_USE_VERSION 29
13417 #include <linux/fs.h>
13418 #include <linux/falloc.h>
13419 #include <linux/xattr.h>
13430 if ac_fn_c_try_cpp "$LINENO"; then :
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 as_fn_error $? "Cannot find fuse2fs Linux headers.
13436 See \`config.log' for more details" "$LINENO" 5; }
13438 rm -f conftest.err conftest.i conftest.$ac_ext
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13441 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13442 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13443 $as_echo_n "(cached) " >&6
13445 ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-losxfuse $LIBS"
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13460 return fuse_main ();
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_lib_osxfuse_fuse_main=yes
13468 ac_cv_lib_osxfuse_fuse_main=no
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 LIBS=$ac_check_lib_save_LIBS
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13475 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13476 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13480 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13481 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lfuse $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13499 return fuse_main ();
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 ac_cv_lib_fuse_fuse_main=yes
13507 ac_cv_lib_fuse_fuse_main=no
13509 rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13514 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13515 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13520 as_fn_error $? "Cannot find fuse library.
13521 See \`config.log' for more details" "$LINENO" 5; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13527 $as_echo "Enabling fuse2fs" >&6; }
13531 for ac_header in pthread.h fuse.h
13533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13535 #define FUSE_USE_VERSION 29
13537 # include <linux/fs.h>
13538 # include <linux/falloc.h>
13539 # include <linux/xattr.h>
13542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13553 if test -z "$FUSE_CMT"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13556 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13557 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13558 $as_echo_n "(cached) " >&6
13560 ac_check_lib_save_LIBS=$LIBS
13561 LIBS="-losxfuse $LIBS"
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13575 return fuse_main ();
13580 if ac_fn_c_try_link "$LINENO"; then :
13581 ac_cv_lib_osxfuse_fuse_main=yes
13583 ac_cv_lib_osxfuse_fuse_main=no
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13590 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13591 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13595 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13596 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13597 $as_echo_n "(cached) " >&6
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-lfuse $LIBS"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13614 return fuse_main ();
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_lib_fuse_fuse_main=yes
13622 ac_cv_lib_fuse_fuse_main=no
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13629 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13630 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13639 if test -z "$FUSE_CMT"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13642 $as_echo "Enabling fuse2fs by default." >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13650 $as_echo_n "checking for optreset... " >&6; }
13651 if ${ac_cv_have_optreset+:} false; then :
13652 $as_echo_n "(cached) " >&6
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 #include <unistd.h>
13659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 $EGREP "optreset" >/dev/null 2>&1; then :
13661 ac_cv_have_optreset=yes
13663 ac_cv_have_optreset=no
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13669 $as_echo "$ac_cv_have_optreset" >&6; }
13670 if test $ac_cv_have_optreset = yes; then
13672 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13677 echo GL_THREADS_API: ${gl_threads_api}
13678 if test "${gl_threads_api}" != none
13680 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13681 if test "x$ac_cv_func_sem_init" = xyes; then :
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13685 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13686 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13687 $as_echo_n "(cached) " >&6
13689 ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-lpthread $LIBS"
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 /* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13704 return sem_init ();
13709 if ac_fn_c_try_link "$LINENO"; then :
13710 ac_cv_lib_pthread_sem_init=yes
13712 ac_cv_lib_pthread_sem_init=no
13714 rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13719 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13720 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13721 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13723 SEM_INIT_LIB=-lpthread
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13726 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13727 if ${ac_cv_lib_rt_sem_init+:} false; then :
13728 $as_echo_n "(cached) " >&6
13730 ac_check_lib_save_LIBS=$LIBS
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13745 return sem_init ();
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_lib_rt_sem_init=yes
13753 ac_cv_lib_rt_sem_init=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13760 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13761 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13762 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13767 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13768 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13769 $as_echo_n "(cached) " >&6
13771 ac_check_lib_save_LIBS=$LIBS
13772 LIBS="-lposix4 $LIBS"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13776 /* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13786 return sem_init ();
13791 if ac_fn_c_try_link "$LINENO"; then :
13792 ac_cv_lib_posix4_sem_init=yes
13794 ac_cv_lib_posix4_sem_init=no
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13801 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13802 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13803 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13805 SEM_INIT_LIB=-lposix4
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13816 $as_echo_n "checking for unified diff option... " >&6; }
13817 if diff -u $0 $0 > /dev/null 2>&1 ; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13823 $as_echo "$UNI_DIFF_OPTS" >&6; }
13828 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13833 if test "x$ac_cv_header_sys_mount_h" = x; then :
13834 for ac_header in sys/mount.h
13836 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
13837 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_SYS_MOUNT_H 1
13847 if test "x$ac_cv_header_sys_mount_h" = xno; then :
13848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13850 as_fn_error $? "error: sys/mount.h not present on your system!
13851 See \`config.log' for more details" "$LINENO" 5; }
13853 $as_echo_n "checking for mount 'nosuid' option... "
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 #include <sys/mount.h>
13860 void *temp = (void *)(MS_NOSUID); (void) temp;
13865 if ac_fn_c_try_compile "$LINENO"; then :
13867 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13869 ac_cv_mount_nosuid=yes
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 #include <sys/mount.h>
13878 void *temp = (void *)(MNT_NOSUID); (void) temp;
13883 if ac_fn_c_try_compile "$LINENO"; then :
13885 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13887 ac_cv_mount_nosuid=yes
13890 ac_cv_mount_nosuid=no
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 if test "x$ac_cv_header_sys_mount_h" = x; then :
13901 for ac_header in sys/mount.h
13903 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
13904 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_SYS_MOUNT_H 1
13914 if test "x$ac_cv_header_sys_mount_h" = xno; then :
13915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13917 as_fn_error $? "error: sys/mount.h not present on your system!
13918 See \`config.log' for more details" "$LINENO" 5; }
13920 $as_echo_n "checking for mount 'nodev' option... "
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 #include <sys/mount.h>
13927 void *temp = (void *)(MS_NODEV); (void) temp;
13932 if ac_fn_c_try_compile "$LINENO"; then :
13934 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13936 ac_cv_mount_nodev=yes
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <sys/mount.h>
13945 void *temp = (void *)(MNT_NODEV); (void) temp;
13950 if ac_fn_c_try_compile "$LINENO"; then :
13952 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13954 ac_cv_mount_nodev=yes
13957 ac_cv_mount_nodev=no
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 # Check whether --enable-lto was given.
13967 if test "${enable_lto+set}" = set; then :
13968 enableval=$enable_lto;
13973 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13975 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13976 OLD_CFLAGS="$CFLAGS"
13977 OLD_LDFLAGS="$LDFLAGS"
13978 LTO_FLAGS="-g -flto -ffat-lto-objects"
13979 CFLAGS="$CFLAGS $LTO_FLAGS"
13980 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13992 if ac_fn_c_try_link "$LINENO"; then :
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 $as_echo "yes" >&6; }
13995 lto_cflags=$LTO_FLAGS
13996 lto_ldflags=$LTO_FLAGS
13997 # Extract the first word of "gcc-ar", so it can be a program name with args.
13998 set dummy gcc-ar; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000 $as_echo_n "checking for $ac_word... " >&6; }
14001 if ${ac_cv_path_gcc_ar+:} false; then :
14002 $as_echo_n "(cached) " >&6
14006 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 gcc_ar=$ac_cv_path_gcc_ar
14028 if test -n "$gcc_ar"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14030 $as_echo "$gcc_ar" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14037 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14038 set dummy gcc-ranlib; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14040 $as_echo_n "checking for $ac_word... " >&6; }
14041 if ${ac_cv_path_gcc_ranlib+:} false; then :
14042 $as_echo_n "(cached) " >&6
14044 case $gcc_ranlib in
14046 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 gcc_ranlib=$ac_cv_path_gcc_ranlib
14068 if test -n "$gcc_ranlib"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14070 $as_echo "$gcc_ranlib" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14086 RANLIB="${gcc_ranlib}"
14088 CFLAGS="${OLD_CFLAGS}"
14089 LDFLAGS="${OLD_LDFLAGS}"
14094 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14095 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14097 # Check whether --enable-ubsan was given.
14098 if test "${enable_ubsan+set}" = set; then :
14099 enableval=$enable_ubsan;
14104 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14106 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
14107 OLD_CFLAGS="$CFLAGS"
14108 OLD_LDFLAGS="$LDFLAGS"
14109 UBSAN_FLAGS="-fsanitize=undefined"
14110 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14111 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14125 $as_echo "yes" >&6; }
14126 ubsan_cflags=$UBSAN_FLAGS
14127 ubsan_ldflags=$UBSAN_FLAGS
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 CFLAGS="${OLD_CFLAGS}"
14136 LDFLAGS="${OLD_LDFLAGS}"
14141 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14142 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14144 # Check whether --enable-addrsan was given.
14145 if test "${enable_addrsan+set}" = set; then :
14146 enableval=$enable_addrsan;
14151 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14153 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
14154 OLD_CFLAGS="$CFLAGS"
14155 OLD_LDFLAGS="$LDFLAGS"
14156 ADDRSAN_FLAGS="-fsanitize=address"
14157 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14158 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14170 if ac_fn_c_try_link "$LINENO"; then :
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14172 $as_echo "yes" >&6; }
14173 addrsan_cflags=$ADDRSAN_FLAGS
14174 addrsan_ldflags=$ADDRSAN_FLAGS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 CFLAGS="${OLD_CFLAGS}"
14183 LDFLAGS="${OLD_LDFLAGS}"
14188 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14189 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14191 # Check whether --enable-threadsan was given.
14192 if test "${enable_threadsan+set}" = set; then :
14193 enableval=$enable_threadsan;
14195 enable_threadsan=no
14198 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14200 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14201 OLD_CFLAGS="$CFLAGS"
14202 OLD_LDFLAGS="$LDFLAGS"
14203 THREADSAN_FLAGS="-fsanitize=thread"
14204 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14205 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219 $as_echo "yes" >&6; }
14220 threadsan_cflags=$THREADSAN_FLAGS
14221 threadsan_ldflags=$THREADSAN_FLAGS
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 CFLAGS="${OLD_CFLAGS}"
14230 LDFLAGS="${OLD_LDFLAGS}"
14235 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14236 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14238 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14240 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14257 E2SCRUB_CMT="$LINUX_CMT"
14260 linux* | gnu* | k*bsd*-gnu)
14261 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14264 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14269 linux* | gnu* | k*bsd*-gnu)
14270 if test "$prefix" = NONE ; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14273 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14274 if test "$mandir" = '${prefix}/man' ; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14276 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14277 mandir=/usr/share/man
14282 if test "$root_prefix" = NONE ; then
14283 if test "$prefix" = NONE ; then
14284 root_prefix="$ac_default_prefix"
14286 root_prefix="$prefix"
14288 root_bindir=$bindir
14289 root_sbindir=$sbindir
14290 root_libdir=$libdir
14291 root_sysconfdir=$sysconfdir
14293 root_bindir='${root_prefix}/bin'
14294 root_sbindir='${root_prefix}/sbin'
14295 root_libdir='${root_prefix}/lib'
14296 root_sysconfdir='${root_prefix}/etc'
14298 if test "$bindir" != '${exec_prefix}/bin'; then
14299 root_bindir=$bindir
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14301 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14303 if test "$sbindir" != '${exec_prefix}/sbin'; then
14304 root_sbindir=$sbindir
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14306 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14308 if test "$libdir" != '${exec_prefix}/lib'; then
14309 root_libdir=$libdir
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14311 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14313 if test "$sysconfdir" != '${prefix}/etc'; then
14314 root_sysconfdir=$sysconfdir
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14316 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14324 # Check whether --with-multiarch was given.
14325 if test "${with_multiarch+set}" = set; then :
14326 withval=$with_multiarch; if test "$withval" = "lib64"; then
14330 libdir=$libdir/$withval
14331 root_libdir=$root_libdir/$withval
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14337 $as_echo_n "checking whether we can link with -static... " >&6; }
14338 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14339 $as_echo_n "(cached) " >&6
14341 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 ac_cv_e2fsprogs_use_static=yes
14356 ac_cv_e2fsprogs_use_static=no
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS=$SAVE_LDFLAGS
14365 ac_cv_e2fsprogs_use_static=no
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14369 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14370 if test $ac_cv_e2fsprogs_use_static = yes; then
14371 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14377 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14379 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14383 if test "$cross_compiling" = yes ; then
14386 DO_TEST_SUITE=check
14389 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14390 if test -n "$CPPFLAGS" ; then
14391 INCLUDES="$INCLUDES $CPPFLAGS"
14393 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14394 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14396 if test -n "$WITH_DIET_LIBC" ; then
14397 INCLUDES="$INCLUDES -D_REENTRANT"
14400 if test $cross_compiling = no; then
14401 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14402 BUILD_LDFLAGS="$LDFLAGS"
14406 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14407 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14408 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14414 # Check whether --with-udev_rules_dir was given.
14415 if test "${with_udev_rules_dir+set}" = set; then :
14416 withval=$with_udev_rules_dir;
14418 with_udev_rules_dir=yes
14421 if test "x${with_udev_rules_dir}" != "xno"; then :
14423 if test "x${with_udev_rules_dir}" = "xyes"; then :
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14428 $as_echo_n "checking for udev... " >&6; }
14430 if test -n "$udev_CFLAGS"; then
14431 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14432 elif test -n "$PKG_CONFIG"; then
14433 if test -n "$PKG_CONFIG" && \
14434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14435 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; then
14439 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14440 test "x$?" != "x0" && pkg_failed=yes
14447 if test -n "$udev_LIBS"; then
14448 pkg_cv_udev_LIBS="$udev_LIBS"
14449 elif test -n "$PKG_CONFIG"; then
14450 if test -n "$PKG_CONFIG" && \
14451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14452 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14455 test $ac_status = 0; }; then
14456 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14457 test "x$?" != "x0" && pkg_failed=yes
14467 if test $pkg_failed = yes; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14472 _pkg_short_errors_supported=yes
14474 _pkg_short_errors_supported=no
14476 if test $_pkg_short_errors_supported = yes; then
14477 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14479 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14481 # Put the nasty error message in config.log where it belongs
14482 echo "$udev_PKG_ERRORS" >&5
14485 with_udev_rules_dir=""
14487 elif test $pkg_failed = untried; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14491 with_udev_rules_dir=""
14494 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14495 udev_LIBS=$pkg_cv_udev_LIBS
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14499 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14505 $as_echo_n "checking for udev rules dir... " >&6; }
14506 pkg_udev_rules_dir="${with_udev_rules_dir}"
14507 if test -n "${pkg_udev_rules_dir}"; then :
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14510 $as_echo "${pkg_udev_rules_dir}" >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 $as_echo "no" >&6; }
14523 have_udev="disabled"
14530 # Check whether --with-crond_dir was given.
14531 if test "${with_crond_dir+set}" = set; then :
14532 withval=$with_crond_dir;
14537 if test "x${with_crond_dir}" != "xno"; then :
14539 if test "x${with_crond_dir}" = "xyes"; then :
14541 if test -d "/etc/cron.d"; then :
14542 with_crond_dir="/etc/cron.d"
14544 have_crond="no"; with_crond_dir=""
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14549 $as_echo_n "checking for system crontab dir... " >&6; }
14550 crond_dir="${with_crond_dir}"
14551 if test -n "${crond_dir}"; then :
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14554 $as_echo "${crond_dir}" >&6; }
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14567 have_crond="disabled"
14574 # Check whether --with-systemd_unit_dir was given.
14575 if test "${with_systemd_unit_dir+set}" = set; then :
14576 withval=$with_systemd_unit_dir;
14578 with_systemd_unit_dir=yes
14581 if test "x${with_systemd_unit_dir}" != "xno"; then :
14583 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14588 $as_echo_n "checking for systemd... " >&6; }
14590 if test -n "$systemd_CFLAGS"; then
14591 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14592 elif test -n "$PKG_CONFIG"; then
14593 if test -n "$PKG_CONFIG" && \
14594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14595 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; }; then
14599 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14600 test "x$?" != "x0" && pkg_failed=yes
14607 if test -n "$systemd_LIBS"; then
14608 pkg_cv_systemd_LIBS="$systemd_LIBS"
14609 elif test -n "$PKG_CONFIG"; then
14610 if test -n "$PKG_CONFIG" && \
14611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14612 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14615 test $ac_status = 0; }; then
14616 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14617 test "x$?" != "x0" && pkg_failed=yes
14627 if test $pkg_failed = yes; then
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629 $as_echo "no" >&6; }
14631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14632 _pkg_short_errors_supported=yes
14634 _pkg_short_errors_supported=no
14636 if test $_pkg_short_errors_supported = yes; then
14637 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14639 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14641 # Put the nasty error message in config.log where it belongs
14642 echo "$systemd_PKG_ERRORS" >&5
14645 with_systemd_unit_dir=""
14647 elif test $pkg_failed = untried; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14651 with_systemd_unit_dir=""
14654 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14655 systemd_LIBS=$pkg_cv_systemd_LIBS
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657 $as_echo "yes" >&6; }
14659 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14666 $as_echo_n "checking for systemd system unit dir... " >&6; }
14667 systemd_system_unit_dir="${with_systemd_unit_dir}"
14668 if test -n "${systemd_system_unit_dir}"; then :
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14671 $as_echo "${systemd_system_unit_dir}" >&6; }
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 $as_echo "no" >&6; }
14684 have_systemd="disabled"
14690 test -d lib || mkdir lib
14691 test -d include || mkdir include
14692 test -d include/linux || mkdir include/linux
14693 test -d include/asm || mkdir include/asm
14694 if test -z "$UUID_CMT" ; then
14695 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14696 lib/uuid/uuid_types.h"
14698 if test -z "$BLKID_CMT" ; then
14699 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14700 lib/blkid/blkid_types.h"
14702 for i in MCONFIG Makefile \
14703 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14704 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14705 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14706 $uuid_out_list $blkid_out_list lib/support/Makefile \
14707 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14708 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14709 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14710 resize/Makefile doc/Makefile intl/Makefile \
14711 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14712 if test -d `dirname ${srcdir}/$i` ; then
14713 outlist="$outlist $i"
14716 ac_config_files="$ac_config_files $outlist"
14718 cat >confcache <<\_ACEOF
14719 # This file is a shell script that caches the results of configure
14720 # tests run on this system so they can be shared between configure
14721 # scripts and configure runs, see configure's option --config-cache.
14722 # It is not useful on other systems. If it contains results you don't
14723 # want to keep, you may remove or edit it.
14725 # config.status only pays attention to the cache file if you give it
14726 # the --recheck option to rerun configure.
14728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14730 # following values.
14734 # The following way of writing the cache mishandles newlines in values,
14735 # but we know of no workaround that is simple, portable, and efficient.
14736 # So, we kill variables containing newlines.
14737 # Ultrix sh set writes to stderr and can't be redirected directly,
14738 # and sets the high bit in the cache file unless we assign to the vars.
14740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14741 eval ac_val=\$$ac_var
14745 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14749 _ | IFS | as_nl) ;; #(
14750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14751 *) { eval $ac_var=; unset $ac_var;} ;;
14757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14758 *${as_nl}ac_space=\ *)
14759 # `set' does not quote correctly, so add quotes: double-quote
14760 # substitution turns \\\\ into \\, and sed turns \\ into \.
14763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14766 # `set' quotes correctly as required by POSIX, so do not add quotes.
14767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14781 if test -w "$cache_file"; then
14782 if test "x$cache_file" != "x/dev/null"; then
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14784 $as_echo "$as_me: updating cache $cache_file" >&6;}
14785 if test ! -f "$cache_file" || test -h "$cache_file"; then
14786 cat confcache >"$cache_file"
14788 case $cache_file in #(
14790 mv -f confcache "$cache_file"$$ &&
14791 mv -f "$cache_file"$$ "$cache_file" ;; #(
14793 mv -f confcache "$cache_file" ;;
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14799 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14805 # Let make expand exec_prefix.
14806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14808 DEFS=-DHAVE_CONFIG_H
14813 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14814 # 1. Remove the extension, and $U if already installed.
14815 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14816 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14817 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14818 # will be set to the directory where LIBOBJS objects are built.
14819 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14820 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14822 LIBOBJS=$ac_libobjs
14824 LTLIBOBJS=$ac_ltlibobjs
14829 : "${CONFIG_STATUS=./config.status}"
14831 ac_clean_files_save=$ac_clean_files
14832 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14834 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14836 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14838 # Generated by $as_me.
14839 # Run this file to recreate the current configuration.
14840 # Compiler output produced by configure, useful for debugging
14841 # configure, is in config.log if it exists.
14844 ac_cs_recheck=false
14847 SHELL=\${CONFIG_SHELL-$SHELL}
14850 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14851 ## -------------------- ##
14852 ## M4sh Initialization. ##
14853 ## -------------------- ##
14855 # Be more Bourne compatible
14856 DUALCASE=1; export DUALCASE # for MKS sh
14857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14860 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14861 # is contrary to our usage. Disable this feature.
14862 alias -g '${1+"$@"}'='"$@"'
14863 setopt NO_GLOB_SUBST
14865 case `(set -o) 2>/dev/null` in #(
14877 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14878 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14881 # Prefer a ksh shell builtin over an external printf program on Solaris,
14882 # but without wasting forks for bash or zsh.
14883 if test -z "$BASH_VERSION$ZSH_VERSION" \
14884 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14885 as_echo='print -r --'
14886 as_echo_n='print -rn --'
14887 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14888 as_echo='printf %s\n'
14889 as_echo_n='printf %s'
14891 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14892 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14893 as_echo_n='/usr/ucb/echo -n'
14895 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14896 as_echo_n_body='eval
14900 expr "X$arg" : "X\\(.*\\)$as_nl";
14901 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14903 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14905 export as_echo_n_body
14906 as_echo_n='sh -c $as_echo_n_body as_echo'
14908 export as_echo_body
14909 as_echo='sh -c $as_echo_body as_echo'
14912 # The user is always right.
14913 if test "${PATH_SEPARATOR+set}" != set; then
14915 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14916 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14923 # We need space, tab and new line, in precisely that order. Quoting is
14924 # there to prevent editors from complaining about space-tab.
14925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14926 # splitting by setting IFS to empty value.)
14929 # Find who we are. Look in the path if we contain no directory separator.
14932 *[\\/]* ) as_myself=$0 ;;
14933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14934 for as_dir in $PATH
14937 test -z "$as_dir" && as_dir=.
14938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14944 # We did not find ourselves, most probably we were run as `sh COMMAND'
14945 # in which case we are not to be found in the path.
14946 if test "x$as_myself" = x; then
14949 if test ! -f "$as_myself"; then
14950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14954 # Unset variables that we do not need and which cause bugs (e.g. in
14955 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14956 # suppresses any "Segmentation fault" message there. '((' could
14957 # trigger a bug in pdksh 5.2.14.
14958 for as_var in BASH_ENV ENV MAIL MAILPATH
14959 do eval test x\${$as_var+set} = xset \
14960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14976 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14977 # ----------------------------------------
14978 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14979 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14980 # script with STATUS, using 1 if that was 0.
14983 as_status=$1; test $as_status -eq 0 && as_status=1
14985 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14988 $as_echo "$as_me: error: $2" >&2
14989 as_fn_exit $as_status
14993 # as_fn_set_status STATUS
14994 # -----------------------
14995 # Set $? to STATUS, without forking.
14996 as_fn_set_status ()
14999 } # as_fn_set_status
15001 # as_fn_exit STATUS
15002 # -----------------
15003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15007 as_fn_set_status $1
15013 # Portably unset VAR.
15016 { eval $1=; unset $1;}
15018 as_unset=as_fn_unset
15019 # as_fn_append VAR VALUE
15020 # ----------------------
15021 # Append the text in VALUE to the end of the definition contained in VAR. Take
15022 # advantage of any shell optimizations that allow amortized linear growth over
15023 # repeated appends, instead of the typical quadratic growth present in naive
15025 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15026 eval 'as_fn_append ()
15037 # as_fn_arith ARG...
15038 # ------------------
15039 # Perform arithmetic evaluation on the ARGs, and store the result in the
15040 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15041 # must be portable across $(()) and expr.
15042 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15043 eval 'as_fn_arith ()
15050 as_val=`expr "$@" || test $? -eq 1`
15055 if expr a : '\(a\)' >/dev/null 2>&1 &&
15056 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15063 as_basename=basename
15068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15074 as_me=`$as_basename -- "$0" ||
15075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15076 X"$0" : 'X\(//\)$' \| \
15077 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15079 sed '/^.*\/\([^/][^/]*\)\/*$/{
15093 # Avoid depending upon Character Ranges.
15094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15097 as_cr_digits='0123456789'
15098 as_cr_alnum=$as_cr_Letters$as_cr_digits
15100 ECHO_C= ECHO_N= ECHO_T=
15101 case `echo -n x` in #(((((
15103 case `echo 'xy\c'` in
15104 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15113 rm -f conf$$ conf$$.exe conf$$.file
15114 if test -d conf$$.dir; then
15115 rm -f conf$$.dir/conf$$.file
15118 mkdir conf$$.dir 2>/dev/null
15120 if (echo >conf$$.file) 2>/dev/null; then
15121 if ln -s conf$$.file conf$$ 2>/dev/null; then
15123 # ... but there are two gotchas:
15124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15126 # In both cases, we have to default to `cp -pR'.
15127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15129 elif ln conf$$.file conf$$ 2>/dev/null; then
15137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15138 rmdir conf$$.dir 2>/dev/null
15143 # Create "$as_dir" as a directory, including parents if necessary.
15148 -*) as_dir=./$as_dir;;
15150 test -d "$as_dir" || eval $as_mkdir_p || {
15154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15155 *) as_qdir=$as_dir;;
15157 as_dirs="'$as_qdir' $as_dirs"
15158 as_dir=`$as_dirname -- "$as_dir" ||
15159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15160 X"$as_dir" : 'X\(//\)[^/]' \| \
15161 X"$as_dir" : 'X\(//\)$' \| \
15162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15163 $as_echo X"$as_dir" |
15164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15168 /^X\(\/\/\)[^/].*/{
15181 test -d "$as_dir" && break
15183 test -z "$as_dirs" || eval "mkdir $as_dirs"
15184 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15188 if mkdir -p . 2>/dev/null; then
15189 as_mkdir_p='mkdir -p "$as_dir"'
15191 test -d ./-p && rmdir ./-p
15196 # as_fn_executable_p FILE
15197 # -----------------------
15198 # Test if FILE is an executable regular file.
15199 as_fn_executable_p ()
15201 test -f "$1" && test -x "$1"
15202 } # as_fn_executable_p
15203 as_test_x='test -x'
15204 as_executable_p=as_fn_executable_p
15206 # Sed expression to map a string onto a valid CPP name.
15207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15209 # Sed expression to map a string onto a valid variable name.
15210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15214 ## ----------------------------------- ##
15215 ## Main body of $CONFIG_STATUS script. ##
15216 ## ----------------------------------- ##
15218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 # Save the log message, to keep $0 and so on meaningful, and to
15222 # report actual input values of CONFIG_FILES etc. instead of their
15223 # values after options handling.
15225 This file was extended by $as_me, which was
15226 generated by GNU Autoconf 2.69. Invocation command line was
15228 CONFIG_FILES = $CONFIG_FILES
15229 CONFIG_HEADERS = $CONFIG_HEADERS
15230 CONFIG_LINKS = $CONFIG_LINKS
15231 CONFIG_COMMANDS = $CONFIG_COMMANDS
15234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15239 case $ac_config_files in *"
15240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15243 case $ac_config_headers in *"
15244 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 # Files that config.status was made for.
15250 config_files="$ac_config_files"
15251 config_headers="$ac_config_headers"
15252 config_commands="$ac_config_commands"
15256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15258 \`$as_me' instantiates files and other configuration actions
15259 from templates according to the current configuration. Unless the files
15260 and actions are specified as TAGs, all are instantiated by default.
15262 Usage: $0 [OPTION]... [TAG]...
15264 -h, --help print this help, then exit
15265 -V, --version print version number and configuration settings, then exit
15266 --config print configuration, then exit
15267 -q, --quiet, --silent
15268 do not print progress messages
15269 -d, --debug don't remove temporary files
15270 --recheck update $as_me by reconfiguring in the same conditions
15271 --file=FILE[:TEMPLATE]
15272 instantiate the configuration file FILE
15273 --header=FILE[:TEMPLATE]
15274 instantiate the configuration header FILE
15276 Configuration files:
15279 Configuration headers:
15282 Configuration commands:
15285 Report bugs to the package provider."
15288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15292 configured by $0, generated by GNU Autoconf 2.69,
15293 with options \\"\$ac_cs_config\\"
15295 Copyright (C) 2012 Free Software Foundation, Inc.
15296 This config.status script is free software; the Free Software Foundation
15297 gives unlimited permission to copy, distribute and modify it."
15304 test -n "\$AWK" || AWK=awk
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308 # The default lists apply if the user does not specify any file.
15314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15331 # Handling of the options.
15332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15335 $as_echo "$ac_cs_version"; exit ;;
15336 --config | --confi | --conf | --con | --co | --c )
15337 $as_echo "$ac_cs_config"; exit ;;
15338 --debug | --debu | --deb | --de | --d | -d )
15340 --file | --fil | --fi | --f )
15343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15344 '') as_fn_error $? "missing file argument" ;;
15346 as_fn_append CONFIG_FILES " '$ac_optarg'"
15347 ac_need_defaults=false;;
15348 --header | --heade | --head | --hea )
15351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15353 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15354 ac_need_defaults=false;;
15356 # Conflict between --help and --header
15357 as_fn_error $? "ambiguous option: \`$1'
15358 Try \`$0 --help' for more information.";;
15359 --help | --hel | -h )
15360 $as_echo "$ac_cs_usage"; exit ;;
15361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15365 # This is an error.
15366 -*) as_fn_error $? "unrecognized option: \`$1'
15367 Try \`$0 --help' for more information." ;;
15369 *) as_fn_append ac_config_targets " $1"
15370 ac_need_defaults=false ;;
15376 ac_configure_extra_args=
15378 if $ac_cs_silent; then
15380 ac_configure_extra_args="$ac_configure_extra_args --silent"
15384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15385 if \$ac_cs_recheck; then
15386 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15389 CONFIG_SHELL='$SHELL'
15390 export CONFIG_SHELL
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15400 ## Running $as_me. ##
15406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15411 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15412 # from automake < 1.5.
15413 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15414 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15415 LINGUAS="${LINGUAS-%UNSET%}"
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15422 # Handling of arguments.
15423 for ac_config_target in $ac_config_targets
15425 case $ac_config_target in
15426 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15427 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15428 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15435 # If the user did not use the arguments to specify the items to instantiate,
15436 # then the envvar interface is used. Set only those that are not.
15437 # We use the long form for the default assignment because of an extremely
15438 # bizarre bug on SunOS 4.1.3.
15439 if $ac_need_defaults; then
15440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15445 # Have a temporary directory for convenience. Make it in the build tree
15446 # simply because there is no reason against having it here, and in addition,
15447 # creating and moving files from /tmp can sometimes cause problems.
15448 # Hook for its removal unless debugging.
15449 # Note that there is a small window in which the directory will not be cleaned:
15450 # after its creation but before its name has been assigned to `$tmp'.
15454 trap 'exit_status=$?
15455 : "${ac_tmp:=$tmp}"
15456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15458 trap 'as_fn_exit 1' 1 2 13 15
15460 # Create a (secure) tmp directory for tmp files.
15463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15467 tmp=./conf$$-$RANDOM
15468 (umask 077 && mkdir "$tmp")
15469 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15472 # Set up the scripts for CONFIG_FILES section.
15473 # No need to generate them if there are no CONFIG_FILES.
15474 # This happens for instance with `./config.status config.h'.
15475 if test -n "$CONFIG_FILES"; then
15477 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15478 ac_cs_awk_getline=:
15479 ac_cs_awk_pipe_init=
15480 ac_cs_awk_read_file='
15481 while ((getline aline < (F[key])) > 0)
15484 ac_cs_awk_pipe_fini=
15486 ac_cs_awk_getline=false
15487 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15488 ac_cs_awk_read_file='
15490 print "cat " F[key] " &&"
15491 '$ac_cs_awk_pipe_init
15492 # The final `:' finishes the AND list.
15493 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15495 ac_cr=`echo X | tr X '\015'`
15496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15497 # But we know of no other shell where ac_cr would be empty at this
15498 # point, so we can use a bashism as a fallback.
15499 if test "x$ac_cr" = x; then
15500 eval ac_cr=\$\'\\r\'
15502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15506 ac_cs_awk_cr=$ac_cr
15509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15512 # Create commands to substitute file output variables.
15514 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15515 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15516 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15519 } >conf$$files.sh &&
15520 . ./conf$$files.sh ||
15521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15522 rm -f conf$$files.sh
15525 echo "cat >conf$$subs.awk <<_ACEOF" &&
15526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15528 } >conf$$subs.sh ||
15529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15532 for ac_last_try in false false false false false :; do
15533 . ./conf$$subs.sh ||
15534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15537 if test $ac_delim_n = $ac_delim_num; then
15539 elif $ac_last_try; then
15540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15545 rm -f conf$$subs.sh
15547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15548 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15552 s/^/S["/; s/!.*/"]=/
15562 s/\(.\{148\}\)..*/\1/
15564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15576 s/\(.\{148\}\)..*/\1/
15578 s/["\\]/\\&/g; s/^/"/; s/$/"/
15582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15587 ' <conf$$subs.awk | sed '
15592 ' >>$CONFIG_STATUS || ac_write_fail=1
15593 rm -f conf$$subs.awk
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15597 for (key in S) S_is_set[key] = 1
15599 \$ac_cs_awk_pipe_init
15603 nfields = split(line, field, "@")
15605 len = length(field[1])
15606 for (i = 2; i < nfields; i++) {
15608 keylen = length(key)
15609 if (S_is_set[key]) {
15611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15612 len += length(value) + length(field[++i])
15617 if (nfields == 3 && !substed) {
15619 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15620 \$ac_cs_awk_read_file
15626 \$ac_cs_awk_pipe_fini
15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15634 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15638 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15639 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15640 # trailing colons and then remove the whole line if VPATH becomes empty
15641 # (actually we leave an empty line to preserve line numbers).
15642 if test "x$srcdir" = x.; then
15643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15662 fi # test -n "$CONFIG_FILES"
15664 # Set up the scripts for CONFIG_HEADERS section.
15665 # No need to generate them if there are no CONFIG_HEADERS.
15666 # This happens for instance with `./config.status Makefile'.
15667 if test -n "$CONFIG_HEADERS"; then
15668 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15672 # Transform confdefs.h into an awk script `defines.awk', embedded as
15673 # here-document in config.status, that substitutes the proper values into
15674 # config.h.in to produce config.h.
15676 # Create a delimiter string that does not exist in confdefs.h, to ease
15677 # handling of long lines.
15679 for ac_last_try in false false :; do
15680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15681 if test -z "$ac_tt"; then
15683 elif $ac_last_try; then
15684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15690 # For the awk script, D is an array of macro values keyed by name,
15691 # likewise P contains macro parameters if any. Preserve backslash
15692 # newline sequences.
15694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15696 s/.\{148\}/&'"$ac_delim"'/g
15699 s/^[ ]*#[ ]*define[ ][ ]*/ /
15706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15713 D["\1"]=" \3\\\\\\n"\\/p
15715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15720 s/.\{148\}/&'"$ac_delim"'/g
15725 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15728 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15730 ' <confdefs.h | sed '
15731 s/'"$ac_delim"'/"\\\
15732 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735 for (key in D) D_is_set[key] = 1
15738 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15740 split(line, arg, " ")
15741 if (arg[1] == "#") {
15745 defundef = substr(arg[1], 2)
15748 split(mac1, mac2, "(") #)
15750 prefix = substr(line, 1, index(line, defundef) - 1)
15751 if (D_is_set[macro]) {
15752 # Preserve the white space surrounding the "#".
15753 print prefix "define", macro P[macro] D[macro]
15756 # Replace #undef with comments. This is necessary, for example,
15757 # in the case of _POSIX_SOURCE, which is predefined and required
15758 # on some systems where configure will not decide to define it.
15759 if (defundef == "undef") {
15760 print "/*", prefix defundef, macro, "*/"
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15770 fi # test -n "$CONFIG_HEADERS"
15773 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15778 :[FHLC]) ac_mode=$ac_tag; continue;;
15780 case $ac_mode$ac_tag in
15782 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15783 :[FH]-) ac_tag=-:-;;
15784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15801 -) ac_f="$ac_tmp/stdin";;
15802 *) # Look for the file first in the build tree, then in the source tree
15803 # (if the path is not absolute). The absolute path cannot be DOS-style,
15804 # because $ac_f cannot contain `:'.
15808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15813 as_fn_append ac_file_inputs " '$ac_f'"
15816 # Let's still pretend it is `configure' which instantiates (i.e., don't
15817 # use $as_me), people would be surprised to read:
15818 # /* config.h. Generated by config.status. */
15819 configure_input='Generated from '`
15820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15822 if test x"$ac_file" != x-; then
15823 configure_input="$ac_file. $configure_input"
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15825 $as_echo "$as_me: creating $ac_file" >&6;}
15827 # Neutralize special characters interpreted by sed in replacement strings.
15828 case $configure_input in #(
15829 *\&* | *\|* | *\\* )
15830 ac_sed_conf_input=`$as_echo "$configure_input" |
15831 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15832 *) ac_sed_conf_input=$configure_input;;
15836 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15842 ac_dir=`$as_dirname -- "$ac_file" ||
15843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15844 X"$ac_file" : 'X\(//\)[^/]' \| \
15845 X"$ac_file" : 'X\(//\)$' \| \
15846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15847 $as_echo X"$ac_file" |
15848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15852 /^X\(\/\/\)[^/].*/{
15865 as_dir="$ac_dir"; as_fn_mkdir_p
15869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15872 # A ".." for each directory in $ac_dir_suffix.
15873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15874 case $ac_top_builddir_sub in
15875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15879 ac_abs_top_builddir=$ac_pwd
15880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15881 # for backward compatibility:
15882 ac_top_builddir=$ac_top_build_prefix
15885 .) # We are building in place.
15887 ac_top_srcdir=$ac_top_builddir_sub
15888 ac_abs_top_srcdir=$ac_pwd ;;
15889 [\\/]* | ?:[\\/]* ) # Absolute name.
15890 ac_srcdir=$srcdir$ac_dir_suffix;
15891 ac_top_srcdir=$srcdir
15892 ac_abs_top_srcdir=$srcdir ;;
15893 *) # Relative name.
15894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15895 ac_top_srcdir=$ac_top_build_prefix$srcdir
15896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15911 ac_MKDIR_P=$MKDIR_P
15913 [\\/$]* | ?:[\\/]* ) ;;
15914 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919 # If the template does not know about datarootdir, expand it.
15920 # FIXME: This hack should be removed a few years after 2.60.
15921 ac_datarootdir_hack=; ac_datarootdir_seen=
15932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15933 *datarootdir*) ac_datarootdir_seen=yes;;
15934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 ac_datarootdir_hack='
15940 s&@datadir@&$datadir&g
15941 s&@docdir@&$docdir&g
15942 s&@infodir@&$infodir&g
15943 s&@localedir@&$localedir&g
15944 s&@mandir@&$mandir&g
15945 s&\\\${datarootdir}&$datarootdir&g' ;;
15949 # Neutralize VPATH when `$srcdir' = `.'.
15950 # Shell code in configure.ac might set extrasub.
15951 # FIXME: do we really want to maintain this feature?
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 ac_sed_extra="$ac_vpsub
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15959 s|@configure_input@|$ac_sed_conf_input|;t t
15960 s&@top_builddir@&$ac_top_builddir_sub&;t t
15961 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15962 s&@srcdir@&$ac_srcdir&;t t
15963 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15964 s&@top_srcdir@&$ac_top_srcdir&;t t
15965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15966 s&@builddir@&$ac_builddir&;t t
15967 s&@abs_builddir@&$ac_abs_builddir&;t t
15968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15969 s&@INSTALL@&$ac_INSTALL&;t t
15970 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15971 $ac_datarootdir_hack
15973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15974 if $ac_cs_awk_getline; then
15975 $AWK -f "$ac_tmp/subs.awk"
15977 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15979 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15982 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15984 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15986 which seems to be undefined. Please make sure it is defined" >&5
15987 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15988 which seems to be undefined. Please make sure it is defined" >&2;}
15990 rm -f "$ac_tmp/stdin"
15992 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15993 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16001 if test x"$ac_file" != x-; then
16003 $as_echo "/* $configure_input */" \
16004 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16005 } >"$ac_tmp/config.h" \
16006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16007 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16012 mv "$ac_tmp/config.h" "$ac_file" \
16013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16016 $as_echo "/* $configure_input */" \
16017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16018 || as_fn_error $? "could not create -" "$LINENO" 5
16022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16023 $as_echo "$as_me: executing $ac_file commands" >&6;}
16028 case $ac_file$ac_mode in
16029 "po-directories":C)
16030 for ac_file in $CONFIG_FILES; do
16031 # Support "outfile[:infile[:infile...]]"
16033 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16035 # PO directories have a Makefile.in generated from Makefile.in.in.
16036 case "$ac_file" in */Makefile.in)
16037 # Adjust a relative srcdir.
16038 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16039 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16040 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16041 # In autoconf-2.13 it is called $ac_given_srcdir.
16042 # In autoconf-2.50 it is called $srcdir.
16043 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16044 case "$ac_given_srcdir" in
16045 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16046 /*) top_srcdir="$ac_given_srcdir" ;;
16047 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16049 # Treat a directory as a PO directory if and only if it has a
16050 # POTFILES.in file. This allows packages to have multiple PO
16051 # directories under different names or in different locations.
16052 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16053 rm -f "$ac_dir/POTFILES"
16054 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16055 gt_tab=`printf '\t'`
16056 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"
16057 POMAKEFILEDEPS="POTFILES.in"
16058 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16059 # on $ac_dir but don't depend on user-specified configuration
16061 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16062 # The LINGUAS file contains the set of available languages.
16063 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16064 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16066 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16067 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16068 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16069 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16071 # The set of available languages was given in configure.in.
16072 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16073 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16076 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16077 # Compute UPDATEPOFILES
16078 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16079 # Compute DUMMYPOFILES
16080 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16082 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16083 case "$ac_given_srcdir" in
16085 *) srcdirpre='$(srcdir)/' ;;
16091 for lang in $ALL_LINGUAS; do
16092 POFILES="$POFILES $srcdirpre$lang.po"
16093 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16094 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16095 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16097 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16098 # environment variable.
16100 if test -n "$ALL_LINGUAS"; then
16101 for presentlang in $ALL_LINGUAS; do
16103 if test "%UNSET%" != "$LINGUAS"; then
16104 desiredlanguages="$LINGUAS"
16106 desiredlanguages="$ALL_LINGUAS"
16108 for desiredlang in $desiredlanguages; do
16109 # Use the presentlang catalog if desiredlang is
16110 # a. equal to presentlang, or
16111 # b. a variant of presentlang (because in this case,
16112 # presentlang can be used as a fallback for messages
16113 # which are not translated in the desiredlang catalog).
16114 case "$desiredlang" in
16115 "$presentlang"*) useit=yes;;
16118 if test $useit = yes; then
16119 INST_LINGUAS="$INST_LINGUAS $presentlang"
16124 if test -n "$INST_LINGUAS"; then
16125 for lang in $INST_LINGUAS; do
16126 CATALOGS="$CATALOGS $lang.gmo"
16129 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16130 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"
16131 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16132 if test -f "$f"; then
16134 *.orig | *.bak | *~) ;;
16135 *) cat "$f" >> "$ac_dir/Makefile" ;;
16150 ac_clean_files=$ac_clean_files_save
16152 test $ac_write_fail = 0 ||
16153 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16156 # configure is writing to config.log, and then calls config.status.
16157 # config.status does its own redirection, appending to config.log.
16158 # Unfortunately, on DOS this fails, as config.log is still kept open
16159 # by configure, so config.status won't be able to write to it; its
16160 # output is simply discarded. So we exec the FD to /dev/null,
16161 # effectively closing config.log, so it can be properly (re)opened and
16162 # appended to by config.status. When coming back to configure, we
16163 # need to make the FD available again.
16164 if test "$no_create" != yes; then
16166 ac_config_status_args=
16167 test "$silent" = yes &&
16168 ac_config_status_args="$ac_config_status_args --quiet"
16170 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16172 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16173 # would make configure fail if this is the last instruction.
16174 $ac_cs_success || as_fn_exit 1
16176 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16178 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16181 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi