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
690 INTL_LIBTOOL_SUFFIX_PREFIX
697 BUILD_INCLUDED_LIBINTL
707 INTL_DEFAULT_VERBOSITY
726 XGETTEXT_EXTRA_OPTIONS
734 GETTEXT_MACRO_VERSION
843 program_transform_name
854 ac_subst_files='MCONFIG
860 PUBLIC_CONFIG_HEADER'
862 enable_option_checking
868 enable_maintainer_mode
869 enable_symlink_install
870 enable_relative_symlinks
871 enable_symlink_relative_symlinks
873 enable_verbose_makecmds
890 enable_e2initrd_helper
896 enable_bmap_stats_ops
903 with_included_gettext
909 with_systemd_unit_dir
911 ac_precious_vars='build_alias
929 # Initialize some variables set by options.
931 ac_init_version=false
932 ac_unrecognized_opts=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
943 program_transform_name=s,x,x,
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 runstatedir='${localstatedir}/run'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE}'
969 infodir='${datarootdir}/info'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1047 eval enable_$ac_useropt=no ;;
1049 -docdir | --docdir | --docdi | --doc | --do)
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1218 -runstatedir | --runstatedir | --runstatedi | --runstated \
1219 | --runstate | --runstat | --runsta | --runst | --runs \
1220 | --run | --ru | --r)
1221 ac_prev=runstatedir ;;
1222 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1223 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1224 | --run=* | --ru=* | --r=*)
1225 runstatedir=$ac_optarg ;;
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=no ;;
1305 # Obsolete; use --with-x.
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $? "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir runstatedir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 elif test "x$build_alias" != "x$host_alias"; then
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400 test "$silent" = yes && exec 6>/dev/null
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406 as_fn_error $? "working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 as_fn_error $? "pwd does not report name of working directory"
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$as_myself" : 'X\(//\)[^/]' \| \
1418 X"$as_myself" : 'X\(//\)$' \| \
1419 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures this package to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking ...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-maintainer-mode enable makefile rules useful for maintainers
1550 --enable-symlink-install use symlinks when installing instead of hard links
1551 --enable-relative-symlinks use relative symlinks when installing
1553 --enable-symlink-build use symlinks while building instead of hard links
1554 --enable-verbose-makecmds enable verbose make command output
1555 --enable-elf-shlibs select ELF shared libraries
1556 --enable-bsd-shlibs select BSD shared libraries
1557 --enable-profile build profiling libraries
1558 --enable-gcov build for coverage testing using gcov
1559 --enable-hardening build for coverage testing using gcov
1560 --enable-jbd-debug enable journal debugging
1561 --enable-blkid-debug enable blkid debugging
1562 --disable-testio-debug disable the use of the test I/O manager for debugging
1563 --enable-libuuid build and use private uuid library
1564 --enable-libblkid build and use private blkid library
1565 --disable-backtrace disable use backtrace
1566 --disable-debugfs disable support of debugfs program
1567 --disable-imager disable support of e2image program
1568 --disable-resizer disable support of e2resize program
1569 --disable-defrag disable support of e4defrag program
1570 --enable-fsck build fsck wrapper program
1571 --enable-e2initrd-helper build e2initrd-helper program
1572 --disable-tls disable use of thread local support
1573 --disable-uuidd disable building the uuid daemon
1574 --disable-mmp disable support mmp, Multi Mount Protection
1575 --disable-tdb disable tdb support
1576 --disable-bmap-stats disable collection of bitmap stats.
1577 --enable-bmap-stats-ops enable collection of additional bitmap stats
1578 --disable-nls do not use Native Language Support
1579 --enable-threads={posix|solaris|pth|windows}
1580 specify multithreading API
1581 --disable-threads build without multithread safety
1582 --disable-rpath do not hardcode runtime library paths
1583 --disable-fuse2fs do not build fuse2fs
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-diet-libc use diet libc
1589 --with-cc no longer supported, use CC= instead
1590 --with-ccopts no longer supported, use CFLAGS= instead
1591 --with-ldopts no longer supported, use LDFLAGS= instead
1592 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1595 --without-libpth-prefix don't search for libpth in includedir and libdir
1596 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1597 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1598 --with-included-gettext use the GNU gettext library included here
1599 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1600 --without-libintl-prefix don't search for libintl in includedir and libdir
1601 --with-multiarch=ARCH specify the multiarch triplet
1602 --with-udev-rules-dir[=DIR]
1603 Install udev rules into DIR.
1604 --with-crond-dir[=DIR] Install system crontabs into DIR.
1605 --with-systemd-unit-dir[=DIR]
1606 Install systemd system units into DIR.
1608 Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1617 PKG_CONFIG path to pkg-config utility
1619 directories to add to pkg-config's search path
1621 path overriding pkg-config's built-in search path
1622 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1623 udev_LIBS linker flags for udev, overriding pkg-config
1625 C compiler flags for systemd, overriding pkg-config
1627 linker flags for systemd, overriding pkg-config
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to the package provider.
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1662 .) # We are building in place.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 test -x conftest$ac_exeext
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_c_try_link
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1907 eval "$3=\$ac_header_compiler"
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_mongrel
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=$ac_status
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } # ac_fn_c_check_header_compile
1990 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1991 # -------------------------------------------
1992 # Tests whether TYPE exists after having included INCLUDES, setting cache
1993 # variable VAR accordingly.
1994 ac_fn_c_check_type ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2028 if ac_fn_c_try_compile "$LINENO"; then :
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_type
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2059 #define $2 innocuous_$2
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $2 (); below.
2063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064 <limits.h> exists even on freestanding compilers. */
2067 # include <limits.h>
2069 # include <assert.h>
2074 /* Override any GCC internal prototype to avoid an error.
2075 Use char because int might match the return type of a GCC
2076 builtin and then its argument prototype would still apply. */
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined __stub_$2 || defined __stub___$2
2096 if ac_fn_c_try_link "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext \
2102 conftest$ac_exeext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_func
2111 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2112 # ---------------------------------------------
2113 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2115 ac_fn_c_check_decl ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 as_decl_name=`echo $2|sed 's/ *(.*//'`
2119 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2121 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 #ifndef $as_decl_name
2133 (void) $as_decl_use;
2135 (void) $as_decl_name;
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_decl
2157 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2158 # --------------------------------------------
2159 # Tries to find the compile-time value of EXPR in a program that includes
2160 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 ac_fn_c_compute_int ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if test "$cross_compiling" = yes; then
2166 # Depending upon the size, compute the lo and hi bounds.
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) >= 0)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_hi=$ac_mid; break
2201 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2202 if test $ac_lo -le $ac_mid; then
2206 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) < 0)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile "$LINENO"; then :
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 ac_lo=$ac_mid; break
2245 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2246 if test $ac_mid -le $ac_hi; then
2250 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 # Binary search between lo and hi bounds.
2261 while test "x$ac_lo" != "x$ac_hi"; do
2262 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 return test_array [0];
2277 if ac_fn_c_try_compile "$LINENO"; then :
2280 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2300 FILE *f = fopen ("conftest.val", "w");
2305 long int i = longval ();
2308 fprintf (f, "%ld", i);
2312 unsigned long int i = ulongval ();
2315 fprintf (f, "%lu", i);
2317 /* Do not output a trailing newline, as this causes \r\n confusion
2318 on some platforms. */
2319 return ferror (f) || fclose (f) != 0;
2325 if ac_fn_c_try_run "$LINENO"; then :
2326 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2331 conftest.$ac_objext conftest.beam conftest.$ac_ext
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status $ac_retval
2338 } # ac_fn_c_compute_int
2340 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2341 # ----------------------------------------------------
2342 # Tries to find if the field MEMBER exists in type AGGR, after including
2343 # INCLUDES, setting cache variable VAR accordingly.
2344 ac_fn_c_check_member ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2348 $as_echo_n "checking for $2.$3... " >&6; }
2349 if eval \${$4+:} false; then :
2350 $as_echo_n "(cached) " >&6
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2365 if ac_fn_c_try_compile "$LINENO"; then :
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2375 if (sizeof ac_aggr.$3)
2381 if ac_fn_c_try_compile "$LINENO"; then :
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395 } # ac_fn_c_check_member
2396 cat >config.log <<_ACEOF
2397 This file contains any messages produced by compilers while
2398 running configure, to aid debugging if configure makes a mistake.
2400 It was created by $as_me, which was
2401 generated by GNU Autoconf 2.69. Invocation command line was
2413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2422 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2423 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2426 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2427 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2428 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 $as_echo "PATH: $as_dir"
2453 # Keep a trace of the command line.
2454 # Strip out --no-create and --no-recursion so they do not pile up.
2455 # Strip out --silent because we don't want to record it for future runs.
2456 # Also quote any args containing shell meta-characters.
2457 # Make two passes to allow for proper duplicate-argument suppression.
2461 ac_must_keep_next=false
2467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2469 | -silent | --silent | --silen | --sile | --sil)
2472 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2475 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2477 as_fn_append ac_configure_args1 " '$ac_arg'"
2478 if test $ac_must_keep_next = true; then
2479 ac_must_keep_next=false # Got value, back to normal.
2482 *=* | --config-cache | -C | -disable-* | --disable-* \
2483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2485 | -with-* | --with-* | -without-* | --without-* | --x)
2486 case "$ac_configure_args0 " in
2487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2490 -* ) ac_must_keep_next=true ;;
2493 as_fn_append ac_configure_args " '$ac_arg'"
2498 { ac_configure_args0=; unset ac_configure_args0;}
2499 { ac_configure_args1=; unset ac_configure_args1;}
2501 # When interrupted or exit'd, cleanup temporary files, and complete
2502 # config.log. We remove comments because anyway the quotes in there
2503 # would cause problems or look ugly.
2504 # WARNING: Use '\'' to represent an apostrophe within the trap.
2505 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2506 trap 'exit_status=$?
2507 # Save into config.log some information that might help in debugging.
2511 $as_echo "## ---------------- ##
2512 ## Cache variables. ##
2513 ## ---------------- ##"
2515 # The following way of writing the cache mishandles newlines in values,
2517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2518 eval ac_val=\$$ac_var
2522 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2523 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2526 _ | IFS | as_nl) ;; #(
2527 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2528 *) { eval $ac_var=; unset $ac_var;} ;;
2533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2534 *${as_nl}ac_space=\ *)
2536 "s/'\''/'\''\\\\'\'''\''/g;
2537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2547 $as_echo "## ----------------- ##
2548 ## Output variables. ##
2549 ## ----------------- ##"
2551 for ac_var in $ac_subst_vars
2553 eval ac_val=\$$ac_var
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557 $as_echo "$ac_var='\''$ac_val'\''"
2561 if test -n "$ac_subst_files"; then
2562 $as_echo "## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##"
2566 for ac_var in $ac_subst_files
2568 eval ac_val=\$$ac_var
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 $as_echo "$ac_var='\''$ac_val'\''"
2577 if test -s confdefs.h; then
2578 $as_echo "## ----------- ##
2585 test "$ac_signal" != 0 &&
2586 $as_echo "$as_me: caught signal $ac_signal"
2587 $as_echo "$as_me: exit $exit_status"
2589 rm -f core *.core core.conftest.* &&
2590 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2593 for ac_signal in 1 2 13 15; do
2594 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2598 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2599 rm -f -r conftest* confdefs.h
2601 $as_echo "/* confdefs.h */" > confdefs.h
2603 # Predefined preprocessor variables.
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_NAME "$PACKAGE_NAME"
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_STRING "$PACKAGE_STRING"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_URL "$PACKAGE_URL"
2630 # Let the site file select an alternate cache file if it wants to.
2631 # Prefer an explicitly selected file to automatically selected ones.
2634 if test -n "$CONFIG_SITE"; then
2635 # We do not want a PATH search for config.site.
2636 case $CONFIG_SITE in #((
2637 -*) ac_site_file1=./$CONFIG_SITE;;
2638 */*) ac_site_file1=$CONFIG_SITE;;
2639 *) ac_site_file1=./$CONFIG_SITE;;
2641 elif test "x$prefix" != xNONE; then
2642 ac_site_file1=$prefix/share/config.site
2643 ac_site_file2=$prefix/etc/config.site
2645 ac_site_file1=$ac_default_prefix/share/config.site
2646 ac_site_file2=$ac_default_prefix/etc/config.site
2648 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2650 test "x$ac_site_file" = xNONE && continue
2651 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654 sed 's/^/| /' "$ac_site_file" >&5
2656 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 as_fn_error $? "failed to load site script $ac_site_file
2659 See \`config.log' for more details" "$LINENO" 5; }
2663 if test -r "$cache_file"; then
2664 # Some versions of bash will fail to source /dev/null (special files
2665 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2666 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2668 $as_echo "$as_me: loading cache $cache_file" >&6;}
2670 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2671 *) . "./$cache_file";;
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2676 $as_echo "$as_me: creating cache $cache_file" >&6;}
2680 gt_needs="$gt_needs "
2681 as_fn_append ac_header_list " stdlib.h"
2682 as_fn_append ac_header_list " unistd.h"
2683 as_fn_append ac_header_list " sys/param.h"
2684 as_fn_append ac_func_list " symlink"
2685 # Check that the precious variables saved in the cache have kept the same
2687 ac_cache_corrupted=false
2688 for ac_var in $ac_precious_vars; do
2689 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2690 eval ac_new_set=\$ac_env_${ac_var}_set
2691 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2692 eval ac_new_val=\$ac_env_${ac_var}_value
2693 case $ac_old_set,$ac_new_set in
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2696 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2697 ac_cache_corrupted=: ;;
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2704 if test "x$ac_old_val" != "x$ac_new_val"; then
2705 # differences in whitespace do not lead to failure.
2706 ac_old_val_w=`echo x $ac_old_val`
2707 ac_new_val_w=`echo x $ac_new_val`
2708 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2710 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2711 ac_cache_corrupted=:
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2714 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2715 eval $ac_var=\$ac_old_val
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2718 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2720 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2723 # Pass precious variables to config.status.
2724 if test "$ac_new_set" = set; then
2726 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2727 *) ac_arg=$ac_var=$ac_new_val ;;
2729 case " $ac_configure_args " in
2730 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2731 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2735 if $ac_cache_corrupted; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2739 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2740 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2742 ## -------------------- ##
2743 ## Main body of script. ##
2744 ## -------------------- ##
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 for ac_dir in config "$srcdir"/config; do
2756 if test -f "$ac_dir/install-sh"; then
2758 ac_install_sh="$ac_aux_dir/install-sh -c"
2760 elif test -f "$ac_dir/install.sh"; then
2762 ac_install_sh="$ac_aux_dir/install.sh -c"
2764 elif test -f "$ac_dir/shtool"; then
2766 ac_install_sh="$ac_aux_dir/shtool install -c"
2770 if test -z "$ac_aux_dir"; then
2771 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2774 # These three variables are undocumented and unsupported,
2775 # and are intended to be withdrawn in a future Autoconf release.
2776 # They can cause serious problems if a builder's source tree is in a directory
2777 # whose full name contains unusual characters.
2778 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2779 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2780 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2783 ac_config_headers="$ac_config_headers lib/config.h"
2789 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2790 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2791 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2792 | tr \" " " | awk '{print $1}'`
2793 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2794 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2795 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2797 if expr $YEAR ">" 1900 > /dev/null ; then
2798 E2FSPROGS_YEAR=$YEAR
2799 elif expr $YEAR ">" 90 >/dev/null ; then
2800 E2FSPROGS_YEAR=19$YEAR
2802 E2FSPROGS_YEAR=20$YEAR
2806 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2807 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2808 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2809 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2810 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2811 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2812 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2813 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2814 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2815 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2816 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2817 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2818 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2819 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2822 base_ver=`echo $E2FSPROGS_VERSION | \
2823 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2825 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2827 case $E2FSPROGS_VERSION in
2829 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2832 E2FSPROGS_PKGVER="$base_ver"
2836 unset DATE MONTH YEAR base_ver pre_vers date_spec
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2838 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2840 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2849 # Check whether --with-diet-libc was given.
2850 if test "${with_diet_libc+set}" = set; then :
2851 withval=$with_diet_libc; CC="diet cc -nostdinc"
2857 LIBS="$LIBS -lcompat"
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2860 $as_echo "CC=$CC" >&6; }
2862 # Make sure we can run config.sub.
2863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2864 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2867 $as_echo_n "checking build system type... " >&6; }
2868 if ${ac_cv_build+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 ac_build_alias=$build_alias
2872 test "x$ac_build_alias" = x &&
2873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2874 test "x$ac_build_alias" = x &&
2875 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2881 $as_echo "$ac_cv_build" >&6; }
2882 case $ac_cv_build in
2884 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2887 ac_save_IFS=$IFS; IFS='-'
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2897 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2901 $as_echo_n "checking host system type... " >&6; }
2902 if ${ac_cv_host+:} false; then :
2903 $as_echo_n "(cached) " >&6
2905 if test "x$host_alias" = x; then
2906 ac_cv_host=$ac_cv_build
2908 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2909 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2914 $as_echo "$ac_cv_host" >&6; }
2917 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2920 ac_save_IFS=$IFS; IFS='-'
2926 # Remember, the first character of IFS is used to create $*,
2927 # except with old shells:
2930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2978 if test -z "$ac_cv_prog_CC"; then
2980 # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="gcc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3016 if test "x$ac_ct_CC" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3031 if test -z "$CC"; then
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_CC="${ac_tool_prefix}cc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3072 if test -z "$CC"; then
3073 # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092 ac_prog_rejected=yes
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test $ac_prog_rejected = yes; then
3104 # We found a bogon in the path, so make sure we never use it.
3105 set dummy $ac_cv_prog_CC
3107 if test $# != 0; then
3108 # We chose a different compiler from the bogus one.
3109 # However, it has the same basename, so the bogon will be chosen
3110 # first if we set CC to just the basename; use the full file name.
3112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 for ac_prog in cl.exe
3132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$CC"; then
3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3169 test -n "$CC" && break
3172 if test -z "$CC"; then
3174 for ac_prog in cl.exe
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3183 if test -n "$ac_ct_CC"; then
3184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_CC="$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3213 test -n "$ac_ct_CC" && break
3216 if test "x$ac_ct_CC" = x; then
3219 case $cross_compiling:$ac_tool_warned in
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3232 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details" "$LINENO" 5; }
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241 for ac_option in --version -v -V -qversion; do
3242 { { ac_try="$ac_compiler $ac_option >&5"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251 if test -s conftest.err; then
3253 ... rest of stderr output deleted ...
3254 10q' conftest.err >conftest.er1
3255 cat conftest.er1 >&5
3257 rm -f conftest.er1 conftest.err
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279 $as_echo_n "checking whether the C compiler works... " >&6; }
3280 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282 # The possible output files:
3283 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286 for ac_file in $ac_files
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3295 if { { ac_try="$ac_link_default"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link_default") 2>&5
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3309 # so that the user can short-circuit this test for compilers unknown to
3311 for ac_file in $ac_files ''
3313 test -f "$ac_file" || continue
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318 # We found the default executable, but exeext='' is most
3322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 # We set ac_cv_exeext here because the later test for it is not
3327 # safe: cross compilers may not add the suffix if given an `-o'
3328 # argument, so we may need to know it at that point already.
3329 # Even if this section looks crufty: it has the advantage of
3336 test "$ac_cv_exeext" = no && ac_cv_exeext=
3341 if test -z "$ac_file"; then :
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error 77 "C compiler cannot create executables
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 ac_exeext=$ac_cv_exeext
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364 $as_echo_n "checking for suffix of executables... " >&6; }
3365 if { { ac_try="$ac_link"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link") 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3378 # work properly (i.e., refer to `conftest.exe'), while it won't with
3380 for ac_file in conftest.exe conftest conftest.*; do
3381 test -f "$ac_file" || continue
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393 See \`config.log' for more details" "$LINENO" 5; }
3395 rm -f conftest conftest$ac_cv_exeext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397 $as_echo "$ac_cv_exeext" >&6; }
3399 rm -f conftest.$ac_ext
3400 EXEEXT=$ac_cv_exeext
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3408 FILE *f = fopen ("conftest.out", "w");
3409 return ferror (f) || fclose (f) != 0;
3415 ac_clean_files="$ac_clean_files conftest.out"
3416 # Check that the compiler produces executables we can run. If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 if test "$cross_compiling" != yes; then
3421 { { ac_try="$ac_link"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3432 if { ac_try='./conftest$ac_cv_exeext'
3433 { { case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_try") 2>&5
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; }; then
3445 if test "$cross_compiling" = maybe; then
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot run C compiled programs.
3451 If you meant to cross compile, use \`--host'.
3452 See \`config.log' for more details" "$LINENO" 5; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457 $as_echo "$cross_compiling" >&6; }
3459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460 ac_clean_files=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if ${ac_cv_objext+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compile") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 for ac_file in conftest.o conftest.obj conftest.*; do
3490 test -f "$ac_file" || continue;
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details" "$LINENO" 5; }
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if ${ac_cv_c_compiler_gnu+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3531 if ac_fn_c_try_compile "$LINENO"; then :
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if ${ac_cv_prog_cc_g+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 ac_save_c_werror_flag=$ac_c_werror_flag
3555 ac_c_werror_flag=yes
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3584 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if ${ac_cv_prog_cc_c89+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 ac_cv_prog_cc_c89=no
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3653 s = g (p, va_arg (v,int));
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3659 function prototypes and stuff, but not '\xHH' hex character constants.
3660 These don't provoke an error unfortunately, instead are silently treated
3661 as 'x'. The following induces an error, until -std is added to get
3662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3663 array size at least. It's necessary to write '\x00'==0 to get something
3664 that's true only with -std. */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668 inside strings and character constants. */
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689 CC="$ac_save_CC $ac_arg"
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_c89=$ac_arg
3693 rm -f core conftest.err conftest.$ac_objext
3694 test "x$ac_cv_prog_cc_c89" != "xno" && break
3696 rm -f conftest.$ac_ext
3701 case "x$ac_cv_prog_cc_c89" in
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3709 CC="$CC $ac_cv_prog_cc_c89"
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3726 if ${ac_cv_lib_dl_dlopen+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 ac_check_lib_save_LIBS=$LIBS
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3734 /* Override any GCC internal prototype to avoid an error.
3735 Use char because int might match the return type of a GCC
3736 builtin and then its argument prototype would still apply. */
3749 if ac_fn_c_try_link "$LINENO"; then :
3750 ac_cv_lib_dl_dlopen=yes
3752 ac_cv_lib_dl_dlopen=no
3754 rm -f core conftest.err conftest.$ac_objext \
3755 conftest$ac_exeext conftest.$ac_ext
3756 LIBS=$ac_check_lib_save_LIBS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3766 # Check whether --with-cc was given.
3767 if test "${with_cc+set}" = set; then :
3768 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3772 # Check whether --with-ccopts was given.
3773 if test "${with_ccopts+set}" = set; then :
3774 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3778 # Check whether --with-ldopts was given.
3779 if test "${with_ldopts+set}" = set; then :
3780 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3827 if test -z "$ac_cv_prog_CC"; then
3829 # Extract the first word of "gcc", so it can be a program name with args.
3830 set dummy gcc; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -n "$ac_ct_CC"; then
3837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_CC="gcc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 $as_echo "$ac_ct_CC" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3865 if test "x$ac_ct_CC" = x; then
3868 case $cross_compiling:$ac_tool_warned in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3880 if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}cc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_CC="${ac_tool_prefix}cc"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 if test -n "$CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3921 if test -z "$CC"; then
3922 # Extract the first word of "cc", so it can be a program name with args.
3923 set dummy cc; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_prog_CC+:} false; then :
3927 $as_echo_n "(cached) " >&6
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3941 ac_prog_rejected=yes
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 if test $ac_prog_rejected = yes; then
3953 # We found a bogon in the path, so make sure we never use it.
3954 set dummy $ac_cv_prog_CC
3956 if test $# != 0; then
3957 # We chose a different compiler from the bogus one.
3958 # However, it has the same basename, so the bogon will be chosen
3959 # first if we set CC to just the basename; use the full file name.
3961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 for ac_prog in cl.exe
3981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_CC+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 if test -n "$CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011 $as_echo "$CC" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4018 test -n "$CC" && break
4021 if test -z "$CC"; then
4023 for ac_prog in cl.exe
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$ac_ct_CC"; then
4033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_CC="$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4053 if test -n "$ac_ct_CC"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4055 $as_echo "$ac_ct_CC" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4062 test -n "$ac_ct_CC" && break
4065 if test "x$ac_ct_CC" = x; then
4068 case $cross_compiling:$ac_tool_warned in
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error $? "no acceptable C compiler found in \$PATH
4084 See \`config.log' for more details" "$LINENO" 5; }
4086 # Provide some information about the compiler.
4087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4090 for ac_option in --version -v -V -qversion; do
4091 { { ac_try="$ac_compiler $ac_option >&5"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4100 if test -s conftest.err; then
4102 ... rest of stderr output deleted ...
4103 10q' conftest.err >conftest.er1
4104 cat conftest.er1 >&5
4106 rm -f conftest.er1 conftest.err
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4113 if ${ac_cv_c_compiler_gnu+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4141 if test $ac_compiler_gnu = yes; then
4146 ac_test_CFLAGS=${CFLAGS+set}
4147 ac_save_CFLAGS=$CFLAGS
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4150 if ${ac_cv_prog_cc_g+:} false; then :
4151 $as_echo_n "(cached) " >&6
4153 ac_save_c_werror_flag=$ac_c_werror_flag
4154 ac_c_werror_flag=yes
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"; then :
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4183 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4199 if ac_fn_c_try_compile "$LINENO"; then :
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4210 $as_echo "$ac_cv_prog_cc_g" >&6; }
4211 if test "$ac_test_CFLAGS" = set; then
4212 CFLAGS=$ac_save_CFLAGS
4213 elif test $ac_cv_prog_cc_g = yes; then
4214 if test "$GCC" = yes; then
4220 if test "$GCC" = yes; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4228 if ${ac_cv_prog_cc_c89+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 ac_cv_prog_cc_c89=no
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4252 s = g (p, va_arg (v,int));
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4258 function prototypes and stuff, but not '\xHH' hex character constants.
4259 These don't provoke an error unfortunately, instead are silently treated
4260 as 'x'. The following induces an error, until -std is added to get
4261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4262 array size at least. It's necessary to write '\x00'==0 to get something
4263 that's true only with -std. */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267 inside strings and character constants. */
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_c89=$ac_arg
4292 rm -f core conftest.err conftest.$ac_objext
4293 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 rm -f conftest.$ac_ext
4300 case "x$ac_cv_prog_cc_c89" in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 $as_echo "none needed" >&6; } ;;
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 $as_echo "unsupported" >&6; } ;;
4308 CC="$CC $ac_cv_prog_cc_c89"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 if test "x$ac_cv_prog_cc_c89" != xno; then :
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 if test "$GCC" = yes; then
4323 RDYNAMIC="-rdynamic"
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4333 # On Suns, sometimes $CPP names a directory.
4334 if test -n "$CPP" && test -d "$CPP"; then
4337 if test -z "$CPP"; then
4338 if ${ac_cv_prog_CPP+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 # Double quotes because CPP needs to be expanded
4342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4345 for ac_c_preproc_warn_flag in '' yes
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4356 # include <limits.h>
4358 # include <assert.h>
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4365 # Broken: fails on valid input.
4368 rm -f conftest.err conftest.i conftest.$ac_ext
4370 # OK, works on sane cases. Now check whether nonexistent headers
4371 # can be detected and how.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <ac_nonexistent.h>
4376 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: success on invalid input.
4380 # Passes both tests.
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.i conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then :
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4402 $as_echo "$CPP" >&6; }
4404 for ac_c_preproc_warn_flag in '' yes
4406 # Use a header file that comes with gcc, so configuring glibc
4407 # with a fresh cross-compiler works.
4408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409 # <limits.h> exists even on freestanding compilers.
4410 # On the NeXT, cc -E runs the code through the compiler's parser,
4411 # not just through cpp. "Syntax error" is here to catch this case.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4415 # include <limits.h>
4417 # include <assert.h>
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4424 # Broken: fails on valid input.
4427 rm -f conftest.err conftest.i conftest.$ac_ext
4429 # OK, works on sane cases. Now check whether nonexistent headers
4430 # can be detected and how.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <ac_nonexistent.h>
4435 if ac_fn_c_try_cpp "$LINENO"; then :
4436 # Broken: success on invalid input.
4439 # Passes both tests.
4443 rm -f conftest.err conftest.i conftest.$ac_ext
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.i conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then :
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details" "$LINENO" 5; }
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4464 $as_echo_n "checking for additional special compiler flags... " >&6; }
4465 if test "$GCC" = yes
4468 alpha) addcflags="-mieee" ;;
4471 if test "x$addcflags" != x
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4474 $as_echo "$addcflags" >&6; }
4475 CFLAGS="$addcflags $CFLAGS"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4478 $as_echo "(none)" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4482 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4483 if ${ac_cv_path_GREP+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 if test -z "$GREP"; then
4487 ac_path_GREP_found=false
4488 # Loop through the user's path and test for each of PROGNAME-LIST
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 test -z "$as_dir" && as_dir=.
4494 for ac_prog in grep ggrep; do
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4497 as_fn_executable_p "$ac_path_GREP" || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499 # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4505 $as_echo_n 0123456789 >"conftest.in"
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 $as_echo 'GREP' >> "conftest.nl"
4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 as_fn_arith $ac_count + 1 && ac_count=$as_val
4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_GREP="$ac_path_GREP"
4518 ac_path_GREP_max=$ac_count
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 $ac_path_GREP_found && break 3
4531 if test -z "$ac_cv_path_GREP"; then
4532 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 ac_cv_path_GREP=$GREP
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4540 $as_echo "$ac_cv_path_GREP" >&6; }
4541 GREP="$ac_cv_path_GREP"
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4545 $as_echo_n "checking for egrep... " >&6; }
4546 if ${ac_cv_path_EGREP+:} false; then :
4547 $as_echo_n "(cached) " >&6
4549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4550 then ac_cv_path_EGREP="$GREP -E"
4552 if test -z "$EGREP"; then
4553 ac_path_EGREP_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in egrep; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4563 as_fn_executable_p "$ac_path_EGREP" || continue
4564 # Check for GNU ac_path_EGREP and select it if it is found.
4565 # Check for GNU $ac_path_EGREP
4566 case `"$ac_path_EGREP" --version 2>&1` in
4568 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4571 $as_echo_n 0123456789 >"conftest.in"
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo 'EGREP' >> "conftest.nl"
4578 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_EGREP="$ac_path_EGREP"
4584 ac_path_EGREP_max=$ac_count
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 $ac_path_EGREP_found && break 3
4597 if test -z "$ac_cv_path_EGREP"; then
4598 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 ac_cv_path_EGREP=$EGREP
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4607 $as_echo "$ac_cv_path_EGREP" >&6; }
4608 EGREP="$ac_cv_path_EGREP"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4612 $as_echo_n "checking for ANSI C header files... " >&6; }
4613 if ${ac_cv_header_stdc+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_header_stdc=yes
4634 ac_cv_header_stdc=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 if test $ac_cv_header_stdc = yes; then
4639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4646 $EGREP "memchr" >/dev/null 2>&1; then :
4649 ac_cv_header_stdc=no
4655 if test $ac_cv_header_stdc = yes; then
4656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev/null 2>&1; then :
4666 ac_cv_header_stdc=no
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then :
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4681 #if ((' ' & 0x0FF) == 0x020)
4682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 # define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
4687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4704 if ac_fn_c_try_run "$LINENO"; then :
4707 ac_cv_header_stdc=no
4709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4710 conftest.$ac_objext conftest.beam conftest.$ac_ext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4716 $as_echo "$ac_cv_header_stdc" >&6; }
4717 if test $ac_cv_header_stdc = yes; then
4719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4725 inttypes.h stdint.h unistd.h
4727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4731 cat >>confdefs.h <<_ACEOF
4732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4742 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4749 if test "$MINIX" = yes; then
4751 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4754 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4757 $as_echo "#define _MINIX 1" >>confdefs.h
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4764 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4770 # define __EXTENSIONS__ 1
4771 $ac_includes_default
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_safe_to_define___extensions__=yes
4783 ac_cv_safe_to_define___extensions__=no
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4789 test $ac_cv_safe_to_define___extensions__ = yes &&
4790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4805 # Check whether --with-root-prefix was given.
4806 if test "${with_root_prefix+set}" = set; then :
4807 withval=$with_root_prefix; root_prefix=$withval
4811 # Check whether --enable-maintainer-mode was given.
4812 if test "${enable_maintainer_mode+set}" = set; then :
4813 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4817 $as_echo "Disabling maintainer mode" >&6; }
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4821 $as_echo "Enabling maintainer mode" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4827 $as_echo "Disabling maintainer mode by default" >&6; }
4832 # Check whether --enable-symlink-install was given.
4833 if test "${enable_symlink_install+set}" = set; then :
4834 enableval=$enable_symlink_install; if test "$enableval" = "no"
4836 LINK_INSTALL_FLAGS=-f
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4838 $as_echo "Disabling symlinks for install" >&6; }
4840 LINK_INSTALL_FLAGS=-sf
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4842 $as_echo "Enabling symlinks for install" >&6; }
4846 LINK_INSTALL_FLAGS=-f
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4848 $as_echo "Disabling symlinks for install by default" >&6; }
4853 relative_symlink_defined=
4854 # Check whether --enable-relative-symlinks was given.
4855 if test "${enable_relative_symlinks+set}" = set; then :
4856 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4859 relative_symlink_defined=yes
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4861 $as_echo "Disabling relative symlinks for install" >&6; }
4863 SYMLINK_RELATIVE=--relative
4864 relative_symlink_defined=yes
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4866 $as_echo "Enabling relative symlinks for install" >&6; }
4870 # Check whether --enable-symlink-relative-symlinks was given.
4871 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4872 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4874 SYMLINK_RELATIVE=yes
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4876 $as_echo "Disabling relative symlinks for install" >&6; }
4878 SYMLINK_RELATIVE=--relative
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4880 $as_echo "Enabling relative symlinks for install" >&6; }
4884 if test -z "$relative_symlink_defined"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4888 $as_echo "Disabling relative symlinks for install by default" >&6; }
4894 # Check whether --enable-symlink-build was given.
4895 if test "${enable_symlink_build+set}" = set; then :
4896 enableval=$enable_symlink_build; if test "$enableval" = "no"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4900 $as_echo "Disabling symlinks for build" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4904 $as_echo "Enabling symlinks for build" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4910 $as_echo "Disabling symlinks for build by default" >&6; }
4915 # Check whether --enable-verbose-makecmds was given.
4916 if test "${enable_verbose_makecmds+set}" = set; then :
4917 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4920 $as_echo "Disabling verbose make commands" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4926 $as_echo "Enabling verbose make commands" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4934 $as_echo "Disabling verbose make commands" >&6; }
4944 E2_PKG_CONFIG_STATIC=--static
4947 # Check whether --enable-elf-shlibs was given.
4948 if test "${enable_elf_shlibs+set}" = set; then :
4949 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4952 MAKEFILE_ELF=/dev/null
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4954 $as_echo "Disabling ELF shared libraries" >&6; }
4956 E2_PKG_CONFIG_STATIC=
4958 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4961 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4967 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4969 $as_echo "Enabling ELF shared libraries" >&6; }
4973 MAKEFILE_ELF=/dev/null
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4976 $as_echo "Disabling ELF shared libraries by default" >&6; }
4982 # Check whether --enable-bsd-shlibs was given.
4983 if test "${enable_bsd_shlibs+set}" = set; then :
4984 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4987 MAKEFILE_BSDLIB=/dev/null
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4989 $as_echo "Disabling BSD shared libraries" >&6; }
4991 E2_PKG_CONFIG_STATIC=
4993 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4997 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5002 $as_echo "Enabling BSD shared libraries" >&6; }
5006 MAKEFILE_BSDLIB=/dev/null
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5009 $as_echo "Disabling BSD shared libraries by default" >&6; }
5015 # Check whether --enable-profile was given.
5016 if test "${enable_profile+set}" = set; then :
5017 enableval=$enable_profile; if test "$enableval" = "no"
5020 MAKEFILE_PROFILE=/dev/null
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5022 $as_echo "Disabling profiling libraries" >&6; }
5025 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5026 PROFILED_LIB_EXT=_p.a
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5028 $as_echo "Building profiling libraries" >&6; }
5033 MAKEFILE_PROFILE=/dev/null
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5035 $as_echo "Disabling profiling libraries by default" >&6; }
5041 # Check whether --enable-gcov was given.
5042 if test "${enable_gcov+set}" = set; then :
5043 enableval=$enable_gcov; if test "$enableval" = "yes"
5045 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5046 LDFLAGS="-fprofile-arcs -ftest-coverage"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5048 $as_echo "Enabling gcov support" >&6; }
5053 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5054 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5055 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5056 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5057 # Check whether --enable-hardening was given.
5058 if test "${enable_hardening+set}" = set; then :
5059 enableval=$enable_hardening; if test "$enableval" = "yes"
5061 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5062 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5063 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5064 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5065 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5066 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5067 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5068 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5070 $as_echo "Enabling hardening support" >&6; }
5080 # Check whether --enable-jbd-debug was given.
5081 if test "${enable_jbd_debug+set}" = set; then :
5082 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5085 $as_echo "Disabling journal debugging" >&6; }
5088 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5091 $as_echo "Enabling journal debugging" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5096 $as_echo "Disabling journal debugging by default" >&6; }
5100 # Check whether --enable-blkid-debug was given.
5101 if test "${enable_blkid_debug+set}" = set; then :
5102 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5105 $as_echo "Disabling blkid debugging" >&6; }
5108 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5111 $as_echo "Enabling blkid debugging" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5116 $as_echo "Disabling blkid debugging by default" >&6; }
5120 # Check whether --enable-testio-debug was given.
5121 if test "${enable_testio_debug+set}" = set; then :
5122 enableval=$enable_testio_debug;
5123 if test "$enableval" = "no"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5126 $as_echo "Disabling testio debugging" >&6; }
5130 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5133 $as_echo "Enabling testio debugging" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5138 $as_echo "Enabling testio debugging by default" >&6; }
5139 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5153 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5160 $as_echo_n "(cached) " >&6
5164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5186 if test -n "$PKG_CONFIG"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5188 $as_echo "$PKG_CONFIG" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_path_PKG_CONFIG"; then
5197 ac_pt_PKG_CONFIG=$PKG_CONFIG
5198 # Extract the first word of "pkg-config", so it can be a program name with args.
5199 set dummy pkg-config; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 case $ac_pt_PKG_CONFIG in
5207 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5229 if test -n "$ac_pt_PKG_CONFIG"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5231 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5237 if test "x$ac_pt_PKG_CONFIG" = x; then
5240 case $cross_compiling:$ac_tool_warned in
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244 ac_tool_warned=yes ;;
5246 PKG_CONFIG=$ac_pt_PKG_CONFIG
5249 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5253 if test -n "$PKG_CONFIG"; then
5254 _pkg_min_version=0.9.0
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5256 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5257 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5271 DEPPROFILED_LIBUUID=
5273 # Check whether --enable-libuuid was given.
5274 if test "${enable_libuuid+set}" = set; then :
5275 enableval=$enable_libuuid; if test "$enableval" = "no"
5277 if test -z "$PKG_CONFIG"; then
5278 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5282 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5283 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5284 $as_echo_n "(cached) " >&6
5286 ac_check_lib_save_LIBS=$LIBS
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5291 /* Override any GCC internal prototype to avoid an error.
5292 Use char because int might match the return type of a GCC
5293 builtin and then its argument prototype would still apply. */
5297 char uuid_generate ();
5301 return uuid_generate ();
5306 if ac_fn_c_try_link "$LINENO"; then :
5307 ac_cv_lib_uuid_uuid_generate=yes
5309 ac_cv_lib_uuid_uuid_generate=no
5311 rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5316 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5317 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5318 LIBUUID=`$PKG_CONFIG --libs uuid`;
5319 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5321 as_fn_error $? "external uuid library not found" "$LINENO" 5
5324 PROFILED_LIBUUID=$LIBUUID
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5327 $as_echo "Disabling private uuid library" >&6; }
5329 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5331 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5332 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5333 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5334 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5336 $as_echo "Enabling private uuid library" >&6; }
5340 if test -n "$PKG_CONFIG"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5342 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5343 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5344 $as_echo_n "(cached) " >&6
5346 ac_check_lib_save_LIBS=$LIBS
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 /* Override any GCC internal prototype to avoid an error.
5352 Use char because int might match the return type of a GCC
5353 builtin and then its argument prototype would still apply. */
5357 char uuid_generate ();
5361 return uuid_generate ();
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 ac_cv_lib_uuid_uuid_generate=yes
5369 ac_cv_lib_uuid_uuid_generate=no
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5376 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5377 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5378 LIBUUID=`$PKG_CONFIG --libs uuid`;
5379 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5383 if test -n "$LIBUUID"; then
5384 PROFILED_LIBUUID=$LIBUUID
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5387 $as_echo "Using system uuid by default" >&6; }
5389 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5391 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5392 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5393 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5394 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5396 $as_echo "Enabling private uuid library by default" >&6; }
5415 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5422 $as_echo_n "(cached) " >&6
5426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5448 if test -n "$PKG_CONFIG"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5450 $as_echo "$PKG_CONFIG" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5458 if test -z "$ac_cv_path_PKG_CONFIG"; then
5459 ac_pt_PKG_CONFIG=$PKG_CONFIG
5460 # Extract the first word of "pkg-config", so it can be a program name with args.
5461 set dummy pkg-config; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 case $ac_pt_PKG_CONFIG in
5469 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5491 if test -n "$ac_pt_PKG_CONFIG"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5493 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5499 if test "x$ac_pt_PKG_CONFIG" = x; then
5502 case $cross_compiling:$ac_tool_warned in
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned=yes ;;
5508 PKG_CONFIG=$ac_pt_PKG_CONFIG
5511 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5515 if test -n "$PKG_CONFIG"; then
5516 _pkg_min_version=0.9.0
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5518 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5519 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5533 DEPPROFILED_LIBBLKID=
5536 # Check whether --enable-libblkid was given.
5537 if test "${enable_libblkid+set}" = set; then :
5538 enableval=$enable_libblkid; if test "$enableval" = "no"
5540 if test -z "$PKG_CONFIG"; then
5541 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5545 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5546 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5547 $as_echo_n "(cached) " >&6
5549 ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lblkid -luuid $LIBS"
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5554 /* Override any GCC internal prototype to avoid an error.
5555 Use char because int might match the return type of a GCC
5556 builtin and then its argument prototype would still apply. */
5560 char blkid_get_cache ();
5564 return blkid_get_cache ();
5569 if ac_fn_c_try_link "$LINENO"; then :
5570 ac_cv_lib_blkid_blkid_get_cache=yes
5572 ac_cv_lib_blkid_blkid_get_cache=no
5574 rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext conftest.$ac_ext
5576 LIBS=$ac_check_lib_save_LIBS
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5579 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5580 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5581 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5582 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5584 as_fn_error $? "external blkid library not found" "$LINENO" 5
5588 PROFILED_LIBBLKID=$LIBBLKID
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5590 $as_echo "Disabling private blkid library" >&6; }
5592 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5593 DEPLIBBLKID=$LIBBLKID
5594 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5595 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5596 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5597 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5598 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5601 $as_echo "Enabling private blkid library" >&6; }
5605 if test -n "$PKG_CONFIG"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5607 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5608 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 ac_check_lib_save_LIBS=$LIBS
5612 LIBS="-lblkid $LIBS"
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 /* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5622 char blkid_get_cache ();
5626 return blkid_get_cache ();
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_lib_blkid_blkid_get_cache=yes
5634 ac_cv_lib_blkid_blkid_get_cache=no
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5641 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5642 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5643 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5644 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5648 if test -n "$LIBBLKID"; then
5650 PROFILED_LIBBLKID=$LIBBLKID
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5652 $as_echo "Using system blkid library by default" >&6; }
5654 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5655 DEPLIBBLKID=$LIBBLKID
5656 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5657 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5658 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5659 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5660 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5663 $as_echo "Enabling private blkid library by default" >&6; }
5676 # Check whether --enable-backtrace was given.
5677 if test "${enable_backtrace+set}" = set; then :
5678 enableval=$enable_backtrace; if test "$enableval" = "no"
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5681 $as_echo "Disabling use of backtrace" >&6; }
5682 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5686 $as_echo "Enabling use of backtrace" >&6; }
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5691 $as_echo "Enabling use of backtrace by default" >&6; }
5695 # Check whether --enable-debugfs was given.
5696 if test "${enable_debugfs+set}" = set; then :
5697 enableval=$enable_debugfs; if test "$enableval" = "no"
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5700 $as_echo "Disabling debugfs support" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5705 $as_echo "Enabling debugfs support" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5710 $as_echo "Enabling debugfs support by default" >&6; }
5716 # Check whether --enable-imager was given.
5717 if test "${enable_imager+set}" = set; then :
5718 enableval=$enable_imager; if test "$enableval" = "no"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5721 $as_echo "Disabling e2image support" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5726 $as_echo "Enabling e2image support" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5731 $as_echo "Enabling e2image support by default" >&6; }
5737 # Check whether --enable-resizer was given.
5738 if test "${enable_resizer+set}" = set; then :
5739 enableval=$enable_resizer; if test "$enableval" = "no"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5742 $as_echo "Disabling e2resize support" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5747 $as_echo "Enabling e2resize support" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5752 $as_echo "Enabling e2resize support by default" >&6; }
5758 # Check whether --enable-defrag was given.
5759 if test "${enable_defrag+set}" = set; then :
5760 enableval=$enable_defrag; if test "$enableval" = "no"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5763 $as_echo "Disabling e4defrag support" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5768 $as_echo "Enabling e4defrag support" >&6; }
5772 if test -z "$WITH_DIET_LIBC"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5775 $as_echo "Enabling e4defrag support by default" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5779 $as_echo "Disabling e4defrag support by default" >&6; }
5786 # Check whether --enable-fsck was given.
5787 if test "${enable_fsck+set}" = set; then :
5788 enableval=$enable_fsck; if test "$enableval" = "no"
5790 FSCK_PROG='' FSCK_MAN=''
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5792 $as_echo "Not building fsck wrapper" >&6; }
5794 FSCK_PROG=fsck FSCK_MAN=fsck.8
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5796 $as_echo "Building fsck wrapper" >&6; }
5802 FSCK_PROG='' FSCK_MAN=''
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5804 $as_echo "Not building fsck wrapper by default" >&6; }
5807 FSCK_PROG=fsck FSCK_MAN=fsck.8
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5809 $as_echo "Building fsck wrapper by default" >&6; }
5816 # Check whether --enable-e2initrd-helper was given.
5817 if test "${enable_e2initrd_helper+set}" = set; then :
5818 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5820 E2INITRD_PROG='' E2INITRD_MAN=''
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5822 $as_echo "Not building e2initrd helper" >&6; }
5824 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5826 $as_echo "Building e2initrd helper" >&6; }
5830 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5832 $as_echo "Building e2initrd helper by default" >&6; }
5838 # Check whether --enable-tls was given.
5839 if test "${enable_tls+set}" = set; then :
5840 enableval=$enable_tls; if test "$enableval" = "no"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5844 $as_echo "Disabling thread local support" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5848 $as_echo "Enabling thread local support" >&6; }
5852 if test -n "$WITH_DIET_LIBC"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5856 $as_echo "Diet libc does not support thread local support" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5860 $as_echo "Try using thread local support by default" >&6; }
5865 if test "$try_tls" = "yes"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5869 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5870 if ${ac_cv_tls+:} false; then :
5871 $as_echo_n "(cached) " >&6
5874 ax_tls_keywords="__thread __declspec(thread) none"
5875 for ax_tls_keyword in $ax_tls_keywords; do
5876 case $ax_tls_keyword in
5877 none) ac_cv_tls=none ; break ;;
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5884 static $ax_tls_keyword int bar;
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_tls=$ax_tls_keyword ; break
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 if test "$ac_cv_tls" != "none"; then
5910 cat >>confdefs.h <<_ACEOF
5911 #define TLS $ac_cv_tls
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5916 $as_echo "$ac_cv_tls" >&6; }
5920 # Check whether --enable-uuidd was given.
5921 if test "${enable_uuidd+set}" = set; then :
5922 enableval=$enable_uuidd; if test "$enableval" = "no"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5925 $as_echo "Not building uuidd" >&6; }
5928 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5932 $as_echo "Building uuidd" >&6; }
5936 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5938 if test -z "$UUID_CMT"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5942 $as_echo "Building uuidd by default" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5946 $as_echo "Disabling uuidd by default" >&6; }
5953 # Check whether --enable-mmp was given.
5954 if test "${enable_mmp+set}" = set; then :
5955 enableval=$enable_mmp; if test "$enableval" = "no"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5958 $as_echo "Disabling mmp support" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5961 $as_echo "Enabling mmp support" >&6; }
5962 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5968 $as_echo "Enabling mmp support by default" >&6; }
5969 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5975 # Check whether --enable-tdb was given.
5976 if test "${enable_tdb+set}" = set; then :
5977 enableval=$enable_tdb; if test "$enableval" = "no"
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5980 $as_echo "Disabling tdb support" >&6; }
5982 TDB_MAN_COMMENT='.\"'
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5985 $as_echo "Enabling tdb support" >&6; }
5986 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5994 $as_echo "Enabling mmp support by default" >&6; }
5995 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6005 # Check whether --enable-bmap-stats was given.
6006 if test "${enable_bmap_stats+set}" = set; then :
6007 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6010 $as_echo "Disabling bitmap statistics support" >&6; }
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6013 $as_echo "Enabling bitmap statistics support" >&6; }
6014 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6020 $as_echo "Enabling bitmap statistics support by default" >&6; }
6021 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6027 # Check whether --enable-bmap-stats-ops was given.
6028 if test "${enable_bmap_stats_ops+set}" = set; then :
6029 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6032 $as_echo "Disabling additional bitmap statistics" >&6; }
6034 if test "x${enable_bmap_stats}" = "xno"; then :
6035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6037 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6038 See \`config.log' for more details" "$LINENO" 5; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6042 $as_echo "Enabling additional bitmap statistics" >&6; }
6043 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6049 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6053 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6055 GETTEXT_PACKAGE=e2fsprogs
6057 VERSION="$E2FSPROGS_VERSION"
6060 cat >>confdefs.h <<_ACEOF
6061 #define PACKAGE "$PACKAGE"
6065 cat >>confdefs.h <<_ACEOF
6066 #define VERSION "$VERSION"
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6076 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6077 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 cat >conftest.make <<\_ACEOF
6083 @echo '@@@%%%=$(MAKE)=@@@%%%'
6085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6088 eval ac_cv_prog_make_${ac_make}_set=yes;;
6090 eval ac_cv_prog_make_${ac_make}_set=no;;
6094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6096 $as_echo "yes" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 SET_MAKE="MAKE=${MAKE-make}"
6104 # Find a good install program. We prefer a C program (faster),
6105 # so one script is as good as another. But avoid the broken or
6106 # incompatible versions:
6107 # SysV /etc/install, /usr/sbin/install
6108 # SunOS /usr/etc/install
6109 # IRIX /sbin/install
6111 # AmigaOS /C/install, which installs bootblocks on floppy discs
6112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6115 # OS/2's system install, which has a completely different semantic
6116 # ./install, which can be erroneously created by make from ./install.sh.
6117 # Reject install programs that cannot install multiple files.
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6119 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6120 if test -z "$INSTALL"; then
6121 if ${ac_cv_path_install+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 # Account for people who put trailing slashes in PATH elements.
6130 case $as_dir/ in #((
6131 ./ | .// | /[cC]/* | \
6132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6133 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6136 # OSF1 and SCO ODT 3.0 have their own names for install.
6137 # Don't use installbsd from OSF since it installs stuff as root
6139 for ac_prog in ginstall scoinst install; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6142 if test $ac_prog = install &&
6143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6144 # AIX install. It has an incompatible calling convention.
6146 elif test $ac_prog = install &&
6147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6148 # program-specific install script used by HP pwplus--don't use.
6151 rm -rf conftest.one conftest.two conftest.dir
6152 echo one > conftest.one
6153 echo two > conftest.two
6155 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6156 test -s conftest.one && test -s conftest.two &&
6157 test -s conftest.dir/conftest.one &&
6158 test -s conftest.dir/conftest.two
6160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6173 rm -rf conftest.one conftest.two conftest.dir
6176 if test "${ac_cv_path_install+set}" = set; then
6177 INSTALL=$ac_cv_path_install
6179 # As a last resort, use the slow shell script. Don't cache a
6180 # value for INSTALL within a source directory, because that will
6181 # break other packages using the cache if that directory is
6182 # removed, or if the value is a relative name.
6183 INSTALL=$ac_install_sh
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6187 $as_echo "$INSTALL" >&6; }
6189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6190 # It thinks the first close brace ends the variable substitution.
6191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6198 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6199 if test -z "$MKDIR_P"; then
6200 if ${ac_cv_path_mkdir+:} false; then :
6201 $as_echo_n "(cached) " >&6
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6207 test -z "$as_dir" && as_dir=.
6208 for ac_prog in mkdir gmkdir; do
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6211 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6212 'mkdir (GNU coreutils) '* | \
6213 'mkdir (coreutils) '* | \
6214 'mkdir (fileutils) '4.1*)
6215 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6225 test -d ./--version && rmdir ./--version
6226 if test "${ac_cv_path_mkdir+set}" = set; then
6227 MKDIR_P="$ac_cv_path_mkdir -p"
6229 # As a last resort, use the slow shell script. Don't cache a
6230 # value for MKDIR_P within a source directory, because that will
6231 # break other packages using the cache if that directory is
6232 # removed, or if the value is a relative name.
6233 MKDIR_P="$ac_install_sh -d"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6237 $as_echo "$MKDIR_P" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6240 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6241 if ${ac_cv_path_SED+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6245 for ac_i in 1 2 3 4 5 6 7; do
6246 ac_script="$ac_script$as_nl$ac_script"
6248 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6249 { ac_script=; unset ac_script;}
6250 if test -z "$SED"; then
6251 ac_path_SED_found=false
6252 # Loop through the user's path and test for each of PROGNAME-LIST
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_prog in sed gsed; do
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6261 as_fn_executable_p "$ac_path_SED" || continue
6262 # Check for GNU ac_path_SED and select it if it is found.
6263 # Check for GNU $ac_path_SED
6264 case `"$ac_path_SED" --version 2>&1` in
6266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6269 $as_echo_n 0123456789 >"conftest.in"
6272 cat "conftest.in" "conftest.in" >"conftest.tmp"
6273 mv "conftest.tmp" "conftest.in"
6274 cp "conftest.in" "conftest.nl"
6275 $as_echo '' >> "conftest.nl"
6276 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6278 as_fn_arith $ac_count + 1 && ac_count=$as_val
6279 if test $ac_count -gt ${ac_path_SED_max-0}; then
6280 # Best one so far, save it but keep looking for a better one
6281 ac_cv_path_SED="$ac_path_SED"
6282 ac_path_SED_max=$ac_count
6284 # 10*(2^10) chars as input seems more than enough
6285 test $ac_count -gt 10 && break
6287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6290 $ac_path_SED_found && break 3
6295 if test -z "$ac_cv_path_SED"; then
6296 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6304 $as_echo "$ac_cv_path_SED" >&6; }
6305 SED="$ac_cv_path_SED"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6310 $as_echo_n "checking whether NLS is requested... " >&6; }
6311 # Check whether --enable-nls was given.
6312 if test "${enable_nls+set}" = set; then :
6313 enableval=$enable_nls; USE_NLS=$enableval
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6319 $as_echo "$USE_NLS" >&6; }
6324 GETTEXT_MACRO_VERSION=0.18
6329 # Prepare PATH_SEPARATOR.
6330 # The user is always right.
6331 if test "${PATH_SEPARATOR+set}" != set; then
6332 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6333 # contains only /bin. Note that ksh looks also at the FPATH variable,
6334 # so we have to set that as well for the test.
6336 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6337 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6338 || PATH_SEPARATOR=';'
6342 # Find out how to test for executable files. Don't use a zero-byte file,
6343 # as systems may use methods other than mode bits to determine executability.
6344 cat >conf$$.file <<_ASEOF
6348 chmod +x conf$$.file
6349 if test -x conf$$.file >/dev/null 2>&1; then
6350 ac_executable_p="test -x"
6352 ac_executable_p="test -f"
6356 # Extract the first word of "msgfmt", so it can be a program name with args.
6357 set dummy msgfmt; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_path_MSGFMT+:} false; then :
6361 $as_echo_n "(cached) " >&6
6365 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6368 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6369 for ac_dir in $PATH; do
6371 test -z "$ac_dir" && ac_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6374 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6375 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6376 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6377 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6384 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6388 MSGFMT="$ac_cv_path_MSGFMT"
6389 if test "$MSGFMT" != ":"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6391 $as_echo "$MSGFMT" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6397 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6398 set dummy gmsgfmt; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_path_GMSGFMT+:} false; then :
6402 $as_echo_n "(cached) " >&6
6406 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6428 GMSGFMT=$ac_cv_path_GMSGFMT
6429 if test -n "$GMSGFMT"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6431 $as_echo "$GMSGFMT" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6439 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6440 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6441 *) MSGFMT_015=$MSGFMT ;;
6444 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6445 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6446 *) GMSGFMT_015=$GMSGFMT ;;
6451 # Prepare PATH_SEPARATOR.
6452 # The user is always right.
6453 if test "${PATH_SEPARATOR+set}" != set; then
6454 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6455 # contains only /bin. Note that ksh looks also at the FPATH variable,
6456 # so we have to set that as well for the test.
6458 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6459 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6460 || PATH_SEPARATOR=';'
6464 # Find out how to test for executable files. Don't use a zero-byte file,
6465 # as systems may use methods other than mode bits to determine executability.
6466 cat >conf$$.file <<_ASEOF
6470 chmod +x conf$$.file
6471 if test -x conf$$.file >/dev/null 2>&1; then
6472 ac_executable_p="test -x"
6474 ac_executable_p="test -f"
6478 # Extract the first word of "xgettext", so it can be a program name with args.
6479 set dummy xgettext; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_path_XGETTEXT+:} false; then :
6483 $as_echo_n "(cached) " >&6
6487 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6490 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6491 for ac_dir in $PATH; do
6493 test -z "$ac_dir" && ac_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6496 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6497 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6498 (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
6499 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6510 XGETTEXT="$ac_cv_path_XGETTEXT"
6511 if test "$XGETTEXT" != ":"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6513 $as_echo "$XGETTEXT" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6521 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6522 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6523 *) XGETTEXT_015=$XGETTEXT ;;
6528 # Prepare PATH_SEPARATOR.
6529 # The user is always right.
6530 if test "${PATH_SEPARATOR+set}" != set; then
6531 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6532 # contains only /bin. Note that ksh looks also at the FPATH variable,
6533 # so we have to set that as well for the test.
6535 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6536 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6537 || PATH_SEPARATOR=';'
6541 # Find out how to test for executable files. Don't use a zero-byte file,
6542 # as systems may use methods other than mode bits to determine executability.
6543 cat >conf$$.file <<_ASEOF
6547 chmod +x conf$$.file
6548 if test -x conf$$.file >/dev/null 2>&1; then
6549 ac_executable_p="test -x"
6551 ac_executable_p="test -f"
6555 # Extract the first word of "msgmerge", so it can be a program name with args.
6556 set dummy msgmerge; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_path_MSGMERGE+:} false; then :
6560 $as_echo_n "(cached) " >&6
6564 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6567 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6568 for ac_dir in $PATH; do
6570 test -z "$ac_dir" && ac_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6573 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6574 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6575 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6582 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6586 MSGMERGE="$ac_cv_path_MSGMERGE"
6587 if test "$MSGMERGE" != ":"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6589 $as_echo "$MSGMERGE" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6596 test -n "$localedir" || localedir='${datadir}/locale'
6599 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6602 ac_config_commands="$ac_config_commands po-directories"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6607 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6608 if ${ac_cv_gnu_library_2+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 #include <features.h>
6615 #ifdef __GNU_LIBRARY__
6616 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6623 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6624 ac_cv_gnu_library_2=yes
6626 ac_cv_gnu_library_2=no
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6634 $as_echo "$ac_cv_gnu_library_2" >&6; }
6636 GLIBC2="$ac_cv_gnu_library_2"
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_RANLIB+:} false; then :
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6670 $as_echo "$RANLIB" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679 ac_ct_RANLIB=$RANLIB
6680 # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$ac_ct_RANLIB"; then
6688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_RANLIB="ranlib"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6710 $as_echo "$ac_ct_RANLIB" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_RANLIB" = x; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6725 RANLIB=$ac_ct_RANLIB
6728 RANLIB="$ac_cv_prog_RANLIB"
6735 if test -n "$GCC"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6737 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6738 if ${gl_cv_cc_vis_werror+:} false; then :
6739 $as_echo_n "(cached) " >&6
6742 gl_save_CFLAGS="$CFLAGS"
6743 CFLAGS="$CFLAGS -Werror"
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 gl_cv_cc_vis_werror=yes
6758 gl_cv_cc_vis_werror=no
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 CFLAGS="$gl_save_CFLAGS"
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6765 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6767 $as_echo_n "checking for simple visibility declarations... " >&6; }
6768 if ${gl_cv_cc_visibility+:} false; then :
6769 $as_echo_n "(cached) " >&6
6772 gl_save_CFLAGS="$CFLAGS"
6773 CFLAGS="$CFLAGS -fvisibility=hidden"
6774 if test $gl_cv_cc_vis_werror = yes; then
6775 CFLAGS="$CFLAGS -Werror"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6780 extern __attribute__((__visibility__("default"))) int exportedvar;
6781 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6782 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6783 void dummyfunc (void) {}
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 gl_cv_cc_visibility=yes
6796 gl_cv_cc_visibility=no
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 CFLAGS="$gl_save_CFLAGS"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6803 $as_echo "$gl_cv_cc_visibility" >&6; }
6804 if test $gl_cv_cc_visibility = yes; then
6805 CFLAG_VISIBILITY="-fvisibility=hidden"
6812 cat >>confdefs.h <<_ACEOF
6813 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6818 $as_echo_n "checking for inline... " >&6; }
6819 if ${ac_cv_c_inline+:} false; then :
6820 $as_echo_n "(cached) " >&6
6823 for ac_kw in inline __inline__ __inline; do
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6828 static $ac_kw foo_t static_foo () {return 0; }
6829 $ac_kw foo_t foo () {return 0; }
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 ac_cv_c_inline=$ac_kw
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 test "$ac_cv_c_inline" != no && break
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6842 $as_echo "$ac_cv_c_inline" >&6; }
6844 case $ac_cv_c_inline in
6847 case $ac_cv_c_inline in
6849 *) ac_val=$ac_cv_c_inline;;
6851 cat >>confdefs.h <<_ACEOF
6853 #define inline $ac_val
6859 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_size_t" = xyes; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define size_t unsigned int
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6872 $as_echo_n "checking for stdint.h... " >&6; }
6873 if ${gl_cv_header_stdint_h+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #include <sys/types.h>
6883 uintmax_t i = (uintmax_t) -1; return !i;
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 gl_cv_header_stdint_h=yes
6891 gl_cv_header_stdint_h=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6896 $as_echo "$gl_cv_header_stdint_h" >&6; }
6897 if test $gl_cv_header_stdint_h = yes; then
6899 cat >>confdefs.h <<_ACEOF
6900 #define HAVE_STDINT_H_WITH_UINTMAX 1
6905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6906 # for constant arguments. Useless!
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6908 $as_echo_n "checking for working alloca.h... " >&6; }
6909 if ${ac_cv_working_alloca_h+:} false; then :
6910 $as_echo_n "(cached) " >&6
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6918 char *p = (char *) alloca (2 * sizeof (int));
6924 if ac_fn_c_try_link "$LINENO"; then :
6925 ac_cv_working_alloca_h=yes
6927 ac_cv_working_alloca_h=no
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6933 $as_echo "$ac_cv_working_alloca_h" >&6; }
6934 if test $ac_cv_working_alloca_h = yes; then
6936 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6941 $as_echo_n "checking for alloca... " >&6; }
6942 if ${ac_cv_func_alloca_works+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6948 # define alloca __builtin_alloca
6951 # include <malloc.h>
6952 # define alloca _alloca
6954 # ifdef HAVE_ALLOCA_H
6955 # include <alloca.h>
6960 # ifndef alloca /* predefined by HP cc +Olibcalls */
6961 void *alloca (size_t);
6971 char *p = (char *) alloca (1);
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_func_alloca_works=yes
6980 ac_cv_func_alloca_works=no
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6986 $as_echo "$ac_cv_func_alloca_works" >&6; }
6988 if test $ac_cv_func_alloca_works = yes; then
6990 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6993 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6994 # that cause trouble. Some versions do not even contain alloca or
6995 # contain a buggy version. If you still want to use their alloca,
6996 # use ar to extract alloca.o from them instead of compiling alloca.c.
6998 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7000 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7004 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7005 if ${ac_cv_os_cray+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #if defined CRAY && ! defined CRAY2
7017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018 $EGREP "webecray" >/dev/null 2>&1; then :
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7027 $as_echo "$ac_cv_os_cray" >&6; }
7028 if test $ac_cv_os_cray = yes; then
7029 for ac_func in _getb67 GETB67 getb67; do
7030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7034 cat >>confdefs.h <<_ACEOF
7035 #define CRAY_STACKSEG_END $ac_func
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7045 $as_echo_n "checking stack direction for C alloca... " >&6; }
7046 if ${ac_cv_c_stack_direction+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 if test "$cross_compiling" = yes; then :
7050 ac_cv_c_stack_direction=0
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 $ac_includes_default
7056 find_stack_direction (int *addr, int depth)
7061 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7062 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7067 main (int argc, char **argv)
7069 return find_stack_direction (0, argc + !argv + 20) < 0;
7072 if ac_fn_c_try_run "$LINENO"; then :
7073 ac_cv_c_stack_direction=1
7075 ac_cv_c_stack_direction=-1
7077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7078 conftest.$ac_objext conftest.beam conftest.$ac_ext
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7083 $as_echo "$ac_cv_c_stack_direction" >&6; }
7084 cat >>confdefs.h <<_ACEOF
7085 #define STACK_DIRECTION $ac_cv_c_stack_direction
7094 for ac_header in $ac_header_list
7096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7100 cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 for ac_func in getpagesize
7117 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7118 if test "x$ac_cv_func_getpagesize" = xyes; then :
7119 cat >>confdefs.h <<_ACEOF
7120 #define HAVE_GETPAGESIZE 1
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7127 $as_echo_n "checking for working mmap... " >&6; }
7128 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7129 $as_echo_n "(cached) " >&6
7131 if test "$cross_compiling" = yes; then :
7132 ac_cv_func_mmap_fixed_mapped=no
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 /* malloc might have been renamed as rpl_malloc. */
7140 /* Thanks to Mike Haertel and Jim Avera for this test.
7141 Here is a matrix of mmap possibilities:
7142 mmap private not fixed
7143 mmap private fixed at somewhere currently unmapped
7144 mmap private fixed at somewhere already mapped
7145 mmap shared not fixed
7146 mmap shared fixed at somewhere currently unmapped
7147 mmap shared fixed at somewhere already mapped
7148 For private mappings, we should verify that changes cannot be read()
7149 back from the file, nor mmap's back from the file at a different
7150 address. (There have been systems where private was not correctly
7151 implemented like the infamous i386 svr4.0, and systems where the
7152 VM page cache was not coherent with the file system buffer cache
7153 like early versions of FreeBSD and possibly contemporary NetBSD.)
7154 For shared mappings, we should conversely verify that changes get
7155 propagated back to all the places they're supposed to be.
7157 Grep wants private fixed already mapped.
7158 The main things grep needs to know about mmap are:
7159 * does it exist and is it safe to write into the mmap'd area
7160 * how to use it (BSD variants) */
7163 #include <sys/mman.h>
7165 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7169 /* This mess was copied from the GNU getpagesize.h. */
7170 #ifndef HAVE_GETPAGESIZE
7171 # ifdef _SC_PAGESIZE
7172 # define getpagesize() sysconf(_SC_PAGESIZE)
7173 # else /* no _SC_PAGESIZE */
7174 # ifdef HAVE_SYS_PARAM_H
7175 # include <sys/param.h>
7176 # ifdef EXEC_PAGESIZE
7177 # define getpagesize() EXEC_PAGESIZE
7178 # else /* no EXEC_PAGESIZE */
7180 # define getpagesize() NBPG * CLSIZE
7183 # endif /* no CLSIZE */
7184 # else /* no NBPG */
7186 # define getpagesize() NBPC
7187 # else /* no NBPC */
7189 # define getpagesize() PAGESIZE
7190 # endif /* PAGESIZE */
7191 # endif /* no NBPC */
7192 # endif /* no NBPG */
7193 # endif /* no EXEC_PAGESIZE */
7194 # else /* no HAVE_SYS_PARAM_H */
7195 # define getpagesize() 8192 /* punt totally */
7196 # endif /* no HAVE_SYS_PARAM_H */
7197 # endif /* no _SC_PAGESIZE */
7199 #endif /* no HAVE_GETPAGESIZE */
7204 char *data, *data2, *data3;
7209 pagesize = getpagesize ();
7211 /* First, make a file with some known garbage in it. */
7212 data = (char *) malloc (pagesize);
7215 for (i = 0; i < pagesize; ++i)
7216 *(data + i) = rand ();
7218 fd = creat ("conftest.mmap", 0600);
7221 if (write (fd, data, pagesize) != pagesize)
7225 /* Next, check that the tail of a page is zero-filled. File must have
7226 non-zero length, otherwise we risk SIGBUS for entire page. */
7227 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7231 if (write (fd2, cdata2, 1) != 1)
7233 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7234 if (data2 == MAP_FAILED)
7236 for (i = 0; i < pagesize; ++i)
7240 if (munmap (data2, pagesize))
7243 /* Next, try to mmap the file at a fixed address which already has
7244 something else allocated at it. If we can, also make sure that
7245 we see the same garbage. */
7246 fd = open ("conftest.mmap", O_RDWR);
7249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7252 for (i = 0; i < pagesize; ++i)
7253 if (*(data + i) != *(data2 + i))
7256 /* Finally, make sure that changes to the mapped area do not
7257 percolate back to the file as seen by read(). (This is a bug on
7258 some variants of i386 svr4.0.) */
7259 for (i = 0; i < pagesize; ++i)
7260 *(data2 + i) = *(data2 + i) + 1;
7261 data3 = (char *) malloc (pagesize);
7264 if (read (fd, data3, pagesize) != pagesize)
7266 for (i = 0; i < pagesize; ++i)
7267 if (*(data + i) != *(data3 + i))
7275 if ac_fn_c_try_run "$LINENO"; then :
7276 ac_cv_func_mmap_fixed_mapped=yes
7278 ac_cv_func_mmap_fixed_mapped=no
7280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7281 conftest.$ac_objext conftest.beam conftest.$ac_ext
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7286 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7287 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7289 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7292 rm -f conftest.mmap conftest.txt
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7297 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7298 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7299 $as_echo_n "(cached) " >&6
7302 gt_cv_int_divbyzero_sigfpe=
7304 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7305 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7306 # compiling. If we were to perform the real test, 1 Crash Report
7307 # dialog window would pop up.
7309 i[34567]86 | x86_64)
7310 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7314 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7315 if test "$cross_compiling" = yes; then :
7317 # Guess based on the CPU.
7319 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7320 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7322 gt_cv_int_divbyzero_sigfpe="guessing no";;
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7333 sigfpe_handler (int sig)
7335 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7336 exit (sig != SIGFPE);
7346 signal (SIGFPE, sigfpe_handler);
7347 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7348 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7349 signal (SIGTRAP, sigfpe_handler);
7351 /* Linux/SPARC yields signal SIGILL. */
7352 #if defined (__sparc__) && defined (__linux__)
7353 signal (SIGILL, sigfpe_handler);
7362 if ac_fn_c_try_run "$LINENO"; then :
7363 gt_cv_int_divbyzero_sigfpe=yes
7365 gt_cv_int_divbyzero_sigfpe=no
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368 conftest.$ac_objext conftest.beam conftest.$ac_ext
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7375 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7376 case "$gt_cv_int_divbyzero_sigfpe" in
7381 cat >>confdefs.h <<_ACEOF
7382 #define INTDIV0_RAISES_SIGFPE $value
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7388 $as_echo_n "checking for inttypes.h... " >&6; }
7389 if ${gl_cv_header_inttypes_h+:} false; then :
7390 $as_echo_n "(cached) " >&6
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <inttypes.h>
7401 uintmax_t i = (uintmax_t) -1; return !i;
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 gl_cv_header_inttypes_h=yes
7409 gl_cv_header_inttypes_h=no
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7414 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7415 if test $gl_cv_header_inttypes_h = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7425 $as_echo_n "checking for unsigned long long int... " >&6; }
7426 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 ac_cv_type_unsigned_long_long_int=yes
7430 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7434 /* For now, do not test the preprocessor; as of 2007 there are too many
7435 implementations with broken preprocessors. Perhaps this can
7436 be revisited in 2012. In the meantime, code should not expect
7437 #if to work with literals wider than 32 bits. */
7438 /* Test literals. */
7439 long long int ll = 9223372036854775807ll;
7440 long long int nll = -9223372036854775807LL;
7441 unsigned long long int ull = 18446744073709551615ULL;
7442 /* Test constant expressions. */
7443 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7445 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7451 /* Test availability of runtime routines for shift and division. */
7452 long long int llmax = 9223372036854775807ll;
7453 unsigned long long int ullmax = 18446744073709551615ull;
7454 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7455 | (llmax / ll) | (llmax % ll)
7456 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7457 | (ullmax / ull) | (ullmax % ull));
7463 if ac_fn_c_try_link "$LINENO"; then :
7466 ac_cv_type_unsigned_long_long_int=no
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7473 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7474 if test $ac_cv_type_unsigned_long_long_int = yes; then
7476 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7483 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7485 test $ac_cv_type_unsigned_long_long_int = yes \
7486 && ac_type='unsigned long long' \
7487 || ac_type='unsigned long'
7489 cat >>confdefs.h <<_ACEOF
7490 #define uintmax_t $ac_type
7495 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7500 for ac_header in inttypes.h
7502 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7503 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7504 cat >>confdefs.h <<_ACEOF
7505 #define HAVE_INTTYPES_H 1
7512 if test $ac_cv_header_inttypes_h = yes; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7514 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7515 if ${gt_cv_inttypes_pri_broken+:} false; then :
7516 $as_echo_n "(cached) " >&6
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7522 #include <inttypes.h>
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536 gt_cv_inttypes_pri_broken=no
7538 gt_cv_inttypes_pri_broken=yes
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7544 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7546 if test "$gt_cv_inttypes_pri_broken" = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define PRI_MACROS_BROKEN 1
7563 # Check whether --enable-threads was given.
7564 if test "${enable_threads+set}" = set; then :
7565 enableval=$enable_threads; gl_use_threads=$enableval
7567 if test -n "$gl_use_threads_default"; then
7568 gl_use_threads="$gl_use_threads_default"
7571 osf*) gl_use_threads=no ;;
7574 1.[0-5].*) gl_use_threads=no ;;
7575 *) gl_use_threads=yes ;;
7578 *) gl_use_threads=yes ;;
7584 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7585 # For using <pthread.h>:
7588 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7589 # groks <pthread.h>. cc also understands the flag -pthread, but
7590 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7591 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7592 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7593 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7594 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7597 # Some systems optimize for single-threaded programs by default, and
7598 # need special flags to disable these optimizations. For example, the
7599 # definition of 'errno' in <errno.h>.
7601 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7602 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7610 if test "X$prefix" = "XNONE"; then
7611 acl_final_prefix="$ac_default_prefix"
7613 acl_final_prefix="$prefix"
7615 if test "X$exec_prefix" = "XNONE"; then
7616 acl_final_exec_prefix='${prefix}'
7618 acl_final_exec_prefix="$exec_prefix"
7620 acl_save_prefix="$prefix"
7621 prefix="$acl_final_prefix"
7622 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7623 prefix="$acl_save_prefix"
7627 # Check whether --with-gnu-ld was given.
7628 if test "${with_gnu_ld+set}" = set; then :
7629 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7634 # Prepare PATH_SEPARATOR.
7635 # The user is always right.
7636 if test "${PATH_SEPARATOR+set}" != set; then
7637 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7638 # contains only /bin. Note that ksh looks also at the FPATH variable,
7639 # so we have to set that as well for the test.
7641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7642 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7643 || PATH_SEPARATOR=';'
7648 if test "$GCC" = yes; then
7649 # Check if gcc -print-prog-name=ld gives a path.
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7651 $as_echo_n "checking for ld used by $CC... " >&6; }
7654 # gcc leaves a trailing carriage return which upsets mingw
7655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7660 # Accept absolute paths.
7662 re_direlt='/[^/][^/]*/\.\./'
7663 # Canonicalize the pathname of ld
7664 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7665 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7666 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7668 test -z "$LD" && LD="$ac_prog"
7671 # If it fails, then pretend we aren't using GCC.
7675 # If it is relative, then search for the first ld in PATH.
7679 elif test "$with_gnu_ld" = yes; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7681 $as_echo_n "checking for GNU ld... " >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7684 $as_echo_n "checking for non-GNU ld... " >&6; }
7686 if ${acl_cv_path_LD+:} false; then :
7687 $as_echo_n "(cached) " >&6
7689 if test -z "$LD"; then
7690 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691 for ac_dir in $PATH; do
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7695 acl_cv_path_LD="$ac_dir/$ac_prog"
7696 # Check to see if the program is GNU ld. I'd rather use --version,
7697 # but apparently some variants of GNU ld only accept -v.
7698 # Break only if it was the GNU/non-GNU ld that we prefer.
7699 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7700 *GNU* | *'with BFD'*)
7701 test "$with_gnu_ld" != no && break
7704 test "$with_gnu_ld" != yes && break
7711 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7715 LD="$acl_cv_path_LD"
7716 if test -n "$LD"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7718 $as_echo "$LD" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7723 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7726 if ${acl_cv_prog_gnu_ld+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7730 case `$LD -v 2>&1 </dev/null` in
7731 *GNU* | *'with BFD'*)
7732 acl_cv_prog_gnu_ld=yes
7735 acl_cv_prog_gnu_ld=no
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7740 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7741 with_gnu_ld=$acl_cv_prog_gnu_ld
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7747 $as_echo_n "checking for shared library run path origin... " >&6; }
7748 if ${acl_cv_rpath+:} false; then :
7749 $as_echo_n "(cached) " >&6
7752 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7753 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7760 $as_echo "$acl_cv_rpath" >&6; }
7762 acl_libext="$acl_cv_libext"
7763 acl_shlibext="$acl_cv_shlibext"
7764 acl_libname_spec="$acl_cv_libname_spec"
7765 acl_library_names_spec="$acl_cv_library_names_spec"
7766 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7767 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7768 acl_hardcode_direct="$acl_cv_hardcode_direct"
7769 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7770 # Check whether --enable-rpath was given.
7771 if test "${enable_rpath+set}" = set; then :
7772 enableval=$enable_rpath; :
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7785 $as_echo_n "checking for 64-bit host... " >&6; }
7786 if ${gl_cv_solaris_64bit+:} false; then :
7787 $as_echo_n "(cached) " >&6
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7799 gl_cv_solaris_64bit=yes
7801 gl_cv_solaris_64bit=no
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7808 $as_echo "$gl_cv_solaris_64bit" >&6; }
7809 if test $gl_cv_solaris_64bit = yes; then
7810 acl_libdirstem=lib/64
7812 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7813 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7818 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7819 if test -n "$searchpath"; then
7820 acl_save_IFS="${IFS= }"; IFS=":"
7821 for searchdir in $searchpath; do
7822 if test -d "$searchdir"; then
7823 case "$searchdir" in
7824 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7826 # Better ignore directories of this form. They are misleading.
7828 *) searchdir=`cd "$searchdir" && pwd`
7829 case "$searchdir" in
7830 */lib64 ) acl_libdirstem=lib64 ;;
7839 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7848 if test "$gl_use_threads" != no; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7850 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7851 if ${gl_cv_have_weak+:} false; then :
7852 $as_echo_n "(cached) " >&6
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 extern void xyzzy ();
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 gl_cv_have_weak=maybe
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 if test $gl_cv_have_weak = maybe; then
7873 if test "$cross_compiling" = yes; then :
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 Extensible Linking Format
7881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7883 gl_cv_have_weak="guessing yes"
7885 gl_cv_have_weak="guessing no"
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7898 return (fputs == NULL);
7901 if ac_fn_c_try_run "$LINENO"; then :
7906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7907 conftest.$ac_objext conftest.beam conftest.$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7914 $as_echo "$gl_cv_have_weak" >&6; }
7915 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7916 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7917 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7918 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7919 if test "x$ac_cv_header_pthread_h" = xyes; then :
7920 gl_have_pthread_h=yes
7922 gl_have_pthread_h=no
7926 if test "$gl_have_pthread_h" = yes; then
7927 # Other possible tests:
7928 # -lpthreads (FSU threads, PCthreads)
7931 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7932 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7933 # the second one only in libpthread, and lock.c needs it.
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #include <pthread.h>
7940 pthread_mutex_lock((pthread_mutex_t*)0);
7941 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7946 if ac_fn_c_try_link "$LINENO"; then :
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7952 # since it is defined as a macro on OSF/1.)
7953 if test -n "$gl_have_pthread"; then
7954 # The program links fine without libpthread. But it may actually
7955 # need to link with libpthread in order to create multiple threads.
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7957 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7958 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7959 $as_echo_n "(cached) " >&6
7961 ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lpthread $LIBS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 /* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
7972 char pthread_kill ();
7976 return pthread_kill ();
7981 if ac_fn_c_try_link "$LINENO"; then :
7982 ac_cv_lib_pthread_pthread_kill=yes
7984 ac_cv_lib_pthread_pthread_kill=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7991 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7992 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7993 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7994 # On Solaris and HP-UX, most pthread functions exist also in libc.
7995 # Therefore pthread_in_use() needs to actually try to create a
7996 # thread: pthread_create from libc will fail, whereas
7997 # pthread_create will actually create a thread.
8001 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8008 # Some library is needed. Try libpthread and libc_r.
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8010 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8011 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lpthread $LIBS"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8019 /* Override any GCC internal prototype to avoid an error.
8020 Use char because int might match the return type of a GCC
8021 builtin and then its argument prototype would still apply. */
8025 char pthread_kill ();
8029 return pthread_kill ();
8034 if ac_fn_c_try_link "$LINENO"; then :
8035 ac_cv_lib_pthread_pthread_kill=yes
8037 ac_cv_lib_pthread_pthread_kill=no
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8044 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8045 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8047 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8048 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8051 if test -z "$gl_have_pthread"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8054 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8055 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 ac_check_lib_save_LIBS=$LIBS
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8069 char pthread_kill ();
8073 return pthread_kill ();
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 ac_cv_lib_c_r_pthread_kill=yes
8081 ac_cv_lib_c_r_pthread_kill=no
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8088 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8089 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8091 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8092 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8097 if test -n "$gl_have_pthread"; then
8098 gl_threads_api=posix
8100 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8102 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8103 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8105 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8114 if test -z "$gl_have_pthread"; then
8115 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8116 gl_have_solaristhread=
8117 gl_save_LIBS="$LIBS"
8118 LIBS="$LIBS -lthread"
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8133 if ac_fn_c_try_link "$LINENO"; then :
8134 gl_have_solaristhread=yes
8136 rm -f core conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138 LIBS="$gl_save_LIBS"
8139 if test -n "$gl_have_solaristhread"; then
8140 gl_threads_api=solaris
8142 LTLIBTHREAD=-lthread
8143 LIBMULTITHREAD="$LIBTHREAD"
8144 LTLIBMULTITHREAD="$LTLIBTHREAD"
8146 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8148 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8150 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8158 if test "$gl_use_threads" = pth; then
8159 gl_save_CPPFLAGS="$CPPFLAGS"
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8166 $as_echo_n "checking how to link with libpth... " >&6; }
8167 if ${ac_cv_libpth_libs+:} false; then :
8168 $as_echo_n "(cached) " >&6
8180 acl_save_prefix="$prefix"
8181 prefix="$acl_final_prefix"
8182 acl_save_exec_prefix="$exec_prefix"
8183 exec_prefix="$acl_final_exec_prefix"
8185 eval additional_includedir=\"$includedir\"
8186 eval additional_libdir=\"$libdir\"
8188 exec_prefix="$acl_save_exec_prefix"
8189 prefix="$acl_save_prefix"
8192 # Check whether --with-libpth-prefix was given.
8193 if test "${with_libpth_prefix+set}" = set; then :
8194 withval=$with_libpth_prefix;
8195 if test "X$withval" = "Xno"; then
8198 if test "X$withval" = "X"; then
8200 acl_save_prefix="$prefix"
8201 prefix="$acl_final_prefix"
8202 acl_save_exec_prefix="$exec_prefix"
8203 exec_prefix="$acl_final_exec_prefix"
8205 eval additional_includedir=\"$includedir\"
8206 eval additional_libdir=\"$libdir\"
8208 exec_prefix="$acl_save_exec_prefix"
8209 prefix="$acl_save_prefix"
8212 additional_includedir="$withval/include"
8213 additional_libdir="$withval/$acl_libdirstem"
8214 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8215 && ! test -d "$withval/$acl_libdirstem"; then
8216 additional_libdir="$withval/$acl_libdirstem2"
8230 names_already_handled=
8231 names_next_round='pth '
8232 while test -n "$names_next_round"; do
8233 names_this_round="$names_next_round"
8235 for name in $names_this_round; do
8237 for n in $names_already_handled; do
8238 if test "$n" = "$name"; then
8243 if test -z "$already_handled"; then
8244 names_already_handled="$names_already_handled $name"
8245 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8246 eval value=\"\$HAVE_LIB$uppername\"
8247 if test -n "$value"; then
8248 if test "$value" = yes; then
8249 eval value=\"\$LIB$uppername\"
8250 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8251 eval value=\"\$LTLIB$uppername\"
8252 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8261 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8262 if test -n "$acl_shlibext"; then
8263 shrext=".$acl_shlibext" # typically: shrext=.so
8267 if test $use_additional = yes; then
8268 dir="$additional_libdir"
8269 if test -n "$acl_shlibext"; then
8270 if test -f "$dir/$libname$shrext"; then
8272 found_so="$dir/$libname$shrext"
8274 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8275 ver=`(cd "$dir" && \
8276 for f in "$libname$shrext".*; do echo "$f"; done \
8277 | sed -e "s,^$libname$shrext\\\\.,," \
8278 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8279 | sed 1q ) 2>/dev/null`
8280 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8282 found_so="$dir/$libname$shrext.$ver"
8285 eval library_names=\"$acl_library_names_spec\"
8286 for f in $library_names; do
8287 if test -f "$dir/$f"; then
8296 if test "X$found_dir" = "X"; then
8297 if test -f "$dir/$libname.$acl_libext"; then
8299 found_a="$dir/$libname.$acl_libext"
8302 if test "X$found_dir" != "X"; then
8303 if test -f "$dir/$libname.la"; then
8304 found_la="$dir/$libname.la"
8308 if test "X$found_dir" = "X"; then
8309 for x in $LDFLAGS $LTLIBPTH; do
8311 acl_save_prefix="$prefix"
8312 prefix="$acl_final_prefix"
8313 acl_save_exec_prefix="$exec_prefix"
8314 exec_prefix="$acl_final_exec_prefix"
8316 exec_prefix="$acl_save_exec_prefix"
8317 prefix="$acl_save_prefix"
8321 dir=`echo "X$x" | sed -e 's/^X-L//'`
8322 if test -n "$acl_shlibext"; then
8323 if test -f "$dir/$libname$shrext"; then
8325 found_so="$dir/$libname$shrext"
8327 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8328 ver=`(cd "$dir" && \
8329 for f in "$libname$shrext".*; do echo "$f"; done \
8330 | sed -e "s,^$libname$shrext\\\\.,," \
8331 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8332 | sed 1q ) 2>/dev/null`
8333 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8335 found_so="$dir/$libname$shrext.$ver"
8338 eval library_names=\"$acl_library_names_spec\"
8339 for f in $library_names; do
8340 if test -f "$dir/$f"; then
8349 if test "X$found_dir" = "X"; then
8350 if test -f "$dir/$libname.$acl_libext"; then
8352 found_a="$dir/$libname.$acl_libext"
8355 if test "X$found_dir" != "X"; then
8356 if test -f "$dir/$libname.la"; then
8357 found_la="$dir/$libname.la"
8362 if test "X$found_dir" != "X"; then
8367 if test "X$found_dir" != "X"; then
8368 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8369 if test "X$found_so" != "X"; then
8370 if test "$enable_rpath" = no \
8371 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8372 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8373 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8376 for x in $ltrpathdirs; do
8377 if test "X$x" = "X$found_dir"; then
8382 if test -z "$haveit"; then
8383 ltrpathdirs="$ltrpathdirs $found_dir"
8385 if test "$acl_hardcode_direct" = yes; then
8386 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8388 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8391 for x in $rpathdirs; do
8392 if test "X$x" = "X$found_dir"; then
8397 if test -z "$haveit"; then
8398 rpathdirs="$rpathdirs $found_dir"
8402 for x in $LDFLAGS $LIBPTH; do
8404 acl_save_prefix="$prefix"
8405 prefix="$acl_final_prefix"
8406 acl_save_exec_prefix="$exec_prefix"
8407 exec_prefix="$acl_final_exec_prefix"
8409 exec_prefix="$acl_save_exec_prefix"
8410 prefix="$acl_save_prefix"
8412 if test "X$x" = "X-L$found_dir"; then
8417 if test -z "$haveit"; then
8418 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8420 if test "$acl_hardcode_minus_L" != no; then
8421 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8423 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8429 if test "X$found_a" != "X"; then
8430 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8432 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8435 additional_includedir=
8436 case "$found_dir" in
8437 */$acl_libdirstem | */$acl_libdirstem/)
8438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8439 if test "$name" = 'pth'; then
8440 LIBPTH_PREFIX="$basedir"
8442 additional_includedir="$basedir/include"
8444 */$acl_libdirstem2 | */$acl_libdirstem2/)
8445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8446 if test "$name" = 'pth'; then
8447 LIBPTH_PREFIX="$basedir"
8449 additional_includedir="$basedir/include"
8452 if test "X$additional_includedir" != "X"; then
8453 if test "X$additional_includedir" != "X/usr/include"; then
8455 if test "X$additional_includedir" = "X/usr/local/include"; then
8456 if test -n "$GCC"; then
8458 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8462 if test -z "$haveit"; then
8463 for x in $CPPFLAGS $INCPTH; do
8465 acl_save_prefix="$prefix"
8466 prefix="$acl_final_prefix"
8467 acl_save_exec_prefix="$exec_prefix"
8468 exec_prefix="$acl_final_exec_prefix"
8470 exec_prefix="$acl_save_exec_prefix"
8471 prefix="$acl_save_prefix"
8473 if test "X$x" = "X-I$additional_includedir"; then
8478 if test -z "$haveit"; then
8479 if test -d "$additional_includedir"; then
8480 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8486 if test -n "$found_la"; then
8487 save_libdir="$libdir"
8489 */* | *\\*) . "$found_la" ;;
8490 *) . "./$found_la" ;;
8492 libdir="$save_libdir"
8493 for dep in $dependency_libs; do
8496 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8497 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8498 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8500 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8501 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8502 if test -n "$GCC"; then
8504 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8508 if test -z "$haveit"; then
8510 for x in $LDFLAGS $LIBPTH; do
8512 acl_save_prefix="$prefix"
8513 prefix="$acl_final_prefix"
8514 acl_save_exec_prefix="$exec_prefix"
8515 exec_prefix="$acl_final_exec_prefix"
8517 exec_prefix="$acl_save_exec_prefix"
8518 prefix="$acl_save_prefix"
8520 if test "X$x" = "X-L$additional_libdir"; then
8525 if test -z "$haveit"; then
8526 if test -d "$additional_libdir"; then
8527 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8531 for x in $LDFLAGS $LTLIBPTH; do
8533 acl_save_prefix="$prefix"
8534 prefix="$acl_final_prefix"
8535 acl_save_exec_prefix="$exec_prefix"
8536 exec_prefix="$acl_final_exec_prefix"
8538 exec_prefix="$acl_save_exec_prefix"
8539 prefix="$acl_save_prefix"
8541 if test "X$x" = "X-L$additional_libdir"; then
8546 if test -z "$haveit"; then
8547 if test -d "$additional_libdir"; then
8548 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8555 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8556 if test "$enable_rpath" != no; then
8558 for x in $rpathdirs; do
8559 if test "X$x" = "X$dir"; then
8564 if test -z "$haveit"; then
8565 rpathdirs="$rpathdirs $dir"
8568 for x in $ltrpathdirs; do
8569 if test "X$x" = "X$dir"; then
8574 if test -z "$haveit"; then
8575 ltrpathdirs="$ltrpathdirs $dir"
8580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8583 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8586 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8587 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8593 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8594 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8600 if test "X$rpathdirs" != "X"; then
8601 if test -n "$acl_hardcode_libdir_separator"; then
8603 for found_dir in $rpathdirs; do
8604 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8606 acl_save_libdir="$libdir"
8608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8609 libdir="$acl_save_libdir"
8610 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8612 for found_dir in $rpathdirs; do
8613 acl_save_libdir="$libdir"
8615 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8616 libdir="$acl_save_libdir"
8617 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8621 if test "X$ltrpathdirs" != "X"; then
8622 for found_dir in $ltrpathdirs; do
8623 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8632 ac_cv_libpth_libs="$LIBPTH"
8633 ac_cv_libpth_ltlibs="$LTLIBPTH"
8634 ac_cv_libpth_cppflags="$INCPTH"
8635 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8639 $as_echo "$ac_cv_libpth_libs" >&6; }
8640 LIBPTH="$ac_cv_libpth_libs"
8641 LTLIBPTH="$ac_cv_libpth_ltlibs"
8642 INCPTH="$ac_cv_libpth_cppflags"
8643 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8645 for element in $INCPTH; do
8647 for x in $CPPFLAGS; do
8649 acl_save_prefix="$prefix"
8650 prefix="$acl_final_prefix"
8651 acl_save_exec_prefix="$exec_prefix"
8652 exec_prefix="$acl_final_exec_prefix"
8654 exec_prefix="$acl_save_exec_prefix"
8655 prefix="$acl_save_prefix"
8657 if test "X$x" = "X$element"; then
8662 if test -z "$haveit"; then
8663 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8675 gl_save_LIBS="$LIBS"
8676 LIBS="$LIBS $LIBPTH"
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8688 if ac_fn_c_try_link "$LINENO"; then :
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 LIBS="$gl_save_LIBS"
8694 if test -n "$gl_have_pth"; then
8697 LTLIBTHREAD="$LTLIBPTH"
8698 LIBMULTITHREAD="$LIBTHREAD"
8699 LTLIBMULTITHREAD="$LTLIBTHREAD"
8701 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8703 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8704 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8706 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8713 CPPFLAGS="$gl_save_CPPFLAGS"
8716 if test -z "$gl_have_pthread"; then
8717 case "$gl_use_threads" in
8718 yes | windows | win32) # The 'win32' is for backward compatibility.
8719 if { case "$host_os" in
8724 gl_threads_api=windows
8726 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8734 $as_echo_n "checking for multithread API to use... " >&6; }
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8736 $as_echo "$gl_threads_api" >&6; }
8748 if test "$gl_threads_api" = posix; then
8749 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8750 # pthread_rwlock_* functions.
8751 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8753 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8755 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8759 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8763 #include <pthread.h>
8768 #if __FreeBSD__ == 4
8769 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8770 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8771 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8772 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8774 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8782 if ac_fn_c_try_compile "$LINENO"; then :
8784 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 acl_save_prefix="$prefix"
8805 prefix="$acl_final_prefix"
8806 acl_save_exec_prefix="$exec_prefix"
8807 exec_prefix="$acl_final_exec_prefix"
8809 eval additional_includedir=\"$includedir\"
8810 eval additional_libdir=\"$libdir\"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8816 # Check whether --with-libiconv-prefix was given.
8817 if test "${with_libiconv_prefix+set}" = set; then :
8818 withval=$with_libiconv_prefix;
8819 if test "X$withval" = "Xno"; then
8822 if test "X$withval" = "X"; then
8824 acl_save_prefix="$prefix"
8825 prefix="$acl_final_prefix"
8826 acl_save_exec_prefix="$exec_prefix"
8827 exec_prefix="$acl_final_exec_prefix"
8829 eval additional_includedir=\"$includedir\"
8830 eval additional_libdir=\"$libdir\"
8832 exec_prefix="$acl_save_exec_prefix"
8833 prefix="$acl_save_prefix"
8836 additional_includedir="$withval/include"
8837 additional_libdir="$withval/$acl_libdirstem"
8838 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8839 && ! test -d "$withval/$acl_libdirstem"; then
8840 additional_libdir="$withval/$acl_libdirstem2"
8854 names_already_handled=
8855 names_next_round='iconv '
8856 while test -n "$names_next_round"; do
8857 names_this_round="$names_next_round"
8859 for name in $names_this_round; do
8861 for n in $names_already_handled; do
8862 if test "$n" = "$name"; then
8867 if test -z "$already_handled"; then
8868 names_already_handled="$names_already_handled $name"
8869 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8870 eval value=\"\$HAVE_LIB$uppername\"
8871 if test -n "$value"; then
8872 if test "$value" = yes; then
8873 eval value=\"\$LIB$uppername\"
8874 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8875 eval value=\"\$LTLIB$uppername\"
8876 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8885 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8886 if test -n "$acl_shlibext"; then
8887 shrext=".$acl_shlibext" # typically: shrext=.so
8891 if test $use_additional = yes; then
8892 dir="$additional_libdir"
8893 if test -n "$acl_shlibext"; then
8894 if test -f "$dir/$libname$shrext"; then
8896 found_so="$dir/$libname$shrext"
8898 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8899 ver=`(cd "$dir" && \
8900 for f in "$libname$shrext".*; do echo "$f"; done \
8901 | sed -e "s,^$libname$shrext\\\\.,," \
8902 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8903 | sed 1q ) 2>/dev/null`
8904 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8906 found_so="$dir/$libname$shrext.$ver"
8909 eval library_names=\"$acl_library_names_spec\"
8910 for f in $library_names; do
8911 if test -f "$dir/$f"; then
8920 if test "X$found_dir" = "X"; then
8921 if test -f "$dir/$libname.$acl_libext"; then
8923 found_a="$dir/$libname.$acl_libext"
8926 if test "X$found_dir" != "X"; then
8927 if test -f "$dir/$libname.la"; then
8928 found_la="$dir/$libname.la"
8932 if test "X$found_dir" = "X"; then
8933 for x in $LDFLAGS $LTLIBICONV; do
8935 acl_save_prefix="$prefix"
8936 prefix="$acl_final_prefix"
8937 acl_save_exec_prefix="$exec_prefix"
8938 exec_prefix="$acl_final_exec_prefix"
8940 exec_prefix="$acl_save_exec_prefix"
8941 prefix="$acl_save_prefix"
8945 dir=`echo "X$x" | sed -e 's/^X-L//'`
8946 if test -n "$acl_shlibext"; then
8947 if test -f "$dir/$libname$shrext"; then
8949 found_so="$dir/$libname$shrext"
8951 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8952 ver=`(cd "$dir" && \
8953 for f in "$libname$shrext".*; do echo "$f"; done \
8954 | sed -e "s,^$libname$shrext\\\\.,," \
8955 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8956 | sed 1q ) 2>/dev/null`
8957 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8959 found_so="$dir/$libname$shrext.$ver"
8962 eval library_names=\"$acl_library_names_spec\"
8963 for f in $library_names; do
8964 if test -f "$dir/$f"; then
8973 if test "X$found_dir" = "X"; then
8974 if test -f "$dir/$libname.$acl_libext"; then
8976 found_a="$dir/$libname.$acl_libext"
8979 if test "X$found_dir" != "X"; then
8980 if test -f "$dir/$libname.la"; then
8981 found_la="$dir/$libname.la"
8986 if test "X$found_dir" != "X"; then
8991 if test "X$found_dir" != "X"; then
8992 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8993 if test "X$found_so" != "X"; then
8994 if test "$enable_rpath" = no \
8995 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8996 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9000 for x in $ltrpathdirs; do
9001 if test "X$x" = "X$found_dir"; then
9006 if test -z "$haveit"; then
9007 ltrpathdirs="$ltrpathdirs $found_dir"
9009 if test "$acl_hardcode_direct" = yes; then
9010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9012 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9015 for x in $rpathdirs; do
9016 if test "X$x" = "X$found_dir"; then
9021 if test -z "$haveit"; then
9022 rpathdirs="$rpathdirs $found_dir"
9026 for x in $LDFLAGS $LIBICONV; do
9028 acl_save_prefix="$prefix"
9029 prefix="$acl_final_prefix"
9030 acl_save_exec_prefix="$exec_prefix"
9031 exec_prefix="$acl_final_exec_prefix"
9033 exec_prefix="$acl_save_exec_prefix"
9034 prefix="$acl_save_prefix"
9036 if test "X$x" = "X-L$found_dir"; then
9041 if test -z "$haveit"; then
9042 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9044 if test "$acl_hardcode_minus_L" != no; then
9045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9047 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9053 if test "X$found_a" != "X"; then
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9059 additional_includedir=
9060 case "$found_dir" in
9061 */$acl_libdirstem | */$acl_libdirstem/)
9062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9063 if test "$name" = 'iconv'; then
9064 LIBICONV_PREFIX="$basedir"
9066 additional_includedir="$basedir/include"
9068 */$acl_libdirstem2 | */$acl_libdirstem2/)
9069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9070 if test "$name" = 'iconv'; then
9071 LIBICONV_PREFIX="$basedir"
9073 additional_includedir="$basedir/include"
9076 if test "X$additional_includedir" != "X"; then
9077 if test "X$additional_includedir" != "X/usr/include"; then
9079 if test "X$additional_includedir" = "X/usr/local/include"; then
9080 if test -n "$GCC"; then
9082 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9086 if test -z "$haveit"; then
9087 for x in $CPPFLAGS $INCICONV; do
9089 acl_save_prefix="$prefix"
9090 prefix="$acl_final_prefix"
9091 acl_save_exec_prefix="$exec_prefix"
9092 exec_prefix="$acl_final_exec_prefix"
9094 exec_prefix="$acl_save_exec_prefix"
9095 prefix="$acl_save_prefix"
9097 if test "X$x" = "X-I$additional_includedir"; then
9102 if test -z "$haveit"; then
9103 if test -d "$additional_includedir"; then
9104 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9110 if test -n "$found_la"; then
9111 save_libdir="$libdir"
9113 */* | *\\*) . "$found_la" ;;
9114 *) . "./$found_la" ;;
9116 libdir="$save_libdir"
9117 for dep in $dependency_libs; do
9120 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9121 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9122 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9124 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9125 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9126 if test -n "$GCC"; then
9128 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9132 if test -z "$haveit"; then
9134 for x in $LDFLAGS $LIBICONV; do
9136 acl_save_prefix="$prefix"
9137 prefix="$acl_final_prefix"
9138 acl_save_exec_prefix="$exec_prefix"
9139 exec_prefix="$acl_final_exec_prefix"
9141 exec_prefix="$acl_save_exec_prefix"
9142 prefix="$acl_save_prefix"
9144 if test "X$x" = "X-L$additional_libdir"; then
9149 if test -z "$haveit"; then
9150 if test -d "$additional_libdir"; then
9151 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9155 for x in $LDFLAGS $LTLIBICONV; do
9157 acl_save_prefix="$prefix"
9158 prefix="$acl_final_prefix"
9159 acl_save_exec_prefix="$exec_prefix"
9160 exec_prefix="$acl_final_exec_prefix"
9162 exec_prefix="$acl_save_exec_prefix"
9163 prefix="$acl_save_prefix"
9165 if test "X$x" = "X-L$additional_libdir"; then
9170 if test -z "$haveit"; then
9171 if test -d "$additional_libdir"; then
9172 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9180 if test "$enable_rpath" != no; then
9182 for x in $rpathdirs; do
9183 if test "X$x" = "X$dir"; then
9188 if test -z "$haveit"; then
9189 rpathdirs="$rpathdirs $dir"
9192 for x in $ltrpathdirs; do
9193 if test "X$x" = "X$dir"; then
9198 if test -z "$haveit"; then
9199 ltrpathdirs="$ltrpathdirs $dir"
9204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9210 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9217 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9224 if test "X$rpathdirs" != "X"; then
9225 if test -n "$acl_hardcode_libdir_separator"; then
9227 for found_dir in $rpathdirs; do
9228 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9230 acl_save_libdir="$libdir"
9232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9233 libdir="$acl_save_libdir"
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9236 for found_dir in $rpathdirs; do
9237 acl_save_libdir="$libdir"
9239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240 libdir="$acl_save_libdir"
9241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9245 if test "X$ltrpathdirs" != "X"; then
9246 for found_dir in $ltrpathdirs; do
9247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9262 am_save_CPPFLAGS="$CPPFLAGS"
9264 for element in $INCICONV; do
9266 for x in $CPPFLAGS; do
9268 acl_save_prefix="$prefix"
9269 prefix="$acl_final_prefix"
9270 acl_save_exec_prefix="$exec_prefix"
9271 exec_prefix="$acl_final_exec_prefix"
9273 exec_prefix="$acl_save_exec_prefix"
9274 prefix="$acl_save_prefix"
9276 if test "X$x" = "X$element"; then
9281 if test -z "$haveit"; then
9282 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9288 $as_echo_n "checking for iconv... " >&6; }
9289 if ${am_cv_func_iconv+:} false; then :
9290 $as_echo_n "(cached) " >&6
9293 am_cv_func_iconv="no, consider installing GNU libiconv"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9304 iconv_t cd = iconv_open("","");
9305 iconv(cd,NULL,NULL,NULL,NULL);
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 am_cv_func_iconv=yes
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 if test "$am_cv_func_iconv" != yes; then
9317 am_save_LIBS="$LIBS"
9318 LIBS="$LIBS $LIBICONV"
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9328 iconv_t cd = iconv_open("","");
9329 iconv(cd,NULL,NULL,NULL,NULL);
9335 if ac_fn_c_try_link "$LINENO"; then :
9337 am_cv_func_iconv=yes
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS="$am_save_LIBS"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9346 $as_echo "$am_cv_func_iconv" >&6; }
9347 if test "$am_cv_func_iconv" = yes; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9349 $as_echo_n "checking for working iconv... " >&6; }
9350 if ${am_cv_func_iconv_works+:} false; then :
9351 $as_echo_n "(cached) " >&6
9354 am_save_LIBS="$LIBS"
9355 if test $am_cv_lib_iconv = yes; then
9356 LIBS="$LIBS $LIBICONV"
9358 if test "$cross_compiling" = yes; then :
9361 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9362 *) am_cv_func_iconv_works="guessing yes" ;;
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9374 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9377 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9378 if (cd_utf8_to_88591 != (iconv_t)(-1))
9380 static const char input[] = "\342\202\254"; /* EURO SIGN */
9382 const char *inptr = input;
9383 size_t inbytesleft = strlen (input);
9385 size_t outbytesleft = sizeof (buf);
9386 size_t res = iconv (cd_utf8_to_88591,
9387 (char **) &inptr, &inbytesleft,
9388 &outptr, &outbytesleft);
9391 iconv_close (cd_utf8_to_88591);
9394 /* Test against Solaris 10 bug: Failures are not distinguishable from
9395 successful returns. */
9397 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9398 if (cd_ascii_to_88591 != (iconv_t)(-1))
9400 static const char input[] = "\263";
9402 const char *inptr = input;
9403 size_t inbytesleft = strlen (input);
9405 size_t outbytesleft = sizeof (buf);
9406 size_t res = iconv (cd_ascii_to_88591,
9407 (char **) &inptr, &inbytesleft,
9408 &outptr, &outbytesleft);
9411 iconv_close (cd_ascii_to_88591);
9414 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9416 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9417 if (cd_88591_to_utf8 != (iconv_t)(-1))
9419 static const char input[] = "\304";
9420 static char buf[2] = { (char)0xDE, (char)0xAD };
9421 const char *inptr = input;
9422 size_t inbytesleft = 1;
9424 size_t outbytesleft = 1;
9425 size_t res = iconv (cd_88591_to_utf8,
9426 (char **) &inptr, &inbytesleft,
9427 &outptr, &outbytesleft);
9428 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9430 iconv_close (cd_88591_to_utf8);
9433 #if 0 /* This bug could be worked around by the caller. */
9434 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9436 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9437 if (cd_88591_to_utf8 != (iconv_t)(-1))
9439 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9441 const char *inptr = input;
9442 size_t inbytesleft = strlen (input);
9444 size_t outbytesleft = sizeof (buf);
9445 size_t res = iconv (cd_88591_to_utf8,
9446 (char **) &inptr, &inbytesleft,
9447 &outptr, &outbytesleft);
9450 iconv_close (cd_88591_to_utf8);
9454 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9456 if (/* Try standardized names. */
9457 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9458 /* Try IRIX, OSF/1 names. */
9459 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9460 /* Try AIX names. */
9461 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9462 /* Try HP-UX names. */
9463 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9468 if ac_fn_c_try_run "$LINENO"; then :
9469 am_cv_func_iconv_works=yes
9471 am_cv_func_iconv_works=no
9473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9474 conftest.$ac_objext conftest.beam conftest.$ac_ext
9477 LIBS="$am_save_LIBS"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9481 $as_echo "$am_cv_func_iconv_works" >&6; }
9482 case "$am_cv_func_iconv_works" in
9483 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9484 *) am_func_iconv=yes ;;
9487 am_func_iconv=no am_cv_lib_iconv=no
9489 if test "$am_func_iconv" = yes; then
9491 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9494 if test "$am_cv_lib_iconv" = yes; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9496 $as_echo_n "checking how to link with libiconv... " >&6; }
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9498 $as_echo "$LIBICONV" >&6; }
9500 CPPFLAGS="$am_save_CPPFLAGS"
9507 if test "$am_cv_func_iconv" = yes; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9509 $as_echo_n "checking for iconv declaration... " >&6; }
9510 if ${am_cv_proto_iconv+:} false; then :
9511 $as_echo_n "(cached) " >&6
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9523 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9524 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 am_cv_proto_iconv_arg1=""
9540 am_cv_proto_iconv_arg1="const"
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 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);"
9546 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9548 $am_cv_proto_iconv" >&5
9550 $am_cv_proto_iconv" >&6; }
9552 cat >>confdefs.h <<_ACEOF
9553 #define ICONV_CONST $am_cv_proto_iconv_arg1
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9573 if ac_fn_c_try_link "$LINENO"; then :
9575 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9581 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9594 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9595 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9596 argz_stringify argz_next __fsetlocking
9598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9601 cat >>confdefs.h <<_ACEOF
9602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9609 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9611 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9620 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9622 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9635 for ac_prog in bison
9637 # Extract the first word of "$ac_prog", so it can be a program name with args.
9638 set dummy $ac_prog; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_prog_INTLBISON+:} false; then :
9642 $as_echo_n "(cached) " >&6
9644 if test -n "$INTLBISON"; then
9645 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_prog_INTLBISON="$ac_prog"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 INTLBISON=$ac_cv_prog_INTLBISON
9665 if test -n "$INTLBISON"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9667 $as_echo "$INTLBISON" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9674 test -n "$INTLBISON" && break
9677 if test -z "$INTLBISON"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9681 $as_echo_n "checking version of bison... " >&6; }
9682 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9683 case $ac_prog_version in
9684 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9685 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9686 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9687 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9690 $as_echo "$ac_prog_version" >&6; }
9692 if test $ac_verc_fail = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9699 $as_echo_n "checking for long long int... " >&6; }
9700 if ${ac_cv_type_long_long_int+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 ac_cv_type_long_long_int=yes
9704 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9705 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9706 if test $ac_cv_type_long_long_int = yes; then
9707 if test "$cross_compiling" = yes; then :
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9715 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9716 # define LLONG_MAX (HALF - 1 + HALF)
9721 long long int n = 1;
9725 long long int m = n << i;
9728 if (LLONG_MAX / 2 < m)
9736 if ac_fn_c_try_run "$LINENO"; then :
9739 ac_cv_type_long_long_int=no
9741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9742 conftest.$ac_objext conftest.beam conftest.$ac_ext
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9749 $as_echo "$ac_cv_type_long_long_int" >&6; }
9750 if test $ac_cv_type_long_long_int = yes; then
9752 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9758 $as_echo_n "checking for wchar_t... " >&6; }
9759 if ${gt_cv_c_wchar_t+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9765 wchar_t foo = (wchar_t)'\0';
9774 if ac_fn_c_try_compile "$LINENO"; then :
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9782 $as_echo "$gt_cv_c_wchar_t" >&6; }
9783 if test $gt_cv_c_wchar_t = yes; then
9785 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9791 $as_echo_n "checking for wint_t... " >&6; }
9792 if ${gt_cv_c_wint_t+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9798 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9800 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9801 before <wchar.h>. */
9806 wint_t foo = (wchar_t)'\0';
9815 if ac_fn_c_try_compile "$LINENO"; then :
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9823 $as_echo "$gt_cv_c_wint_t" >&6; }
9824 if test $gt_cv_c_wint_t = yes; then
9826 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9834 $as_echo_n "checking for intmax_t... " >&6; }
9835 if ${gt_cv_c_intmax_t+:} false; then :
9836 $as_echo_n "(cached) " >&6
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9843 #if HAVE_STDINT_H_WITH_UINTMAX
9846 #if HAVE_INTTYPES_H_WITH_UINTMAX
9847 #include <inttypes.h>
9859 if ac_fn_c_try_compile "$LINENO"; then :
9860 gt_cv_c_intmax_t=yes
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9867 $as_echo "$gt_cv_c_intmax_t" >&6; }
9868 if test $gt_cv_c_intmax_t = yes; then
9870 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9877 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9878 if ${gt_cv_func_printf_posix+:} false; then :
9879 $as_echo_n "(cached) " >&6
9882 if test "$cross_compiling" = yes; then :
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9887 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9893 $EGREP "notposix" >/dev/null 2>&1; then :
9894 gt_cv_func_printf_posix="guessing no"
9896 gt_cv_func_printf_posix="guessing yes"
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9907 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9908 dollar expansion (possibly an autoconf bug). */
9909 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9910 static char buf[100];
9913 sprintf (buf, format, 33, 55);
9914 return (strcmp (buf, "55 33") != 0);
9917 if ac_fn_c_try_run "$LINENO"; then :
9918 gt_cv_func_printf_posix=yes
9920 gt_cv_func_printf_posix=no
9922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9923 conftest.$ac_objext conftest.beam conftest.$ac_ext
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9929 $as_echo "$gt_cv_func_printf_posix" >&6; }
9930 case $gt_cv_func_printf_posix in
9933 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9940 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9941 if ${ac_cv_gnu_library_2_1+:} false; then :
9942 $as_echo_n "(cached) " >&6
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9947 #include <features.h>
9948 #ifdef __GNU_LIBRARY__
9949 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9959 $EGREP "Lucky" >/dev/null 2>&1; then :
9960 ac_cv_gnu_library_2_1=yes
9962 ac_cv_gnu_library_2_1=no
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9970 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9972 GLIBC21="$ac_cv_gnu_library_2_1"
9976 for ac_header in stdint.h
9978 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_stdint_h" = xyes; then :
9980 cat >>confdefs.h <<_ACEOF
9981 #define HAVE_STDINT_H 1
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9989 $as_echo_n "checking for SIZE_MAX... " >&6; }
9990 if ${gl_cv_size_max+:} false; then :
9991 $as_echo_n "(cached) " >&6
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
10000 #include <stdint.h>
10007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10008 $EGREP "Found it" >/dev/null 2>&1; then :
10013 if test -z "$gl_cv_size_max"; then
10014 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10015 #include <limits.h>"; then :
10018 size_t_bits_minus_1=
10021 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10027 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10028 if test $fits_in_uint = 1; then
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 #include <stddef.h>
10033 extern unsigned long foo;
10043 if ac_fn_c_try_compile "$LINENO"; then :
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 if test $fits_in_uint = 1; then
10049 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10051 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10054 gl_cv_size_max='((size_t)~(size_t)0)'
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10060 $as_echo "$gl_cv_size_max" >&6; }
10061 if test "$gl_cv_size_max" != yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define SIZE_MAX $gl_cv_size_max
10072 for ac_header in stdint.h
10074 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10075 if test "x$ac_cv_header_stdint_h" = xyes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STDINT_H 1
10088 for ac_func in $ac_func_list
10090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10108 $as_echo_n "checking for working fcntl.h... " >&6; }
10109 if ${gl_cv_header_working_fcntl_h+:} false; then :
10110 $as_echo_n "(cached) " >&6
10112 if test "$cross_compiling" = yes; then :
10113 gl_cv_header_working_fcntl_h=cross-compiling
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 #include <sys/stat.h>
10120 # include <unistd.h>
10121 #else /* on Windows with MSVC */
10123 # include <stdlib.h>
10124 # defined sleep(n) _sleep ((n) * 1000)
10128 #define O_NOATIME 0
10131 #define O_NOFOLLOW 0
10133 static int const constants[] =
10135 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10136 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10143 int result = !constants;
10146 static char const sym[] = "conftest.sym";
10147 if (symlink ("/dev/null", sym) != 0)
10151 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10158 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10162 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10173 static char const file[] = "confdefs.h";
10174 int fd = open (file, O_RDONLY | O_NOATIME);
10180 if (fstat (fd, &st0) != 0)
10186 if (read (fd, &c, 1) != 1)
10190 if (close (fd) != 0)
10195 if (stat (file, &st1) != 0)
10198 if (st0.st_atime != st1.st_atime)
10210 if ac_fn_c_try_run "$LINENO"; then :
10211 gl_cv_header_working_fcntl_h=yes
10214 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10215 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10216 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10217 *) gl_cv_header_working_fcntl_h='no';;
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10226 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10228 case $gl_cv_header_working_fcntl_h in #(
10229 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_WORKING_O_NOATIME $ac_val
10238 case $gl_cv_header_working_fcntl_h in #(
10239 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10250 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10251 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10252 $as_echo_n "(cached) " >&6
10254 gt_save_LIBS="$LIBS"
10255 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <CoreFoundation/CFPreferences.h>
10262 CFPreferencesCopyAppValue(NULL, NULL)
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 gt_cv_func_CFPreferencesCopyAppValue=yes
10270 gt_cv_func_CFPreferencesCopyAppValue=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS="$gt_save_LIBS"
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10277 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10278 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10280 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10284 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10285 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10286 $as_echo_n "(cached) " >&6
10288 gt_save_LIBS="$LIBS"
10289 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <CoreFoundation/CFLocale.h>
10296 CFLocaleCopyCurrent();
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 gt_cv_func_CFLocaleCopyCurrent=yes
10304 gt_cv_func_CFLocaleCopyCurrent=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS="$gt_save_LIBS"
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10311 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10312 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10314 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10318 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10319 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10331 case "$enable_silent_rules" in
10332 yes) INTL_DEFAULT_VERBOSITY=0;;
10333 no) INTL_DEFAULT_VERBOSITY=1;;
10334 *) INTL_DEFAULT_VERBOSITY=1;;
10338 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10339 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10343 $as_echo "#define ptrdiff_t long" >>confdefs.h
10348 for ac_header in features.h stddef.h stdlib.h string.h
10350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10353 cat >>confdefs.h <<_ACEOF
10354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10362 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10367 cat >>confdefs.h <<_ACEOF
10368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10377 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_DECL__SNPRINTF $ac_have_decl
10386 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10388 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10399 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10401 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10412 case $gt_cv_func_printf_posix in
10413 *yes) HAVE_POSIX_PRINTF=1 ;;
10414 *) HAVE_POSIX_PRINTF=0 ;;
10417 if test "$ac_cv_func_asprintf" = yes; then
10423 if test "$ac_cv_func_snprintf" = yes; then
10429 if test "$ac_cv_func_newlocale" = yes; then
10435 if test "$ac_cv_func_wprintf" = yes; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10444 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10445 if ${am_cv_langinfo_codeset+:} false; then :
10446 $as_echo_n "(cached) " >&6
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #include <langinfo.h>
10454 char* cs = nl_langinfo(CODESET); return !cs;
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 am_cv_langinfo_codeset=yes
10462 am_cv_langinfo_codeset=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10469 $as_echo "$am_cv_langinfo_codeset" >&6; }
10470 if test $am_cv_langinfo_codeset = yes; then
10472 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10478 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10479 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10480 $as_echo_n "(cached) " >&6
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 #include <locale.h>
10493 if ac_fn_c_try_link "$LINENO"; then :
10494 gt_cv_val_LC_MESSAGES=yes
10496 gt_cv_val_LC_MESSAGES=no
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10502 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10503 if test $gt_cv_val_LC_MESSAGES = yes; then
10505 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10510 if test "$enable_shared" = yes; then
10512 mingw* | cygwin*) is_woe32dll=yes ;;
10513 *) is_woe32dll=no ;;
10518 WOE32DLL=$is_woe32dll
10522 mingw* | cygwin*) is_woe32=yes ;;
10527 if test $WOE32 = yes; then
10528 if test -n "$ac_tool_prefix"; then
10529 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10530 set dummy ${ac_tool_prefix}windres; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_WINDRES+:} false; then :
10534 $as_echo_n "(cached) " >&6
10536 if test -n "$WINDRES"; then
10537 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 WINDRES=$ac_cv_prog_WINDRES
10557 if test -n "$WINDRES"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10559 $as_echo "$WINDRES" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10567 if test -z "$ac_cv_prog_WINDRES"; then
10568 ac_ct_WINDRES=$WINDRES
10569 # Extract the first word of "windres", so it can be a program name with args.
10570 set dummy windres; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 if test -n "$ac_ct_WINDRES"; then
10577 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586 ac_cv_prog_ac_ct_WINDRES="windres"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10597 if test -n "$ac_ct_WINDRES"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10599 $as_echo "$ac_ct_WINDRES" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10605 if test "x$ac_ct_WINDRES" = x; then
10608 case $cross_compiling:$ac_tool_warned in
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10614 WINDRES=$ac_ct_WINDRES
10617 WINDRES="$ac_cv_prog_WINDRES"
10623 hpux*) LTLIBC="" ;;
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10654 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10655 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 gt_save_LIBS="$LIBS"
10659 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 #include <CoreFoundation/CFPreferences.h>
10666 CFPreferencesCopyAppValue(NULL, NULL)
10671 if ac_fn_c_try_link "$LINENO"; then :
10672 gt_cv_func_CFPreferencesCopyAppValue=yes
10674 gt_cv_func_CFPreferencesCopyAppValue=no
10676 rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS="$gt_save_LIBS"
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10681 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10682 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10684 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10688 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10689 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10690 $as_echo_n "(cached) " >&6
10692 gt_save_LIBS="$LIBS"
10693 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696 #include <CoreFoundation/CFLocale.h>
10700 CFLocaleCopyCurrent();
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 gt_cv_func_CFLocaleCopyCurrent=yes
10708 gt_cv_func_CFLocaleCopyCurrent=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS="$gt_save_LIBS"
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10715 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10716 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10718 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10722 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10723 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10731 BUILD_INCLUDED_LIBINTL=no
10732 USE_INCLUDED_LIBINTL=no
10738 case " $gt_needs " in
10739 *" need-formatstring-macros "*) gt_api_version=3 ;;
10740 *" need-ngettext "*) gt_api_version=2 ;;
10741 *) gt_api_version=1 ;;
10743 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10744 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10746 if test "$USE_NLS" = "yes"; then
10747 gt_use_preinstalled_gnugettext=no
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10750 $as_echo_n "checking whether included gettext is requested... " >&6; }
10752 # Check whether --with-included-gettext was given.
10753 if test "${with_included_gettext+set}" = set; then :
10754 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10756 nls_cv_force_use_gnu_gettext=no
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10760 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10762 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10763 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10766 if test $gt_api_version -ge 3; then
10767 gt_revision_test_code='
10768 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10769 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10771 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10774 gt_revision_test_code=
10776 if test $gt_api_version -ge 2; then
10777 gt_expression_test_code=' + * ngettext ("", "", 0)'
10779 gt_expression_test_code=
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10783 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10784 if eval \${$gt_func_gnugettext_libc+:} false; then :
10785 $as_echo_n "(cached) " >&6
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10790 #include <libintl.h>
10791 $gt_revision_test_code
10792 extern int _nl_msg_cat_cntr;
10793 extern int *_nl_domain_bindings;
10799 bindtextdomain ("", "");
10800 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 eval "$gt_func_gnugettext_libc=yes"
10809 eval "$gt_func_gnugettext_libc=no"
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10814 eval ac_res=\$$gt_func_gnugettext_libc
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10816 $as_echo "$ac_res" >&6; }
10818 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10829 acl_save_prefix="$prefix"
10830 prefix="$acl_final_prefix"
10831 acl_save_exec_prefix="$exec_prefix"
10832 exec_prefix="$acl_final_exec_prefix"
10834 eval additional_includedir=\"$includedir\"
10835 eval additional_libdir=\"$libdir\"
10837 exec_prefix="$acl_save_exec_prefix"
10838 prefix="$acl_save_prefix"
10841 # Check whether --with-libintl-prefix was given.
10842 if test "${with_libintl_prefix+set}" = set; then :
10843 withval=$with_libintl_prefix;
10844 if test "X$withval" = "Xno"; then
10847 if test "X$withval" = "X"; then
10849 acl_save_prefix="$prefix"
10850 prefix="$acl_final_prefix"
10851 acl_save_exec_prefix="$exec_prefix"
10852 exec_prefix="$acl_final_exec_prefix"
10854 eval additional_includedir=\"$includedir\"
10855 eval additional_libdir=\"$libdir\"
10857 exec_prefix="$acl_save_exec_prefix"
10858 prefix="$acl_save_prefix"
10861 additional_includedir="$withval/include"
10862 additional_libdir="$withval/$acl_libdirstem"
10863 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10864 && ! test -d "$withval/$acl_libdirstem"; then
10865 additional_libdir="$withval/$acl_libdirstem2"
10879 names_already_handled=
10880 names_next_round='intl '
10881 while test -n "$names_next_round"; do
10882 names_this_round="$names_next_round"
10884 for name in $names_this_round; do
10886 for n in $names_already_handled; do
10887 if test "$n" = "$name"; then
10888 already_handled=yes
10892 if test -z "$already_handled"; then
10893 names_already_handled="$names_already_handled $name"
10894 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10895 eval value=\"\$HAVE_LIB$uppername\"
10896 if test -n "$value"; then
10897 if test "$value" = yes; then
10898 eval value=\"\$LIB$uppername\"
10899 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10900 eval value=\"\$LTLIB$uppername\"
10901 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10910 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10911 if test -n "$acl_shlibext"; then
10912 shrext=".$acl_shlibext" # typically: shrext=.so
10916 if test $use_additional = yes; then
10917 dir="$additional_libdir"
10918 if test -n "$acl_shlibext"; then
10919 if test -f "$dir/$libname$shrext"; then
10921 found_so="$dir/$libname$shrext"
10923 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10924 ver=`(cd "$dir" && \
10925 for f in "$libname$shrext".*; do echo "$f"; done \
10926 | sed -e "s,^$libname$shrext\\\\.,," \
10927 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10928 | sed 1q ) 2>/dev/null`
10929 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10931 found_so="$dir/$libname$shrext.$ver"
10934 eval library_names=\"$acl_library_names_spec\"
10935 for f in $library_names; do
10936 if test -f "$dir/$f"; then
10945 if test "X$found_dir" = "X"; then
10946 if test -f "$dir/$libname.$acl_libext"; then
10948 found_a="$dir/$libname.$acl_libext"
10951 if test "X$found_dir" != "X"; then
10952 if test -f "$dir/$libname.la"; then
10953 found_la="$dir/$libname.la"
10957 if test "X$found_dir" = "X"; then
10958 for x in $LDFLAGS $LTLIBINTL; do
10960 acl_save_prefix="$prefix"
10961 prefix="$acl_final_prefix"
10962 acl_save_exec_prefix="$exec_prefix"
10963 exec_prefix="$acl_final_exec_prefix"
10965 exec_prefix="$acl_save_exec_prefix"
10966 prefix="$acl_save_prefix"
10970 dir=`echo "X$x" | sed -e 's/^X-L//'`
10971 if test -n "$acl_shlibext"; then
10972 if test -f "$dir/$libname$shrext"; then
10974 found_so="$dir/$libname$shrext"
10976 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10977 ver=`(cd "$dir" && \
10978 for f in "$libname$shrext".*; do echo "$f"; done \
10979 | sed -e "s,^$libname$shrext\\\\.,," \
10980 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10981 | sed 1q ) 2>/dev/null`
10982 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10984 found_so="$dir/$libname$shrext.$ver"
10987 eval library_names=\"$acl_library_names_spec\"
10988 for f in $library_names; do
10989 if test -f "$dir/$f"; then
10998 if test "X$found_dir" = "X"; then
10999 if test -f "$dir/$libname.$acl_libext"; then
11001 found_a="$dir/$libname.$acl_libext"
11004 if test "X$found_dir" != "X"; then
11005 if test -f "$dir/$libname.la"; then
11006 found_la="$dir/$libname.la"
11011 if test "X$found_dir" != "X"; then
11016 if test "X$found_dir" != "X"; then
11017 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11018 if test "X$found_so" != "X"; then
11019 if test "$enable_rpath" = no \
11020 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11021 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11025 for x in $ltrpathdirs; do
11026 if test "X$x" = "X$found_dir"; then
11031 if test -z "$haveit"; then
11032 ltrpathdirs="$ltrpathdirs $found_dir"
11034 if test "$acl_hardcode_direct" = yes; then
11035 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11037 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11040 for x in $rpathdirs; do
11041 if test "X$x" = "X$found_dir"; then
11046 if test -z "$haveit"; then
11047 rpathdirs="$rpathdirs $found_dir"
11051 for x in $LDFLAGS $LIBINTL; do
11053 acl_save_prefix="$prefix"
11054 prefix="$acl_final_prefix"
11055 acl_save_exec_prefix="$exec_prefix"
11056 exec_prefix="$acl_final_exec_prefix"
11058 exec_prefix="$acl_save_exec_prefix"
11059 prefix="$acl_save_prefix"
11061 if test "X$x" = "X-L$found_dir"; then
11066 if test -z "$haveit"; then
11067 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11069 if test "$acl_hardcode_minus_L" != no; then
11070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11072 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11078 if test "X$found_a" != "X"; then
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11081 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11084 additional_includedir=
11085 case "$found_dir" in
11086 */$acl_libdirstem | */$acl_libdirstem/)
11087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11088 if test "$name" = 'intl'; then
11089 LIBINTL_PREFIX="$basedir"
11091 additional_includedir="$basedir/include"
11093 */$acl_libdirstem2 | */$acl_libdirstem2/)
11094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11095 if test "$name" = 'intl'; then
11096 LIBINTL_PREFIX="$basedir"
11098 additional_includedir="$basedir/include"
11101 if test "X$additional_includedir" != "X"; then
11102 if test "X$additional_includedir" != "X/usr/include"; then
11104 if test "X$additional_includedir" = "X/usr/local/include"; then
11105 if test -n "$GCC"; then
11107 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11111 if test -z "$haveit"; then
11112 for x in $CPPFLAGS $INCINTL; do
11114 acl_save_prefix="$prefix"
11115 prefix="$acl_final_prefix"
11116 acl_save_exec_prefix="$exec_prefix"
11117 exec_prefix="$acl_final_exec_prefix"
11119 exec_prefix="$acl_save_exec_prefix"
11120 prefix="$acl_save_prefix"
11122 if test "X$x" = "X-I$additional_includedir"; then
11127 if test -z "$haveit"; then
11128 if test -d "$additional_includedir"; then
11129 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11135 if test -n "$found_la"; then
11136 save_libdir="$libdir"
11137 case "$found_la" in
11138 */* | *\\*) . "$found_la" ;;
11139 *) . "./$found_la" ;;
11141 libdir="$save_libdir"
11142 for dep in $dependency_libs; do
11145 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11146 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11147 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11149 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11150 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11151 if test -n "$GCC"; then
11153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11157 if test -z "$haveit"; then
11159 for x in $LDFLAGS $LIBINTL; do
11161 acl_save_prefix="$prefix"
11162 prefix="$acl_final_prefix"
11163 acl_save_exec_prefix="$exec_prefix"
11164 exec_prefix="$acl_final_exec_prefix"
11166 exec_prefix="$acl_save_exec_prefix"
11167 prefix="$acl_save_prefix"
11169 if test "X$x" = "X-L$additional_libdir"; then
11174 if test -z "$haveit"; then
11175 if test -d "$additional_libdir"; then
11176 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11180 for x in $LDFLAGS $LTLIBINTL; do
11182 acl_save_prefix="$prefix"
11183 prefix="$acl_final_prefix"
11184 acl_save_exec_prefix="$exec_prefix"
11185 exec_prefix="$acl_final_exec_prefix"
11187 exec_prefix="$acl_save_exec_prefix"
11188 prefix="$acl_save_prefix"
11190 if test "X$x" = "X-L$additional_libdir"; then
11195 if test -z "$haveit"; then
11196 if test -d "$additional_libdir"; then
11197 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11204 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11205 if test "$enable_rpath" != no; then
11207 for x in $rpathdirs; do
11208 if test "X$x" = "X$dir"; then
11213 if test -z "$haveit"; then
11214 rpathdirs="$rpathdirs $dir"
11217 for x in $ltrpathdirs; do
11218 if test "X$x" = "X$dir"; then
11223 if test -z "$haveit"; then
11224 ltrpathdirs="$ltrpathdirs $dir"
11229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11232 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11235 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11236 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11242 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11249 if test "X$rpathdirs" != "X"; then
11250 if test -n "$acl_hardcode_libdir_separator"; then
11252 for found_dir in $rpathdirs; do
11253 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11255 acl_save_libdir="$libdir"
11257 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11258 libdir="$acl_save_libdir"
11259 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11261 for found_dir in $rpathdirs; do
11262 acl_save_libdir="$libdir"
11263 libdir="$found_dir"
11264 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11265 libdir="$acl_save_libdir"
11266 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11270 if test "X$ltrpathdirs" != "X"; then
11271 for found_dir in $ltrpathdirs; do
11272 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11282 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11283 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 gt_save_CPPFLAGS="$CPPFLAGS"
11287 CPPFLAGS="$CPPFLAGS $INCINTL"
11288 gt_save_LIBS="$LIBS"
11289 LIBS="$LIBS $LIBINTL"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 #include <libintl.h>
11294 $gt_revision_test_code
11295 extern int _nl_msg_cat_cntr;
11300 const char *_nl_expand_alias (const char *);
11306 bindtextdomain ("", "");
11307 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 eval "$gt_func_gnugettext_libintl=yes"
11316 eval "$gt_func_gnugettext_libintl=no"
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11321 LIBS="$LIBS $LIBICONV"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 #include <libintl.h>
11326 $gt_revision_test_code
11327 extern int _nl_msg_cat_cntr;
11332 const char *_nl_expand_alias (const char *);
11338 bindtextdomain ("", "");
11339 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 LIBINTL="$LIBINTL $LIBICONV"
11347 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11348 eval "$gt_func_gnugettext_libintl=yes"
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11354 CPPFLAGS="$gt_save_CPPFLAGS"
11355 LIBS="$gt_save_LIBS"
11357 eval ac_res=\$$gt_func_gnugettext_libintl
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11359 $as_echo "$ac_res" >&6; }
11362 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11363 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11364 && test "$PACKAGE" != gettext-runtime \
11365 && test "$PACKAGE" != gettext-tools; }; then
11366 gt_use_preinstalled_gnugettext=yes
11374 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11375 nls_cv_use_gnu_gettext=yes
11379 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11380 BUILD_INCLUDED_LIBINTL=yes
11381 USE_INCLUDED_LIBINTL=yes
11382 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11383 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11384 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11388 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11389 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11394 if test -n "$INTL_MACOSX_LIBS"; then
11395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11397 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11398 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11405 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11413 $as_echo_n "checking whether to use NLS... " >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11415 $as_echo "$USE_NLS" >&6; }
11416 if test "$USE_NLS" = "yes"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11418 $as_echo_n "checking where the gettext function comes from... " >&6; }
11419 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11420 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11421 gt_source="external libintl"
11426 gt_source="included intl directory"
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11429 $as_echo "$gt_source" >&6; }
11432 if test "$USE_NLS" = "yes"; then
11434 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11435 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11437 $as_echo_n "checking how to link with libintl... " >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11439 $as_echo "$LIBINTL" >&6; }
11441 for element in $INCINTL; do
11443 for x in $CPPFLAGS; do
11445 acl_save_prefix="$prefix"
11446 prefix="$acl_final_prefix"
11447 acl_save_exec_prefix="$exec_prefix"
11448 exec_prefix="$acl_final_exec_prefix"
11450 exec_prefix="$acl_save_exec_prefix"
11451 prefix="$acl_save_prefix"
11453 if test "X$x" = "X$element"; then
11458 if test -z "$haveit"; then
11459 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11466 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11469 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11477 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11478 BUILD_INCLUDED_LIBINTL=yes
11485 nls_cv_header_intl=
11486 nls_cv_header_libgt=
11498 if test "$USE_INCLUDED_LIBINTL" = yes; then
11499 INTLOBJS="\$(GETTOBJS)"
11503 INTL_LIBTOOL_SUFFIX_PREFIX=
11507 INTLLIBS="$LIBINTL"
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11520 $as_echo_n "(cached) " >&6
11522 cat >conftest.make <<\_ACEOF
11525 @echo '@@@%%%=$(MAKE)=@@@%%%'
11527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11529 *@@@%%%=?*=@@@%%%*)
11530 eval ac_cv_prog_make_${ac_make}_set=yes;;
11532 eval ac_cv_prog_make_${ac_make}_set=no;;
11534 rm -f conftest.make
11536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543 SET_MAKE="MAKE=${MAKE-make}"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11547 $as_echo_n "checking for GNU make... " >&6; }
11548 if ${_cv_gnu_make_command+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 _cv_gnu_make_command='' ;
11552 if test -n "$FORCE_NATIVE_MAKE" ; then
11555 MAKES="make gmake gnumake"
11557 for a in "$MAKE" $MAKES ; do
11558 if test -z "$a" ; then continue ; fi ;
11559 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11560 _cv_gnu_make_command=$a ;
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11567 $as_echo "$_cv_gnu_make_command" >&6; } ;
11568 if test "x$_cv_gnu_make_command" != "x" ; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11575 $as_echo "\"Not found\"" >&6; };
11580 # Extract the first word of "ln", so it can be a program name with args.
11581 set dummy ln; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_path_LN+:} false; then :
11585 $as_echo_n "(cached) " >&6
11589 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11612 if test -n "$LN"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11614 $as_echo "$LN" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11622 $as_echo_n "checking whether ln -s works... " >&6; }
11624 if test "$LN_S" = "ln -s"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11629 $as_echo "no, using $LN_S" >&6; }
11632 # Extract the first word of "mv", so it can be a program name with args.
11633 set dummy mv; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_path_MV+:} false; then :
11637 $as_echo_n "(cached) " >&6
11641 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11664 if test -n "$MV"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11666 $as_echo "$MV" >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11673 # Extract the first word of "cp", so it can be a program name with args.
11674 set dummy cp; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_CP+:} false; then :
11678 $as_echo_n "(cached) " >&6
11682 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11705 if test -n "$CP"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11707 $as_echo "$CP" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11714 # Extract the first word of "rm", so it can be a program name with args.
11715 set dummy rm; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_RM+:} false; then :
11719 $as_echo_n "(cached) " >&6
11723 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11746 if test -n "$RM"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11748 $as_echo "$RM" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 # Extract the first word of "chmod", so it can be a program name with args.
11756 set dummy chmod; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_path_CHMOD+:} false; then :
11760 $as_echo_n "(cached) " >&6
11764 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $PATH
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11786 CHMOD=$ac_cv_path_CHMOD
11787 if test -n "$CHMOD"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11789 $as_echo "$CHMOD" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11796 for ac_prog in gawk mawk nawk awk
11798 # Extract the first word of "$ac_prog", so it can be a program name with args.
11799 set dummy $ac_prog; ac_word=$2
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if ${ac_cv_prog_AWK+:} false; then :
11803 $as_echo_n "(cached) " >&6
11805 if test -n "$AWK"; then
11806 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11815 ac_cv_prog_AWK="$ac_prog"
11816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 AWK=$ac_cv_prog_AWK
11826 if test -n "$AWK"; then
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11828 $as_echo "$AWK" >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11835 test -n "$AWK" && break
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11839 $as_echo_n "checking for egrep... " >&6; }
11840 if ${ac_cv_path_EGREP+:} false; then :
11841 $as_echo_n "(cached) " >&6
11843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11844 then ac_cv_path_EGREP="$GREP -E"
11846 if test -z "$EGREP"; then
11847 ac_path_EGREP_found=false
11848 # Loop through the user's path and test for each of PROGNAME-LIST
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11853 test -z "$as_dir" && as_dir=.
11854 for ac_prog in egrep; do
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11857 as_fn_executable_p "$ac_path_EGREP" || continue
11858 # Check for GNU ac_path_EGREP and select it if it is found.
11859 # Check for GNU $ac_path_EGREP
11860 case `"$ac_path_EGREP" --version 2>&1` in
11862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11865 $as_echo_n 0123456789 >"conftest.in"
11868 cat "conftest.in" "conftest.in" >"conftest.tmp"
11869 mv "conftest.tmp" "conftest.in"
11870 cp "conftest.in" "conftest.nl"
11871 $as_echo 'EGREP' >> "conftest.nl"
11872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11874 as_fn_arith $ac_count + 1 && ac_count=$as_val
11875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11876 # Best one so far, save it but keep looking for a better one
11877 ac_cv_path_EGREP="$ac_path_EGREP"
11878 ac_path_EGREP_max=$ac_count
11880 # 10*(2^10) chars as input seems more than enough
11881 test $ac_count -gt 10 && break
11883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11886 $ac_path_EGREP_found && break 3
11891 if test -z "$ac_cv_path_EGREP"; then
11892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11895 ac_cv_path_EGREP=$EGREP
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11901 $as_echo "$ac_cv_path_EGREP" >&6; }
11902 EGREP="$ac_cv_path_EGREP"
11905 # Extract the first word of "sed", so it can be a program name with args.
11906 set dummy sed; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_SED+:} false; then :
11910 $as_echo_n "(cached) " >&6
11914 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11936 SED=$ac_cv_path_SED
11937 if test -n "$SED"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11939 $as_echo "$SED" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11946 # Extract the first word of "perl", so it can be a program name with args.
11947 set dummy perl; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_PERL+:} false; then :
11951 $as_echo_n "(cached) " >&6
11955 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11977 PERL=$ac_cv_path_PERL
11978 if test -n "$PERL"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11980 $as_echo "$PERL" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11987 # Extract the first word of "ldconfig", so it can be a program name with args.
11988 set dummy ldconfig; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_LDCONFIG+:} false; then :
11992 $as_echo_n "(cached) " >&6
11996 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12018 LDCONFIG=$ac_cv_path_LDCONFIG
12019 if test -n "$LDCONFIG"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12021 $as_echo "$LDCONFIG" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12028 if test -n "$ac_tool_prefix"; then
12029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12030 set dummy ${ac_tool_prefix}ar; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_prog_AR+:} false; then :
12034 $as_echo_n "(cached) " >&6
12036 if test -n "$AR"; then
12037 ac_cv_prog_AR="$AR" # Let the user override the test.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_prog_AR="${ac_tool_prefix}ar"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 if test -n "$AR"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12059 $as_echo "$AR" >&6; }
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12067 if test -z "$ac_cv_prog_AR"; then
12069 # Extract the first word of "ar", so it can be a program name with args.
12070 set dummy ar; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12074 $as_echo_n "(cached) " >&6
12076 if test -n "$ac_ct_AR"; then
12077 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086 ac_cv_prog_ac_ct_AR="ar"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12097 if test -n "$ac_ct_AR"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12099 $as_echo "$ac_ct_AR" >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12105 if test "x$ac_ct_AR" = x; then
12108 case $cross_compiling:$ac_tool_warned in
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12112 ac_tool_warned=yes ;;
12117 AR="$ac_cv_prog_AR"
12120 if test -n "$ac_tool_prefix"; then
12121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_RANLIB+:} false; then :
12126 $as_echo_n "(cached) " >&6
12128 if test -n "$RANLIB"; then
12129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 RANLIB=$ac_cv_prog_RANLIB
12149 if test -n "$RANLIB"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12151 $as_echo "$RANLIB" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12159 if test -z "$ac_cv_prog_RANLIB"; then
12160 ac_ct_RANLIB=$RANLIB
12161 # Extract the first word of "ranlib", so it can be a program name with args.
12162 set dummy ranlib; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12166 $as_echo_n "(cached) " >&6
12168 if test -n "$ac_ct_RANLIB"; then
12169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_prog_ac_ct_RANLIB="ranlib"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12189 if test -n "$ac_ct_RANLIB"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12191 $as_echo "$ac_ct_RANLIB" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12197 if test "x$ac_ct_RANLIB" = x; then
12200 case $cross_compiling:$ac_tool_warned in
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12204 ac_tool_warned=yes ;;
12206 RANLIB=$ac_ct_RANLIB
12209 RANLIB="$ac_cv_prog_RANLIB"
12212 if test -n "$ac_tool_prefix"; then
12213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12214 set dummy ${ac_tool_prefix}strip; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_prog_STRIP+:} false; then :
12218 $as_echo_n "(cached) " >&6
12220 if test -n "$STRIP"; then
12221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
12229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 STRIP=$ac_cv_prog_STRIP
12241 if test -n "$STRIP"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12243 $as_echo "$STRIP" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12251 if test -z "$ac_cv_prog_STRIP"; then
12253 # Extract the first word of "strip", so it can be a program name with args.
12254 set dummy strip; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12258 $as_echo_n "(cached) " >&6
12260 if test -n "$ac_ct_STRIP"; then
12261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_ac_ct_STRIP="strip"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12281 if test -n "$ac_ct_STRIP"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12283 $as_echo "$ac_ct_STRIP" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12289 if test "x$ac_ct_STRIP" = x; then
12292 case $cross_compiling:$ac_tool_warned in
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12296 ac_tool_warned=yes ;;
12301 STRIP="$ac_cv_prog_STRIP"
12304 # Extract the first word of "makeinfo", so it can be a program name with args.
12305 set dummy makeinfo; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_prog_MAKEINFO+:} false; then :
12309 $as_echo_n "(cached) " >&6
12311 if test -n "$MAKEINFO"; then
12312 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321 ac_cv_prog_MAKEINFO="makeinfo"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 MAKEINFO=$ac_cv_prog_MAKEINFO
12332 if test -n "$MAKEINFO"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12334 $as_echo "$MAKEINFO" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12341 if test "_$MAKEINFO" = "_"; then
12342 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12344 case "$MAKEINFO" in
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12347 *** Makeinfo is missing. Info documentation will not be built." >&5
12348 $as_echo "$as_me: WARNING:
12349 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12357 # See if we need a separate native compiler.
12358 if test $cross_compiling = no; then
12362 for ac_prog in gcc cc
12364 # Extract the first word of "$ac_prog", so it can be a program name with args.
12365 set dummy $ac_prog; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_BUILD_CC+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 if test -n "$BUILD_CC"; then
12372 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_BUILD_CC="$ac_prog"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 BUILD_CC=$ac_cv_prog_BUILD_CC
12392 if test -n "$BUILD_CC"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12394 $as_echo "$BUILD_CC" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12401 test -n "$BUILD_CC" && break
12405 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
12407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12408 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12410 cat >>confdefs.h <<_ACEOF
12411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12419 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12421 for i in dd gdd ; do
12422 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12427 if test -n "$DD" ; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12429 $as_echo "$DD" >&6; }
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12432 $as_echo "not found, using dd" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12435 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12439 for ac_header in net/if.h
12441 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12442 #if HAVE_SYS_TYPES_H
12443 #include <sys/types.h>
12445 #if HAVE_SYS_SOCKET
12446 #include <sys/socket.h>
12450 if test "x$ac_cv_header_net_if_h" = xyes; then :
12451 cat >>confdefs.h <<_ACEOF
12452 #define HAVE_NET_IF_H 1
12459 for ac_func in vprintf
12461 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12462 if test "x$ac_cv_func_vprintf" = xyes; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_VPRINTF 1
12467 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12468 if test "x$ac_cv_func__doprnt" = xyes; then :
12470 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12478 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12480 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12482 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12486 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12487 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_STRUCT_STAT_ST_ATIM 1
12496 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12498 if test "x$ac_cv_type_ssize_t" = xyes; then :
12500 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12504 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12506 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12508 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12512 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12513 #define _LARGEFILE64_SOURCE
12514 #include <unistd.h>
12516 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12518 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12522 # The cast to long int works around a bug in the HP C Compiler
12523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525 # This bug is HP SR number 8606223364.
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12527 $as_echo_n "checking size of short... " >&6; }
12528 if ${ac_cv_sizeof_short+:} false; then :
12529 $as_echo_n "(cached) " >&6
12531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12534 if test "$ac_cv_type_short" = yes; then
12535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12537 as_fn_error 77 "cannot compute sizeof (short)
12538 See \`config.log' for more details" "$LINENO" 5; }
12540 ac_cv_sizeof_short=0
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12546 $as_echo "$ac_cv_sizeof_short" >&6; }
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF_SHORT $ac_cv_sizeof_short
12555 # The cast to long int works around a bug in the HP C Compiler
12556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12558 # This bug is HP SR number 8606223364.
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12560 $as_echo_n "checking size of int... " >&6; }
12561 if ${ac_cv_sizeof_int+:} false; then :
12562 $as_echo_n "(cached) " >&6
12564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12567 if test "$ac_cv_type_int" = yes; then
12568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12570 as_fn_error 77 "cannot compute sizeof (int)
12571 See \`config.log' for more details" "$LINENO" 5; }
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12579 $as_echo "$ac_cv_sizeof_int" >&6; }
12583 cat >>confdefs.h <<_ACEOF
12584 #define SIZEOF_INT $ac_cv_sizeof_int
12588 # The cast to long int works around a bug in the HP C Compiler
12589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12591 # This bug is HP SR number 8606223364.
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12593 $as_echo_n "checking size of long... " >&6; }
12594 if ${ac_cv_sizeof_long+:} false; then :
12595 $as_echo_n "(cached) " >&6
12597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12600 if test "$ac_cv_type_long" = yes; then
12601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12603 as_fn_error 77 "cannot compute sizeof (long)
12604 See \`config.log' for more details" "$LINENO" 5; }
12606 ac_cv_sizeof_long=0
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12612 $as_echo "$ac_cv_sizeof_long" >&6; }
12616 cat >>confdefs.h <<_ACEOF
12617 #define SIZEOF_LONG $ac_cv_sizeof_long
12621 # The cast to long int works around a bug in the HP C Compiler
12622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12624 # This bug is HP SR number 8606223364.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12626 $as_echo_n "checking size of long long... " >&6; }
12627 if ${ac_cv_sizeof_long_long+:} false; then :
12628 $as_echo_n "(cached) " >&6
12630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12633 if test "$ac_cv_type_long_long" = yes; then
12634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12636 as_fn_error 77 "cannot compute sizeof (long long)
12637 See \`config.log' for more details" "$LINENO" 5; }
12639 ac_cv_sizeof_long_long=0
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12649 cat >>confdefs.h <<_ACEOF
12650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12654 # The cast to long int works around a bug in the HP C Compiler
12655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12657 # This bug is HP SR number 8606223364.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12659 $as_echo_n "checking size of off_t... " >&6; }
12660 if ${ac_cv_sizeof_off_t+:} false; then :
12661 $as_echo_n "(cached) " >&6
12663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12666 if test "$ac_cv_type_off_t" = yes; then
12667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12669 as_fn_error 77 "cannot compute sizeof (off_t)
12670 See \`config.log' for more details" "$LINENO" 5; }
12672 ac_cv_sizeof_off_t=0
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12678 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12682 cat >>confdefs.h <<_ACEOF
12683 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12687 # The cast to long int works around a bug in the HP C Compiler
12688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12690 # This bug is HP SR number 8606223364.
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12692 $as_echo_n "checking size of time_t... " >&6; }
12693 if ${ac_cv_sizeof_time_t+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12699 if test "$ac_cv_type_time_t" = yes; then
12700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12702 as_fn_error 77 "cannot compute sizeof (time_t)
12703 See \`config.log' for more details" "$LINENO" 5; }
12705 ac_cv_sizeof_time_t=0
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12711 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12715 cat >>confdefs.h <<_ACEOF
12716 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12720 SIZEOF_SHORT=$ac_cv_sizeof_short
12721 SIZEOF_INT=$ac_cv_sizeof_int
12722 SIZEOF_LONG=$ac_cv_sizeof_long
12723 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12724 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12725 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12733 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12734 if ${ac_cv_c_bigendian+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 ac_cv_c_bigendian=unknown
12738 # See if we're dealing with a universal compiler.
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #ifndef __APPLE_CC__
12742 not a universal capable compiler
12747 if ac_fn_c_try_compile "$LINENO"; then :
12749 # Check for potential -arch flags. It is not universal unless
12750 # there are at least two -arch flags with different values.
12753 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12754 if test -n "$ac_prev"; then
12756 i?86 | x86_64 | ppc | ppc64)
12757 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12760 ac_cv_c_bigendian=universal
12766 elif test "x$ac_word" = "x-arch"; then
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 if test $ac_cv_c_bigendian = unknown; then
12773 # See if sys/param.h defines the BYTE_ORDER macro.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 #include <sys/types.h>
12777 #include <sys/param.h>
12782 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12783 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12785 bogus endian macros
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793 # It does; now see whether it defined to BIG_ENDIAN or not.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <sys/types.h>
12797 #include <sys/param.h>
12802 #if BYTE_ORDER != BIG_ENDIAN
12810 if ac_fn_c_try_compile "$LINENO"; then :
12811 ac_cv_c_bigendian=yes
12813 ac_cv_c_bigendian=no
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 if test $ac_cv_c_bigendian = unknown; then
12820 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 #include <limits.h>
12828 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12829 bogus endian macros
12836 if ac_fn_c_try_compile "$LINENO"; then :
12837 # It does; now see whether it defined to _BIG_ENDIAN or not.
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #include <limits.h>
12845 #ifndef _BIG_ENDIAN
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_c_bigendian=yes
12856 ac_cv_c_bigendian=no
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 if test $ac_cv_c_bigendian = unknown; then
12863 # Compile a test program.
12864 if test "$cross_compiling" = yes; then :
12865 # Try to guess by grepping values from an object file.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 short int ascii_mm[] =
12869 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12870 short int ascii_ii[] =
12871 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12872 int use_ascii (int i) {
12873 return ascii_mm[i] + ascii_ii[i];
12875 short int ebcdic_ii[] =
12876 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12877 short int ebcdic_mm[] =
12878 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12879 int use_ebcdic (int i) {
12880 return ebcdic_mm[i] + ebcdic_ii[i];
12887 return use_ascii (foo) == use_ebcdic (foo);
12892 if ac_fn_c_try_compile "$LINENO"; then :
12893 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12894 ac_cv_c_bigendian=yes
12896 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12897 if test "$ac_cv_c_bigendian" = unknown; then
12898 ac_cv_c_bigendian=no
12900 # finding both strings is unlikely to happen, but who knows?
12901 ac_cv_c_bigendian=unknown
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 $ac_includes_default
12914 /* Are we little or big endian? From Harbison&Steele. */
12918 char c[sizeof (long int)];
12921 return u.c[sizeof (long int) - 1] == 1;
12927 if ac_fn_c_try_run "$LINENO"; then :
12928 ac_cv_c_bigendian=no
12930 ac_cv_c_bigendian=yes
12932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12933 conftest.$ac_objext conftest.beam conftest.$ac_ext
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12939 $as_echo "$ac_cv_c_bigendian" >&6; }
12940 case $ac_cv_c_bigendian in #(
12942 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12948 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12952 as_fn_error $? "unknown endianness
12953 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12956 if test $cross_compiling = no; then
12957 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12959 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12961 ASM_TYPES_HEADER=./asm_types.h
12963 echo "/* These defines are needed for the public ext2fs.h header file */" \
12965 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12966 uniq tmp_config.$$ >> public_config.h
12968 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12970 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12971 uniq tmp_config.$$ >> public_config.h
12973 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12975 rm -f tmp_config.$$
12976 PUBLIC_CONFIG_HEADER=./public_config.h
12978 for ac_header in inttypes.h
12980 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12981 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12982 cat >>confdefs.h <<_ACEOF
12983 #define HAVE_INTTYPES_H 1
12990 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12991 if test "x$ac_cv_type_intptr_t" = xyes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_INTPTR_T 1
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13001 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13002 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13003 $as_echo_n "(cached) " >&6
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <sys/stat.h>
13011 struct stat stat; stat.st_flags = 0;
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017 e2fsprogs_cv_struct_st_flags=yes
13019 e2fsprogs_cv_struct_st_flags=no
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13025 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13026 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13028 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13029 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13030 $as_echo_n "(cached) " >&6
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #include <sys/stat.h>
13038 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13043 if ac_fn_c_try_compile "$LINENO"; then :
13044 e2fsprogs_cv_struct_st_flags_immut=yes
13046 e2fsprogs_cv_struct_st_flags_immut=no
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13052 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13053 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13055 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13059 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13060 #include <sys/socket.h>
13062 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_SA_LEN 1
13070 if test -n "$BLKID_CMT"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13072 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13073 if ${ac_cv_search_blkid_probe_all+:} false; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_func_search_save_LIBS=$LIBS
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13086 char blkid_probe_all ();
13090 return blkid_probe_all ();
13095 for ac_lib in '' blkid; do
13096 if test -z "$ac_lib"; then
13097 ac_res="none required"
13100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_search_blkid_probe_all=$ac_res
13105 rm -f core conftest.err conftest.$ac_objext \
13107 if ${ac_cv_search_blkid_probe_all+:} false; then :
13111 if ${ac_cv_search_blkid_probe_all+:} false; then :
13114 ac_cv_search_blkid_probe_all=no
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13120 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13121 ac_res=$ac_cv_search_blkid_probe_all
13122 if test "$ac_res" != no; then :
13123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128 if test -n "$DLOPEN_LIB" ; then
13129 ac_cv_func_dlopen=yes
13131 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13136 cat >>confdefs.h <<_ACEOF
13137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13145 $as_echo_n "checking for socket in -lsocket... " >&6; }
13146 if ${ac_cv_lib_socket_socket+:} false; then :
13147 $as_echo_n "(cached) " >&6
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lsocket $LIBS"
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13154 /* Override any GCC internal prototype to avoid an error.
13155 Use char because int might match the return type of a GCC
13156 builtin and then its argument prototype would still apply. */
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 ac_cv_lib_socket_socket=yes
13172 ac_cv_lib_socket_socket=no
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 LIBS=$ac_check_lib_save_LIBS
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13179 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13180 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13181 SOCKET_LIB=-lsocket
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13186 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13187 if ${ac_cv_lib_magic_magic_file+:} false; then :
13188 $as_echo_n "(cached) " >&6
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lmagic $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 magic_file ();
13205 return magic_file ();
13210 if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_magic_magic_file=yes
13213 ac_cv_lib_magic_magic_file=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_magic_magic_file" >&5
13220 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13221 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13223 for ac_header in magic.h
13225 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13226 if test "x$ac_cv_header_magic_h" = xyes; then :
13227 cat >>confdefs.h <<_ACEOF
13228 #define HAVE_MAGIC_H 1
13237 if test "$ac_cv_func_dlopen" = yes ; then
13238 MAGIC_LIB=$DLOPEN_LIB
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13242 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13243 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13244 $as_echo_n "(cached) " >&6
13246 ac_check_lib_save_LIBS=$LIBS
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13257 char clock_gettime ();
13261 return clock_gettime ();
13266 if ac_fn_c_try_link "$LINENO"; then :
13267 ac_cv_lib_rt_clock_gettime=yes
13269 ac_cv_lib_rt_clock_gettime=no
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13276 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13277 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13278 CLOCK_GETTIME_LIB=-lrt
13284 # Check whether --enable-fuse2fs was given.
13285 if test "${enable_fuse2fs+set}" = set; then :
13286 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13290 $as_echo "Disabling fuse2fs" >&6; }
13292 for ac_header in pthread.h fuse.h
13294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13296 #define FUSE_USE_VERSION 29
13298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13299 cat >>confdefs.h <<_ACEOF
13300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "Cannot find fuse2fs headers.
13307 See \`config.log' for more details" "$LINENO" 5; }
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #define FUSE_USE_VERSION 29
13317 #include <linux/fs.h>
13318 #include <linux/falloc.h>
13319 #include <linux/xattr.h>
13330 if ac_fn_c_try_cpp "$LINENO"; then :
13333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13335 as_fn_error $? "Cannot find fuse2fs Linux headers.
13336 See \`config.log' for more details" "$LINENO" 5; }
13338 rm -f conftest.err conftest.i conftest.$ac_ext
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13341 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13342 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13343 $as_echo_n "(cached) " >&6
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-losxfuse $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13360 return fuse_main ();
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 ac_cv_lib_osxfuse_fuse_main=yes
13368 ac_cv_lib_osxfuse_fuse_main=no
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13375 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13376 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13380 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13381 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13382 $as_echo_n "(cached) " >&6
13384 ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-lfuse $LIBS"
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13399 return fuse_main ();
13404 if ac_fn_c_try_link "$LINENO"; then :
13405 ac_cv_lib_fuse_fuse_main=yes
13407 ac_cv_lib_fuse_fuse_main=no
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13414 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13415 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13420 as_fn_error $? "Cannot find fuse library.
13421 See \`config.log' for more details" "$LINENO" 5; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13427 $as_echo "Enabling fuse2fs" >&6; }
13431 for ac_header in pthread.h fuse.h
13433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13435 #define FUSE_USE_VERSION 29
13437 # include <linux/fs.h>
13438 # include <linux/falloc.h>
13439 # include <linux/xattr.h>
13442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13443 cat >>confdefs.h <<_ACEOF
13444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13453 if test -z "$FUSE_CMT"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13456 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13457 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-losxfuse $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13465 /* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13475 return fuse_main ();
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 ac_cv_lib_osxfuse_fuse_main=yes
13483 ac_cv_lib_osxfuse_fuse_main=no
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13490 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13491 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13495 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13496 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13497 $as_echo_n "(cached) " >&6
13499 ac_check_lib_save_LIBS=$LIBS
13500 LIBS="-lfuse $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13504 /* Override any GCC internal prototype to avoid an error.
13505 Use char because int might match the return type of a GCC
13506 builtin and then its argument prototype would still apply. */
13514 return fuse_main ();
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 ac_cv_lib_fuse_fuse_main=yes
13522 ac_cv_lib_fuse_fuse_main=no
13524 rm -f core conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 LIBS=$ac_check_lib_save_LIBS
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13529 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13530 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13539 if test -z "$FUSE_CMT"
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13542 $as_echo "Enabling fuse2fs by default." >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13550 $as_echo_n "checking for optreset... " >&6; }
13551 if ${ac_cv_have_optreset+:} false; then :
13552 $as_echo_n "(cached) " >&6
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 #include <unistd.h>
13559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13560 $EGREP "optreset" >/dev/null 2>&1; then :
13561 ac_cv_have_optreset=yes
13563 ac_cv_have_optreset=no
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13569 $as_echo "$ac_cv_have_optreset" >&6; }
13570 if test $ac_cv_have_optreset = yes; then
13572 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13577 echo GL_THREADS_API: ${gl_threads_api}
13578 if test "${gl_threads_api}" != none
13580 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13581 if test "x$ac_cv_func_sem_init" = xyes; then :
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13585 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13586 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13587 $as_echo_n "(cached) " >&6
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lpthread $LIBS"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13604 return sem_init ();
13609 if ac_fn_c_try_link "$LINENO"; then :
13610 ac_cv_lib_pthread_sem_init=yes
13612 ac_cv_lib_pthread_sem_init=no
13614 rm -f core conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13619 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13620 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13621 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13623 SEM_INIT_LIB=-lpthread
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13626 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13627 if ${ac_cv_lib_rt_sem_init+:} false; then :
13628 $as_echo_n "(cached) " >&6
13630 ac_check_lib_save_LIBS=$LIBS
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 /* Override any GCC internal prototype to avoid an error.
13636 Use char because int might match the return type of a GCC
13637 builtin and then its argument prototype would still apply. */
13645 return sem_init ();
13650 if ac_fn_c_try_link "$LINENO"; then :
13651 ac_cv_lib_rt_sem_init=yes
13653 ac_cv_lib_rt_sem_init=no
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13660 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13661 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13662 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13667 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13668 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13669 $as_echo_n "(cached) " >&6
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lposix4 $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13686 return sem_init ();
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 ac_cv_lib_posix4_sem_init=yes
13694 ac_cv_lib_posix4_sem_init=no
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13701 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13702 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13703 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13705 SEM_INIT_LIB=-lposix4
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13716 $as_echo_n "checking for unified diff option... " >&6; }
13717 if diff -u $0 $0 > /dev/null 2>&1 ; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13723 $as_echo "$UNI_DIFF_OPTS" >&6; }
13728 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13747 E2SCRUB_CMT="$LINUX_CMT"
13750 linux* | gnu* | k*bsd*-gnu)
13751 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13754 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13759 linux* | gnu* | k*bsd*-gnu)
13760 if test "$prefix" = NONE ; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13763 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13764 if test "$mandir" = '${prefix}/man' ; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13766 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13767 mandir=/usr/share/man
13772 if test "$root_prefix" = NONE ; then
13773 if test "$prefix" = NONE ; then
13774 root_prefix="$ac_default_prefix"
13776 root_prefix="$prefix"
13778 root_bindir=$bindir
13779 root_sbindir=$sbindir
13780 root_libdir=$libdir
13781 root_sysconfdir=$sysconfdir
13783 root_bindir='${root_prefix}/bin'
13784 root_sbindir='${root_prefix}/sbin'
13785 root_libdir='${root_prefix}/lib'
13786 root_sysconfdir='${root_prefix}/etc'
13788 if test "$bindir" != '${exec_prefix}/bin'; then
13789 root_bindir=$bindir
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13791 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13793 if test "$sbindir" != '${exec_prefix}/sbin'; then
13794 root_sbindir=$sbindir
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13796 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13798 if test "$libdir" != '${exec_prefix}/lib'; then
13799 root_libdir=$libdir
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13801 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13803 if test "$sysconfdir" != '${prefix}/etc'; then
13804 root_sysconfdir=$sysconfdir
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13806 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13814 # Check whether --with-multiarch was given.
13815 if test "${with_multiarch+set}" = set; then :
13816 withval=$with_multiarch; if test "$withval" = "lib64"; then
13820 libdir=$libdir/$withval
13821 root_libdir=$root_libdir/$withval
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13827 $as_echo_n "checking whether we can link with -static... " >&6; }
13828 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13829 $as_echo_n "(cached) " >&6
13831 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13843 if ac_fn_c_try_link "$LINENO"; then :
13844 ac_cv_e2fsprogs_use_static=yes
13846 ac_cv_e2fsprogs_use_static=no
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 LDFLAGS=$SAVE_LDFLAGS
13855 ac_cv_e2fsprogs_use_static=no
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13859 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13860 if test $ac_cv_e2fsprogs_use_static = yes; then
13861 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13867 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13869 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13873 if test "$cross_compiling" = yes ; then
13876 DO_TEST_SUITE=check
13879 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13880 if test -n "$CPPFLAGS" ; then
13881 INCLUDES="$INCLUDES $CPPFLAGS"
13883 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13884 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13886 if test -n "$WITH_DIET_LIBC" ; then
13887 INCLUDES="$INCLUDES -D_REENTRANT"
13892 if test -n "$ac_aux_dir"; then
13893 case "$ac_aux_dir" in
13894 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13895 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13898 if test -z "$MKINSTALLDIRS"; then
13899 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13903 if test $cross_compiling = no; then
13904 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13905 BUILD_LDFLAGS="$LDFLAGS"
13909 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13910 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13911 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13917 # Check whether --with-udev_rules_dir was given.
13918 if test "${with_udev_rules_dir+set}" = set; then :
13919 withval=$with_udev_rules_dir;
13921 with_udev_rules_dir=yes
13924 if test "x${with_udev_rules_dir}" != "xno"; then :
13926 if test "x${with_udev_rules_dir}" = "xyes"; then :
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
13931 $as_echo_n "checking for udev... " >&6; }
13933 if test -n "$udev_CFLAGS"; then
13934 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
13935 elif test -n "$PKG_CONFIG"; then
13936 if test -n "$PKG_CONFIG" && \
13937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13938 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; then
13942 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
13943 test "x$?" != "x0" && pkg_failed=yes
13950 if test -n "$udev_LIBS"; then
13951 pkg_cv_udev_LIBS="$udev_LIBS"
13952 elif test -n "$PKG_CONFIG"; then
13953 if test -n "$PKG_CONFIG" && \
13954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13955 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958 test $ac_status = 0; }; then
13959 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
13960 test "x$?" != "x0" && pkg_failed=yes
13970 if test $pkg_failed = yes; then
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13975 _pkg_short_errors_supported=yes
13977 _pkg_short_errors_supported=no
13979 if test $_pkg_short_errors_supported = yes; then
13980 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
13982 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
13984 # Put the nasty error message in config.log where it belongs
13985 echo "$udev_PKG_ERRORS" >&5
13988 with_udev_rules_dir=""
13990 elif test $pkg_failed = untried; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13994 with_udev_rules_dir=""
13997 udev_CFLAGS=$pkg_cv_udev_CFLAGS
13998 udev_LIBS=$pkg_cv_udev_LIBS
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 $as_echo "yes" >&6; }
14002 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14008 $as_echo_n "checking for udev rules dir... " >&6; }
14009 pkg_udev_rules_dir="${with_udev_rules_dir}"
14010 if test -n "${pkg_udev_rules_dir}"; then :
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14013 $as_echo "${pkg_udev_rules_dir}" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14026 have_udev="disabled"
14033 # Check whether --with-crond_dir was given.
14034 if test "${with_crond_dir+set}" = set; then :
14035 withval=$with_crond_dir;
14040 if test "x${with_crond_dir}" != "xno"; then :
14042 if test "x${with_crond_dir}" = "xyes"; then :
14044 if test -d "/etc/cron.d"; then :
14045 with_crond_dir="/etc/cron.d"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14050 $as_echo_n "checking for system crontab dir... " >&6; }
14051 crond_dir="${with_crond_dir}"
14052 if test -n "${crond_dir}"; then :
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14055 $as_echo "${crond_dir}" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14068 have_crond="disabled"
14075 # Check whether --with-systemd_unit_dir was given.
14076 if test "${with_systemd_unit_dir+set}" = set; then :
14077 withval=$with_systemd_unit_dir;
14079 with_systemd_unit_dir=yes
14082 if test "x${with_systemd_unit_dir}" != "xno"; then :
14084 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14089 $as_echo_n "checking for systemd... " >&6; }
14091 if test -n "$systemd_CFLAGS"; then
14092 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14093 elif test -n "$PKG_CONFIG"; then
14094 if test -n "$PKG_CONFIG" && \
14095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14096 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099 test $ac_status = 0; }; then
14100 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14101 test "x$?" != "x0" && pkg_failed=yes
14108 if test -n "$systemd_LIBS"; then
14109 pkg_cv_systemd_LIBS="$systemd_LIBS"
14110 elif test -n "$PKG_CONFIG"; then
14111 if test -n "$PKG_CONFIG" && \
14112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14113 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14116 test $ac_status = 0; }; then
14117 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14118 test "x$?" != "x0" && pkg_failed=yes
14128 if test $pkg_failed = yes; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14132 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14133 _pkg_short_errors_supported=yes
14135 _pkg_short_errors_supported=no
14137 if test $_pkg_short_errors_supported = yes; then
14138 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14140 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14142 # Put the nasty error message in config.log where it belongs
14143 echo "$systemd_PKG_ERRORS" >&5
14146 with_systemd_unit_dir=""
14148 elif test $pkg_failed = untried; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14152 with_systemd_unit_dir=""
14155 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14156 systemd_LIBS=$pkg_cv_systemd_LIBS
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14158 $as_echo "yes" >&6; }
14160 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14167 $as_echo_n "checking for systemd system unit dir... " >&6; }
14168 systemd_system_unit_dir="${with_systemd_unit_dir}"
14169 if test -n "${systemd_system_unit_dir}"; then :
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14172 $as_echo "${systemd_system_unit_dir}" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14185 have_systemd="disabled"
14191 test -d lib || mkdir lib
14192 test -d include || mkdir include
14193 test -d include/linux || mkdir include/linux
14194 test -d include/asm || mkdir include/asm
14195 if test -z "$UUID_CMT" ; then
14196 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14197 lib/uuid/uuid_types.h"
14199 if test -z "$BLKID_CMT" ; then
14200 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14201 lib/blkid/blkid_types.h"
14203 for i in MCONFIG Makefile e2fsprogs.spec \
14204 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14205 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14206 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14207 $uuid_out_list $blkid_out_list lib/support/Makefile \
14208 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14209 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14210 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14211 resize/Makefile doc/Makefile intl/Makefile \
14212 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14213 if test -d `dirname ${srcdir}/$i` ; then
14214 outlist="$outlist $i"
14217 ac_config_files="$ac_config_files $outlist"
14219 cat >confcache <<\_ACEOF
14220 # This file is a shell script that caches the results of configure
14221 # tests run on this system so they can be shared between configure
14222 # scripts and configure runs, see configure's option --config-cache.
14223 # It is not useful on other systems. If it contains results you don't
14224 # want to keep, you may remove or edit it.
14226 # config.status only pays attention to the cache file if you give it
14227 # the --recheck option to rerun configure.
14229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14231 # following values.
14235 # The following way of writing the cache mishandles newlines in values,
14236 # but we know of no workaround that is simple, portable, and efficient.
14237 # So, we kill variables containing newlines.
14238 # Ultrix sh set writes to stderr and can't be redirected directly,
14239 # and sets the high bit in the cache file unless we assign to the vars.
14241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14242 eval ac_val=\$$ac_var
14246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14250 _ | IFS | as_nl) ;; #(
14251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14252 *) { eval $ac_var=; unset $ac_var;} ;;
14258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14259 *${as_nl}ac_space=\ *)
14260 # `set' does not quote correctly, so add quotes: double-quote
14261 # substitution turns \\\\ into \\, and sed turns \\ into \.
14264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14267 # `set' quotes correctly as required by POSIX, so do not add quotes.
14268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14282 if test -w "$cache_file"; then
14283 if test "x$cache_file" != "x/dev/null"; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14285 $as_echo "$as_me: updating cache $cache_file" >&6;}
14286 if test ! -f "$cache_file" || test -h "$cache_file"; then
14287 cat confcache >"$cache_file"
14289 case $cache_file in #(
14291 mv -f confcache "$cache_file"$$ &&
14292 mv -f "$cache_file"$$ "$cache_file" ;; #(
14294 mv -f confcache "$cache_file" ;;
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14306 # Let make expand exec_prefix.
14307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14309 DEFS=-DHAVE_CONFIG_H
14314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14315 # 1. Remove the extension, and $U if already installed.
14316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14319 # will be set to the directory where LIBOBJS objects are built.
14320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14323 LIBOBJS=$ac_libobjs
14325 LTLIBOBJS=$ac_ltlibobjs
14330 : "${CONFIG_STATUS=./config.status}"
14332 ac_clean_files_save=$ac_clean_files
14333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14335 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14337 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14339 # Generated by $as_me.
14340 # Run this file to recreate the current configuration.
14341 # Compiler output produced by configure, useful for debugging
14342 # configure, is in config.log if it exists.
14345 ac_cs_recheck=false
14348 SHELL=\${CONFIG_SHELL-$SHELL}
14351 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14352 ## -------------------- ##
14353 ## M4sh Initialization. ##
14354 ## -------------------- ##
14356 # Be more Bourne compatible
14357 DUALCASE=1; export DUALCASE # for MKS sh
14358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14362 # is contrary to our usage. Disable this feature.
14363 alias -g '${1+"$@"}'='"$@"'
14364 setopt NO_GLOB_SUBST
14366 case `(set -o) 2>/dev/null` in #(
14378 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14379 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14382 # Prefer a ksh shell builtin over an external printf program on Solaris,
14383 # but without wasting forks for bash or zsh.
14384 if test -z "$BASH_VERSION$ZSH_VERSION" \
14385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14386 as_echo='print -r --'
14387 as_echo_n='print -rn --'
14388 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14389 as_echo='printf %s\n'
14390 as_echo_n='printf %s'
14392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14394 as_echo_n='/usr/ucb/echo -n'
14396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14397 as_echo_n_body='eval
14401 expr "X$arg" : "X\\(.*\\)$as_nl";
14402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14406 export as_echo_n_body
14407 as_echo_n='sh -c $as_echo_n_body as_echo'
14409 export as_echo_body
14410 as_echo='sh -c $as_echo_body as_echo'
14413 # The user is always right.
14414 if test "${PATH_SEPARATOR+set}" != set; then
14416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14424 # We need space, tab and new line, in precisely that order. Quoting is
14425 # there to prevent editors from complaining about space-tab.
14426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14427 # splitting by setting IFS to empty value.)
14430 # Find who we are. Look in the path if we contain no directory separator.
14433 *[\\/]* ) as_myself=$0 ;;
14434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14438 test -z "$as_dir" && as_dir=.
14439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14445 # We did not find ourselves, most probably we were run as `sh COMMAND'
14446 # in which case we are not to be found in the path.
14447 if test "x$as_myself" = x; then
14450 if test ! -f "$as_myself"; then
14451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14455 # Unset variables that we do not need and which cause bugs (e.g. in
14456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14457 # suppresses any "Segmentation fault" message there. '((' could
14458 # trigger a bug in pdksh 5.2.14.
14459 for as_var in BASH_ENV ENV MAIL MAILPATH
14460 do eval test x\${$as_var+set} = xset \
14461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14477 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14478 # ----------------------------------------
14479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14481 # script with STATUS, using 1 if that was 0.
14484 as_status=$1; test $as_status -eq 0 && as_status=1
14486 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14489 $as_echo "$as_me: error: $2" >&2
14490 as_fn_exit $as_status
14494 # as_fn_set_status STATUS
14495 # -----------------------
14496 # Set $? to STATUS, without forking.
14497 as_fn_set_status ()
14500 } # as_fn_set_status
14502 # as_fn_exit STATUS
14503 # -----------------
14504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14508 as_fn_set_status $1
14514 # Portably unset VAR.
14517 { eval $1=; unset $1;}
14519 as_unset=as_fn_unset
14520 # as_fn_append VAR VALUE
14521 # ----------------------
14522 # Append the text in VALUE to the end of the definition contained in VAR. Take
14523 # advantage of any shell optimizations that allow amortized linear growth over
14524 # repeated appends, instead of the typical quadratic growth present in naive
14526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14527 eval 'as_fn_append ()
14538 # as_fn_arith ARG...
14539 # ------------------
14540 # Perform arithmetic evaluation on the ARGs, and store the result in the
14541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14542 # must be portable across $(()) and expr.
14543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14544 eval 'as_fn_arith ()
14551 as_val=`expr "$@" || test $? -eq 1`
14556 if expr a : '\(a\)' >/dev/null 2>&1 &&
14557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14564 as_basename=basename
14569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14575 as_me=`$as_basename -- "$0" ||
14576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14577 X"$0" : 'X\(//\)$' \| \
14578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14580 sed '/^.*\/\([^/][^/]*\)\/*$/{
14594 # Avoid depending upon Character Ranges.
14595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14598 as_cr_digits='0123456789'
14599 as_cr_alnum=$as_cr_Letters$as_cr_digits
14601 ECHO_C= ECHO_N= ECHO_T=
14602 case `echo -n x` in #(((((
14604 case `echo 'xy\c'` in
14605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14614 rm -f conf$$ conf$$.exe conf$$.file
14615 if test -d conf$$.dir; then
14616 rm -f conf$$.dir/conf$$.file
14619 mkdir conf$$.dir 2>/dev/null
14621 if (echo >conf$$.file) 2>/dev/null; then
14622 if ln -s conf$$.file conf$$ 2>/dev/null; then
14624 # ... but there are two gotchas:
14625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14627 # In both cases, we have to default to `cp -pR'.
14628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14630 elif ln conf$$.file conf$$ 2>/dev/null; then
14638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14639 rmdir conf$$.dir 2>/dev/null
14644 # Create "$as_dir" as a directory, including parents if necessary.
14649 -*) as_dir=./$as_dir;;
14651 test -d "$as_dir" || eval $as_mkdir_p || {
14655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14656 *) as_qdir=$as_dir;;
14658 as_dirs="'$as_qdir' $as_dirs"
14659 as_dir=`$as_dirname -- "$as_dir" ||
14660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14661 X"$as_dir" : 'X\(//\)[^/]' \| \
14662 X"$as_dir" : 'X\(//\)$' \| \
14663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14664 $as_echo X"$as_dir" |
14665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14669 /^X\(\/\/\)[^/].*/{
14682 test -d "$as_dir" && break
14684 test -z "$as_dirs" || eval "mkdir $as_dirs"
14685 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14689 if mkdir -p . 2>/dev/null; then
14690 as_mkdir_p='mkdir -p "$as_dir"'
14692 test -d ./-p && rmdir ./-p
14697 # as_fn_executable_p FILE
14698 # -----------------------
14699 # Test if FILE is an executable regular file.
14700 as_fn_executable_p ()
14702 test -f "$1" && test -x "$1"
14703 } # as_fn_executable_p
14704 as_test_x='test -x'
14705 as_executable_p=as_fn_executable_p
14707 # Sed expression to map a string onto a valid CPP name.
14708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14710 # Sed expression to map a string onto a valid variable name.
14711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14715 ## ----------------------------------- ##
14716 ## Main body of $CONFIG_STATUS script. ##
14717 ## ----------------------------------- ##
14719 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14722 # Save the log message, to keep $0 and so on meaningful, and to
14723 # report actual input values of CONFIG_FILES etc. instead of their
14724 # values after options handling.
14726 This file was extended by $as_me, which was
14727 generated by GNU Autoconf 2.69. Invocation command line was
14729 CONFIG_FILES = $CONFIG_FILES
14730 CONFIG_HEADERS = $CONFIG_HEADERS
14731 CONFIG_LINKS = $CONFIG_LINKS
14732 CONFIG_COMMANDS = $CONFIG_COMMANDS
14735 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14740 case $ac_config_files in *"
14741 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14744 case $ac_config_headers in *"
14745 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 # Files that config.status was made for.
14751 config_files="$ac_config_files"
14752 config_headers="$ac_config_headers"
14753 config_commands="$ac_config_commands"
14757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14759 \`$as_me' instantiates files and other configuration actions
14760 from templates according to the current configuration. Unless the files
14761 and actions are specified as TAGs, all are instantiated by default.
14763 Usage: $0 [OPTION]... [TAG]...
14765 -h, --help print this help, then exit
14766 -V, --version print version number and configuration settings, then exit
14767 --config print configuration, then exit
14768 -q, --quiet, --silent
14769 do not print progress messages
14770 -d, --debug don't remove temporary files
14771 --recheck update $as_me by reconfiguring in the same conditions
14772 --file=FILE[:TEMPLATE]
14773 instantiate the configuration file FILE
14774 --header=FILE[:TEMPLATE]
14775 instantiate the configuration header FILE
14777 Configuration files:
14780 Configuration headers:
14783 Configuration commands:
14786 Report bugs to the package provider."
14789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14790 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14793 configured by $0, generated by GNU Autoconf 2.69,
14794 with options \\"\$ac_cs_config\\"
14796 Copyright (C) 2012 Free Software Foundation, Inc.
14797 This config.status script is free software; the Free Software Foundation
14798 gives unlimited permission to copy, distribute and modify it."
14805 test -n "\$AWK" || AWK=awk
14808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14809 # The default lists apply if the user does not specify any file.
14815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14820 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14832 # Handling of the options.
14833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14836 $as_echo "$ac_cs_version"; exit ;;
14837 --config | --confi | --conf | --con | --co | --c )
14838 $as_echo "$ac_cs_config"; exit ;;
14839 --debug | --debu | --deb | --de | --d | -d )
14841 --file | --fil | --fi | --f )
14844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14845 '') as_fn_error $? "missing file argument" ;;
14847 as_fn_append CONFIG_FILES " '$ac_optarg'"
14848 ac_need_defaults=false;;
14849 --header | --heade | --head | --hea )
14852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14854 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14855 ac_need_defaults=false;;
14857 # Conflict between --help and --header
14858 as_fn_error $? "ambiguous option: \`$1'
14859 Try \`$0 --help' for more information.";;
14860 --help | --hel | -h )
14861 $as_echo "$ac_cs_usage"; exit ;;
14862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14866 # This is an error.
14867 -*) as_fn_error $? "unrecognized option: \`$1'
14868 Try \`$0 --help' for more information." ;;
14870 *) as_fn_append ac_config_targets " $1"
14871 ac_need_defaults=false ;;
14877 ac_configure_extra_args=
14879 if $ac_cs_silent; then
14881 ac_configure_extra_args="$ac_configure_extra_args --silent"
14885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14886 if \$ac_cs_recheck; then
14887 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14890 CONFIG_SHELL='$SHELL'
14891 export CONFIG_SHELL
14896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14901 ## Running $as_me. ##
14907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14911 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14912 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14913 # from automake < 1.5.
14914 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14915 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14916 LINGUAS="${LINGUAS-%UNSET%}"
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923 # Handling of arguments.
14924 for ac_config_target in $ac_config_targets
14926 case $ac_config_target in
14927 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14928 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14929 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14931 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14936 # If the user did not use the arguments to specify the items to instantiate,
14937 # then the envvar interface is used. Set only those that are not.
14938 # We use the long form for the default assignment because of an extremely
14939 # bizarre bug on SunOS 4.1.3.
14940 if $ac_need_defaults; then
14941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14946 # Have a temporary directory for convenience. Make it in the build tree
14947 # simply because there is no reason against having it here, and in addition,
14948 # creating and moving files from /tmp can sometimes cause problems.
14949 # Hook for its removal unless debugging.
14950 # Note that there is a small window in which the directory will not be cleaned:
14951 # after its creation but before its name has been assigned to `$tmp'.
14955 trap 'exit_status=$?
14956 : "${ac_tmp:=$tmp}"
14957 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14959 trap 'as_fn_exit 1' 1 2 13 15
14961 # Create a (secure) tmp directory for tmp files.
14964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14968 tmp=./conf$$-$RANDOM
14969 (umask 077 && mkdir "$tmp")
14970 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14973 # Set up the scripts for CONFIG_FILES section.
14974 # No need to generate them if there are no CONFIG_FILES.
14975 # This happens for instance with `./config.status config.h'.
14976 if test -n "$CONFIG_FILES"; then
14978 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14979 ac_cs_awk_getline=:
14980 ac_cs_awk_pipe_init=
14981 ac_cs_awk_read_file='
14982 while ((getline aline < (F[key])) > 0)
14985 ac_cs_awk_pipe_fini=
14987 ac_cs_awk_getline=false
14988 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14989 ac_cs_awk_read_file='
14991 print "cat " F[key] " &&"
14992 '$ac_cs_awk_pipe_init
14993 # The final `:' finishes the AND list.
14994 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14996 ac_cr=`echo X | tr X '\015'`
14997 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14998 # But we know of no other shell where ac_cr would be empty at this
14999 # point, so we can use a bashism as a fallback.
15000 if test "x$ac_cr" = x; then
15001 eval ac_cr=\$\'\\r\'
15003 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15004 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15007 ac_cs_awk_cr=$ac_cr
15010 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15013 # Create commands to substitute file output variables.
15015 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15016 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15017 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15020 } >conf$$files.sh &&
15021 . ./conf$$files.sh ||
15022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15023 rm -f conf$$files.sh
15026 echo "cat >conf$$subs.awk <<_ACEOF" &&
15027 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15029 } >conf$$subs.sh ||
15030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15033 for ac_last_try in false false false false false :; do
15034 . ./conf$$subs.sh ||
15035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15038 if test $ac_delim_n = $ac_delim_num; then
15040 elif $ac_last_try; then
15041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15046 rm -f conf$$subs.sh
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15053 s/^/S["/; s/!.*/"]=/
15063 s/\(.\{148\}\)..*/\1/
15065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15077 s/\(.\{148\}\)..*/\1/
15079 s/["\\]/\\&/g; s/^/"/; s/$/"/
15083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15088 ' <conf$$subs.awk | sed '
15093 ' >>$CONFIG_STATUS || ac_write_fail=1
15094 rm -f conf$$subs.awk
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15097 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15098 for (key in S) S_is_set[key] = 1
15100 \$ac_cs_awk_pipe_init
15104 nfields = split(line, field, "@")
15106 len = length(field[1])
15107 for (i = 2; i < nfields; i++) {
15109 keylen = length(key)
15110 if (S_is_set[key]) {
15112 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15113 len += length(value) + length(field[++i])
15118 if (nfields == 3 && !substed) {
15120 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15121 \$ac_cs_awk_read_file
15127 \$ac_cs_awk_pipe_fini
15130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15131 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15132 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15135 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15136 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15139 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15140 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15141 # trailing colons and then remove the whole line if VPATH becomes empty
15142 # (actually we leave an empty line to preserve line numbers).
15143 if test "x$srcdir" = x.; then
15144 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15163 fi # test -n "$CONFIG_FILES"
15165 # Set up the scripts for CONFIG_HEADERS section.
15166 # No need to generate them if there are no CONFIG_HEADERS.
15167 # This happens for instance with `./config.status Makefile'.
15168 if test -n "$CONFIG_HEADERS"; then
15169 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15173 # Transform confdefs.h into an awk script `defines.awk', embedded as
15174 # here-document in config.status, that substitutes the proper values into
15175 # config.h.in to produce config.h.
15177 # Create a delimiter string that does not exist in confdefs.h, to ease
15178 # handling of long lines.
15180 for ac_last_try in false false :; do
15181 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15182 if test -z "$ac_tt"; then
15184 elif $ac_last_try; then
15185 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15191 # For the awk script, D is an array of macro values keyed by name,
15192 # likewise P contains macro parameters if any. Preserve backslash
15193 # newline sequences.
15195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15197 s/.\{148\}/&'"$ac_delim"'/g
15200 s/^[ ]*#[ ]*define[ ][ ]*/ /
15207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15214 D["\1"]=" \3\\\\\\n"\\/p
15216 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15221 s/.\{148\}/&'"$ac_delim"'/g
15226 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15229 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15231 ' <confdefs.h | sed '
15232 s/'"$ac_delim"'/"\\\
15233 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15236 for (key in D) D_is_set[key] = 1
15239 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15241 split(line, arg, " ")
15242 if (arg[1] == "#") {
15246 defundef = substr(arg[1], 2)
15249 split(mac1, mac2, "(") #)
15251 prefix = substr(line, 1, index(line, defundef) - 1)
15252 if (D_is_set[macro]) {
15253 # Preserve the white space surrounding the "#".
15254 print prefix "define", macro P[macro] D[macro]
15257 # Replace #undef with comments. This is necessary, for example,
15258 # in the case of _POSIX_SOURCE, which is predefined and required
15259 # on some systems where configure will not decide to define it.
15260 if (defundef == "undef") {
15261 print "/*", prefix defundef, macro, "*/"
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15271 fi # test -n "$CONFIG_HEADERS"
15274 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15279 :[FHLC]) ac_mode=$ac_tag; continue;;
15281 case $ac_mode$ac_tag in
15283 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15284 :[FH]-) ac_tag=-:-;;
15285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15302 -) ac_f="$ac_tmp/stdin";;
15303 *) # Look for the file first in the build tree, then in the source tree
15304 # (if the path is not absolute). The absolute path cannot be DOS-style,
15305 # because $ac_f cannot contain `:'.
15309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15311 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15313 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15314 as_fn_append ac_file_inputs " '$ac_f'"
15317 # Let's still pretend it is `configure' which instantiates (i.e., don't
15318 # use $as_me), people would be surprised to read:
15319 # /* config.h. Generated by config.status. */
15320 configure_input='Generated from '`
15321 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15323 if test x"$ac_file" != x-; then
15324 configure_input="$ac_file. $configure_input"
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15326 $as_echo "$as_me: creating $ac_file" >&6;}
15328 # Neutralize special characters interpreted by sed in replacement strings.
15329 case $configure_input in #(
15330 *\&* | *\|* | *\\* )
15331 ac_sed_conf_input=`$as_echo "$configure_input" |
15332 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15333 *) ac_sed_conf_input=$configure_input;;
15337 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15343 ac_dir=`$as_dirname -- "$ac_file" ||
15344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15345 X"$ac_file" : 'X\(//\)[^/]' \| \
15346 X"$ac_file" : 'X\(//\)$' \| \
15347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15348 $as_echo X"$ac_file" |
15349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15353 /^X\(\/\/\)[^/].*/{
15366 as_dir="$ac_dir"; as_fn_mkdir_p
15370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15373 # A ".." for each directory in $ac_dir_suffix.
15374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15375 case $ac_top_builddir_sub in
15376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15380 ac_abs_top_builddir=$ac_pwd
15381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15382 # for backward compatibility:
15383 ac_top_builddir=$ac_top_build_prefix
15386 .) # We are building in place.
15388 ac_top_srcdir=$ac_top_builddir_sub
15389 ac_abs_top_srcdir=$ac_pwd ;;
15390 [\\/]* | ?:[\\/]* ) # Absolute name.
15391 ac_srcdir=$srcdir$ac_dir_suffix;
15392 ac_top_srcdir=$srcdir
15393 ac_abs_top_srcdir=$srcdir ;;
15394 *) # Relative name.
15395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15396 ac_top_srcdir=$ac_top_build_prefix$srcdir
15397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15409 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15410 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15412 ac_MKDIR_P=$MKDIR_P
15414 [\\/$]* | ?:[\\/]* ) ;;
15415 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 # If the template does not know about datarootdir, expand it.
15421 # FIXME: This hack should be removed a few years after 2.60.
15422 ac_datarootdir_hack=; ac_datarootdir_seen=
15433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15434 *datarootdir*) ac_datarootdir_seen=yes;;
15435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15440 ac_datarootdir_hack='
15441 s&@datadir@&$datadir&g
15442 s&@docdir@&$docdir&g
15443 s&@infodir@&$infodir&g
15444 s&@localedir@&$localedir&g
15445 s&@mandir@&$mandir&g
15446 s&\\\${datarootdir}&$datarootdir&g' ;;
15450 # Neutralize VPATH when `$srcdir' = `.'.
15451 # Shell code in configure.ac might set extrasub.
15452 # FIXME: do we really want to maintain this feature?
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 ac_sed_extra="$ac_vpsub
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15460 s|@configure_input@|$ac_sed_conf_input|;t t
15461 s&@top_builddir@&$ac_top_builddir_sub&;t t
15462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15463 s&@srcdir@&$ac_srcdir&;t t
15464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15465 s&@top_srcdir@&$ac_top_srcdir&;t t
15466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15467 s&@builddir@&$ac_builddir&;t t
15468 s&@abs_builddir@&$ac_abs_builddir&;t t
15469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15470 s&@INSTALL@&$ac_INSTALL&;t t
15471 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15472 $ac_datarootdir_hack
15474 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15475 if $ac_cs_awk_getline; then
15476 $AWK -f "$ac_tmp/subs.awk"
15478 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15480 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15482 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15483 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15485 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15487 which seems to be undefined. Please make sure it is defined" >&5
15488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489 which seems to be undefined. Please make sure it is defined" >&2;}
15491 rm -f "$ac_tmp/stdin"
15493 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15494 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15502 if test x"$ac_file" != x-; then
15504 $as_echo "/* $configure_input */" \
15505 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15506 } >"$ac_tmp/config.h" \
15507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15508 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15513 mv "$ac_tmp/config.h" "$ac_file" \
15514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15517 $as_echo "/* $configure_input */" \
15518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15519 || as_fn_error $? "could not create -" "$LINENO" 5
15523 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15524 $as_echo "$as_me: executing $ac_file commands" >&6;}
15529 case $ac_file$ac_mode in
15530 "po-directories":C)
15531 for ac_file in $CONFIG_FILES; do
15532 # Support "outfile[:infile[:infile...]]"
15534 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15536 # PO directories have a Makefile.in generated from Makefile.in.in.
15537 case "$ac_file" in */Makefile.in)
15538 # Adjust a relative srcdir.
15539 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15540 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15541 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15542 # In autoconf-2.13 it is called $ac_given_srcdir.
15543 # In autoconf-2.50 it is called $srcdir.
15544 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15545 case "$ac_given_srcdir" in
15546 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15547 /*) top_srcdir="$ac_given_srcdir" ;;
15548 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15550 # Treat a directory as a PO directory if and only if it has a
15551 # POTFILES.in file. This allows packages to have multiple PO
15552 # directories under different names or in different locations.
15553 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15554 rm -f "$ac_dir/POTFILES"
15555 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15556 gt_tab=`printf '\t'`
15557 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"
15558 POMAKEFILEDEPS="POTFILES.in"
15559 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15560 # on $ac_dir but don't depend on user-specified configuration
15562 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15563 # The LINGUAS file contains the set of available languages.
15564 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15565 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15567 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15568 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15569 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15570 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15572 # The set of available languages was given in configure.in.
15573 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15574 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15577 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15578 # Compute UPDATEPOFILES
15579 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15580 # Compute DUMMYPOFILES
15581 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15583 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15584 case "$ac_given_srcdir" in
15586 *) srcdirpre='$(srcdir)/' ;;
15592 for lang in $ALL_LINGUAS; do
15593 POFILES="$POFILES $srcdirpre$lang.po"
15594 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15595 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15596 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15598 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15599 # environment variable.
15601 if test -n "$ALL_LINGUAS"; then
15602 for presentlang in $ALL_LINGUAS; do
15604 if test "%UNSET%" != "$LINGUAS"; then
15605 desiredlanguages="$LINGUAS"
15607 desiredlanguages="$ALL_LINGUAS"
15609 for desiredlang in $desiredlanguages; do
15610 # Use the presentlang catalog if desiredlang is
15611 # a. equal to presentlang, or
15612 # b. a variant of presentlang (because in this case,
15613 # presentlang can be used as a fallback for messages
15614 # which are not translated in the desiredlang catalog).
15615 case "$desiredlang" in
15616 "$presentlang"*) useit=yes;;
15619 if test $useit = yes; then
15620 INST_LINGUAS="$INST_LINGUAS $presentlang"
15625 if test -n "$INST_LINGUAS"; then
15626 for lang in $INST_LINGUAS; do
15627 CATALOGS="$CATALOGS $lang.gmo"
15630 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15631 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"
15632 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15633 if test -f "$f"; then
15635 *.orig | *.bak | *~) ;;
15636 *) cat "$f" >> "$ac_dir/Makefile" ;;
15651 ac_clean_files=$ac_clean_files_save
15653 test $ac_write_fail = 0 ||
15654 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15657 # configure is writing to config.log, and then calls config.status.
15658 # config.status does its own redirection, appending to config.log.
15659 # Unfortunately, on DOS this fails, as config.log is still kept open
15660 # by configure, so config.status won't be able to write to it; its
15661 # output is simply discarded. So we exec the FD to /dev/null,
15662 # effectively closing config.log, so it can be properly (re)opened and
15663 # appended to by config.status. When coming back to configure, we
15664 # need to make the FD available again.
15665 if test "$no_create" != yes; then
15667 ac_config_status_args=
15668 test "$silent" = yes &&
15669 ac_config_status_args="$ac_config_status_args --quiet"
15671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15674 # would make configure fail if this is the last instruction.
15675 $ac_cs_success || as_fn_exit 1
15677 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15679 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15682 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi