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>
623 ac_subst_vars='LTLIBOBJS
670 INTL_LIBTOOL_SUFFIX_PREFIX
677 BUILD_INCLUDED_LIBINTL
802 program_transform_name
813 ac_subst_files='MCONFIG
819 PUBLIC_CONFIG_HEADER'
821 enable_option_checking
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
832 enable_verbose_makecmds
851 enable_e2initrd_helper
858 with_included_gettext
862 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures this package to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 if test -n "$ac_init_help"; then
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable makefile rules useful for maintainers
1484 --enable-symlink-install use symlinks when installing instead of hard links
1485 --enable-relative-symlinks use relative symlinks when installing
1487 --enable-symlink-build use symlinks while building instead of hard links
1488 --enable-verbose-makecmds enable verbose make command output
1489 --enable-compression enable EXPERIMENTAL compression support
1490 --enable-htree enable EXPERIMENTAL htree directory support
1491 --enable-elf-shlibs select ELF shared libraries
1492 --enable-bsd-shlibs select BSD shared libraries
1493 --enable-profile build profiling libraries
1494 --enable-gcov build for coverage testing using gcov
1495 --enable-jbd-debug enable journal debugging
1496 --enable-blkid-debug enable blkid debugging
1497 --disable-testio-debug disable the use of the test I/O manager for debugging
1498 --disable-libuuid do not build private uuid library
1499 --disable-libblkid do not build private blkid library
1500 --enable-quota enable quota support
1501 --disable-backtrace disable use backtrace
1502 --disable-debugfs disable support of debugfs program
1503 --disable-imager disable support of e2image program
1504 --disable-resizer disable support of e2resize program
1505 --disable-defrag disable support of e4defrag program
1506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
1508 --disable-tls disable use of thread local support
1509 --disable-uuidd disable building the uuid daemon
1510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-diet-libc use diet libc
1517 --with-cc no longer supported, use CC= instead
1518 --with-ccopts no longer supported, use CFLAGS= instead
1519 --with-ldopts no longer supported, use LDFLAGS= instead
1520 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1521 --with-gnu-ld assume the C compiler uses GNU ld default=no
1522 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1523 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1524 --with-included-gettext use the GNU gettext library included here
1525 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1526 --without-libintl-prefix don't search for libintl in includedir and libdir
1527 --with-multiarch=ARCH specify the multiarch triplet
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1538 PKG_CONFIG path to pkg-config utility
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } > conftest.i && {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_type
1837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists and can be compiled using the include files in
1840 # INCLUDES, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_compile
1868 # ac_fn_c_check_func LINENO FUNC VAR
1869 # ----------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_c_check_func ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883 #define $2 innocuous_$2
1885 /* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1891 # include <limits.h>
1893 # include <assert.h>
1898 /* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1905 /* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908 #if defined __stub_$2 || defined __stub___$2
1920 if ac_fn_c_try_link "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_func
1935 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1936 # -------------------------------------------------------
1937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938 # the include files in INCLUDES and setting the cache variable VAR
1940 ac_fn_c_check_header_mongrel ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if eval \${$3+:} false; then :
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 # Is the header compilable?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955 $as_echo_n "checking $2 usability... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_header_compiler=yes
1964 ac_header_compiler=no
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968 $as_echo "$ac_header_compiler" >&6; }
1970 # Is the header present?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972 $as_echo_n "checking $2 presence... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 if ac_fn_c_try_cpp "$LINENO"; then :
1978 ac_header_preproc=yes
1980 ac_header_preproc=no
1982 rm -f conftest.err conftest.i conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984 $as_echo "$ac_header_preproc" >&6; }
1986 # So? What about this header?
1987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1998 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2002 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 eval "$3=\$ac_header_compiler"
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_header_mongrel
2022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2023 # --------------------------------------------
2024 # Tries to find the compile-time value of EXPR in a program that includes
2025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2027 ac_fn_c_compute_int ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if test "$cross_compiling" = yes; then
2031 # Depending upon the size, compute the lo and hi bounds.
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) >= 0)];
2040 return test_array [0];
2046 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 return test_array [0];
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_hi=$ac_mid; break
2066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067 if test $ac_lo -le $ac_mid; then
2071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) < 0)];
2084 return test_array [0];
2090 if ac_fn_c_try_compile "$LINENO"; then :
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2101 return test_array [0];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=$ac_mid; break
2110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111 if test $ac_mid -le $ac_hi; then
2115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 return test_array [0];
2142 if ac_fn_c_try_compile "$LINENO"; then :
2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2157 static long int longval () { return $2; }
2158 static unsigned long int ulongval () { return $2; }
2165 FILE *f = fopen ("conftest.val", "w");
2170 long int i = longval ();
2173 fprintf (f, "%ld", i);
2177 unsigned long int i = ulongval ();
2180 fprintf (f, "%lu", i);
2182 /* Do not output a trailing newline, as this causes \r\n confusion
2183 on some platforms. */
2184 return ferror (f) || fclose (f) != 0;
2190 if ac_fn_c_try_run "$LINENO"; then :
2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196 conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } # ac_fn_c_compute_int
2205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2206 # ----------------------------------------------------
2207 # Tries to find if the field MEMBER exists in type AGGR, after including
2208 # INCLUDES, setting cache variable VAR accordingly.
2209 ac_fn_c_check_member ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2213 $as_echo_n "checking for $2.$3... " >&6; }
2214 if eval \${$4+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2240 if (sizeof ac_aggr.$3)
2246 if ac_fn_c_try_compile "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_member
2262 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2263 # ---------------------------------------------
2264 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 ac_fn_c_check_decl ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 as_decl_name=`echo $2|sed 's/ *(.*//'`
2270 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2273 if eval \${$3+:} false; then :
2274 $as_echo_n "(cached) " >&6
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 #ifndef $as_decl_name
2284 (void) $as_decl_use;
2286 (void) $as_decl_name;
2294 if ac_fn_c_try_compile "$LINENO"; then :
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_decl
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.69. Invocation command line was
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_must_keep_next=false
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 -* ) ac_must_keep_next=true ;;
2404 as_fn_append ac_configure_args " '$ac_arg'"
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2426 # The following way of writing the cache mishandles newlines in values,
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2462 for ac_var in $ac_subst_vars
2464 eval ac_val=\$$ac_var
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2477 for ac_var in $ac_subst_files
2479 eval ac_val=\$$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2512 $as_echo "/* confdefs.h */" > confdefs.h
2514 # Predefined preprocessor variables.
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2552 elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 as_fn_append ac_header_list " stdlib.h"
2592 as_fn_append ac_header_list " unistd.h"
2593 as_fn_append ac_header_list " sys/param.h"
2594 # Check that the precious variables saved in the cache have kept the same
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 for ac_dir in config "$srcdir"/config; do
2665 if test -f "$ac_dir/install-sh"; then
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2669 elif test -f "$ac_dir/install.sh"; then
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 elif test -f "$ac_dir/shtool"; then
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2679 if test -z "$ac_aux_dir"; then
2680 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2692 ac_config_headers="$ac_config_headers lib/config.h"
2698 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2699 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2700 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2702 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2703 MONTH=`echo $DATE | awk -F- '{print $2}'`
2704 YEAR=`echo $DATE | awk -F- '{print $3}'`
2706 if expr $YEAR ">" 1900 > /dev/null ; then
2707 E2FSPROGS_YEAR=$YEAR
2708 elif expr $YEAR ">" 90 >/dev/null ; then
2709 E2FSPROGS_YEAR=19$YEAR
2711 E2FSPROGS_YEAR=20$YEAR
2715 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2716 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2717 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2718 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2719 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2720 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2721 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2722 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2723 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2724 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2725 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2726 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2727 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2728 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2731 base_ver=`echo $E2FSPROGS_VERSION | \
2732 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2734 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2736 case $E2FSPROGS_VERSION in
2738 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2741 E2FSPROGS_PKGVER="$base_ver"
2745 unset DATE MONTH YEAR base_ver pre_vers date_spec
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2747 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2749 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2757 # Check whether --with-diet-libc was given.
2758 if test "${with_diet_libc+set}" = set; then :
2759 withval=$with_diet_libc; CC="diet cc -nostdinc"
2765 LIBS="$LIBS -lcompat"
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2768 $as_echo "CC=$CC" >&6; }
2770 # Make sure we can run config.sub.
2771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if ${ac_cv_build+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789 $as_echo "$ac_cv_build" >&6; }
2790 case $ac_cv_build in
2792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795 ac_save_IFS=$IFS; IFS='-'
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809 $as_echo_n "checking host system type... " >&6; }
2810 if ${ac_cv_host+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test "x$host_alias" = x; then
2814 ac_cv_host=$ac_cv_build
2816 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 $as_echo "$ac_cv_host" >&6; }
2825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828 ac_save_IFS=$IFS; IFS='-'
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2886 if test -z "$ac_cv_prog_CC"; then
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 if test "x$ac_ct_CC" = x; then
2927 case $cross_compiling:$ac_tool_warned in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$CC" && break
3080 if test -z "$CC"; then
3082 for ac_prog in cl.exe
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$ac_ct_CC" && break
3124 if test "x$ac_ct_CC" = x; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details" "$LINENO" 5; }
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149 for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 if test -s conftest.err; then
3161 ... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3165 rm -f conftest.er1 conftest.err
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194 for ac_file in $ac_files
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 if { { ac_try="$ac_link_default"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3219 for ac_file in $ac_files ''
3221 test -f "$ac_file" || continue
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 # We found the default executable, but exeext='' is most
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3249 if test -z "$ac_file"; then :
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error 77 "C compiler cannot create executables
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 ac_exeext=$ac_cv_exeext
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272 $as_echo_n "checking for suffix of executables... " >&6; }
3273 if { { ac_try="$ac_link"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 for ac_file in conftest.exe conftest conftest.*; do
3289 test -f "$ac_file" || continue
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 rm -f conftest conftest$ac_cv_exeext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305 $as_echo "$ac_cv_exeext" >&6; }
3307 rm -f conftest.$ac_ext
3308 EXEEXT=$ac_cv_exeext
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3316 FILE *f = fopen ("conftest.out", "w");
3317 return ferror (f) || fclose (f) != 0;
3323 ac_clean_files="$ac_clean_files conftest.out"
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 if test "$cross_compiling" != yes; then
3329 { { ac_try="$ac_link"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 if { ac_try='./conftest$ac_cv_exeext'
3341 { { case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_try") 2>&5
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; }; then
3353 if test "$cross_compiling" = maybe; then
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details" "$LINENO" 5; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365 $as_echo "$cross_compiling" >&6; }
3367 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368 ac_clean_files=$ac_clean_files_save
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370 $as_echo_n "checking for suffix of object files... " >&6; }
3371 if ${ac_cv_objext+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 rm -f conftest.o conftest.obj
3386 if { { ac_try="$ac_compile"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_compile") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 for ac_file in conftest.o conftest.obj conftest.*; do
3398 test -f "$ac_file" || continue;
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if ${ac_cv_c_compiler_gnu+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450 if test $ac_compiler_gnu = yes; then
3455 ac_test_CFLAGS=${CFLAGS+set}
3456 ac_save_CFLAGS=$CFLAGS
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3459 if ${ac_cv_prog_cc_g+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 ac_save_c_werror_flag=$ac_c_werror_flag
3463 ac_c_werror_flag=yes
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 $as_echo "$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3529 if test "$GCC" = yes; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537 if ${ac_cv_prog_cc_c89+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 ac_cv_prog_cc_c89=no
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3561 s = g (p, va_arg (v,int));
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3567 function prototypes and stuff, but not '\xHH' hex character constants.
3568 These don't provoke an error unfortunately, instead are silently treated
3569 as 'x'. The following induces an error, until -std is added to get
3570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3571 array size at least. It's necessary to write '\x00'==0 to get something
3572 that's true only with -std. */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576 inside strings and character constants. */
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 CC="$ac_save_CC $ac_arg"
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_c89=$ac_arg
3601 rm -f core conftest.err conftest.$ac_objext
3602 test "x$ac_cv_prog_cc_c89" != "xno" && break
3604 rm -f conftest.$ac_ext
3609 case "x$ac_cv_prog_cc_c89" in
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 $as_echo "none needed" >&6; } ;;
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 $as_echo "unsupported" >&6; } ;;
3617 CC="$CC $ac_cv_prog_cc_c89"
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621 if test "x$ac_cv_prog_cc_c89" != xno; then :
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3634 if ${ac_cv_lib_dl_dlopen+:} false; then :
3635 $as_echo_n "(cached) " >&6
3637 ac_check_lib_save_LIBS=$LIBS
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3642 /* Override any GCC internal prototype to avoid an error.
3643 Use char because int might match the return type of a GCC
3644 builtin and then its argument prototype would still apply. */
3657 if ac_fn_c_try_link "$LINENO"; then :
3658 ac_cv_lib_dl_dlopen=yes
3660 ac_cv_lib_dl_dlopen=no
3662 rm -f core conftest.err conftest.$ac_objext \
3663 conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3667 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3668 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3671 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3677 # Check whether --with-cc was given.
3678 if test "${with_cc+set}" = set; then :
3679 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3683 # Check whether --with-ccopts was given.
3684 if test "${with_ccopts+set}" = set; then :
3685 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3689 # Check whether --with-ldopts was given.
3690 if test "${with_ldopts+set}" = set; then :
3691 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3738 if test -z "$ac_cv_prog_CC"; then
3740 # Extract the first word of "gcc", so it can be a program name with args.
3741 set dummy gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$ac_ct_CC"; then
3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CC="gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3776 if test "x$ac_ct_CC" = x; then
3779 case $cross_compiling:$ac_tool_warned in
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}cc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="${ac_tool_prefix}cc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3832 if test -z "$CC"; then
3833 # Extract the first word of "cc", so it can be a program name with args.
3834 set dummy cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852 ac_prog_rejected=yes
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test $ac_prog_rejected = yes; then
3864 # We found a bogon in the path, so make sure we never use it.
3865 set dummy $ac_cv_prog_CC
3867 if test $# != 0; then
3868 # We chose a different compiler from the bogus one.
3869 # However, it has the same basename, so the bogon will be chosen
3870 # first if we set CC to just the basename; use the full file name.
3872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3878 if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 for ac_prog in cl.exe
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$CC" && break
3932 if test -z "$CC"; then
3934 for ac_prog in cl.exe
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_CC="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$ac_ct_CC" && break
3976 if test "x$ac_ct_CC" = x; then
3979 case $cross_compiling:$ac_tool_warned in
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "no acceptable C compiler found in \$PATH
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 # Provide some information about the compiler.
3998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4001 for ac_option in --version -v -V -qversion; do
4002 { { ac_try="$ac_compiler $ac_option >&5"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4011 if test -s conftest.err; then
4013 ... rest of stderr output deleted ...
4014 10q' conftest.err >conftest.er1
4015 cat conftest.er1 >&5
4017 rm -f conftest.er1 conftest.err
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4023 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4024 if ${ac_cv_c_compiler_gnu+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4041 if ac_fn_c_try_compile "$LINENO"; then :
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4052 if test $ac_compiler_gnu = yes; then
4057 ac_test_CFLAGS=${CFLAGS+set}
4058 ac_save_CFLAGS=$CFLAGS
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4061 if ${ac_cv_prog_cc_g+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_save_c_werror_flag=$ac_c_werror_flag
4065 ac_c_werror_flag=yes
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 if ac_fn_c_try_compile "$LINENO"; then :
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4121 $as_echo "$ac_cv_prog_cc_g" >&6; }
4122 if test "$ac_test_CFLAGS" = set; then
4123 CFLAGS=$ac_save_CFLAGS
4124 elif test $ac_cv_prog_cc_g = yes; then
4125 if test "$GCC" = yes; then
4131 if test "$GCC" = yes; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4138 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4139 if ${ac_cv_prog_cc_c89+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 ac_cv_prog_cc_c89=no
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4163 s = g (p, va_arg (v,int));
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4169 function prototypes and stuff, but not '\xHH' hex character constants.
4170 These don't provoke an error unfortunately, instead are silently treated
4171 as 'x'. The following induces an error, until -std is added to get
4172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4173 array size at least. It's necessary to write '\x00'==0 to get something
4174 that's true only with -std. */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178 inside strings and character constants. */
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_c89=$ac_arg
4203 rm -f core conftest.err conftest.$ac_objext
4204 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 rm -f conftest.$ac_ext
4211 case "x$ac_cv_prog_cc_c89" in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4219 CC="$CC $ac_cv_prog_cc_c89"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test "$GCC" = yes; then
4234 RDYNAMIC="-rdynamic"
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4248 if test -z "$CPP"; then
4249 if ${ac_cv_prog_CPP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: fails on valid input.
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ac_nonexistent.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4291 # Passes both tests.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4350 # Passes both tests.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4375 $as_echo_n "checking for additional special compiler flags... " >&6; }
4376 if test "$GCC" = yes
4379 alpha) addcflags="-mieee" ;;
4382 if test "x$addcflags" != x
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4385 $as_echo "$addcflags" >&6; }
4386 CFLAGS="$addcflags $CFLAGS"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4389 $as_echo "(none)" >&6; }
4395 # Check whether --with-root-prefix was given.
4396 if test "${with_root_prefix+set}" = set; then :
4397 withval=$with_root_prefix; root_prefix=$withval
4401 # Check whether --enable-maintainer-mode was given.
4402 if test "${enable_maintainer_mode+set}" = set; then :
4403 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4407 $as_echo "Disabling maintainer mode" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4411 $as_echo "Enabling maintainer mode" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4417 $as_echo "Disabling maintainer mode by default" >&6; }
4422 # Check whether --enable-symlink-install was given.
4423 if test "${enable_symlink_install+set}" = set; then :
4424 enableval=$enable_symlink_install; if test "$enableval" = "no"
4426 LINK_INSTALL_FLAGS=-f
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4428 $as_echo "Disabling symlinks for install" >&6; }
4430 LINK_INSTALL_FLAGS=-sf
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4432 $as_echo "Enabling symlinks for install" >&6; }
4436 LINK_INSTALL_FLAGS=-f
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4438 $as_echo "Disabling symlinks for install by default" >&6; }
4443 relative_symlink_defined=
4444 # Check whether --enable-relative-symlinks was given.
4445 if test "${enable_relative_symlinks+set}" = set; then :
4446 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4449 relative_symlink_defined=yes
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4451 $as_echo "Disabling relative symlinks for install" >&6; }
4453 SYMLINK_RELATIVE=--relative
4454 relative_symlink_defined=yes
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4456 $as_echo "Enabling relative symlinks for install" >&6; }
4460 # Check whether --enable-symlink-relative-symlinks was given.
4461 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4462 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4464 SYMLINK_RELATIVE=yes
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4466 $as_echo "Disabling relative symlinks for install" >&6; }
4468 SYMLINK_RELATIVE=--relative
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4470 $as_echo "Enabling relative symlinks for install" >&6; }
4474 if test -z "$relative_symlink_defined"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4478 $as_echo "Disabling relative symlinks for install by default" >&6; }
4484 # Check whether --enable-symlink-build was given.
4485 if test "${enable_symlink_build+set}" = set; then :
4486 enableval=$enable_symlink_build; if test "$enableval" = "no"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4490 $as_echo "Disabling symlinks for build" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4494 $as_echo "Enabling symlinks for build" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4500 $as_echo "Disabling symlinks for build by default" >&6; }
4505 # Check whether --enable-verbose-makecmds was given.
4506 if test "${enable_verbose_makecmds+set}" = set; then :
4507 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4510 $as_echo "Disabling verbose make commands" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4516 $as_echo "Enabling verbose make commands" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4524 $as_echo "Disabling verbose make commands" >&6; }
4534 # Check whether --enable-compression was given.
4535 if test "${enable_compression+set}" = set; then :
4536 enableval=$enable_compression; if test "$enableval" = "no"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4539 $as_echo "Disabling compression support" >&6; }
4542 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4545 $as_echo "Enabling compression support" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4547 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4552 $as_echo "Disabling compression support by default" >&6; }
4557 # Check whether --enable-htree was given.
4558 if test "${enable_htree+set}" = set; then :
4559 enableval=$enable_htree; if test "$enableval" = "no"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4563 $as_echo "Disabling htree directory support" >&6; }
4566 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4569 $as_echo "Enabling htree directory support" >&6; }
4574 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4577 $as_echo "Enabling htree directory support by default" >&6; }
4582 E2_PKG_CONFIG_STATIC=--static
4585 # Check whether --enable-elf-shlibs was given.
4586 if test "${enable_elf_shlibs+set}" = set; then :
4587 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4590 MAKEFILE_ELF=/dev/null
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4592 $as_echo "Disabling ELF shared libraries" >&6; }
4594 E2_PKG_CONFIG_STATIC=
4596 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4599 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4605 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4607 $as_echo "Enabling ELF shared libraries" >&6; }
4611 MAKEFILE_ELF=/dev/null
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4614 $as_echo "Disabling ELF shared libraries by default" >&6; }
4620 # Check whether --enable-bsd-shlibs was given.
4621 if test "${enable_bsd_shlibs+set}" = set; then :
4622 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4625 MAKEFILE_BSDLIB=/dev/null
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4627 $as_echo "Disabling BSD shared libraries" >&6; }
4629 E2_PKG_CONFIG_STATIC=
4631 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4635 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4640 $as_echo "Enabling BSD shared libraries" >&6; }
4644 MAKEFILE_BSDLIB=/dev/null
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4647 $as_echo "Disabling BSD shared libraries by default" >&6; }
4653 # Check whether --enable-profile was given.
4654 if test "${enable_profile+set}" = set; then :
4655 enableval=$enable_profile; if test "$enableval" = "no"
4658 MAKEFILE_PROFILE=/dev/null
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4660 $as_echo "Disabling profiling libraries" >&6; }
4663 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4664 PROFILED_LIB_EXT=_p.a
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4666 $as_echo "Building profiling libraries" >&6; }
4671 MAKEFILE_PROFILE=/dev/null
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4673 $as_echo "Disabling profiling libraries by default" >&6; }
4679 # Check whether --enable-gcov was given.
4680 if test "${enable_gcov+set}" = set; then :
4681 enableval=$enable_gcov; if test "$enableval" = "yes"
4683 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4684 LDFLAGS="-fprofile-arcs -ftest-coverage"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4686 $as_echo "Enabling gcov support" >&6; }
4697 # Check whether --enable-jbd-debug was given.
4698 if test "${enable_jbd_debug+set}" = set; then :
4699 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4702 $as_echo "Disabling journal debugging" >&6; }
4705 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4708 $as_echo "Enabling journal debugging" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4713 $as_echo "Disabling journal debugging by default" >&6; }
4717 # Check whether --enable-blkid-debug was given.
4718 if test "${enable_blkid_debug+set}" = set; then :
4719 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4722 $as_echo "Disabling blkid debugging" >&6; }
4725 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4728 $as_echo "Enabling blkid debugging" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4733 $as_echo "Disabling blkid debugging by default" >&6; }
4737 # Check whether --enable-testio-debug was given.
4738 if test "${enable_testio_debug+set}" = set; then :
4739 enableval=$enable_testio_debug;
4740 if test "$enableval" = "no"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4743 $as_echo "Disabling testio debugging" >&6; }
4747 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4750 $as_echo "Enabling testio debugging" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4755 $as_echo "Enabling testio debugging by default" >&6; }
4756 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4765 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4772 $as_echo_n "(cached) " >&6
4776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4798 if test -n "$PKG_CONFIG"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4800 $as_echo "$PKG_CONFIG" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4808 if test -z "$ac_cv_path_PKG_CONFIG"; then
4809 ac_pt_PKG_CONFIG=$PKG_CONFIG
4810 # Extract the first word of "pkg-config", so it can be a program name with args.
4811 set dummy pkg-config; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 case $ac_pt_PKG_CONFIG in
4819 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4841 if test -n "$ac_pt_PKG_CONFIG"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4843 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4849 if test "x$ac_pt_PKG_CONFIG" = x; then
4852 case $cross_compiling:$ac_tool_warned in
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4858 PKG_CONFIG=$ac_pt_PKG_CONFIG
4861 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4865 if test -n "$PKG_CONFIG"; then
4866 _pkg_min_version=0.9.0
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4868 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4869 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4884 DEPPROFILED_LIBUUID=
4886 # Check whether --enable-libuuid was given.
4887 if test "${enable_libuuid+set}" = set; then :
4888 enableval=$enable_libuuid; if test "$enableval" = "no"
4890 if test -z "$PKG_CONFIG"; then
4891 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4895 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4896 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 ac_check_lib_save_LIBS=$LIBS
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4904 /* Override any GCC internal prototype to avoid an error.
4905 Use char because int might match the return type of a GCC
4906 builtin and then its argument prototype would still apply. */
4910 char uuid_generate ();
4914 return uuid_generate ();
4919 if ac_fn_c_try_link "$LINENO"; then :
4920 ac_cv_lib_uuid_uuid_generate=yes
4922 ac_cv_lib_uuid_uuid_generate=no
4924 rm -f core conftest.err conftest.$ac_objext \
4925 conftest$ac_exeext conftest.$ac_ext
4926 LIBS=$ac_check_lib_save_LIBS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4929 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4930 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4931 LIBUUID=`$PKG_CONFIG --libs uuid`;
4932 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4934 as_fn_error $? "external uuid library not found" "$LINENO" 5
4937 PROFILED_LIBUUID=$LIBUUID
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4940 $as_echo "Disabling private uuid library" >&6; }
4942 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4944 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4945 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4946 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4947 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4949 $as_echo "Enabling private uuid library" >&6; }
4953 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4955 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4956 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4957 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4958 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4960 $as_echo "Enabling private uuid library by default" >&6; }
4973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4974 if test -n "$ac_tool_prefix"; then
4975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4980 $as_echo_n "(cached) " >&6
4984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5006 if test -n "$PKG_CONFIG"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5008 $as_echo "$PKG_CONFIG" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5016 if test -z "$ac_cv_path_PKG_CONFIG"; then
5017 ac_pt_PKG_CONFIG=$PKG_CONFIG
5018 # Extract the first word of "pkg-config", so it can be a program name with args.
5019 set dummy pkg-config; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 case $ac_pt_PKG_CONFIG in
5027 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5049 if test -n "$ac_pt_PKG_CONFIG"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5051 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5057 if test "x$ac_pt_PKG_CONFIG" = x; then
5060 case $cross_compiling:$ac_tool_warned in
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064 ac_tool_warned=yes ;;
5066 PKG_CONFIG=$ac_pt_PKG_CONFIG
5069 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5073 if test -n "$PKG_CONFIG"; then
5074 _pkg_min_version=0.9.0
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5076 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5077 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5079 $as_echo "yes" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5092 DEPPROFILED_LIBBLKID=
5095 # Check whether --enable-libblkid was given.
5096 if test "${enable_libblkid+set}" = set; then :
5097 enableval=$enable_libblkid; if test "$enableval" = "no"
5099 if test -z "$PKG_CONFIG"; then
5100 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5104 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5105 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-lblkid -luuid $LIBS"
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5119 char blkid_get_cache ();
5123 return blkid_get_cache ();
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 ac_cv_lib_blkid_blkid_get_cache=yes
5131 ac_cv_lib_blkid_blkid_get_cache=no
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5138 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5139 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5140 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5141 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5143 as_fn_error $? "external blkid library not found" "$LINENO" 5
5147 PROFILED_LIBBLKID=$LIBBLKID
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5149 $as_echo "Disabling private blkid library" >&6; }
5151 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5152 DEPLIBBLKID=$LIBBLKID
5153 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5154 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5155 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5156 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5157 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5160 $as_echo "Enabling private blkid library" >&6; }
5164 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5165 DEPLIBBLKID=$LIBBLKID
5166 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5167 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5168 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5169 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5170 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5173 $as_echo "Enabling private blkid library by default" >&6; }
5184 QUOTA_MAN_COMMENT='.\"'
5189 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5196 $as_echo_n "(cached) " >&6
5200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5222 if test -n "$PKG_CONFIG"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5224 $as_echo "$PKG_CONFIG" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5232 if test -z "$ac_cv_path_PKG_CONFIG"; then
5233 ac_pt_PKG_CONFIG=$PKG_CONFIG
5234 # Extract the first word of "pkg-config", so it can be a program name with args.
5235 set dummy pkg-config; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 case $ac_pt_PKG_CONFIG in
5243 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5265 if test -n "$ac_pt_PKG_CONFIG"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5267 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5273 if test "x$ac_pt_PKG_CONFIG" = x; then
5276 case $cross_compiling:$ac_tool_warned in
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280 ac_tool_warned=yes ;;
5282 PKG_CONFIG=$ac_pt_PKG_CONFIG
5285 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5289 if test -n "$PKG_CONFIG"; then
5290 _pkg_min_version=0.9.0
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5292 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5293 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5304 # Check whether --enable-quota was given.
5305 if test "${enable_quota+set}" = set; then :
5306 enableval=$enable_quota; if test "$enableval" = "no"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5310 $as_echo "Disabling quota support" >&6; }
5313 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5316 $as_echo "Enabling quota support" >&6; }
5317 QUOTA_MAN_COMMENT=""
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5324 $as_echo "Disabling quota support by default" >&6; }
5328 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5329 DEPLIBQUOTA=$LIBQUOTA
5330 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5331 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5332 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5333 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5342 # Check whether --enable-backtrace was given.
5343 if test "${enable_backtrace+set}" = set; then :
5344 enableval=$enable_backtrace; if test "$enableval" = "no"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5347 $as_echo "Disabling use of backtrace" >&6; }
5348 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5352 $as_echo "Enabling use of backtrace" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5357 $as_echo "Enabling use of backtrace by default" >&6; }
5361 # Check whether --enable-debugfs was given.
5362 if test "${enable_debugfs+set}" = set; then :
5363 enableval=$enable_debugfs; if test "$enableval" = "no"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5366 $as_echo "Disabling debugfs support" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5371 $as_echo "Enabling debugfs support" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5376 $as_echo "Enabling debugfs support by default" >&6; }
5382 # Check whether --enable-imager was given.
5383 if test "${enable_imager+set}" = set; then :
5384 enableval=$enable_imager; if test "$enableval" = "no"
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5387 $as_echo "Disabling e2image support" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5392 $as_echo "Enabling e2image support" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5397 $as_echo "Enabling e2image support by default" >&6; }
5403 # Check whether --enable-resizer was given.
5404 if test "${enable_resizer+set}" = set; then :
5405 enableval=$enable_resizer; if test "$enableval" = "no"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5408 $as_echo "Disabling e2resize support" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5413 $as_echo "Enabling e2resize support" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5418 $as_echo "Enabling e2resize support by default" >&6; }
5424 # Check whether --enable-defrag was given.
5425 if test "${enable_defrag+set}" = set; then :
5426 enableval=$enable_defrag; if test "$enableval" = "no"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5429 $as_echo "Disabling e4defrag support" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5434 $as_echo "Enabling e4defrag support" >&6; }
5438 if test -z "$WITH_DIET_LIBC"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5441 $as_echo "Enabling e4defrag support by default" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5445 $as_echo "Disabling e4defrag support by default" >&6; }
5452 # Check whether --enable-fsck was given.
5453 if test "${enable_fsck+set}" = set; then :
5454 enableval=$enable_fsck; if test "$enableval" = "no"
5456 FSCK_PROG='' FSCK_MAN=''
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5458 $as_echo "Not building fsck wrapper" >&6; }
5460 FSCK_PROG=fsck FSCK_MAN=fsck.8
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5462 $as_echo "Building fsck wrapper" >&6; }
5468 FSCK_PROG='' FSCK_MAN=''
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5470 $as_echo "Not building fsck wrapper by default" >&6; }
5473 FSCK_PROG=fsck FSCK_MAN=fsck.8
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5475 $as_echo "Building fsck wrapper by default" >&6; }
5482 # Check whether --enable-e2initrd-helper was given.
5483 if test "${enable_e2initrd_helper+set}" = set; then :
5484 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5486 E2INITRD_PROG='' E2INITRD_MAN=''
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5488 $as_echo "Not building e2initrd helper" >&6; }
5490 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5492 $as_echo "Building e2initrd helper" >&6; }
5496 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5498 $as_echo "Building e2initrd helper by default" >&6; }
5504 # Check whether --enable-tls was given.
5505 if test "${enable_tls+set}" = set; then :
5506 enableval=$enable_tls; if test "$enableval" = "no"
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5510 $as_echo "Disabling thread local support" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5514 $as_echo "Enabling thread local support" >&6; }
5518 if test -n "$WITH_DIET_LIBC"
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5522 $as_echo "Diet libc does not support thread local support" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5526 $as_echo "Try using thread local support by default" >&6; }
5531 if test "$try_tls" = "yes"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5535 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5536 if ${ac_cv_tls+:} false; then :
5537 $as_echo_n "(cached) " >&6
5540 ax_tls_keywords="__thread __declspec(thread) none"
5541 for ax_tls_keyword in $ax_tls_keywords; do
5542 case $ax_tls_keyword in
5543 none) ac_cv_tls=none ; break ;;
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5550 static $ax_tls_keyword int bar;
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ac_cv_tls=$ax_tls_keyword ; break
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 if test "$ac_cv_tls" != "none"; then
5576 cat >>confdefs.h <<_ACEOF
5577 #define TLS $ac_cv_tls
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5582 $as_echo "$ac_cv_tls" >&6; }
5586 # Check whether --enable-uuidd was given.
5587 if test "${enable_uuidd+set}" = set; then :
5588 enableval=$enable_uuidd; if test "$enableval" = "no"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5591 $as_echo "Not building uuidd" >&6; }
5594 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5598 $as_echo "Building uuidd" >&6; }
5602 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5604 if test -z "$UUID_CMT"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5608 $as_echo "Building uuidd by default" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5612 $as_echo "Disabling uuidd by default" >&6; }
5618 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5620 GETTEXT_PACKAGE=e2fsprogs
5622 VERSION="$E2FSPROGS_VERSION"
5625 cat >>confdefs.h <<_ACEOF
5626 #define PACKAGE "$PACKAGE"
5630 cat >>confdefs.h <<_ACEOF
5631 #define VERSION "$VERSION"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 cat >conftest.make <<\_ACEOF
5648 @echo '@@@%%%=$(MAKE)=@@@%%%'
5650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5653 eval ac_cv_prog_make_${ac_make}_set=yes;;
5655 eval ac_cv_prog_make_${ac_make}_set=no;;
5659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 SET_MAKE="MAKE=${MAKE-make}"
5669 # Find a good install program. We prefer a C program (faster),
5670 # so one script is as good as another. But avoid the broken or
5671 # incompatible versions:
5672 # SysV /etc/install, /usr/sbin/install
5673 # SunOS /usr/etc/install
5674 # IRIX /sbin/install
5676 # AmigaOS /C/install, which installs bootblocks on floppy discs
5677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5680 # OS/2's system install, which has a completely different semantic
5681 # ./install, which can be erroneously created by make from ./install.sh.
5682 # Reject install programs that cannot install multiple files.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5684 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5685 if test -z "$INSTALL"; then
5686 if ${ac_cv_path_install+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 # Account for people who put trailing slashes in PATH elements.
5695 case $as_dir/ in #((
5696 ./ | .// | /[cC]/* | \
5697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5698 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5701 # OSF1 and SCO ODT 3.0 have their own names for install.
5702 # Don't use installbsd from OSF since it installs stuff as root
5704 for ac_prog in ginstall scoinst install; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5707 if test $ac_prog = install &&
5708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709 # AIX install. It has an incompatible calling convention.
5711 elif test $ac_prog = install &&
5712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713 # program-specific install script used by HP pwplus--don't use.
5716 rm -rf conftest.one conftest.two conftest.dir
5717 echo one > conftest.one
5718 echo two > conftest.two
5720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5721 test -s conftest.one && test -s conftest.two &&
5722 test -s conftest.dir/conftest.one &&
5723 test -s conftest.dir/conftest.two
5725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5738 rm -rf conftest.one conftest.two conftest.dir
5741 if test "${ac_cv_path_install+set}" = set; then
5742 INSTALL=$ac_cv_path_install
5744 # As a last resort, use the slow shell script. Don't cache a
5745 # value for INSTALL within a source directory, because that will
5746 # break other packages using the cache if that directory is
5747 # removed, or if the value is a relative name.
5748 INSTALL=$ac_install_sh
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5752 $as_echo "$INSTALL" >&6; }
5754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5755 # It thinks the first close brace ends the variable substitution.
5756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5764 if test -n "$ac_aux_dir"; then
5765 case "$ac_aux_dir" in
5766 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5767 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5770 if test -z "$MKINSTALLDIRS"; then
5771 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5777 $as_echo_n "checking whether NLS is requested... " >&6; }
5778 # Check whether --enable-nls was given.
5779 if test "${enable_nls+set}" = set; then :
5780 enableval=$enable_nls; USE_NLS=$enableval
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5786 $as_echo "$USE_NLS" >&6; }
5793 # Prepare PATH_SEPARATOR.
5794 # The user is always right.
5795 if test "${PATH_SEPARATOR+set}" != set; then
5796 echo "#! /bin/sh" >conf$$.sh
5797 echo "exit 0" >>conf$$.sh
5799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5807 # Find out how to test for executable files. Don't use a zero-byte file,
5808 # as systems may use methods other than mode bits to determine executability.
5809 cat >conf$$.file <<_ASEOF
5813 chmod +x conf$$.file
5814 if test -x conf$$.file >/dev/null 2>&1; then
5815 ac_executable_p="test -x"
5817 ac_executable_p="test -f"
5821 # Extract the first word of "msgfmt", so it can be a program name with args.
5822 set dummy msgfmt; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_path_MSGFMT+:} false; then :
5826 $as_echo_n "(cached) " >&6
5830 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH; do
5836 test -z "$ac_dir" && ac_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5839 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5840 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5841 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5848 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5852 MSGFMT="$ac_cv_path_MSGFMT"
5853 if test "$MSGFMT" != ":"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5855 $as_echo "$MSGFMT" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5862 set dummy gmsgfmt; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_path_GMSGFMT+:} false; then :
5866 $as_echo_n "(cached) " >&6
5870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5892 GMSGFMT=$ac_cv_path_GMSGFMT
5893 if test -n "$GMSGFMT"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5895 $as_echo "$GMSGFMT" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5904 # Prepare PATH_SEPARATOR.
5905 # The user is always right.
5906 if test "${PATH_SEPARATOR+set}" != set; then
5907 echo "#! /bin/sh" >conf$$.sh
5908 echo "exit 0" >>conf$$.sh
5910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5918 # Find out how to test for executable files. Don't use a zero-byte file,
5919 # as systems may use methods other than mode bits to determine executability.
5920 cat >conf$$.file <<_ASEOF
5924 chmod +x conf$$.file
5925 if test -x conf$$.file >/dev/null 2>&1; then
5926 ac_executable_p="test -x"
5928 ac_executable_p="test -f"
5932 # Extract the first word of "xgettext", so it can be a program name with args.
5933 set dummy xgettext; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_path_XGETTEXT+:} false; then :
5937 $as_echo_n "(cached) " >&6
5941 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5944 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5945 for ac_dir in $PATH; do
5947 test -z "$ac_dir" && ac_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5950 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5951 (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
5952 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5959 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5963 XGETTEXT="$ac_cv_path_XGETTEXT"
5964 if test "$XGETTEXT" != ":"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5966 $as_echo "$XGETTEXT" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5975 # Prepare PATH_SEPARATOR.
5976 # The user is always right.
5977 if test "${PATH_SEPARATOR+set}" != set; then
5978 echo "#! /bin/sh" >conf$$.sh
5979 echo "exit 0" >>conf$$.sh
5981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5989 # Find out how to test for executable files. Don't use a zero-byte file,
5990 # as systems may use methods other than mode bits to determine executability.
5991 cat >conf$$.file <<_ASEOF
5995 chmod +x conf$$.file
5996 if test -x conf$$.file >/dev/null 2>&1; then
5997 ac_executable_p="test -x"
5999 ac_executable_p="test -f"
6003 # Extract the first word of "msgmerge", so it can be a program name with args.
6004 set dummy msgmerge; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_path_MSGMERGE+:} false; then :
6008 $as_echo_n "(cached) " >&6
6012 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6015 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6016 for ac_dir in $PATH; do
6018 test -z "$ac_dir" && ac_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6021 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6022 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6029 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6033 MSGMERGE="$ac_cv_path_MSGMERGE"
6034 if test "$MSGMERGE" != ":"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6036 $as_echo "$MSGMERGE" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6043 if test "$GMSGFMT" != ":"; then
6044 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6045 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6048 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6050 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6055 if test "$XGETTEXT" != ":"; then
6056 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6057 (if $XGETTEXT --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
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6061 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6067 ac_config_commands="$ac_config_commands default-1"
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_RANLIB+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$RANLIB"; then
6079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 RANLIB=$ac_cv_prog_RANLIB
6099 if test -n "$RANLIB"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6101 $as_echo "$RANLIB" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6109 if test -z "$ac_cv_prog_RANLIB"; then
6110 ac_ct_RANLIB=$RANLIB
6111 # Extract the first word of "ranlib", so it can be a program name with args.
6112 set dummy ranlib; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$ac_ct_RANLIB"; then
6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_ac_ct_RANLIB="ranlib"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139 if test -n "$ac_ct_RANLIB"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6141 $as_echo "$ac_ct_RANLIB" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6147 if test "x$ac_ct_RANLIB" = x; then
6150 case $cross_compiling:$ac_tool_warned in
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6156 RANLIB=$ac_ct_RANLIB
6159 RANLIB="$ac_cv_prog_RANLIB"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6164 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6165 if ${ac_cv_lib_cposix_strerror+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-lcposix $LIBS"
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6188 if ac_fn_c_try_link "$LINENO"; then :
6189 ac_cv_lib_cposix_strerror=yes
6191 ac_cv_lib_cposix_strerror=no
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 LIBS=$ac_check_lib_save_LIBS
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6198 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6199 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6200 LIBS="$LIBS -lcposix"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6207 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6208 if ${ac_cv_path_GREP+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 if test -z "$GREP"; then
6212 ac_path_GREP_found=false
6213 # Loop through the user's path and test for each of PROGNAME-LIST
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6218 test -z "$as_dir" && as_dir=.
6219 for ac_prog in grep ggrep; do
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6222 as_fn_executable_p "$ac_path_GREP" || continue
6223 # Check for GNU ac_path_GREP and select it if it is found.
6224 # Check for GNU $ac_path_GREP
6225 case `"$ac_path_GREP" --version 2>&1` in
6227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6230 $as_echo_n 0123456789 >"conftest.in"
6233 cat "conftest.in" "conftest.in" >"conftest.tmp"
6234 mv "conftest.tmp" "conftest.in"
6235 cp "conftest.in" "conftest.nl"
6236 $as_echo 'GREP' >> "conftest.nl"
6237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6239 as_fn_arith $ac_count + 1 && ac_count=$as_val
6240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6241 # Best one so far, save it but keep looking for a better one
6242 ac_cv_path_GREP="$ac_path_GREP"
6243 ac_path_GREP_max=$ac_count
6245 # 10*(2^10) chars as input seems more than enough
6246 test $ac_count -gt 10 && break
6248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6251 $ac_path_GREP_found && break 3
6256 if test -z "$ac_cv_path_GREP"; then
6257 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6260 ac_cv_path_GREP=$GREP
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6265 $as_echo "$ac_cv_path_GREP" >&6; }
6266 GREP="$ac_cv_path_GREP"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6270 $as_echo_n "checking for egrep... " >&6; }
6271 if ${ac_cv_path_EGREP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6275 then ac_cv_path_EGREP="$GREP -E"
6277 if test -z "$EGREP"; then
6278 ac_path_EGREP_found=false
6279 # Loop through the user's path and test for each of PROGNAME-LIST
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6284 test -z "$as_dir" && as_dir=.
6285 for ac_prog in egrep; do
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6288 as_fn_executable_p "$ac_path_EGREP" || continue
6289 # Check for GNU ac_path_EGREP and select it if it is found.
6290 # Check for GNU $ac_path_EGREP
6291 case `"$ac_path_EGREP" --version 2>&1` in
6293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6296 $as_echo_n 0123456789 >"conftest.in"
6299 cat "conftest.in" "conftest.in" >"conftest.tmp"
6300 mv "conftest.tmp" "conftest.in"
6301 cp "conftest.in" "conftest.nl"
6302 $as_echo 'EGREP' >> "conftest.nl"
6303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305 as_fn_arith $ac_count + 1 && ac_count=$as_val
6306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6307 # Best one so far, save it but keep looking for a better one
6308 ac_cv_path_EGREP="$ac_path_EGREP"
6309 ac_path_EGREP_max=$ac_count
6311 # 10*(2^10) chars as input seems more than enough
6312 test $ac_count -gt 10 && break
6314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6317 $ac_path_EGREP_found && break 3
6322 if test -z "$ac_cv_path_EGREP"; then
6323 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6326 ac_cv_path_EGREP=$EGREP
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6332 $as_echo "$ac_cv_path_EGREP" >&6; }
6333 EGREP="$ac_cv_path_EGREP"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6337 $as_echo_n "checking for ANSI C header files... " >&6; }
6338 if ${ac_cv_header_stdc+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 ac_cv_header_stdc=yes
6359 ac_cv_header_stdc=no
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 if test $ac_cv_header_stdc = yes; then
6364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371 $EGREP "memchr" >/dev/null 2>&1; then :
6374 ac_cv_header_stdc=no
6380 if test $ac_cv_header_stdc = yes; then
6381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 $EGREP "free" >/dev/null 2>&1; then :
6391 ac_cv_header_stdc=no
6397 if test $ac_cv_header_stdc = yes; then
6398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6399 if test "$cross_compiling" = yes; then :
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6406 #if ((' ' & 0x0FF) == 0x020)
6407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6410 # define ISLOWER(c) \
6411 (('a' <= (c) && (c) <= 'i') \
6412 || ('j' <= (c) && (c) <= 'r') \
6413 || ('s' <= (c) && (c) <= 'z'))
6414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6422 for (i = 0; i < 256; i++)
6423 if (XOR (islower (i), ISLOWER (i))
6424 || toupper (i) != TOUPPER (i))
6429 if ac_fn_c_try_run "$LINENO"; then :
6432 ac_cv_header_stdc=no
6434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6435 conftest.$ac_objext conftest.beam conftest.$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6441 $as_echo "$ac_cv_header_stdc" >&6; }
6442 if test $ac_cv_header_stdc = yes; then
6444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6449 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6450 if ${ac_cv_c_const+:} false; then :
6451 $as_echo_n "(cached) " >&6
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6461 /* Ultrix mips cc rejects this sort of thing. */
6462 typedef int charset[2];
6463 const charset cs = { 0, 0 };
6464 /* SunOS 4.1.1 cc rejects this. */
6465 char const *const *pcpcc;
6467 /* NEC SVR4.0.2 mips cc rejects this. */
6468 struct point {int x, y;};
6469 static struct point const zero = {0,0};
6470 /* AIX XL C 1.02.0.0 rejects this.
6471 It does not let you subtract one const X* pointer from another in
6472 an arm of an if-expression whose if-part is not a constant
6474 const char *g = "string";
6475 pcpcc = &g + (g ? g-g : 0);
6476 /* HPUX 7.0 cc rejects these. */
6478 ppc = (char**) pcpcc;
6479 pcpcc = (char const *const *) ppc;
6480 { /* SCO 3.2v4 cc rejects this sort of thing. */
6483 char const *s = 0 ? (char *) 0 : (char const *) 0;
6488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6490 const int *foo = &x[0];
6493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6494 typedef const int *iptr;
6498 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6500 struct s { int j; const int *ap[3]; } bx;
6501 struct s *b = &bx; b->j = 5;
6503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6507 return !cs[0] && !zero.x;
6514 if ac_fn_c_try_compile "$LINENO"; then :
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6522 $as_echo "$ac_cv_c_const" >&6; }
6523 if test $ac_cv_c_const = no; then
6525 $as_echo "#define const /**/" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6531 $as_echo_n "checking for signed... " >&6; }
6532 if ${bh_cv_c_signed+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6546 if ac_fn_c_try_compile "$LINENO"; then :
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6554 $as_echo "$bh_cv_c_signed" >&6; }
6555 if test $bh_cv_c_signed = no; then
6557 $as_echo "#define signed /**/" >>confdefs.h
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6562 $as_echo_n "checking for inline... " >&6; }
6563 if ${ac_cv_c_inline+:} false; then :
6564 $as_echo_n "(cached) " >&6
6567 for ac_kw in inline __inline__ __inline; do
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6572 static $ac_kw foo_t static_foo () {return 0; }
6573 $ac_kw foo_t foo () {return 0; }
6577 if ac_fn_c_try_compile "$LINENO"; then :
6578 ac_cv_c_inline=$ac_kw
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 test "$ac_cv_c_inline" != no && break
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6586 $as_echo "$ac_cv_c_inline" >&6; }
6588 case $ac_cv_c_inline in
6591 case $ac_cv_c_inline in
6593 *) ac_val=$ac_cv_c_inline;;
6595 cat >>confdefs.h <<_ACEOF
6597 #define inline $ac_val
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6605 inttypes.h stdint.h unistd.h
6607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6611 cat >>confdefs.h <<_ACEOF
6612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6620 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6621 if test "x$ac_cv_type_off_t" = xyes; then :
6625 cat >>confdefs.h <<_ACEOF
6626 #define off_t long int
6631 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6632 if test "x$ac_cv_type_size_t" = xyes; then :
6636 cat >>confdefs.h <<_ACEOF
6637 #define size_t unsigned int
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6644 $as_echo_n "checking for long long... " >&6; }
6645 if ${ac_cv_type_long_long+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 long long ll = 1LL; int i = 63;
6654 long long llmax = (long long) -1;
6655 return ll << i | ll >> i | llmax / ll | llmax % ll;
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 ac_cv_type_long_long=yes
6663 ac_cv_type_long_long=no
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6669 $as_echo "$ac_cv_type_long_long" >&6; }
6670 if test $ac_cv_type_long_long = yes; then
6672 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6678 $as_echo_n "checking for long double... " >&6; }
6679 if ${gt_cv_c_long_double+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 if test "$GCC" = yes; then
6683 gt_cv_c_long_double=yes
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6688 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6689 long double foo = 0.0;
6690 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6691 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 gt_cv_c_long_double=yes
6704 gt_cv_c_long_double=no
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6710 $as_echo "$gt_cv_c_long_double" >&6; }
6711 if test $gt_cv_c_long_double = yes; then
6713 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6719 $as_echo_n "checking for wchar_t... " >&6; }
6720 if ${gt_cv_c_wchar_t+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6726 wchar_t foo = (wchar_t)'\0';
6735 if ac_fn_c_try_compile "$LINENO"; then :
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6743 $as_echo "$gt_cv_c_wchar_t" >&6; }
6744 if test $gt_cv_c_wchar_t = yes; then
6746 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6752 $as_echo_n "checking for wint_t... " >&6; }
6753 if ${gt_cv_c_wint_t+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 wint_t foo = (wchar_t)'\0';
6768 if ac_fn_c_try_compile "$LINENO"; then :
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6776 $as_echo "$gt_cv_c_wint_t" >&6; }
6777 if test $gt_cv_c_wint_t = yes; then
6779 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6785 $as_echo_n "checking for inttypes.h... " >&6; }
6786 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6787 $as_echo_n "(cached) " >&6
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <sys/types.h>
6792 #include <inttypes.h>
6796 uintmax_t i = (uintmax_t) -1;
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 jm_ac_cv_header_inttypes_h=yes
6804 jm_ac_cv_header_inttypes_h=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6809 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6810 if test $jm_ac_cv_header_inttypes_h = yes; then
6812 cat >>confdefs.h <<_ACEOF
6813 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6820 $as_echo_n "checking for stdint.h... " >&6; }
6821 if ${jm_ac_cv_header_stdint_h+:} false; then :
6822 $as_echo_n "(cached) " >&6
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #include <sys/types.h>
6831 uintmax_t i = (uintmax_t) -1;
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837 jm_ac_cv_header_stdint_h=yes
6839 jm_ac_cv_header_stdint_h=no
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6844 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6845 if test $jm_ac_cv_header_stdint_h = yes; then
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STDINT_H_WITH_UINTMAX 1
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6857 $as_echo_n "checking for intmax_t... " >&6; }
6858 if ${gt_cv_c_intmax_t+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6866 #if HAVE_STDINT_H_WITH_UINTMAX
6869 #if HAVE_INTTYPES_H_WITH_UINTMAX
6870 #include <inttypes.h>
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882 gt_cv_c_intmax_t=yes
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6889 $as_echo "$gt_cv_c_intmax_t" >&6; }
6890 if test $gt_cv_c_intmax_t = yes; then
6892 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6899 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6900 if ${gt_cv_func_printf_posix+:} false; then :
6901 $as_echo_n "(cached) " >&6
6904 if test "$cross_compiling" = yes; then :
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6909 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "notposix" >/dev/null 2>&1; then :
6916 gt_cv_func_printf_posix="guessing no"
6918 gt_cv_func_printf_posix="guessing yes"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6930 dollar expansion (possibly an autoconf bug). */
6931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6932 static char buf[100];
6935 sprintf (buf, format, 33, 55);
6936 return (strcmp (buf, "55 33") != 0);
6939 if ac_fn_c_try_run "$LINENO"; then :
6940 gt_cv_func_printf_posix=yes
6942 gt_cv_func_printf_posix=no
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6945 conftest.$ac_objext conftest.beam conftest.$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6951 $as_echo "$gt_cv_func_printf_posix" >&6; }
6952 case $gt_cv_func_printf_posix in
6955 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6961 # for constant arguments. Useless!
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6963 $as_echo_n "checking for working alloca.h... " >&6; }
6964 if ${ac_cv_working_alloca_h+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6973 char *p = (char *) alloca (2 * sizeof (int));
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 ac_cv_working_alloca_h=yes
6982 ac_cv_working_alloca_h=no
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6988 $as_echo "$ac_cv_working_alloca_h" >&6; }
6989 if test $ac_cv_working_alloca_h = yes; then
6991 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6996 $as_echo_n "checking for alloca... " >&6; }
6997 if ${ac_cv_func_alloca_works+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 # define alloca __builtin_alloca
7006 # include <malloc.h>
7007 # define alloca _alloca
7009 # ifdef HAVE_ALLOCA_H
7010 # include <alloca.h>
7015 # ifndef alloca /* predefined by HP cc +Olibcalls */
7016 void *alloca (size_t);
7026 char *p = (char *) alloca (1);
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 ac_cv_func_alloca_works=yes
7035 ac_cv_func_alloca_works=no
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7041 $as_echo "$ac_cv_func_alloca_works" >&6; }
7043 if test $ac_cv_func_alloca_works = yes; then
7045 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7048 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7049 # that cause trouble. Some versions do not even contain alloca or
7050 # contain a buggy version. If you still want to use their alloca,
7051 # use ar to extract alloca.o from them instead of compiling alloca.c.
7053 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7055 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7059 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7060 if ${ac_cv_os_cray+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #if defined CRAY && ! defined CRAY2
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "webecray" >/dev/null 2>&1; then :
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7082 $as_echo "$ac_cv_os_cray" >&6; }
7083 if test $ac_cv_os_cray = yes; then
7084 for ac_func in _getb67 GETB67 getb67; do
7085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7089 cat >>confdefs.h <<_ACEOF
7090 #define CRAY_STACKSEG_END $ac_func
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7100 $as_echo_n "checking stack direction for C alloca... " >&6; }
7101 if ${ac_cv_c_stack_direction+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 if test "$cross_compiling" = yes; then :
7105 ac_cv_c_stack_direction=0
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 $ac_includes_default
7111 find_stack_direction (int *addr, int depth)
7116 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7117 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7122 main (int argc, char **argv)
7124 return find_stack_direction (0, argc + !argv + 20) < 0;
7127 if ac_fn_c_try_run "$LINENO"; then :
7128 ac_cv_c_stack_direction=1
7130 ac_cv_c_stack_direction=-1
7132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7133 conftest.$ac_objext conftest.beam conftest.$ac_ext
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7138 $as_echo "$ac_cv_c_stack_direction" >&6; }
7139 cat >>confdefs.h <<_ACEOF
7140 #define STACK_DIRECTION $ac_cv_c_stack_direction
7149 for ac_header in $ac_header_list
7151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7155 cat >>confdefs.h <<_ACEOF
7156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170 for ac_func in getpagesize
7172 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7173 if test "x$ac_cv_func_getpagesize" = xyes; then :
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_GETPAGESIZE 1
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7182 $as_echo_n "checking for working mmap... " >&6; }
7183 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 if test "$cross_compiling" = yes; then :
7187 ac_cv_func_mmap_fixed_mapped=no
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 $ac_includes_default
7192 /* malloc might have been renamed as rpl_malloc. */
7195 /* Thanks to Mike Haertel and Jim Avera for this test.
7196 Here is a matrix of mmap possibilities:
7197 mmap private not fixed
7198 mmap private fixed at somewhere currently unmapped
7199 mmap private fixed at somewhere already mapped
7200 mmap shared not fixed
7201 mmap shared fixed at somewhere currently unmapped
7202 mmap shared fixed at somewhere already mapped
7203 For private mappings, we should verify that changes cannot be read()
7204 back from the file, nor mmap's back from the file at a different
7205 address. (There have been systems where private was not correctly
7206 implemented like the infamous i386 svr4.0, and systems where the
7207 VM page cache was not coherent with the file system buffer cache
7208 like early versions of FreeBSD and possibly contemporary NetBSD.)
7209 For shared mappings, we should conversely verify that changes get
7210 propagated back to all the places they're supposed to be.
7212 Grep wants private fixed already mapped.
7213 The main things grep needs to know about mmap are:
7214 * does it exist and is it safe to write into the mmap'd area
7215 * how to use it (BSD variants) */
7218 #include <sys/mman.h>
7220 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7224 /* This mess was copied from the GNU getpagesize.h. */
7225 #ifndef HAVE_GETPAGESIZE
7226 # ifdef _SC_PAGESIZE
7227 # define getpagesize() sysconf(_SC_PAGESIZE)
7228 # else /* no _SC_PAGESIZE */
7229 # ifdef HAVE_SYS_PARAM_H
7230 # include <sys/param.h>
7231 # ifdef EXEC_PAGESIZE
7232 # define getpagesize() EXEC_PAGESIZE
7233 # else /* no EXEC_PAGESIZE */
7235 # define getpagesize() NBPG * CLSIZE
7238 # endif /* no CLSIZE */
7239 # else /* no NBPG */
7241 # define getpagesize() NBPC
7242 # else /* no NBPC */
7244 # define getpagesize() PAGESIZE
7245 # endif /* PAGESIZE */
7246 # endif /* no NBPC */
7247 # endif /* no NBPG */
7248 # endif /* no EXEC_PAGESIZE */
7249 # else /* no HAVE_SYS_PARAM_H */
7250 # define getpagesize() 8192 /* punt totally */
7251 # endif /* no HAVE_SYS_PARAM_H */
7252 # endif /* no _SC_PAGESIZE */
7254 #endif /* no HAVE_GETPAGESIZE */
7259 char *data, *data2, *data3;
7264 pagesize = getpagesize ();
7266 /* First, make a file with some known garbage in it. */
7267 data = (char *) malloc (pagesize);
7270 for (i = 0; i < pagesize; ++i)
7271 *(data + i) = rand ();
7273 fd = creat ("conftest.mmap", 0600);
7276 if (write (fd, data, pagesize) != pagesize)
7280 /* Next, check that the tail of a page is zero-filled. File must have
7281 non-zero length, otherwise we risk SIGBUS for entire page. */
7282 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7286 if (write (fd2, cdata2, 1) != 1)
7288 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7289 if (data2 == MAP_FAILED)
7291 for (i = 0; i < pagesize; ++i)
7295 if (munmap (data2, pagesize))
7298 /* Next, try to mmap the file at a fixed address which already has
7299 something else allocated at it. If we can, also make sure that
7300 we see the same garbage. */
7301 fd = open ("conftest.mmap", O_RDWR);
7304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7307 for (i = 0; i < pagesize; ++i)
7308 if (*(data + i) != *(data2 + i))
7311 /* Finally, make sure that changes to the mapped area do not
7312 percolate back to the file as seen by read(). (This is a bug on
7313 some variants of i386 svr4.0.) */
7314 for (i = 0; i < pagesize; ++i)
7315 *(data2 + i) = *(data2 + i) + 1;
7316 data3 = (char *) malloc (pagesize);
7319 if (read (fd, data3, pagesize) != pagesize)
7321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data3 + i))
7328 if ac_fn_c_try_run "$LINENO"; then :
7329 ac_cv_func_mmap_fixed_mapped=yes
7331 ac_cv_func_mmap_fixed_mapped=no
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334 conftest.$ac_objext conftest.beam conftest.$ac_ext
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7339 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7342 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7345 rm -f conftest.mmap conftest.txt
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7349 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7350 if ${ac_cv_gnu_library_2_1+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7356 #include <features.h>
7357 #ifdef __GNU_LIBRARY__
7358 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7365 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7366 ac_cv_gnu_library_2_1=yes
7368 ac_cv_gnu_library_2_1=no
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7376 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7378 GLIBC21="$ac_cv_gnu_library_2_1"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7384 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7385 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7386 $as_echo_n "(cached) " >&6
7389 if test "$cross_compiling" = yes; then :
7391 # Guess based on the CPU.
7393 alpha* | i3456786 | m68k | s390*)
7394 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7396 gt_cv_int_divbyzero_sigfpe="guessing no";;
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7408 sigfpe_handler (int sig)
7410 sigfpe_handler (sig) int sig;
7413 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7414 exit (sig != SIGFPE);
7424 signal (SIGFPE, sigfpe_handler);
7425 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7426 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7427 signal (SIGTRAP, sigfpe_handler);
7429 /* Linux/SPARC yields signal SIGILL. */
7430 #if defined (__sparc__) && defined (__linux__)
7431 signal (SIGILL, sigfpe_handler);
7440 if ac_fn_c_try_run "$LINENO"; then :
7441 gt_cv_int_divbyzero_sigfpe=yes
7443 gt_cv_int_divbyzero_sigfpe=no
7445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7446 conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7452 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7453 case "$gt_cv_int_divbyzero_sigfpe" in
7458 cat >>confdefs.h <<_ACEOF
7459 #define INTDIV0_RAISES_SIGFPE $value
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7465 $as_echo_n "checking for unsigned long long... " >&6; }
7466 if ${ac_cv_type_unsigned_long_long+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 unsigned long long ull = 1ULL; int i = 63;
7475 unsigned long long ullmax = (unsigned long long) -1;
7476 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7481 if ac_fn_c_try_link "$LINENO"; then :
7482 ac_cv_type_unsigned_long_long=yes
7484 ac_cv_type_unsigned_long_long=no
7486 rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7490 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7491 if test $ac_cv_type_unsigned_long_long = yes; then
7493 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7500 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7502 test $ac_cv_type_unsigned_long_long = yes \
7503 && ac_type='unsigned long long' \
7504 || ac_type='unsigned long'
7506 cat >>confdefs.h <<_ACEOF
7507 #define uintmax_t $ac_type
7512 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7518 $as_echo_n "checking for inttypes.h... " >&6; }
7519 if ${gt_cv_header_inttypes_h+:} false; then :
7520 $as_echo_n "(cached) " >&6
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <sys/types.h>
7526 #include <inttypes.h>
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536 gt_cv_header_inttypes_h=yes
7538 gt_cv_header_inttypes_h=no
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7544 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7545 if test $gt_cv_header_inttypes_h = yes; then
7547 cat >>confdefs.h <<_ACEOF
7548 #define HAVE_INTTYPES_H 1
7555 if test $gt_cv_header_inttypes_h = yes; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7557 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7558 if ${gt_cv_inttypes_pri_broken+:} false; then :
7559 $as_echo_n "(cached) " >&6
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <inttypes.h>
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578 gt_cv_inttypes_pri_broken=no
7580 gt_cv_inttypes_pri_broken=yes
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7586 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7588 if test "$gt_cv_inttypes_pri_broken" = yes; then
7590 cat >>confdefs.h <<_ACEOF
7591 #define PRI_MACROS_BROKEN 1
7597 for ac_header in stdint.h
7599 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7600 if test "x$ac_cv_header_stdint_h" = xyes; then :
7601 cat >>confdefs.h <<_ACEOF
7602 #define HAVE_STDINT_H 1
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7610 $as_echo_n "checking for SIZE_MAX... " >&6; }
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625 $EGREP "Found it" >/dev/null 2>&1; then :
7630 if test -z "$result"; then
7631 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7638 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7645 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7652 if test "$fits_in_uint" = 1; then
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7657 extern unsigned long foo;
7667 if ac_fn_c_try_compile "$LINENO"; then :
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 if test -z "$result"; then
7673 if test "$fits_in_uint" = 1; then
7674 result="$res_hi$res_lo"U
7676 result="$res_hi$res_lo"UL
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7683 $as_echo "$result" >&6; }
7684 if test "$result" != yes; then
7686 cat >>confdefs.h <<_ACEOF
7687 #define SIZE_MAX $result
7694 for ac_header in stdint.h
7696 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7697 if test "x$ac_cv_header_stdint_h" = xyes; then :
7698 cat >>confdefs.h <<_ACEOF
7699 #define HAVE_STDINT_H 1
7708 if test "X$prefix" = "XNONE"; then
7709 acl_final_prefix="$ac_default_prefix"
7711 acl_final_prefix="$prefix"
7713 if test "X$exec_prefix" = "XNONE"; then
7714 acl_final_exec_prefix='${prefix}'
7716 acl_final_exec_prefix="$exec_prefix"
7718 acl_save_prefix="$prefix"
7719 prefix="$acl_final_prefix"
7720 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7721 prefix="$acl_save_prefix"
7724 # Check whether --with-gnu-ld was given.
7725 if test "${with_gnu_ld+set}" = set; then :
7726 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7731 # Prepare PATH_SEPARATOR.
7732 # The user is always right.
7733 if test "${PATH_SEPARATOR+set}" != set; then
7734 echo "#! /bin/sh" >conf$$.sh
7735 echo "exit 0" >>conf$$.sh
7737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7745 if test "$GCC" = yes; then
7746 # Check if gcc -print-prog-name=ld gives a path.
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7748 $as_echo_n "checking for ld used by GCC... " >&6; }
7751 # gcc leaves a trailing carriage return which upsets mingw
7752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7757 # Accept absolute paths.
7758 [\\/]* | [A-Za-z]:[\\/]*)
7759 re_direlt='/[^/][^/]*/\.\./'
7760 # Canonicalize the path of ld
7761 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7762 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7763 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7765 test -z "$LD" && LD="$ac_prog"
7768 # If it fails, then pretend we aren't using GCC.
7772 # If it is relative, then search for the first ld in PATH.
7776 elif test "$with_gnu_ld" = yes; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7778 $as_echo_n "checking for GNU ld... " >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7781 $as_echo_n "checking for non-GNU ld... " >&6; }
7783 if ${acl_cv_path_LD+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -z "$LD"; then
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7788 for ac_dir in $PATH; do
7789 test -z "$ac_dir" && ac_dir=.
7790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7791 acl_cv_path_LD="$ac_dir/$ac_prog"
7792 # Check to see if the program is GNU ld. I'd rather use --version,
7793 # but apparently some GNU ld's only accept -v.
7794 # Break only if it was the GNU/non-GNU ld that we prefer.
7795 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7796 *GNU* | *'with BFD'*)
7797 test "$with_gnu_ld" != no && break ;;
7799 test "$with_gnu_ld" != yes && break ;;
7805 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7809 LD="$acl_cv_path_LD"
7810 if test -n "$LD"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7812 $as_echo "$LD" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7817 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7819 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7820 if ${acl_cv_prog_gnu_ld+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7824 case `$LD -v 2>&1 </dev/null` in
7825 *GNU* | *'with BFD'*)
7826 acl_cv_prog_gnu_ld=yes ;;
7828 acl_cv_prog_gnu_ld=no ;;
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7832 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7833 with_gnu_ld=$acl_cv_prog_gnu_ld
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7838 $as_echo_n "checking for shared library run path origin... " >&6; }
7839 if ${acl_cv_rpath+:} false; then :
7840 $as_echo_n "(cached) " >&6
7843 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7844 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7851 $as_echo "$acl_cv_rpath" >&6; }
7853 libext="$acl_cv_libext"
7854 shlibext="$acl_cv_shlibext"
7855 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7856 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7857 hardcode_direct="$acl_cv_hardcode_direct"
7858 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7859 # Check whether --enable-rpath was given.
7860 if test "${enable_rpath+set}" = set; then :
7861 enableval=$enable_rpath; :
7875 acl_save_prefix="$prefix"
7876 prefix="$acl_final_prefix"
7877 acl_save_exec_prefix="$exec_prefix"
7878 exec_prefix="$acl_final_exec_prefix"
7880 eval additional_includedir=\"$includedir\"
7881 eval additional_libdir=\"$libdir\"
7883 exec_prefix="$acl_save_exec_prefix"
7884 prefix="$acl_save_prefix"
7887 # Check whether --with-libiconv-prefix was given.
7888 if test "${with_libiconv_prefix+set}" = set; then :
7889 withval=$with_libiconv_prefix;
7890 if test "X$withval" = "Xno"; then
7893 if test "X$withval" = "X"; then
7895 acl_save_prefix="$prefix"
7896 prefix="$acl_final_prefix"
7897 acl_save_exec_prefix="$exec_prefix"
7898 exec_prefix="$acl_final_exec_prefix"
7900 eval additional_includedir=\"$includedir\"
7901 eval additional_libdir=\"$libdir\"
7903 exec_prefix="$acl_save_exec_prefix"
7904 prefix="$acl_save_prefix"
7907 additional_includedir="$withval/include"
7908 additional_libdir="$withval/lib"
7919 names_already_handled=
7920 names_next_round='iconv '
7921 while test -n "$names_next_round"; do
7922 names_this_round="$names_next_round"
7924 for name in $names_this_round; do
7926 for n in $names_already_handled; do
7927 if test "$n" = "$name"; then
7932 if test -z "$already_handled"; then
7933 names_already_handled="$names_already_handled $name"
7934 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7935 eval value=\"\$HAVE_LIB$uppername\"
7936 if test -n "$value"; then
7937 if test "$value" = yes; then
7938 eval value=\"\$LIB$uppername\"
7939 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7940 eval value=\"\$LTLIB$uppername\"
7941 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7950 if test $use_additional = yes; then
7951 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7952 found_dir="$additional_libdir"
7953 found_so="$additional_libdir/lib$name.$shlibext"
7954 if test -f "$additional_libdir/lib$name.la"; then
7955 found_la="$additional_libdir/lib$name.la"
7958 if test -f "$additional_libdir/lib$name.$libext"; then
7959 found_dir="$additional_libdir"
7960 found_a="$additional_libdir/lib$name.$libext"
7961 if test -f "$additional_libdir/lib$name.la"; then
7962 found_la="$additional_libdir/lib$name.la"
7967 if test "X$found_dir" = "X"; then
7968 for x in $LDFLAGS $LTLIBICONV; do
7970 acl_save_prefix="$prefix"
7971 prefix="$acl_final_prefix"
7972 acl_save_exec_prefix="$exec_prefix"
7973 exec_prefix="$acl_final_exec_prefix"
7975 exec_prefix="$acl_save_exec_prefix"
7976 prefix="$acl_save_prefix"
7980 dir=`echo "X$x" | sed -e 's/^X-L//'`
7981 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7983 found_so="$dir/lib$name.$shlibext"
7984 if test -f "$dir/lib$name.la"; then
7985 found_la="$dir/lib$name.la"
7988 if test -f "$dir/lib$name.$libext"; then
7990 found_a="$dir/lib$name.$libext"
7991 if test -f "$dir/lib$name.la"; then
7992 found_la="$dir/lib$name.la"
7998 if test "X$found_dir" != "X"; then
8003 if test "X$found_dir" != "X"; then
8004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8005 if test "X$found_so" != "X"; then
8006 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8010 for x in $ltrpathdirs; do
8011 if test "X$x" = "X$found_dir"; then
8016 if test -z "$haveit"; then
8017 ltrpathdirs="$ltrpathdirs $found_dir"
8019 if test "$hardcode_direct" = yes; then
8020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8022 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8025 for x in $rpathdirs; do
8026 if test "X$x" = "X$found_dir"; then
8031 if test -z "$haveit"; then
8032 rpathdirs="$rpathdirs $found_dir"
8036 for x in $LDFLAGS $LIBICONV; do
8038 acl_save_prefix="$prefix"
8039 prefix="$acl_final_prefix"
8040 acl_save_exec_prefix="$exec_prefix"
8041 exec_prefix="$acl_final_exec_prefix"
8043 exec_prefix="$acl_save_exec_prefix"
8044 prefix="$acl_save_prefix"
8046 if test "X$x" = "X-L$found_dir"; then
8051 if test -z "$haveit"; then
8052 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8054 if test "$hardcode_minus_L" != no; then
8055 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8057 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8063 if test "X$found_a" != "X"; then
8064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8069 additional_includedir=
8070 case "$found_dir" in
8072 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8073 additional_includedir="$basedir/include"
8076 if test "X$additional_includedir" != "X"; then
8077 if test "X$additional_includedir" != "X/usr/include"; then
8079 if test "X$additional_includedir" = "X/usr/local/include"; then
8080 if test -n "$GCC"; then
8082 linux*) haveit=yes;;
8086 if test -z "$haveit"; then
8087 for x in $CPPFLAGS $INCICONV; do
8089 acl_save_prefix="$prefix"
8090 prefix="$acl_final_prefix"
8091 acl_save_exec_prefix="$exec_prefix"
8092 exec_prefix="$acl_final_exec_prefix"
8094 exec_prefix="$acl_save_exec_prefix"
8095 prefix="$acl_save_prefix"
8097 if test "X$x" = "X-I$additional_includedir"; then
8102 if test -z "$haveit"; then
8103 if test -d "$additional_includedir"; then
8104 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8110 if test -n "$found_la"; then
8111 save_libdir="$libdir"
8113 */* | *\\*) . "$found_la" ;;
8114 *) . "./$found_la" ;;
8116 libdir="$save_libdir"
8117 for dep in $dependency_libs; do
8120 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8121 if test "X$additional_libdir" != "X/usr/lib"; then
8123 if test "X$additional_libdir" = "X/usr/local/lib"; then
8124 if test -n "$GCC"; then
8126 linux*) haveit=yes;;
8130 if test -z "$haveit"; then
8132 for x in $LDFLAGS $LIBICONV; do
8134 acl_save_prefix="$prefix"
8135 prefix="$acl_final_prefix"
8136 acl_save_exec_prefix="$exec_prefix"
8137 exec_prefix="$acl_final_exec_prefix"
8139 exec_prefix="$acl_save_exec_prefix"
8140 prefix="$acl_save_prefix"
8142 if test "X$x" = "X-L$additional_libdir"; then
8147 if test -z "$haveit"; then
8148 if test -d "$additional_libdir"; then
8149 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8153 for x in $LDFLAGS $LTLIBICONV; do
8155 acl_save_prefix="$prefix"
8156 prefix="$acl_final_prefix"
8157 acl_save_exec_prefix="$exec_prefix"
8158 exec_prefix="$acl_final_exec_prefix"
8160 exec_prefix="$acl_save_exec_prefix"
8161 prefix="$acl_save_prefix"
8163 if test "X$x" = "X-L$additional_libdir"; then
8168 if test -z "$haveit"; then
8169 if test -d "$additional_libdir"; then
8170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8177 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8178 if test "$enable_rpath" != no; then
8180 for x in $rpathdirs; do
8181 if test "X$x" = "X$dir"; then
8186 if test -z "$haveit"; then
8187 rpathdirs="$rpathdirs $dir"
8190 for x in $ltrpathdirs; do
8191 if test "X$x" = "X$dir"; then
8196 if test -z "$haveit"; then
8197 ltrpathdirs="$ltrpathdirs $dir"
8202 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8205 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8208 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8215 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8222 if test "X$rpathdirs" != "X"; then
8223 if test -n "$hardcode_libdir_separator"; then
8225 for found_dir in $rpathdirs; do
8226 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8228 acl_save_libdir="$libdir"
8230 eval flag=\"$hardcode_libdir_flag_spec\"
8231 libdir="$acl_save_libdir"
8232 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8234 for found_dir in $rpathdirs; do
8235 acl_save_libdir="$libdir"
8237 eval flag=\"$hardcode_libdir_flag_spec\"
8238 libdir="$acl_save_libdir"
8239 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8243 if test "X$ltrpathdirs" != "X"; then
8244 for found_dir in $ltrpathdirs; do
8245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8256 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8257 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8261 $as_echo "#define ptrdiff_t long" >>confdefs.h
8266 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8267 stdlib.h string.h unistd.h sys/param.h
8269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8272 cat >>confdefs.h <<_ACEOF
8273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8280 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8281 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8282 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8288 cat >>confdefs.h <<_ACEOF
8289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8298 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8299 if ${ac_cv_have_decl__snprintf+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8310 char *p = (char *) _snprintf;
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_have_decl__snprintf=yes
8320 ac_cv_have_decl__snprintf=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8325 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8326 if test $ac_cv_have_decl__snprintf = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL__SNPRINTF $gt_value
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8339 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8340 if ${ac_cv_have_decl__snwprintf+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8351 char *p = (char *) _snwprintf;
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359 ac_cv_have_decl__snwprintf=yes
8361 ac_cv_have_decl__snwprintf=no
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8366 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8367 if test $ac_cv_have_decl__snwprintf = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_DECL__SNWPRINTF $gt_value
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8381 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8382 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8392 #ifndef feof_unlocked
8393 char *p = (char *) feof_unlocked;
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 ac_cv_have_decl_feof_unlocked=yes
8403 ac_cv_have_decl_feof_unlocked=no
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8408 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8409 if test $ac_cv_have_decl_feof_unlocked = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8422 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8423 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8433 #ifndef fgets_unlocked
8434 char *p = (char *) fgets_unlocked;
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 ac_cv_have_decl_fgets_unlocked=yes
8444 ac_cv_have_decl_fgets_unlocked=no
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8449 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8450 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8463 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8464 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8465 $as_echo_n "(cached) " >&6
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8474 #ifndef getc_unlocked
8475 char *p = (char *) getc_unlocked;
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 ac_cv_have_decl_getc_unlocked=yes
8485 ac_cv_have_decl_getc_unlocked=no
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8490 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8491 if test $ac_cv_have_decl_getc_unlocked = yes; then
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8503 case $gt_cv_func_printf_posix in
8504 *yes) HAVE_POSIX_PRINTF=1 ;;
8505 *) HAVE_POSIX_PRINTF=0 ;;
8508 if test "$ac_cv_func_asprintf" = yes; then
8514 if test "$ac_cv_func_snprintf" = yes; then
8520 if test "$ac_cv_func_wprintf" = yes; then
8532 am_save_CPPFLAGS="$CPPFLAGS"
8534 for element in $INCICONV; do
8536 for x in $CPPFLAGS; do
8538 acl_save_prefix="$prefix"
8539 prefix="$acl_final_prefix"
8540 acl_save_exec_prefix="$exec_prefix"
8541 exec_prefix="$acl_final_exec_prefix"
8543 exec_prefix="$acl_save_exec_prefix"
8544 prefix="$acl_save_prefix"
8546 if test "X$x" = "X$element"; then
8551 if test -z "$haveit"; then
8552 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8558 $as_echo_n "checking for iconv... " >&6; }
8559 if ${am_cv_func_iconv+:} false; then :
8560 $as_echo_n "(cached) " >&6
8563 am_cv_func_iconv="no, consider installing GNU libiconv"
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8572 iconv_t cd = iconv_open("","");
8573 iconv(cd,NULL,NULL,NULL,NULL);
8579 if ac_fn_c_try_link "$LINENO"; then :
8580 am_cv_func_iconv=yes
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 if test "$am_cv_func_iconv" != yes; then
8585 am_save_LIBS="$LIBS"
8586 LIBS="$LIBS $LIBICONV"
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8594 iconv_t cd = iconv_open("","");
8595 iconv(cd,NULL,NULL,NULL,NULL);
8601 if ac_fn_c_try_link "$LINENO"; then :
8603 am_cv_func_iconv=yes
8605 rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 LIBS="$am_save_LIBS"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8612 $as_echo "$am_cv_func_iconv" >&6; }
8613 if test "$am_cv_func_iconv" = yes; then
8615 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8618 if test "$am_cv_lib_iconv" = yes; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8620 $as_echo_n "checking how to link with libiconv... " >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8622 $as_echo "$LIBICONV" >&6; }
8624 CPPFLAGS="$am_save_CPPFLAGS"
8631 if test "$am_cv_func_iconv" = yes; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8633 $as_echo_n "checking for iconv declaration... " >&6; }
8634 if ${am_cv_proto_iconv+:} false; then :
8635 $as_echo_n "(cached) " >&6
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8647 #if defined(__STDC__) || defined(__cplusplus)
8648 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662 am_cv_proto_iconv_arg1=""
8664 am_cv_proto_iconv_arg1="const"
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 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);"
8670 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8672 }$am_cv_proto_iconv" >&5
8674 }$am_cv_proto_iconv" >&6; }
8676 cat >>confdefs.h <<_ACEOF
8677 #define ICONV_CONST $am_cv_proto_iconv_arg1
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8684 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8685 if ${am_cv_langinfo_codeset+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <langinfo.h>
8694 char* cs = nl_langinfo(CODESET);
8699 if ac_fn_c_try_link "$LINENO"; then :
8700 am_cv_langinfo_codeset=yes
8702 am_cv_langinfo_codeset=no
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8709 $as_echo "$am_cv_langinfo_codeset" >&6; }
8710 if test $am_cv_langinfo_codeset = yes; then
8712 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8716 if test $ac_cv_header_locale_h = yes; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8719 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8720 if ${am_cv_val_LC_MESSAGES+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8734 if ac_fn_c_try_link "$LINENO"; then :
8735 am_cv_val_LC_MESSAGES=yes
8737 am_cv_val_LC_MESSAGES=no
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8743 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8744 if test $am_cv_val_LC_MESSAGES = yes; then
8746 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8752 for ac_prog in bison
8754 # Extract the first word of "$ac_prog", so it can be a program name with args.
8755 set dummy $ac_prog; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if ${ac_cv_prog_INTLBISON+:} false; then :
8759 $as_echo_n "(cached) " >&6
8761 if test -n "$INTLBISON"; then
8762 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771 ac_cv_prog_INTLBISON="$ac_prog"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 INTLBISON=$ac_cv_prog_INTLBISON
8782 if test -n "$INTLBISON"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8784 $as_echo "$INTLBISON" >&6; }
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8791 test -n "$INTLBISON" && break
8794 if test -z "$INTLBISON"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8798 $as_echo_n "checking version of bison... " >&6; }
8799 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8800 case $ac_prog_version in
8801 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8802 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8803 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8804 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8807 $as_echo "$ac_prog_version" >&6; }
8809 if test $ac_verc_fail = yes; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8829 $as_echo_n "checking whether NLS is requested... " >&6; }
8830 # Check whether --enable-nls was given.
8831 if test "${enable_nls+set}" = set; then :
8832 enableval=$enable_nls; USE_NLS=$enableval
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8838 $as_echo "$USE_NLS" >&6; }
8843 BUILD_INCLUDED_LIBINTL=no
8844 USE_INCLUDED_LIBINTL=no
8850 if test "$USE_NLS" = "yes"; then
8851 gt_use_preinstalled_gnugettext=no
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8854 $as_echo_n "checking whether included gettext is requested... " >&6; }
8856 # Check whether --with-included-gettext was given.
8857 if test "${with_included_gettext+set}" = set; then :
8858 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8860 nls_cv_force_use_gnu_gettext=no
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8864 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8866 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8867 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8875 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8876 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8877 $as_echo_n "(cached) " >&6
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <libintl.h>
8882 extern int _nl_msg_cat_cntr;
8883 extern int *_nl_domain_bindings;
8887 bindtextdomain ("", "");
8888 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8893 if ac_fn_c_try_link "$LINENO"; then :
8894 gt_cv_func_gnugettext1_libc=yes
8896 gt_cv_func_gnugettext1_libc=no
8898 rm -f core conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8902 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8904 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8910 acl_save_prefix="$prefix"
8911 prefix="$acl_final_prefix"
8912 acl_save_exec_prefix="$exec_prefix"
8913 exec_prefix="$acl_final_exec_prefix"
8915 eval additional_includedir=\"$includedir\"
8916 eval additional_libdir=\"$libdir\"
8918 exec_prefix="$acl_save_exec_prefix"
8919 prefix="$acl_save_prefix"
8922 # Check whether --with-libintl-prefix was given.
8923 if test "${with_libintl_prefix+set}" = set; then :
8924 withval=$with_libintl_prefix;
8925 if test "X$withval" = "Xno"; then
8928 if test "X$withval" = "X"; then
8930 acl_save_prefix="$prefix"
8931 prefix="$acl_final_prefix"
8932 acl_save_exec_prefix="$exec_prefix"
8933 exec_prefix="$acl_final_exec_prefix"
8935 eval additional_includedir=\"$includedir\"
8936 eval additional_libdir=\"$libdir\"
8938 exec_prefix="$acl_save_exec_prefix"
8939 prefix="$acl_save_prefix"
8942 additional_includedir="$withval/include"
8943 additional_libdir="$withval/lib"
8954 names_already_handled=
8955 names_next_round='intl '
8956 while test -n "$names_next_round"; do
8957 names_this_round="$names_next_round"
8959 for name in $names_this_round; do
8961 for n in $names_already_handled; do
8962 if test "$n" = "$name"; then
8967 if test -z "$already_handled"; then
8968 names_already_handled="$names_already_handled $name"
8969 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8970 eval value=\"\$HAVE_LIB$uppername\"
8971 if test -n "$value"; then
8972 if test "$value" = yes; then
8973 eval value=\"\$LIB$uppername\"
8974 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8975 eval value=\"\$LTLIB$uppername\"
8976 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8985 if test $use_additional = yes; then
8986 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8987 found_dir="$additional_libdir"
8988 found_so="$additional_libdir/lib$name.$shlibext"
8989 if test -f "$additional_libdir/lib$name.la"; then
8990 found_la="$additional_libdir/lib$name.la"
8993 if test -f "$additional_libdir/lib$name.$libext"; then
8994 found_dir="$additional_libdir"
8995 found_a="$additional_libdir/lib$name.$libext"
8996 if test -f "$additional_libdir/lib$name.la"; then
8997 found_la="$additional_libdir/lib$name.la"
9002 if test "X$found_dir" = "X"; then
9003 for x in $LDFLAGS $LTLIBINTL; do
9005 acl_save_prefix="$prefix"
9006 prefix="$acl_final_prefix"
9007 acl_save_exec_prefix="$exec_prefix"
9008 exec_prefix="$acl_final_exec_prefix"
9010 exec_prefix="$acl_save_exec_prefix"
9011 prefix="$acl_save_prefix"
9015 dir=`echo "X$x" | sed -e 's/^X-L//'`
9016 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9018 found_so="$dir/lib$name.$shlibext"
9019 if test -f "$dir/lib$name.la"; then
9020 found_la="$dir/lib$name.la"
9023 if test -f "$dir/lib$name.$libext"; then
9025 found_a="$dir/lib$name.$libext"
9026 if test -f "$dir/lib$name.la"; then
9027 found_la="$dir/lib$name.la"
9033 if test "X$found_dir" != "X"; then
9038 if test "X$found_dir" != "X"; then
9039 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9040 if test "X$found_so" != "X"; then
9041 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9045 for x in $ltrpathdirs; do
9046 if test "X$x" = "X$found_dir"; then
9051 if test -z "$haveit"; then
9052 ltrpathdirs="$ltrpathdirs $found_dir"
9054 if test "$hardcode_direct" = yes; then
9055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9057 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9060 for x in $rpathdirs; do
9061 if test "X$x" = "X$found_dir"; then
9066 if test -z "$haveit"; then
9067 rpathdirs="$rpathdirs $found_dir"
9071 for x in $LDFLAGS $LIBINTL; do
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9078 exec_prefix="$acl_save_exec_prefix"
9079 prefix="$acl_save_prefix"
9081 if test "X$x" = "X-L$found_dir"; then
9086 if test -z "$haveit"; then
9087 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9089 if test "$hardcode_minus_L" != no; then
9090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9092 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9098 if test "X$found_a" != "X"; then
9099 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9104 additional_includedir=
9105 case "$found_dir" in
9107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9108 additional_includedir="$basedir/include"
9111 if test "X$additional_includedir" != "X"; then
9112 if test "X$additional_includedir" != "X/usr/include"; then
9114 if test "X$additional_includedir" = "X/usr/local/include"; then
9115 if test -n "$GCC"; then
9117 linux*) haveit=yes;;
9121 if test -z "$haveit"; then
9122 for x in $CPPFLAGS $INCINTL; do
9124 acl_save_prefix="$prefix"
9125 prefix="$acl_final_prefix"
9126 acl_save_exec_prefix="$exec_prefix"
9127 exec_prefix="$acl_final_exec_prefix"
9129 exec_prefix="$acl_save_exec_prefix"
9130 prefix="$acl_save_prefix"
9132 if test "X$x" = "X-I$additional_includedir"; then
9137 if test -z "$haveit"; then
9138 if test -d "$additional_includedir"; then
9139 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9145 if test -n "$found_la"; then
9146 save_libdir="$libdir"
9148 */* | *\\*) . "$found_la" ;;
9149 *) . "./$found_la" ;;
9151 libdir="$save_libdir"
9152 for dep in $dependency_libs; do
9155 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9156 if test "X$additional_libdir" != "X/usr/lib"; then
9158 if test "X$additional_libdir" = "X/usr/local/lib"; then
9159 if test -n "$GCC"; then
9161 linux*) haveit=yes;;
9165 if test -z "$haveit"; then
9167 for x in $LDFLAGS $LIBINTL; do
9169 acl_save_prefix="$prefix"
9170 prefix="$acl_final_prefix"
9171 acl_save_exec_prefix="$exec_prefix"
9172 exec_prefix="$acl_final_exec_prefix"
9174 exec_prefix="$acl_save_exec_prefix"
9175 prefix="$acl_save_prefix"
9177 if test "X$x" = "X-L$additional_libdir"; then
9182 if test -z "$haveit"; then
9183 if test -d "$additional_libdir"; then
9184 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9188 for x in $LDFLAGS $LTLIBINTL; do
9190 acl_save_prefix="$prefix"
9191 prefix="$acl_final_prefix"
9192 acl_save_exec_prefix="$exec_prefix"
9193 exec_prefix="$acl_final_exec_prefix"
9195 exec_prefix="$acl_save_exec_prefix"
9196 prefix="$acl_save_prefix"
9198 if test "X$x" = "X-L$additional_libdir"; then
9203 if test -z "$haveit"; then
9204 if test -d "$additional_libdir"; then
9205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9212 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9213 if test "$enable_rpath" != no; then
9215 for x in $rpathdirs; do
9216 if test "X$x" = "X$dir"; then
9221 if test -z "$haveit"; then
9222 rpathdirs="$rpathdirs $dir"
9225 for x in $ltrpathdirs; do
9226 if test "X$x" = "X$dir"; then
9231 if test -z "$haveit"; then
9232 ltrpathdirs="$ltrpathdirs $dir"
9237 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9240 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9243 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9250 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9257 if test "X$rpathdirs" != "X"; then
9258 if test -n "$hardcode_libdir_separator"; then
9260 for found_dir in $rpathdirs; do
9261 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9263 acl_save_libdir="$libdir"
9265 eval flag=\"$hardcode_libdir_flag_spec\"
9266 libdir="$acl_save_libdir"
9267 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9269 for found_dir in $rpathdirs; do
9270 acl_save_libdir="$libdir"
9272 eval flag=\"$hardcode_libdir_flag_spec\"
9273 libdir="$acl_save_libdir"
9274 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9278 if test "X$ltrpathdirs" != "X"; then
9279 for found_dir in $ltrpathdirs; do
9280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9285 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9286 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9287 $as_echo_n "(cached) " >&6
9289 gt_save_CPPFLAGS="$CPPFLAGS"
9290 CPPFLAGS="$CPPFLAGS $INCINTL"
9291 gt_save_LIBS="$LIBS"
9292 LIBS="$LIBS $LIBINTL"
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 #include <libintl.h>
9296 extern int _nl_msg_cat_cntr;
9301 const char *_nl_expand_alias ();
9305 bindtextdomain ("", "");
9306 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 gt_cv_func_gnugettext1_libintl=yes
9314 gt_cv_func_gnugettext1_libintl=no
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9319 LIBS="$LIBS $LIBICONV"
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <libintl.h>
9323 extern int _nl_msg_cat_cntr;
9328 const char *_nl_expand_alias ();
9332 bindtextdomain ("", "");
9333 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9338 if ac_fn_c_try_link "$LINENO"; then :
9339 LIBINTL="$LIBINTL $LIBICONV"
9340 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9341 gt_cv_func_gnugettext1_libintl=yes
9344 rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9347 CPPFLAGS="$gt_save_CPPFLAGS"
9348 LIBS="$gt_save_LIBS"
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9351 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9354 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9355 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9356 && test "$PACKAGE" != gettext-runtime \
9357 && test "$PACKAGE" != gettext-tools; }; then
9358 gt_use_preinstalled_gnugettext=yes
9366 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9367 nls_cv_use_gnu_gettext=yes
9371 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9372 BUILD_INCLUDED_LIBINTL=yes
9373 USE_INCLUDED_LIBINTL=yes
9374 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9375 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9376 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9379 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9380 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9385 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9386 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9388 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9396 $as_echo_n "checking whether to use NLS... " >&6; }
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9398 $as_echo "$USE_NLS" >&6; }
9399 if test "$USE_NLS" = "yes"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9401 $as_echo_n "checking where the gettext function comes from... " >&6; }
9402 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9403 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9404 gt_source="external libintl"
9409 gt_source="included intl directory"
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9412 $as_echo "$gt_source" >&6; }
9415 if test "$USE_NLS" = "yes"; then
9417 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9418 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9420 $as_echo_n "checking how to link with libintl... " >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9422 $as_echo "$LIBINTL" >&6; }
9424 for element in $INCINTL; do
9426 for x in $CPPFLAGS; do
9428 acl_save_prefix="$prefix"
9429 prefix="$acl_final_prefix"
9430 acl_save_exec_prefix="$exec_prefix"
9431 exec_prefix="$acl_final_exec_prefix"
9433 exec_prefix="$acl_save_exec_prefix"
9434 prefix="$acl_save_prefix"
9436 if test "X$x" = "X$element"; then
9441 if test -z "$haveit"; then
9442 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9449 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9452 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9460 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9461 BUILD_INCLUDED_LIBINTL=yes
9469 nls_cv_header_libgt=
9480 if test "$USE_INCLUDED_LIBINTL" = yes; then
9481 INTLOBJS="\$(GETTOBJS)"
9485 INTL_LIBTOOL_SUFFIX_PREFIX=
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9498 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9500 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9501 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9502 $as_echo_n "(cached) " >&6
9504 cat >conftest.make <<\_ACEOF
9507 @echo '@@@%%%=$(MAKE)=@@@%%%'
9509 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9512 eval ac_cv_prog_make_${ac_make}_set=yes;;
9514 eval ac_cv_prog_make_${ac_make}_set=no;;
9518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520 $as_echo "yes" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 SET_MAKE="MAKE=${MAKE-make}"
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9529 $as_echo_n "checking for GNU make... " >&6; }
9530 if ${_cv_gnu_make_command+:} false; then :
9531 $as_echo_n "(cached) " >&6
9533 _cv_gnu_make_command='' ;
9534 for a in "$MAKE" make gmake gnumake ; do
9535 if test -z "$a" ; then continue ; fi ;
9536 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9537 _cv_gnu_make_command=$a ;
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9544 $as_echo "$_cv_gnu_make_command" >&6; } ;
9545 if test "x$_cv_gnu_make_command" != "x" ; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9552 $as_echo "\"Not found\"" >&6; };
9557 # Extract the first word of "ln", so it can be a program name with args.
9558 set dummy ln; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_path_LN+:} false; then :
9562 $as_echo_n "(cached) " >&6
9566 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9589 if test -n "$LN"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9591 $as_echo "$LN" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9599 $as_echo_n "checking whether ln -s works... " >&6; }
9601 if test "$LN_S" = "ln -s"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603 $as_echo "yes" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9606 $as_echo "no, using $LN_S" >&6; }
9609 # Extract the first word of "mv", so it can be a program name with args.
9610 set dummy mv; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_path_MV+:} false; then :
9614 $as_echo_n "(cached) " >&6
9618 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9628 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9641 if test -n "$MV"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9643 $as_echo "$MV" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9650 # Extract the first word of "cp", so it can be a program name with args.
9651 set dummy cp; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_path_CP+:} false; then :
9655 $as_echo_n "(cached) " >&6
9659 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9682 if test -n "$CP"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9684 $as_echo "$CP" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9691 # Extract the first word of "rm", so it can be a program name with args.
9692 set dummy rm; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_path_RM+:} false; then :
9696 $as_echo_n "(cached) " >&6
9700 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9723 if test -n "$RM"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9725 $as_echo "$RM" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9732 # Extract the first word of "chmod", so it can be a program name with args.
9733 set dummy chmod; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_CHMOD+:} false; then :
9737 $as_echo_n "(cached) " >&6
9741 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9763 CHMOD=$ac_cv_path_CHMOD
9764 if test -n "$CHMOD"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9766 $as_echo "$CHMOD" >&6; }
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9773 for ac_prog in gawk mawk nawk awk
9775 # Extract the first word of "$ac_prog", so it can be a program name with args.
9776 set dummy $ac_prog; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_prog_AWK+:} false; then :
9780 $as_echo_n "(cached) " >&6
9782 if test -n "$AWK"; then
9783 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_AWK="$ac_prog"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 if test -n "$AWK"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9805 $as_echo "$AWK" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9812 test -n "$AWK" && break
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9816 $as_echo_n "checking for egrep... " >&6; }
9817 if ${ac_cv_path_EGREP+:} false; then :
9818 $as_echo_n "(cached) " >&6
9820 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9821 then ac_cv_path_EGREP="$GREP -E"
9823 if test -z "$EGREP"; then
9824 ac_path_EGREP_found=false
9825 # Loop through the user's path and test for each of PROGNAME-LIST
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9830 test -z "$as_dir" && as_dir=.
9831 for ac_prog in egrep; do
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9834 as_fn_executable_p "$ac_path_EGREP" || continue
9835 # Check for GNU ac_path_EGREP and select it if it is found.
9836 # Check for GNU $ac_path_EGREP
9837 case `"$ac_path_EGREP" --version 2>&1` in
9839 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9842 $as_echo_n 0123456789 >"conftest.in"
9845 cat "conftest.in" "conftest.in" >"conftest.tmp"
9846 mv "conftest.tmp" "conftest.in"
9847 cp "conftest.in" "conftest.nl"
9848 $as_echo 'EGREP' >> "conftest.nl"
9849 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9851 as_fn_arith $ac_count + 1 && ac_count=$as_val
9852 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9853 # Best one so far, save it but keep looking for a better one
9854 ac_cv_path_EGREP="$ac_path_EGREP"
9855 ac_path_EGREP_max=$ac_count
9857 # 10*(2^10) chars as input seems more than enough
9858 test $ac_count -gt 10 && break
9860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9863 $ac_path_EGREP_found && break 3
9868 if test -z "$ac_cv_path_EGREP"; then
9869 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9872 ac_cv_path_EGREP=$EGREP
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9878 $as_echo "$ac_cv_path_EGREP" >&6; }
9879 EGREP="$ac_cv_path_EGREP"
9882 # Extract the first word of "sed", so it can be a program name with args.
9883 set dummy sed; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_SED+:} false; then :
9887 $as_echo_n "(cached) " >&6
9891 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9914 if test -n "$SED"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9916 $as_echo "$SED" >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9923 # Extract the first word of "perl", so it can be a program name with args.
9924 set dummy perl; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_PERL+:} false; then :
9928 $as_echo_n "(cached) " >&6
9932 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9954 PERL=$ac_cv_path_PERL
9955 if test -n "$PERL"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9957 $as_echo "$PERL" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9964 # Extract the first word of "ldconfig", so it can be a program name with args.
9965 set dummy ldconfig; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_LDCONFIG+:} false; then :
9969 $as_echo_n "(cached) " >&6
9973 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9995 LDCONFIG=$ac_cv_path_LDCONFIG
9996 if test -n "$LDCONFIG"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9998 $as_echo "$LDCONFIG" >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10005 if test -n "$ac_tool_prefix"; then
10006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10007 set dummy ${ac_tool_prefix}ar; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_AR+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 if test -n "$AR"; then
10014 ac_cv_prog_AR="$AR" # Let the user override the test.
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023 ac_cv_prog_AR="${ac_tool_prefix}ar"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 if test -n "$AR"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10036 $as_echo "$AR" >&6; }
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10044 if test -z "$ac_cv_prog_AR"; then
10046 # Extract the first word of "ar", so it can be a program name with args.
10047 set dummy ar; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10051 $as_echo_n "(cached) " >&6
10053 if test -n "$ac_ct_AR"; then
10054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063 ac_cv_prog_ac_ct_AR="ar"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10074 if test -n "$ac_ct_AR"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10076 $as_echo "$ac_ct_AR" >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10082 if test "x$ac_ct_AR" = x; then
10085 case $cross_compiling:$ac_tool_warned in
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10089 ac_tool_warned=yes ;;
10094 AR="$ac_cv_prog_AR"
10097 if test -n "$ac_tool_prefix"; then
10098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if ${ac_cv_prog_RANLIB+:} false; then :
10103 $as_echo_n "(cached) " >&6
10105 if test -n "$RANLIB"; then
10106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 RANLIB=$ac_cv_prog_RANLIB
10126 if test -n "$RANLIB"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10128 $as_echo "$RANLIB" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10136 if test -z "$ac_cv_prog_RANLIB"; then
10137 ac_ct_RANLIB=$RANLIB
10138 # Extract the first word of "ranlib", so it can be a program name with args.
10139 set dummy ranlib; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10143 $as_echo_n "(cached) " >&6
10145 if test -n "$ac_ct_RANLIB"; then
10146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10155 ac_cv_prog_ac_ct_RANLIB="ranlib"
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10166 if test -n "$ac_ct_RANLIB"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10168 $as_echo "$ac_ct_RANLIB" >&6; }
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10174 if test "x$ac_ct_RANLIB" = x; then
10177 case $cross_compiling:$ac_tool_warned in
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10181 ac_tool_warned=yes ;;
10183 RANLIB=$ac_ct_RANLIB
10186 RANLIB="$ac_cv_prog_RANLIB"
10189 if test -n "$ac_tool_prefix"; then
10190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10191 set dummy ${ac_tool_prefix}strip; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if ${ac_cv_prog_STRIP+:} false; then :
10195 $as_echo_n "(cached) " >&6
10197 if test -n "$STRIP"; then
10198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 STRIP=$ac_cv_prog_STRIP
10218 if test -n "$STRIP"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10220 $as_echo "$STRIP" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10228 if test -z "$ac_cv_prog_STRIP"; then
10230 # Extract the first word of "strip", so it can be a program name with args.
10231 set dummy strip; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10235 $as_echo_n "(cached) " >&6
10237 if test -n "$ac_ct_STRIP"; then
10238 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_ac_ct_STRIP="strip"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10258 if test -n "$ac_ct_STRIP"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10260 $as_echo "$ac_ct_STRIP" >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10266 if test "x$ac_ct_STRIP" = x; then
10269 case $cross_compiling:$ac_tool_warned in
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10273 ac_tool_warned=yes ;;
10278 STRIP="$ac_cv_prog_STRIP"
10281 # Extract the first word of "makeinfo", so it can be a program name with args.
10282 set dummy makeinfo; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if ${ac_cv_prog_MAKEINFO+:} false; then :
10286 $as_echo_n "(cached) " >&6
10288 if test -n "$MAKEINFO"; then
10289 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_MAKEINFO="makeinfo"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 MAKEINFO=$ac_cv_prog_MAKEINFO
10309 if test -n "$MAKEINFO"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10311 $as_echo "$MAKEINFO" >&6; }
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10318 if test "_$MAKEINFO" = "_"; then
10319 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10321 case "$MAKEINFO" in
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10324 *** Makeinfo is missing. Info documentation will not be built." >&5
10325 $as_echo "$as_me: WARNING:
10326 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10334 # See if we need a separate native compiler.
10335 if test $cross_compiling = no; then
10339 for ac_prog in gcc cc
10341 # Extract the first word of "$ac_prog", so it can be a program name with args.
10342 set dummy $ac_prog; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if ${ac_cv_prog_BUILD_CC+:} false; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$BUILD_CC"; then
10349 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_BUILD_CC="$ac_prog"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 BUILD_CC=$ac_cv_prog_BUILD_CC
10369 if test -n "$BUILD_CC"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10371 $as_echo "$BUILD_CC" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10378 test -n "$BUILD_CC" && break
10382 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 linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.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/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10387 cat >>confdefs.h <<_ACEOF
10388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395 for ac_header in net/if.h
10397 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10398 #if HAVE_SYS_TYPES_H
10399 #include <sys/types.h>
10401 #if HAVE_SYS_SOCKET
10402 #include <sys/socket.h>
10406 if test "x$ac_cv_header_net_if_h" = xyes; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_NET_IF_H 1
10415 for ac_func in vprintf
10417 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10418 if test "x$ac_cv_func_vprintf" = xyes; then :
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_VPRINTF 1
10423 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10424 if test "x$ac_cv_func__doprnt" = xyes; then :
10426 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10434 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10436 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10438 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10442 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10443 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_STRUCT_STAT_ST_ATIM 1
10452 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10454 if test "x$ac_cv_type_ssize_t" = xyes; then :
10456 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10460 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10462 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10464 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10468 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10469 #define _LARGEFILE64_SOURCE
10470 #include <unistd.h>
10472 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10474 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10478 # The cast to long int works around a bug in the HP C Compiler
10479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10481 # This bug is HP SR number 8606223364.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10483 $as_echo_n "checking size of short... " >&6; }
10484 if ${ac_cv_sizeof_short+:} false; then :
10485 $as_echo_n "(cached) " >&6
10487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10490 if test "$ac_cv_type_short" = yes; then
10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10493 as_fn_error 77 "cannot compute sizeof (short)
10494 See \`config.log' for more details" "$LINENO" 5; }
10496 ac_cv_sizeof_short=0
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10502 $as_echo "$ac_cv_sizeof_short" >&6; }
10506 cat >>confdefs.h <<_ACEOF
10507 #define SIZEOF_SHORT $ac_cv_sizeof_short
10511 # The cast to long int works around a bug in the HP C Compiler
10512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10514 # This bug is HP SR number 8606223364.
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10516 $as_echo_n "checking size of int... " >&6; }
10517 if ${ac_cv_sizeof_int+:} false; then :
10518 $as_echo_n "(cached) " >&6
10520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10523 if test "$ac_cv_type_int" = yes; then
10524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10526 as_fn_error 77 "cannot compute sizeof (int)
10527 See \`config.log' for more details" "$LINENO" 5; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10535 $as_echo "$ac_cv_sizeof_int" >&6; }
10539 cat >>confdefs.h <<_ACEOF
10540 #define SIZEOF_INT $ac_cv_sizeof_int
10544 # The cast to long int works around a bug in the HP C Compiler
10545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547 # This bug is HP SR number 8606223364.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10549 $as_echo_n "checking size of long... " >&6; }
10550 if ${ac_cv_sizeof_long+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10556 if test "$ac_cv_type_long" = yes; then
10557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 as_fn_error 77 "cannot compute sizeof (long)
10560 See \`config.log' for more details" "$LINENO" 5; }
10562 ac_cv_sizeof_long=0
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10568 $as_echo "$ac_cv_sizeof_long" >&6; }
10572 cat >>confdefs.h <<_ACEOF
10573 #define SIZEOF_LONG $ac_cv_sizeof_long
10577 # The cast to long int works around a bug in the HP C Compiler
10578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580 # This bug is HP SR number 8606223364.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10582 $as_echo_n "checking size of long long... " >&6; }
10583 if ${ac_cv_sizeof_long_long+:} false; then :
10584 $as_echo_n "(cached) " >&6
10586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10589 if test "$ac_cv_type_long_long" = yes; then
10590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10592 as_fn_error 77 "cannot compute sizeof (long long)
10593 See \`config.log' for more details" "$LINENO" 5; }
10595 ac_cv_sizeof_long_long=0
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10601 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10605 cat >>confdefs.h <<_ACEOF
10606 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10610 # The cast to long int works around a bug in the HP C Compiler
10611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613 # This bug is HP SR number 8606223364.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10615 $as_echo_n "checking size of off_t... " >&6; }
10616 if ${ac_cv_sizeof_off_t+:} false; then :
10617 $as_echo_n "(cached) " >&6
10619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10622 if test "$ac_cv_type_off_t" = yes; then
10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10625 as_fn_error 77 "cannot compute sizeof (off_t)
10626 See \`config.log' for more details" "$LINENO" 5; }
10628 ac_cv_sizeof_off_t=0
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10634 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10638 cat >>confdefs.h <<_ACEOF
10639 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10643 SIZEOF_SHORT=$ac_cv_sizeof_short
10644 SIZEOF_INT=$ac_cv_sizeof_int
10645 SIZEOF_LONG=$ac_cv_sizeof_long
10646 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10647 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10654 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10655 if ${ac_cv_c_bigendian+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_cv_c_bigendian=unknown
10659 # See if we're dealing with a universal compiler.
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 #ifndef __APPLE_CC__
10663 not a universal capable compiler
10668 if ac_fn_c_try_compile "$LINENO"; then :
10670 # Check for potential -arch flags. It is not universal unless
10671 # there are at least two -arch flags with different values.
10674 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10675 if test -n "$ac_prev"; then
10677 i?86 | x86_64 | ppc | ppc64)
10678 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10681 ac_cv_c_bigendian=universal
10687 elif test "x$ac_word" = "x-arch"; then
10692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 if test $ac_cv_c_bigendian = unknown; then
10694 # See if sys/param.h defines the BYTE_ORDER macro.
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <sys/types.h>
10698 #include <sys/param.h>
10703 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10704 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10706 bogus endian macros
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714 # It does; now see whether it defined to BIG_ENDIAN or not.
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 #include <sys/types.h>
10718 #include <sys/param.h>
10723 #if BYTE_ORDER != BIG_ENDIAN
10731 if ac_fn_c_try_compile "$LINENO"; then :
10732 ac_cv_c_bigendian=yes
10734 ac_cv_c_bigendian=no
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 if test $ac_cv_c_bigendian = unknown; then
10741 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <limits.h>
10749 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10750 bogus endian macros
10757 if ac_fn_c_try_compile "$LINENO"; then :
10758 # It does; now see whether it defined to _BIG_ENDIAN or not.
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 #include <limits.h>
10766 #ifndef _BIG_ENDIAN
10774 if ac_fn_c_try_compile "$LINENO"; then :
10775 ac_cv_c_bigendian=yes
10777 ac_cv_c_bigendian=no
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 if test $ac_cv_c_bigendian = unknown; then
10784 # Compile a test program.
10785 if test "$cross_compiling" = yes; then :
10786 # Try to guess by grepping values from an object file.
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 short int ascii_mm[] =
10790 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10791 short int ascii_ii[] =
10792 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10793 int use_ascii (int i) {
10794 return ascii_mm[i] + ascii_ii[i];
10796 short int ebcdic_ii[] =
10797 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10798 short int ebcdic_mm[] =
10799 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800 int use_ebcdic (int i) {
10801 return ebcdic_mm[i] + ebcdic_ii[i];
10808 return use_ascii (foo) == use_ebcdic (foo);
10813 if ac_fn_c_try_compile "$LINENO"; then :
10814 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10815 ac_cv_c_bigendian=yes
10817 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10818 if test "$ac_cv_c_bigendian" = unknown; then
10819 ac_cv_c_bigendian=no
10821 # finding both strings is unlikely to happen, but who knows?
10822 ac_cv_c_bigendian=unknown
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830 $ac_includes_default
10835 /* Are we little or big endian? From Harbison&Steele. */
10839 char c[sizeof (long int)];
10842 return u.c[sizeof (long int) - 1] == 1;
10848 if ac_fn_c_try_run "$LINENO"; then :
10849 ac_cv_c_bigendian=no
10851 ac_cv_c_bigendian=yes
10853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10854 conftest.$ac_objext conftest.beam conftest.$ac_ext
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10860 $as_echo "$ac_cv_c_bigendian" >&6; }
10861 case $ac_cv_c_bigendian in #(
10863 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10869 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10873 as_fn_error $? "unknown endianness
10874 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10877 if test $cross_compiling = no; then
10878 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10880 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10882 ASM_TYPES_HEADER=./asm_types.h
10884 echo "/* These defines are needed for the public ext2fs.h header file */" \
10886 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10887 uniq tmp_config.$$ >> public_config.h
10889 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10891 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10892 uniq tmp_config.$$ >> public_config.h
10894 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10896 rm -f tmp_config.$$
10897 PUBLIC_CONFIG_HEADER=./public_config.h
10899 for ac_header in inttypes.h
10901 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10902 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10903 cat >>confdefs.h <<_ACEOF
10904 #define HAVE_INTTYPES_H 1
10911 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10912 if test "x$ac_cv_type_intptr_t" = xyes; then :
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_INTPTR_T 1
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10922 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10923 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10924 $as_echo_n "(cached) " >&6
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928 #include <sys/stat.h>
10932 struct stat stat; stat.st_flags = 0;
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938 e2fsprogs_cv_struct_st_flags=yes
10940 e2fsprogs_cv_struct_st_flags=no
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10946 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10947 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10949 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10950 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10951 $as_echo_n "(cached) " >&6
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #include <sys/stat.h>
10959 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10964 if ac_fn_c_try_compile "$LINENO"; then :
10965 e2fsprogs_cv_struct_st_flags_immut=yes
10967 e2fsprogs_cv_struct_st_flags_immut=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10973 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10974 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10976 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10980 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10981 #include <sys/socket.h>
10983 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_SA_LEN 1
10991 if test -n "$BLKID_CMT"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10993 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10994 if ${ac_cv_search_blkid_probe_all+:} false; then :
10995 $as_echo_n "(cached) " >&6
10997 ac_func_search_save_LIBS=$LIBS
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11007 char blkid_probe_all ();
11011 return blkid_probe_all ();
11016 for ac_lib in '' blkid; do
11017 if test -z "$ac_lib"; then
11018 ac_res="none required"
11021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_search_blkid_probe_all=$ac_res
11026 rm -f core conftest.err conftest.$ac_objext \
11028 if ${ac_cv_search_blkid_probe_all+:} false; then :
11032 if ${ac_cv_search_blkid_probe_all+:} false; then :
11035 ac_cv_search_blkid_probe_all=no
11037 rm conftest.$ac_ext
11038 LIBS=$ac_func_search_save_LIBS
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11041 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11042 ac_res=$ac_cv_search_blkid_probe_all
11043 if test "$ac_res" != no; then :
11044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11049 for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 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
11051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11054 cat >>confdefs.h <<_ACEOF
11055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11063 $as_echo_n "checking for socket in -lsocket... " >&6; }
11064 if ${ac_cv_lib_socket_socket+:} false; then :
11065 $as_echo_n "(cached) " >&6
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lsocket $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_socket_socket=yes
11090 ac_cv_lib_socket_socket=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11097 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11098 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11099 SOCKET_LIB=-lsocket
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11104 $as_echo_n "checking for optreset... " >&6; }
11105 if ${ac_cv_have_optreset+:} false; then :
11106 $as_echo_n "(cached) " >&6
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110 #include <unistd.h>
11113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11114 $EGREP "optreset" >/dev/null 2>&1; then :
11115 ac_cv_have_optreset=yes
11117 ac_cv_have_optreset=no
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11123 $as_echo "$ac_cv_have_optreset" >&6; }
11124 if test $ac_cv_have_optreset = yes; then
11126 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11131 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11132 if test "x$ac_cv_func_sem_init" = xyes; then :
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11136 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11137 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11138 $as_echo_n "(cached) " >&6
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-lpthread $LIBS"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11145 /* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
11155 return sem_init ();
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 ac_cv_lib_pthread_sem_init=yes
11163 ac_cv_lib_pthread_sem_init=no
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_lib_save_LIBS
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11170 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11171 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11172 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11174 SEM_INIT_LIB=-lpthread
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11177 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11178 if ${ac_cv_lib_rt_sem_init+:} false; then :
11179 $as_echo_n "(cached) " >&6
11181 ac_check_lib_save_LIBS=$LIBS
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11196 return sem_init ();
11201 if ac_fn_c_try_link "$LINENO"; then :
11202 ac_cv_lib_rt_sem_init=yes
11204 ac_cv_lib_rt_sem_init=no
11206 rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11211 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11212 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11213 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11218 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11219 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11220 $as_echo_n "(cached) " >&6
11222 ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lposix4 $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11237 return sem_init ();
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_lib_posix4_sem_init=yes
11245 ac_cv_lib_posix4_sem_init=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11252 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11253 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11254 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11256 SEM_INIT_LIB=-lposix4
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11266 $as_echo_n "checking for unified diff option... " >&6; }
11267 if diff -u $0 $0 > /dev/null 2>&1 ; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11273 $as_echo "$UNI_DIFF_OPTS" >&6; }
11278 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11298 linux* | gnu* | k*bsd*-gnu)
11299 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11302 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11307 linux* | gnu* | k*bsd*-gnu)
11308 if test "$prefix" = NONE ; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11311 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11312 if test "$mandir" = '${prefix}/man' ; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11314 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11315 mandir=/usr/share/man
11320 if test "$root_prefix" = NONE ; then
11321 if test "$prefix" = NONE ; then
11322 root_prefix="$ac_default_prefix"
11324 root_prefix="$prefix"
11326 root_bindir=$bindir
11327 root_sbindir=$sbindir
11328 root_libdir=$libdir
11329 root_sysconfdir=$sysconfdir
11331 root_bindir='${root_prefix}/bin'
11332 root_sbindir='${root_prefix}/sbin'
11333 root_libdir='${root_prefix}/lib'
11334 root_sysconfdir='${root_prefix}/etc'
11336 if test "$bindir" != '${exec_prefix}/bin'; then
11337 root_bindir=$bindir
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11339 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11341 if test "$sbindir" != '${exec_prefix}/sbin'; then
11342 root_sbindir=$sbindir
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11344 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11346 if test "$libdir" != '${exec_prefix}/lib'; then
11347 root_libdir=$libdir
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11349 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11351 if test "$sysconfdir" != '${prefix}/etc'; then
11352 root_sysconfdir=$sysconfdir
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11354 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11362 # Check whether --with-multiarch was given.
11363 if test "${with_multiarch+set}" = set; then :
11364 withval=$with_multiarch; if test "$withval" = "lib64"; then
11368 libdir=$libdir/$withval
11369 root_libdir=$root_libdir/$withval
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11374 $as_echo_n "checking whether we can link with -static... " >&6; }
11375 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11390 if ac_fn_c_try_link "$LINENO"; then :
11391 ac_cv_e2fsprogs_use_static=yes
11393 ac_cv_e2fsprogs_use_static=no
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 LDFLAGS=$SAVE_LDFLAGS
11402 ac_cv_e2fsprogs_use_static=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11406 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11408 if test $ac_cv_e2fsprogs_use_static = yes; then
11409 LDFLAG_STATIC=-static
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11415 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11417 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11421 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11422 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11425 if test "$cross_compiling" = yes ; then
11428 DO_TEST_SUITE=check
11431 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11432 if test -n "$CPPFLAGS" ; then
11433 INCLUDES="$INCLUDES $CPPFLAGS"
11435 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11436 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11438 if test -n "$WITH_DIET_LIBC" ; then
11439 INCLUDES="$INCLUDES -D_REENTRANT"
11444 if test -n "$ac_aux_dir"; then
11445 case "$ac_aux_dir" in
11446 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11447 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11450 if test -z "$MKINSTALLDIRS"; then
11451 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11455 if test $cross_compiling = no; then
11456 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11457 BUILD_LDFLAGS="$LDFLAGS"
11461 test -d lib || mkdir lib
11462 test -d include || mkdir include
11463 test -d include/linux || mkdir include/linux
11464 test -d include/asm || mkdir include/asm
11465 for i in MCONFIG Makefile e2fsprogs.spec \
11466 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11467 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11468 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11469 lib/uuid/Makefile lib/uuid/uuid_types.h \
11470 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11471 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11472 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11473 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11474 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11475 resize/Makefile doc/Makefile intl/Makefile \
11476 intl/libgnuintl.h po/Makefile.in ; do
11477 if test -d `dirname ${srcdir}/$i` ; then
11478 outlist="$outlist $i"
11481 ac_config_files="$ac_config_files $outlist"
11483 cat >confcache <<\_ACEOF
11484 # This file is a shell script that caches the results of configure
11485 # tests run on this system so they can be shared between configure
11486 # scripts and configure runs, see configure's option --config-cache.
11487 # It is not useful on other systems. If it contains results you don't
11488 # want to keep, you may remove or edit it.
11490 # config.status only pays attention to the cache file if you give it
11491 # the --recheck option to rerun configure.
11493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11495 # following values.
11499 # The following way of writing the cache mishandles newlines in values,
11500 # but we know of no workaround that is simple, portable, and efficient.
11501 # So, we kill variables containing newlines.
11502 # Ultrix sh set writes to stderr and can't be redirected directly,
11503 # and sets the high bit in the cache file unless we assign to the vars.
11505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11506 eval ac_val=\$$ac_var
11510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11514 _ | IFS | as_nl) ;; #(
11515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11516 *) { eval $ac_var=; unset $ac_var;} ;;
11522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11523 *${as_nl}ac_space=\ *)
11524 # `set' does not quote correctly, so add quotes: double-quote
11525 # substitution turns \\\\ into \\, and sed turns \\ into \.
11528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11531 # `set' quotes correctly as required by POSIX, so do not add quotes.
11532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11546 if test -w "$cache_file"; then
11547 if test "x$cache_file" != "x/dev/null"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11549 $as_echo "$as_me: updating cache $cache_file" >&6;}
11550 if test ! -f "$cache_file" || test -h "$cache_file"; then
11551 cat confcache >"$cache_file"
11553 case $cache_file in #(
11555 mv -f confcache "$cache_file"$$ &&
11556 mv -f "$cache_file"$$ "$cache_file" ;; #(
11558 mv -f confcache "$cache_file" ;;
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11570 # Let make expand exec_prefix.
11571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11573 DEFS=-DHAVE_CONFIG_H
11578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579 # 1. Remove the extension, and $U if already installed.
11580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11583 # will be set to the directory where LIBOBJS objects are built.
11584 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11587 LIBOBJS=$ac_libobjs
11589 LTLIBOBJS=$ac_ltlibobjs
11594 : "${CONFIG_STATUS=./config.status}"
11596 ac_clean_files_save=$ac_clean_files
11597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11603 # Generated by $as_me.
11604 # Run this file to recreate the current configuration.
11605 # Compiler output produced by configure, useful for debugging
11606 # configure, is in config.log if it exists.
11609 ac_cs_recheck=false
11612 SHELL=\${CONFIG_SHELL-$SHELL}
11615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11616 ## -------------------- ##
11617 ## M4sh Initialization. ##
11618 ## -------------------- ##
11620 # Be more Bourne compatible
11621 DUALCASE=1; export DUALCASE # for MKS sh
11622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11626 # is contrary to our usage. Disable this feature.
11627 alias -g '${1+"$@"}'='"$@"'
11628 setopt NO_GLOB_SUBST
11630 case `(set -o) 2>/dev/null` in #(
11642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11646 # Prefer a ksh shell builtin over an external printf program on Solaris,
11647 # but without wasting forks for bash or zsh.
11648 if test -z "$BASH_VERSION$ZSH_VERSION" \
11649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11650 as_echo='print -r --'
11651 as_echo_n='print -rn --'
11652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11653 as_echo='printf %s\n'
11654 as_echo_n='printf %s'
11656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11658 as_echo_n='/usr/ucb/echo -n'
11660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11661 as_echo_n_body='eval
11665 expr "X$arg" : "X\\(.*\\)$as_nl";
11666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11670 export as_echo_n_body
11671 as_echo_n='sh -c $as_echo_n_body as_echo'
11673 export as_echo_body
11674 as_echo='sh -c $as_echo_body as_echo'
11677 # The user is always right.
11678 if test "${PATH_SEPARATOR+set}" != set; then
11680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11688 # We need space, tab and new line, in precisely that order. Quoting is
11689 # there to prevent editors from complaining about space-tab.
11690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11691 # splitting by setting IFS to empty value.)
11694 # Find who we are. Look in the path if we contain no directory separator.
11697 *[\\/]* ) as_myself=$0 ;;
11698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11702 test -z "$as_dir" && as_dir=.
11703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11709 # We did not find ourselves, most probably we were run as `sh COMMAND'
11710 # in which case we are not to be found in the path.
11711 if test "x$as_myself" = x; then
11714 if test ! -f "$as_myself"; then
11715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11719 # Unset variables that we do not need and which cause bugs (e.g. in
11720 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11721 # suppresses any "Segmentation fault" message there. '((' could
11722 # trigger a bug in pdksh 5.2.14.
11723 for as_var in BASH_ENV ENV MAIL MAILPATH
11724 do eval test x\${$as_var+set} = xset \
11725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11742 # ----------------------------------------
11743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11745 # script with STATUS, using 1 if that was 0.
11748 as_status=$1; test $as_status -eq 0 && as_status=1
11750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11753 $as_echo "$as_me: error: $2" >&2
11754 as_fn_exit $as_status
11758 # as_fn_set_status STATUS
11759 # -----------------------
11760 # Set $? to STATUS, without forking.
11761 as_fn_set_status ()
11764 } # as_fn_set_status
11766 # as_fn_exit STATUS
11767 # -----------------
11768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11772 as_fn_set_status $1
11778 # Portably unset VAR.
11781 { eval $1=; unset $1;}
11783 as_unset=as_fn_unset
11784 # as_fn_append VAR VALUE
11785 # ----------------------
11786 # Append the text in VALUE to the end of the definition contained in VAR. Take
11787 # advantage of any shell optimizations that allow amortized linear growth over
11788 # repeated appends, instead of the typical quadratic growth present in naive
11790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11791 eval 'as_fn_append ()
11802 # as_fn_arith ARG...
11803 # ------------------
11804 # Perform arithmetic evaluation on the ARGs, and store the result in the
11805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11806 # must be portable across $(()) and expr.
11807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11808 eval 'as_fn_arith ()
11815 as_val=`expr "$@" || test $? -eq 1`
11820 if expr a : '\(a\)' >/dev/null 2>&1 &&
11821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11828 as_basename=basename
11833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11839 as_me=`$as_basename -- "$0" ||
11840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11841 X"$0" : 'X\(//\)$' \| \
11842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11844 sed '/^.*\/\([^/][^/]*\)\/*$/{
11858 # Avoid depending upon Character Ranges.
11859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11862 as_cr_digits='0123456789'
11863 as_cr_alnum=$as_cr_Letters$as_cr_digits
11865 ECHO_C= ECHO_N= ECHO_T=
11866 case `echo -n x` in #(((((
11868 case `echo 'xy\c'` in
11869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11878 rm -f conf$$ conf$$.exe conf$$.file
11879 if test -d conf$$.dir; then
11880 rm -f conf$$.dir/conf$$.file
11883 mkdir conf$$.dir 2>/dev/null
11885 if (echo >conf$$.file) 2>/dev/null; then
11886 if ln -s conf$$.file conf$$ 2>/dev/null; then
11888 # ... but there are two gotchas:
11889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11891 # In both cases, we have to default to `cp -pR'.
11892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11894 elif ln conf$$.file conf$$ 2>/dev/null; then
11902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11903 rmdir conf$$.dir 2>/dev/null
11908 # Create "$as_dir" as a directory, including parents if necessary.
11913 -*) as_dir=./$as_dir;;
11915 test -d "$as_dir" || eval $as_mkdir_p || {
11919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11920 *) as_qdir=$as_dir;;
11922 as_dirs="'$as_qdir' $as_dirs"
11923 as_dir=`$as_dirname -- "$as_dir" ||
11924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11925 X"$as_dir" : 'X\(//\)[^/]' \| \
11926 X"$as_dir" : 'X\(//\)$' \| \
11927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11928 $as_echo X"$as_dir" |
11929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11933 /^X\(\/\/\)[^/].*/{
11946 test -d "$as_dir" && break
11948 test -z "$as_dirs" || eval "mkdir $as_dirs"
11949 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11953 if mkdir -p . 2>/dev/null; then
11954 as_mkdir_p='mkdir -p "$as_dir"'
11956 test -d ./-p && rmdir ./-p
11961 # as_fn_executable_p FILE
11962 # -----------------------
11963 # Test if FILE is an executable regular file.
11964 as_fn_executable_p ()
11966 test -f "$1" && test -x "$1"
11967 } # as_fn_executable_p
11968 as_test_x='test -x'
11969 as_executable_p=as_fn_executable_p
11971 # Sed expression to map a string onto a valid CPP name.
11972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11974 # Sed expression to map a string onto a valid variable name.
11975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11979 ## ----------------------------------- ##
11980 ## Main body of $CONFIG_STATUS script. ##
11981 ## ----------------------------------- ##
11983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11986 # Save the log message, to keep $0 and so on meaningful, and to
11987 # report actual input values of CONFIG_FILES etc. instead of their
11988 # values after options handling.
11990 This file was extended by $as_me, which was
11991 generated by GNU Autoconf 2.69. Invocation command line was
11993 CONFIG_FILES = $CONFIG_FILES
11994 CONFIG_HEADERS = $CONFIG_HEADERS
11995 CONFIG_LINKS = $CONFIG_LINKS
11996 CONFIG_COMMANDS = $CONFIG_COMMANDS
11999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12004 case $ac_config_files in *"
12005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12008 case $ac_config_headers in *"
12009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014 # Files that config.status was made for.
12015 config_files="$ac_config_files"
12016 config_headers="$ac_config_headers"
12017 config_commands="$ac_config_commands"
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12023 \`$as_me' instantiates files and other configuration actions
12024 from templates according to the current configuration. Unless the files
12025 and actions are specified as TAGs, all are instantiated by default.
12027 Usage: $0 [OPTION]... [TAG]...
12029 -h, --help print this help, then exit
12030 -V, --version print version number and configuration settings, then exit
12031 --config print configuration, then exit
12032 -q, --quiet, --silent
12033 do not print progress messages
12034 -d, --debug don't remove temporary files
12035 --recheck update $as_me by reconfiguring in the same conditions
12036 --file=FILE[:TEMPLATE]
12037 instantiate the configuration file FILE
12038 --header=FILE[:TEMPLATE]
12039 instantiate the configuration header FILE
12041 Configuration files:
12044 Configuration headers:
12047 Configuration commands:
12050 Report bugs to the package provider."
12053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12057 configured by $0, generated by GNU Autoconf 2.69,
12058 with options \\"\$ac_cs_config\\"
12060 Copyright (C) 2012 Free Software Foundation, Inc.
12061 This config.status script is free software; the Free Software Foundation
12062 gives unlimited permission to copy, distribute and modify it."
12068 test -n "\$AWK" || AWK=awk
12071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12072 # The default lists apply if the user does not specify any file.
12078 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12079 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12095 # Handling of the options.
12096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12098 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12099 $as_echo "$ac_cs_version"; exit ;;
12100 --config | --confi | --conf | --con | --co | --c )
12101 $as_echo "$ac_cs_config"; exit ;;
12102 --debug | --debu | --deb | --de | --d | -d )
12104 --file | --fil | --fi | --f )
12107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12108 '') as_fn_error $? "missing file argument" ;;
12110 as_fn_append CONFIG_FILES " '$ac_optarg'"
12111 ac_need_defaults=false;;
12112 --header | --heade | --head | --hea )
12115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12117 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12118 ac_need_defaults=false;;
12120 # Conflict between --help and --header
12121 as_fn_error $? "ambiguous option: \`$1'
12122 Try \`$0 --help' for more information.";;
12123 --help | --hel | -h )
12124 $as_echo "$ac_cs_usage"; exit ;;
12125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12129 # This is an error.
12130 -*) as_fn_error $? "unrecognized option: \`$1'
12131 Try \`$0 --help' for more information." ;;
12133 *) as_fn_append ac_config_targets " $1"
12134 ac_need_defaults=false ;;
12140 ac_configure_extra_args=
12142 if $ac_cs_silent; then
12144 ac_configure_extra_args="$ac_configure_extra_args --silent"
12148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12149 if \$ac_cs_recheck; then
12150 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12153 CONFIG_SHELL='$SHELL'
12154 export CONFIG_SHELL
12159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12164 ## Running $as_me. ##
12170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12175 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12177 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12178 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12179 LINGUAS="${LINGUAS-%UNSET%}"
12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186 # Handling of arguments.
12187 for ac_config_target in $ac_config_targets
12189 case $ac_config_target in
12190 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12191 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12192 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12194 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12199 # If the user did not use the arguments to specify the items to instantiate,
12200 # then the envvar interface is used. Set only those that are not.
12201 # We use the long form for the default assignment because of an extremely
12202 # bizarre bug on SunOS 4.1.3.
12203 if $ac_need_defaults; then
12204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12205 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12206 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12209 # Have a temporary directory for convenience. Make it in the build tree
12210 # simply because there is no reason against having it here, and in addition,
12211 # creating and moving files from /tmp can sometimes cause problems.
12212 # Hook for its removal unless debugging.
12213 # Note that there is a small window in which the directory will not be cleaned:
12214 # after its creation but before its name has been assigned to `$tmp'.
12218 trap 'exit_status=$?
12219 : "${ac_tmp:=$tmp}"
12220 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12222 trap 'as_fn_exit 1' 1 2 13 15
12224 # Create a (secure) tmp directory for tmp files.
12227 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12231 tmp=./conf$$-$RANDOM
12232 (umask 077 && mkdir "$tmp")
12233 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12236 # Set up the scripts for CONFIG_FILES section.
12237 # No need to generate them if there are no CONFIG_FILES.
12238 # This happens for instance with `./config.status config.h'.
12239 if test -n "$CONFIG_FILES"; then
12241 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12242 ac_cs_awk_getline=:
12243 ac_cs_awk_pipe_init=
12244 ac_cs_awk_read_file='
12245 while ((getline aline < (F[key])) > 0)
12248 ac_cs_awk_pipe_fini=
12250 ac_cs_awk_getline=false
12251 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12252 ac_cs_awk_read_file='
12254 print "cat " F[key] " &&"
12255 '$ac_cs_awk_pipe_init
12256 # The final `:' finishes the AND list.
12257 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12259 ac_cr=`echo X | tr X '\015'`
12260 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12261 # But we know of no other shell where ac_cr would be empty at this
12262 # point, so we can use a bashism as a fallback.
12263 if test "x$ac_cr" = x; then
12264 eval ac_cr=\$\'\\r\'
12266 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12267 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12270 ac_cs_awk_cr=$ac_cr
12273 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12276 # Create commands to substitute file output variables.
12278 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12279 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12280 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12283 } >conf$$files.sh &&
12284 . ./conf$$files.sh ||
12285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12286 rm -f conf$$files.sh
12289 echo "cat >conf$$subs.awk <<_ACEOF" &&
12290 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12292 } >conf$$subs.sh ||
12293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12296 for ac_last_try in false false false false false :; do
12297 . ./conf$$subs.sh ||
12298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12300 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12301 if test $ac_delim_n = $ac_delim_num; then
12303 elif $ac_last_try; then
12304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12309 rm -f conf$$subs.sh
12311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12312 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12316 s/^/S["/; s/!.*/"]=/
12326 s/\(.\{148\}\)..*/\1/
12328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12340 s/\(.\{148\}\)..*/\1/
12342 s/["\\]/\\&/g; s/^/"/; s/$/"/
12346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12351 ' <conf$$subs.awk | sed '
12356 ' >>$CONFIG_STATUS || ac_write_fail=1
12357 rm -f conf$$subs.awk
12358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12360 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12361 for (key in S) S_is_set[key] = 1
12363 \$ac_cs_awk_pipe_init
12367 nfields = split(line, field, "@")
12369 len = length(field[1])
12370 for (i = 2; i < nfields; i++) {
12372 keylen = length(key)
12373 if (S_is_set[key]) {
12375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12376 len += length(value) + length(field[++i])
12381 if (nfields == 3 && !substed) {
12383 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12384 \$ac_cs_awk_read_file
12390 \$ac_cs_awk_pipe_fini
12393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12395 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12398 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12399 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12402 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12403 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12404 # trailing colons and then remove the whole line if VPATH becomes empty
12405 # (actually we leave an empty line to preserve line numbers).
12406 if test "x$srcdir" = x.; then
12407 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 fi # test -n "$CONFIG_FILES"
12428 # Set up the scripts for CONFIG_HEADERS section.
12429 # No need to generate them if there are no CONFIG_HEADERS.
12430 # This happens for instance with `./config.status Makefile'.
12431 if test -n "$CONFIG_HEADERS"; then
12432 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12436 # Transform confdefs.h into an awk script `defines.awk', embedded as
12437 # here-document in config.status, that substitutes the proper values into
12438 # config.h.in to produce config.h.
12440 # Create a delimiter string that does not exist in confdefs.h, to ease
12441 # handling of long lines.
12443 for ac_last_try in false false :; do
12444 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12445 if test -z "$ac_tt"; then
12447 elif $ac_last_try; then
12448 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12454 # For the awk script, D is an array of macro values keyed by name,
12455 # likewise P contains macro parameters if any. Preserve backslash
12456 # newline sequences.
12458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12460 s/.\{148\}/&'"$ac_delim"'/g
12463 s/^[ ]*#[ ]*define[ ][ ]*/ /
12470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12477 D["\1"]=" \3\\\\\\n"\\/p
12479 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12484 s/.\{148\}/&'"$ac_delim"'/g
12489 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12492 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12494 ' <confdefs.h | sed '
12495 s/'"$ac_delim"'/"\\\
12496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12499 for (key in D) D_is_set[key] = 1
12502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12504 split(line, arg, " ")
12505 if (arg[1] == "#") {
12509 defundef = substr(arg[1], 2)
12512 split(mac1, mac2, "(") #)
12514 prefix = substr(line, 1, index(line, defundef) - 1)
12515 if (D_is_set[macro]) {
12516 # Preserve the white space surrounding the "#".
12517 print prefix "define", macro P[macro] D[macro]
12520 # Replace #undef with comments. This is necessary, for example,
12521 # in the case of _POSIX_SOURCE, which is predefined and required
12522 # on some systems where configure will not decide to define it.
12523 if (defundef == "undef") {
12524 print "/*", prefix defundef, macro, "*/"
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12534 fi # test -n "$CONFIG_HEADERS"
12537 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12542 :[FHLC]) ac_mode=$ac_tag; continue;;
12544 case $ac_mode$ac_tag in
12546 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12547 :[FH]-) ac_tag=-:-;;
12548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12565 -) ac_f="$ac_tmp/stdin";;
12566 *) # Look for the file first in the build tree, then in the source tree
12567 # (if the path is not absolute). The absolute path cannot be DOS-style,
12568 # because $ac_f cannot contain `:'.
12572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12574 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12577 as_fn_append ac_file_inputs " '$ac_f'"
12580 # Let's still pretend it is `configure' which instantiates (i.e., don't
12581 # use $as_me), people would be surprised to read:
12582 # /* config.h. Generated by config.status. */
12583 configure_input='Generated from '`
12584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12586 if test x"$ac_file" != x-; then
12587 configure_input="$ac_file. $configure_input"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12589 $as_echo "$as_me: creating $ac_file" >&6;}
12591 # Neutralize special characters interpreted by sed in replacement strings.
12592 case $configure_input in #(
12593 *\&* | *\|* | *\\* )
12594 ac_sed_conf_input=`$as_echo "$configure_input" |
12595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12596 *) ac_sed_conf_input=$configure_input;;
12600 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12606 ac_dir=`$as_dirname -- "$ac_file" ||
12607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12608 X"$ac_file" : 'X\(//\)[^/]' \| \
12609 X"$ac_file" : 'X\(//\)$' \| \
12610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12611 $as_echo X"$ac_file" |
12612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12616 /^X\(\/\/\)[^/].*/{
12629 as_dir="$ac_dir"; as_fn_mkdir_p
12633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12636 # A ".." for each directory in $ac_dir_suffix.
12637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12638 case $ac_top_builddir_sub in
12639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12643 ac_abs_top_builddir=$ac_pwd
12644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12645 # for backward compatibility:
12646 ac_top_builddir=$ac_top_build_prefix
12649 .) # We are building in place.
12651 ac_top_srcdir=$ac_top_builddir_sub
12652 ac_abs_top_srcdir=$ac_pwd ;;
12653 [\\/]* | ?:[\\/]* ) # Absolute name.
12654 ac_srcdir=$srcdir$ac_dir_suffix;
12655 ac_top_srcdir=$srcdir
12656 ac_abs_top_srcdir=$srcdir ;;
12657 *) # Relative name.
12658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12659 ac_top_srcdir=$ac_top_build_prefix$srcdir
12660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12678 # If the template does not know about datarootdir, expand it.
12679 # FIXME: This hack should be removed a few years after 2.60.
12680 ac_datarootdir_hack=; ac_datarootdir_seen=
12691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12692 *datarootdir*) ac_datarootdir_seen=yes;;
12693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12698 ac_datarootdir_hack='
12699 s&@datadir@&$datadir&g
12700 s&@docdir@&$docdir&g
12701 s&@infodir@&$infodir&g
12702 s&@localedir@&$localedir&g
12703 s&@mandir@&$mandir&g
12704 s&\\\${datarootdir}&$datarootdir&g' ;;
12708 # Neutralize VPATH when `$srcdir' = `.'.
12709 # Shell code in configure.ac might set extrasub.
12710 # FIXME: do we really want to maintain this feature?
12711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12712 ac_sed_extra="$ac_vpsub
12715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12718 s|@configure_input@|$ac_sed_conf_input|;t t
12719 s&@top_builddir@&$ac_top_builddir_sub&;t t
12720 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12721 s&@srcdir@&$ac_srcdir&;t t
12722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12723 s&@top_srcdir@&$ac_top_srcdir&;t t
12724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12725 s&@builddir@&$ac_builddir&;t t
12726 s&@abs_builddir@&$ac_abs_builddir&;t t
12727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12728 s&@INSTALL@&$ac_INSTALL&;t t
12729 $ac_datarootdir_hack
12731 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12732 if $ac_cs_awk_getline; then
12733 $AWK -f "$ac_tmp/subs.awk"
12735 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12737 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12740 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12742 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12744 which seems to be undefined. Please make sure it is defined" >&5
12745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12746 which seems to be undefined. Please make sure it is defined" >&2;}
12748 rm -f "$ac_tmp/stdin"
12750 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12751 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12759 if test x"$ac_file" != x-; then
12761 $as_echo "/* $configure_input */" \
12762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12763 } >"$ac_tmp/config.h" \
12764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12765 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12767 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12770 mv "$ac_tmp/config.h" "$ac_file" \
12771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12774 $as_echo "/* $configure_input */" \
12775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12776 || as_fn_error $? "could not create -" "$LINENO" 5
12780 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12781 $as_echo "$as_me: executing $ac_file commands" >&6;}
12786 case $ac_file$ac_mode in
12788 for ac_file in $CONFIG_FILES; do
12789 # Support "outfile[:infile[:infile...]]"
12791 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12793 # PO directories have a Makefile.in generated from Makefile.in.in.
12794 case "$ac_file" in */Makefile.in)
12795 # Adjust a relative srcdir.
12796 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12797 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12798 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12799 # In autoconf-2.13 it is called $ac_given_srcdir.
12800 # In autoconf-2.50 it is called $srcdir.
12801 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12802 case "$ac_given_srcdir" in
12803 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12804 /*) top_srcdir="$ac_given_srcdir" ;;
12805 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12807 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12808 rm -f "$ac_dir/POTFILES"
12809 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12810 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12811 POMAKEFILEDEPS="POTFILES.in"
12812 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12813 # on $ac_dir but don't depend on user-specified configuration
12815 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12816 # The LINGUAS file contains the set of available languages.
12817 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12818 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12820 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12821 # Hide the ALL_LINGUAS assigment from automake.
12822 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12823 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12825 # The set of available languages was given in configure.in.
12826 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12829 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12830 # Compute UPDATEPOFILES
12831 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12832 # Compute DUMMYPOFILES
12833 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12835 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12836 case "$ac_given_srcdir" in
12838 *) srcdirpre='$(srcdir)/' ;;
12844 for lang in $ALL_LINGUAS; do
12845 POFILES="$POFILES $srcdirpre$lang.po"
12846 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12847 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12848 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12850 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12851 # environment variable.
12853 if test -n "$ALL_LINGUAS"; then
12854 for presentlang in $ALL_LINGUAS; do
12856 if test "%UNSET%" != "$LINGUAS"; then
12857 desiredlanguages="$LINGUAS"
12859 desiredlanguages="$ALL_LINGUAS"
12861 for desiredlang in $desiredlanguages; do
12862 # Use the presentlang catalog if desiredlang is
12863 # a. equal to presentlang, or
12864 # b. a variant of presentlang (because in this case,
12865 # presentlang can be used as a fallback for messages
12866 # which are not translated in the desiredlang catalog).
12867 case "$desiredlang" in
12868 "$presentlang"*) useit=yes;;
12871 if test $useit = yes; then
12872 INST_LINGUAS="$INST_LINGUAS $presentlang"
12877 if test -n "$INST_LINGUAS"; then
12878 for lang in $INST_LINGUAS; do
12879 CATALOGS="$CATALOGS $lang.gmo"
12882 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12883 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"
12884 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12885 if test -f "$f"; then
12887 *.orig | *.bak | *~) ;;
12888 *) cat "$f" >> "$ac_dir/Makefile" ;;
12903 ac_clean_files=$ac_clean_files_save
12905 test $ac_write_fail = 0 ||
12906 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12909 # configure is writing to config.log, and then calls config.status.
12910 # config.status does its own redirection, appending to config.log.
12911 # Unfortunately, on DOS this fails, as config.log is still kept open
12912 # by configure, so config.status won't be able to write to it; its
12913 # output is simply discarded. So we exec the FD to /dev/null,
12914 # effectively closing config.log, so it can be properly (re)opened and
12915 # appended to by config.status. When coming back to configure, we
12916 # need to make the FD available again.
12917 if test "$no_create" != yes; then
12919 ac_config_status_args=
12920 test "$silent" = yes &&
12921 ac_config_status_args="$ac_config_status_args --quiet"
12923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12926 # would make configure fail if this is the last instruction.
12927 $ac_cs_success || as_fn_exit 1
12929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12934 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi