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
669 INTL_LIBTOOL_SUFFIX_PREFIX
676 BUILD_INCLUDED_LIBINTL
801 program_transform_name
812 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
850 enable_e2initrd_helper
857 with_included_gettext
861 ac_precious_vars='build_alias
873 # Initialize some variables set by options.
875 ac_init_version=false
876 ac_unrecognized_opts=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 # Accept the important Cygnus configure options, so we can diagnose typos.
940 case $ac_dashdash$ac_option in
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
962 cache_file=config.cache ;;
964 -datadir | --datadir | --datadi | --datad)
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
990 eval enable_$ac_useropt=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 htmldir=$ac_optarg ;;
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1061 -libdir | --libdir | --libdi | --libd)
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1152 -psdir | --psdir | --psdi | --psd | --ps)
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 sbindir=$ac_optarg ;;
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 sharedstatedir=$ac_optarg ;;
1178 -site | --site | --sit)
1180 -site=* | --site=* | --sit=*)
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1236 eval with_$ac_useropt=no ;;
1239 # Obsolete; use --with-x.
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures this package to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 if test -n "$ac_init_help"; then
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-maintainer-mode enable makefile rules useful for maintainers
1483 --enable-symlink-install use symlinks when installing instead of hard links
1484 --enable-relative-symlinks use relative symlinks when installing
1486 --enable-symlink-build use symlinks while building instead of hard links
1487 --enable-verbose-makecmds enable verbose make command output
1488 --enable-compression enable EXPERIMENTAL compression support
1489 --enable-htree enable EXPERIMENTAL htree directory support
1490 --enable-elf-shlibs select ELF shared libraries
1491 --enable-bsd-shlibs select BSD shared libraries
1492 --enable-profile build profiling libraries
1493 --enable-checker build checker libraries
1494 --enable-jbd-debug enable journal debugging
1495 --enable-blkid-debug enable blkid debugging
1496 --disable-testio-debug disable the use of the test I/O manager for debugging
1497 --disable-libuuid do not build private uuid library
1498 --disable-libblkid do not build private blkid library
1499 --enable-quota enable quota support
1500 --disable-debugfs disable support of debugfs program
1501 --disable-imager disable support of e2image program
1502 --disable-resizer disable support of e2resize program
1503 --disable-defrag disable support of e4defrag program
1504 --enable-fsck build fsck wrapper program
1505 --enable-e2initrd-helper build e2initrd-helper program
1506 --disable-tls disable use of thread local support
1507 --disable-uuidd disable building the uuid daemon
1508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-diet-libc use diet libc
1515 --with-cc no longer supported, use CC= instead
1516 --with-ccopts no longer supported, use CFLAGS= instead
1517 --with-ldopts no longer supported, use LDFLAGS= instead
1518 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1519 --with-gnu-ld assume the C compiler uses GNU ld default=no
1520 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1521 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1522 --with-included-gettext use the GNU gettext library included here
1523 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1524 --without-libintl-prefix don't search for libintl in includedir and libdir
1525 --with-multiarch=ARCH specify the multiarch triplet
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1536 PKG_CONFIG path to pkg-config utility
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to the package provider.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1605 generated by GNU Autoconf 2.69
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_link
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } > conftest.i && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742 # that executables *can* be run.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=$ac_status
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1781 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1782 # -------------------------------------------
1783 # Tests whether TYPE exists after having included INCLUDES, setting cache
1784 # variable VAR accordingly.
1785 ac_fn_c_check_type ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1819 if ac_fn_c_try_compile "$LINENO"; then :
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_type
1835 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1836 # -------------------------------------------------------
1837 # Tests whether HEADER exists and can be compiled using the include files in
1838 # INCLUDES, setting the cache variable VAR accordingly.
1839 ac_fn_c_check_header_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1852 if ac_fn_c_try_compile "$LINENO"; then :
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 } # ac_fn_c_check_header_compile
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1889 # include <limits.h>
1891 # include <assert.h>
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1918 if ac_fn_c_try_link "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_func
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1938 ac_fn_c_check_header_mongrel ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if eval \${$3+:} false; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1962 ac_header_compiler=no
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1978 ac_header_preproc=no
1980 rm -f conftest.err conftest.i conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 eval "$3=\$ac_header_compiler"
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_check_header_mongrel
2020 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2021 # --------------------------------------------
2022 # Tries to find the compile-time value of EXPR in a program that includes
2023 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 ac_fn_c_compute_int ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if test "$cross_compiling" = yes; then
2029 # Depending upon the size, compute the lo and hi bounds.
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) >= 0)];
2038 return test_array [0];
2044 if ac_fn_c_try_compile "$LINENO"; then :
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2055 return test_array [0];
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=$ac_mid; break
2064 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2065 if test $ac_lo -le $ac_mid; then
2069 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) < 0)];
2082 return test_array [0];
2088 if ac_fn_c_try_compile "$LINENO"; then :
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2099 return test_array [0];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_lo=$ac_mid; break
2108 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2109 if test $ac_mid -le $ac_hi; then
2113 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 # Binary search between lo and hi bounds.
2124 while test "x$ac_lo" != "x$ac_hi"; do
2125 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134 return test_array [0];
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2155 static long int longval () { return $2; }
2156 static unsigned long int ulongval () { return $2; }
2163 FILE *f = fopen ("conftest.val", "w");
2168 long int i = longval ();
2171 fprintf (f, "%ld", i);
2175 unsigned long int i = ulongval ();
2178 fprintf (f, "%lu", i);
2180 /* Do not output a trailing newline, as this causes \r\n confusion
2181 on some platforms. */
2182 return ferror (f) || fclose (f) != 0;
2188 if ac_fn_c_try_run "$LINENO"; then :
2189 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2194 conftest.$ac_objext conftest.beam conftest.$ac_ext
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 as_fn_set_status $ac_retval
2201 } # ac_fn_c_compute_int
2203 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2204 # ----------------------------------------------------
2205 # Tries to find if the field MEMBER exists in type AGGR, after including
2206 # INCLUDES, setting cache variable VAR accordingly.
2207 ac_fn_c_check_member ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2211 $as_echo_n "checking for $2.$3... " >&6; }
2212 if eval \${$4+:} false; then :
2213 $as_echo_n "(cached) " >&6
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2238 if (sizeof ac_aggr.$3)
2244 if ac_fn_c_try_compile "$LINENO"; then :
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 } # ac_fn_c_check_member
2260 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2261 # ---------------------------------------------
2262 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2264 ac_fn_c_check_decl ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 as_decl_name=`echo $2|sed 's/ *(.*//'`
2268 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2270 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2271 if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2280 #ifndef $as_decl_name
2282 (void) $as_decl_use;
2284 (void) $as_decl_name;
2292 if ac_fn_c_try_compile "$LINENO"; then :
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304 } # ac_fn_c_check_decl
2305 cat >config.log <<_ACEOF
2306 This file contains any messages produced by compilers while
2307 running configure, to aid debugging if configure makes a mistake.
2309 It was created by $as_me, which was
2310 generated by GNU Autoconf 2.69. Invocation command line was
2322 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2328 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2331 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2334 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2335 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 $as_echo "PATH: $as_dir"
2362 # Keep a trace of the command line.
2363 # Strip out --no-create and --no-recursion so they do not pile up.
2364 # Strip out --silent because we don't want to record it for future runs.
2365 # Also quote any args containing shell meta-characters.
2366 # Make two passes to allow for proper duplicate-argument suppression.
2370 ac_must_keep_next=false
2376 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378 | -silent | --silent | --silen | --sile | --sil)
2381 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2386 as_fn_append ac_configure_args1 " '$ac_arg'"
2387 if test $ac_must_keep_next = true; then
2388 ac_must_keep_next=false # Got value, back to normal.
2391 *=* | --config-cache | -C | -disable-* | --disable-* \
2392 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394 | -with-* | --with-* | -without-* | --without-* | --x)
2395 case "$ac_configure_args0 " in
2396 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 -* ) ac_must_keep_next=true ;;
2402 as_fn_append ac_configure_args " '$ac_arg'"
2407 { ac_configure_args0=; unset ac_configure_args0;}
2408 { ac_configure_args1=; unset ac_configure_args1;}
2410 # When interrupted or exit'd, cleanup temporary files, and complete
2411 # config.log. We remove comments because anyway the quotes in there
2412 # would cause problems or look ugly.
2413 # WARNING: Use '\'' to represent an apostrophe within the trap.
2414 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2415 trap 'exit_status=$?
2416 # Save into config.log some information that might help in debugging.
2420 $as_echo "## ---------------- ##
2421 ## Cache variables. ##
2422 ## ---------------- ##"
2424 # The following way of writing the cache mishandles newlines in values,
2426 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2427 eval ac_val=\$$ac_var
2431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435 _ | IFS | as_nl) ;; #(
2436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2437 *) { eval $ac_var=; unset $ac_var;} ;;
2442 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2443 *${as_nl}ac_space=\ *)
2445 "s/'\''/'\''\\\\'\'''\''/g;
2446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 $as_echo "## ----------------- ##
2457 ## Output variables. ##
2458 ## ----------------- ##"
2460 for ac_var in $ac_subst_vars
2462 eval ac_val=\$$ac_var
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466 $as_echo "$ac_var='\''$ac_val'\''"
2470 if test -n "$ac_subst_files"; then
2471 $as_echo "## ------------------- ##
2472 ## File substitutions. ##
2473 ## ------------------- ##"
2475 for ac_var in $ac_subst_files
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2486 if test -s confdefs.h; then
2487 $as_echo "## ----------- ##
2494 test "$ac_signal" != 0 &&
2495 $as_echo "$as_me: caught signal $ac_signal"
2496 $as_echo "$as_me: exit $exit_status"
2498 rm -f core *.core core.conftest.* &&
2499 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502 for ac_signal in 1 2 13 15; do
2503 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2508 rm -f -r conftest* confdefs.h
2510 $as_echo "/* confdefs.h */" > confdefs.h
2512 # Predefined preprocessor variables.
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_NAME "$PACKAGE_NAME"
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_STRING "$PACKAGE_STRING"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_URL "$PACKAGE_URL"
2539 # Let the site file select an alternate cache file if it wants to.
2540 # Prefer an explicitly selected file to automatically selected ones.
2543 if test -n "$CONFIG_SITE"; then
2544 # We do not want a PATH search for config.site.
2545 case $CONFIG_SITE in #((
2546 -*) ac_site_file1=./$CONFIG_SITE;;
2547 */*) ac_site_file1=$CONFIG_SITE;;
2548 *) ac_site_file1=./$CONFIG_SITE;;
2550 elif test "x$prefix" != xNONE; then
2551 ac_site_file1=$prefix/share/config.site
2552 ac_site_file2=$prefix/etc/config.site
2554 ac_site_file1=$ac_default_prefix/share/config.site
2555 ac_site_file2=$ac_default_prefix/etc/config.site
2557 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2559 test "x$ac_site_file" = xNONE && continue
2560 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2563 sed 's/^/| /' "$ac_site_file" >&5
2565 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 as_fn_error $? "failed to load site script $ac_site_file
2568 See \`config.log' for more details" "$LINENO" 5; }
2572 if test -r "$cache_file"; then
2573 # Some versions of bash will fail to source /dev/null (special files
2574 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2575 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2577 $as_echo "$as_me: loading cache $cache_file" >&6;}
2579 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580 *) . "./$cache_file";;
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2585 $as_echo "$as_me: creating cache $cache_file" >&6;}
2589 as_fn_append ac_header_list " stdlib.h"
2590 as_fn_append ac_header_list " unistd.h"
2591 as_fn_append ac_header_list " sys/param.h"
2592 # Check that the precious variables saved in the cache have kept the same
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 if $ac_cache_corrupted; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 for ac_dir in config "$srcdir"/config; do
2663 if test -f "$ac_dir/install-sh"; then
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 elif test -f "$ac_dir/install.sh"; then
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 elif test -f "$ac_dir/shtool"; then
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 if test -z "$ac_aux_dir"; then
2678 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690 ac_config_headers="$ac_config_headers lib/config.h"
2696 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2697 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2698 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2700 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2701 MONTH=`echo $DATE | awk -F- '{print $2}'`
2702 YEAR=`echo $DATE | awk -F- '{print $3}'`
2704 if expr $YEAR ">" 1900 > /dev/null ; then
2705 E2FSPROGS_YEAR=$YEAR
2706 elif expr $YEAR ">" 90 >/dev/null ; then
2707 E2FSPROGS_YEAR=19$YEAR
2709 E2FSPROGS_YEAR=20$YEAR
2713 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2714 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2715 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2716 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2717 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2718 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2719 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2720 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2721 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2722 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2723 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2724 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2725 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2726 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2729 base_ver=`echo $E2FSPROGS_VERSION | \
2730 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2732 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2734 case $E2FSPROGS_VERSION in
2736 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2739 E2FSPROGS_PKGVER="$base_ver"
2743 unset DATE MONTH YEAR base_ver pre_vers date_spec
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2745 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2747 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2753 # Make sure we can run config.sub.
2754 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2755 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2758 $as_echo_n "checking build system type... " >&6; }
2759 if ${ac_cv_build+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 ac_build_alias=$build_alias
2763 test "x$ac_build_alias" = x &&
2764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2765 test "x$ac_build_alias" = x &&
2766 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2767 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2772 $as_echo "$ac_cv_build" >&6; }
2773 case $ac_cv_build in
2775 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2778 ac_save_IFS=$IFS; IFS='-'
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2792 $as_echo_n "checking host system type... " >&6; }
2793 if ${ac_cv_host+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test "x$host_alias" = x; then
2797 ac_cv_host=$ac_cv_build
2799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2805 $as_echo "$ac_cv_host" >&6; }
2808 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2811 ac_save_IFS=$IFS; IFS='-'
2817 # Remember, the first character of IFS is used to create $*,
2818 # except with old shells:
2821 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2869 if test -z "$ac_cv_prog_CC"; then
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872 set dummy gcc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="gcc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2907 if test "x$ac_ct_CC" = x; then
2910 case $cross_compiling:$ac_tool_warned in
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2922 if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}cc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="${ac_tool_prefix}cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2963 if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965 set dummy cc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl.exe
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$CC" && break
3063 if test -z "$CC"; then
3065 for ac_prog in cl.exe
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_ac_ct_CC="$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3104 test -n "$ac_ct_CC" && break
3107 if test "x$ac_ct_CC" = x; then
3110 case $cross_compiling:$ac_tool_warned in
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3123 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "no acceptable C compiler found in \$PATH
3126 See \`config.log' for more details" "$LINENO" 5; }
3128 # Provide some information about the compiler.
3129 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3132 for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3142 if test -s conftest.err; then
3144 ... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3148 rm -f conftest.er1 conftest.err
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170 $as_echo_n "checking whether the C compiler works... " >&6; }
3171 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3173 # The possible output files:
3174 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3177 for ac_file in $ac_files
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 if { { ac_try="$ac_link_default"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200 # so that the user can short-circuit this test for compilers unknown to
3202 for ac_file in $ac_files ''
3204 test -f "$ac_file" || continue
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3209 # We found the default executable, but exeext='' is most
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3227 test "$ac_cv_exeext" = no && ac_cv_exeext=
3232 if test -z "$ac_file"; then :
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error 77 "C compiler cannot create executables
3241 See \`config.log' for more details" "$LINENO" 5; }
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3247 $as_echo_n "checking for C compiler default output file name... " >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3249 $as_echo "$ac_file" >&6; }
3250 ac_exeext=$ac_cv_exeext
3252 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3253 ac_clean_files=$ac_clean_files_save
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3255 $as_echo_n "checking for suffix of executables... " >&6; }
3256 if { { ac_try="$ac_link"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3269 # work properly (i.e., refer to `conftest.exe'), while it won't with
3271 for ac_file in conftest.exe conftest conftest.*; do
3272 test -f "$ac_file" || continue
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3284 See \`config.log' for more details" "$LINENO" 5; }
3286 rm -f conftest conftest$ac_cv_exeext
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3288 $as_echo "$ac_cv_exeext" >&6; }
3290 rm -f conftest.$ac_ext
3291 EXEEXT=$ac_cv_exeext
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3299 FILE *f = fopen ("conftest.out", "w");
3300 return ferror (f) || fclose (f) != 0;
3306 ac_clean_files="$ac_clean_files conftest.out"
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3310 $as_echo_n "checking whether we are cross compiling... " >&6; }
3311 if test "$cross_compiling" != yes; then
3312 { { ac_try="$ac_link"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 if { ac_try='./conftest$ac_cv_exeext'
3324 { { case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_try") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; }; then
3336 if test "$cross_compiling" = maybe; then
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot run C compiled programs.
3342 If you meant to cross compile, use \`--host'.
3343 See \`config.log' for more details" "$LINENO" 5; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3348 $as_echo "$cross_compiling" >&6; }
3350 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3351 ac_clean_files=$ac_clean_files_save
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3353 $as_echo_n "checking for suffix of object files... " >&6; }
3354 if ${ac_cv_objext+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 rm -f conftest.o conftest.obj
3369 if { { ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_compile") 2>&5
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot compute suffix of object files: cannot compile
3395 See \`config.log' for more details" "$LINENO" 5; }
3397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3400 $as_echo "$ac_cv_objext" >&6; }
3401 OBJEXT=$ac_cv_objext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3404 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3405 if ${ac_cv_c_compiler_gnu+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3432 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433 if test $ac_compiler_gnu = yes; then
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3441 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3442 if ${ac_cv_prog_cc_g+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3475 if ac_fn_c_try_compile "$LINENO"; then :
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3491 if ac_fn_c_try_compile "$LINENO"; then :
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3502 $as_echo "$ac_cv_prog_cc_g" >&6; }
3503 if test "$ac_test_CFLAGS" = set; then
3504 CFLAGS=$ac_save_CFLAGS
3505 elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3512 if test "$GCC" = yes; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3519 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3520 if ${ac_cv_prog_cc_c89+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 ac_cv_prog_cc_c89=no
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3544 s = g (p, va_arg (v,int));
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
3587 rm -f conftest.$ac_ext
3592 case "x$ac_cv_prog_cc_c89" in
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3617 if ${ac_cv_lib_dl_dlopen+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 ac_check_lib_save_LIBS=$LIBS
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3625 /* Override any GCC internal prototype to avoid an error.
3626 Use char because int might match the return type of a GCC
3627 builtin and then its argument prototype would still apply. */
3640 if ac_fn_c_try_link "$LINENO"; then :
3641 ac_cv_lib_dl_dlopen=yes
3643 ac_cv_lib_dl_dlopen=no
3645 rm -f core conftest.err conftest.$ac_objext \
3646 conftest$ac_exeext conftest.$ac_ext
3647 LIBS=$ac_check_lib_save_LIBS
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3650 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3651 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3654 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3661 # Check whether --with-diet-libc was given.
3662 if test "${with_diet_libc+set}" = set; then :
3663 withval=$with_diet_libc; CC="diet cc -nostdinc"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3666 $as_echo "CC=$CC" >&6; }
3669 # Check whether --with-cc was given.
3670 if test "${with_cc+set}" = set; then :
3671 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3675 # Check whether --with-ccopts was given.
3676 if test "${with_ccopts+set}" = set; then :
3677 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3681 # Check whether --with-ldopts was given.
3682 if test "${with_ldopts+set}" = set; then :
3683 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CC+:} false; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3730 if test -z "$ac_cv_prog_CC"; then
3732 # Extract the first word of "gcc", so it can be a program name with args.
3733 set dummy gcc; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="gcc"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762 $as_echo "$ac_ct_CC" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3768 if test "x$ac_ct_CC" = x; then
3771 case $cross_compiling:$ac_tool_warned in
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned=yes ;;
3783 if test -z "$CC"; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}cc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_CC+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_CC="${ac_tool_prefix}cc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 $as_echo "$CC" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3824 if test -z "$CC"; then
3825 # Extract the first word of "cc", so it can be a program name with args.
3826 set dummy cc; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_CC+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3844 ac_prog_rejected=yes
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 if test $ac_prog_rejected = yes; then
3856 # We found a bogon in the path, so make sure we never use it.
3857 set dummy $ac_cv_prog_CC
3859 if test $# != 0; then
3860 # We chose a different compiler from the bogus one.
3861 # However, it has the same basename, so the bogon will be chosen
3862 # first if we set CC to just the basename; use the full file name.
3864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3870 if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872 $as_echo "$CC" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3880 if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 for ac_prog in cl.exe
3884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_CC+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 if test -n "$CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914 $as_echo "$CC" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3921 test -n "$CC" && break
3924 if test -z "$CC"; then
3926 for ac_prog in cl.exe
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 if test -n "$ac_ct_CC"; then
3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_CC="$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3956 if test -n "$ac_ct_CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3958 $as_echo "$ac_ct_CC" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3965 test -n "$ac_ct_CC" && break
3968 if test "x$ac_ct_CC" = x; then
3971 case $cross_compiling:$ac_tool_warned in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3984 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error $? "no acceptable C compiler found in \$PATH
3987 See \`config.log' for more details" "$LINENO" 5; }
3989 # Provide some information about the compiler.
3990 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3993 for ac_option in --version -v -V -qversion; do
3994 { { ac_try="$ac_compiler $ac_option >&5"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4003 if test -s conftest.err; then
4005 ... rest of stderr output deleted ...
4006 10q' conftest.err >conftest.er1
4007 cat conftest.er1 >&5
4009 rm -f conftest.er1 conftest.err
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4015 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4016 if ${ac_cv_c_compiler_gnu+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4033 if ac_fn_c_try_compile "$LINENO"; then :
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4043 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4044 if test $ac_compiler_gnu = yes; then
4049 ac_test_CFLAGS=${CFLAGS+set}
4050 ac_save_CFLAGS=$CFLAGS
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4052 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4053 if ${ac_cv_prog_cc_g+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 ac_save_c_werror_flag=$ac_c_werror_flag
4057 ac_c_werror_flag=yes
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 $as_echo "$ac_cv_prog_cc_g" >&6; }
4114 if test "$ac_test_CFLAGS" = set; then
4115 CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4123 if test "$GCC" = yes; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4131 if ${ac_cv_prog_cc_c89+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 ac_cv_prog_cc_c89=no
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142 struct buf { int x; };
4143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144 static char *e (p, i)
4150 static char *f (char * (*g) (char **, int), char **p, ...)
4155 s = g (p, va_arg (v,int));
4160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4174 int test (int i, double x);
4175 struct s1 {int (*f) (int a);};
4176 struct s2 {int (*f) (double a);};
4177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4195 rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4198 rm -f conftest.$ac_ext
4203 case "x$ac_cv_prog_cc_c89" in
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206 $as_echo "none needed" >&6; } ;;
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 $as_echo "unsupported" >&6; } ;;
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4215 if test "x$ac_cv_prog_cc_c89" != xno; then :
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 if test "$GCC" = yes; then
4226 RDYNAMIC="-rdynamic"
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4235 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4236 # On Suns, sometimes $CPP names a directory.
4237 if test -n "$CPP" && test -d "$CPP"; then
4240 if test -z "$CPP"; then
4241 if ${ac_cv_prog_CPP+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 # Double quotes because CPP needs to be expanded
4245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4248 for ac_c_preproc_warn_flag in '' yes
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error" is here to catch this case.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4259 # include <limits.h>
4261 # include <assert.h>
4265 if ac_fn_c_try_cpp "$LINENO"; then :
4268 # Broken: fails on valid input.
4271 rm -f conftest.err conftest.i conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether nonexistent headers
4274 # can be detected and how.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <ac_nonexistent.h>
4279 if ac_fn_c_try_cpp "$LINENO"; then :
4280 # Broken: success on invalid input.
4283 # Passes both tests.
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291 rm -f conftest.i conftest.err conftest.$ac_ext
4292 if $ac_preproc_ok; then :
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4305 $as_echo "$CPP" >&6; }
4307 for ac_c_preproc_warn_flag in '' yes
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4318 # include <limits.h>
4320 # include <assert.h>
4324 if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: fails on valid input.
4330 rm -f conftest.err conftest.i conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <ac_nonexistent.h>
4338 if ac_fn_c_try_cpp "$LINENO"; then :
4339 # Broken: success on invalid input.
4342 # Passes both tests.
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.i conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then :
4354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4357 See \`config.log' for more details" "$LINENO" 5; }
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4367 $as_echo_n "checking for additional special compiler flags... " >&6; }
4368 if test "$GCC" = yes
4371 alpha) addcflags="-mieee" ;;
4374 if test "x$addcflags" != x
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4377 $as_echo "$addcflags" >&6; }
4378 CFLAGS="$addcflags $CFLAGS"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4381 $as_echo "(none)" >&6; }
4387 # Check whether --with-root-prefix was given.
4388 if test "${with_root_prefix+set}" = set; then :
4389 withval=$with_root_prefix; root_prefix=$withval
4393 # Check whether --enable-maintainer-mode was given.
4394 if test "${enable_maintainer_mode+set}" = set; then :
4395 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4399 $as_echo "Disabling maintainer mode" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4403 $as_echo "Enabling maintainer mode" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4409 $as_echo "Disabling maintainer mode by default" >&6; }
4414 # Check whether --enable-symlink-install was given.
4415 if test "${enable_symlink_install+set}" = set; then :
4416 enableval=$enable_symlink_install; if test "$enableval" = "no"
4418 LINK_INSTALL_FLAGS=-f
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4420 $as_echo "Disabling symlinks for install" >&6; }
4422 LINK_INSTALL_FLAGS=-sf
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4424 $as_echo "Enabling symlinks for install" >&6; }
4428 LINK_INSTALL_FLAGS=-f
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4430 $as_echo "Disabling symlinks for install by default" >&6; }
4435 relative_symlink_defined=
4436 # Check whether --enable-relative-symlinks was given.
4437 if test "${enable_relative_symlinks+set}" = set; then :
4438 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4441 relative_symlink_defined=yes
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4443 $as_echo "Disabling relative symlinks for install" >&6; }
4445 SYMLINK_RELATIVE=--relative
4446 relative_symlink_defined=yes
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4448 $as_echo "Enabling relative symlinks for install" >&6; }
4452 # Check whether --enable-symlink-relative-symlinks was given.
4453 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4454 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4456 SYMLINK_RELATIVE=yes
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4458 $as_echo "Disabling relative symlinks for install" >&6; }
4460 SYMLINK_RELATIVE=--relative
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4462 $as_echo "Enabling relative symlinks for install" >&6; }
4466 if test -z "$relative_symlink_defined"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4470 $as_echo "Disabling relative symlinks for install by default" >&6; }
4476 # Check whether --enable-symlink-build was given.
4477 if test "${enable_symlink_build+set}" = set; then :
4478 enableval=$enable_symlink_build; if test "$enableval" = "no"
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4482 $as_echo "Disabling symlinks for build" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4486 $as_echo "Enabling symlinks for build" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4492 $as_echo "Disabling symlinks for build by default" >&6; }
4497 # Check whether --enable-verbose-makecmds was given.
4498 if test "${enable_verbose_makecmds+set}" = set; then :
4499 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4502 $as_echo "Disabling verbose make commands" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4508 $as_echo "Enabling verbose make commands" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4516 $as_echo "Disabling verbose make commands" >&6; }
4526 # Check whether --enable-compression was given.
4527 if test "${enable_compression+set}" = set; then :
4528 enableval=$enable_compression; if test "$enableval" = "no"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4531 $as_echo "Disabling compression support" >&6; }
4534 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4537 $as_echo "Enabling compression support" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4539 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4544 $as_echo "Disabling compression support by default" >&6; }
4549 # Check whether --enable-htree was given.
4550 if test "${enable_htree+set}" = set; then :
4551 enableval=$enable_htree; if test "$enableval" = "no"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4555 $as_echo "Disabling htree directory support" >&6; }
4558 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4561 $as_echo "Enabling 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 by default" >&5
4569 $as_echo "Enabling htree directory support by default" >&6; }
4574 E2_PKG_CONFIG_STATIC=--static
4577 # Check whether --enable-elf-shlibs was given.
4578 if test "${enable_elf_shlibs+set}" = set; then :
4579 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4582 MAKEFILE_ELF=/dev/null
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4584 $as_echo "Disabling ELF shared libraries" >&6; }
4586 E2_PKG_CONFIG_STATIC=
4588 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4591 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4597 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4599 $as_echo "Enabling ELF shared libraries" >&6; }
4603 MAKEFILE_ELF=/dev/null
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4606 $as_echo "Disabling ELF shared libraries by default" >&6; }
4612 # Check whether --enable-bsd-shlibs was given.
4613 if test "${enable_bsd_shlibs+set}" = set; then :
4614 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4617 MAKEFILE_BSDLIB=/dev/null
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4619 $as_echo "Disabling BSD shared libraries" >&6; }
4621 E2_PKG_CONFIG_STATIC=
4623 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4627 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4632 $as_echo "Enabling BSD shared libraries" >&6; }
4636 MAKEFILE_BSDLIB=/dev/null
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4639 $as_echo "Disabling BSD shared libraries by default" >&6; }
4645 # Check whether --enable-profile was given.
4646 if test "${enable_profile+set}" = set; then :
4647 enableval=$enable_profile; if test "$enableval" = "no"
4650 MAKEFILE_PROFILE=/dev/null
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4652 $as_echo "Disabling profiling libraries" >&6; }
4655 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4656 PROFILED_LIB_EXT=_p.a
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4658 $as_echo "Building profiling libraries" >&6; }
4663 MAKEFILE_PROFILE=/dev/null
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4665 $as_echo "Disabling profiling libraries by default" >&6; }
4671 # Check whether --enable-checker was given.
4672 if test "${enable_checker+set}" = set; then :
4673 enableval=$enable_checker; if test "$enableval" = "no"
4676 MAKEFILE_CHECKER=/dev/null
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4678 $as_echo "Disabling checker libraries" >&6; }
4681 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4683 $as_echo "Building checker libraries" >&6; }
4688 MAKEFILE_CHECKER=/dev/null
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4690 $as_echo "Disabling checker libraries by default" >&6; }
4701 # Check whether --enable-jbd-debug was given.
4702 if test "${enable_jbd_debug+set}" = set; then :
4703 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4706 $as_echo "Disabling journal debugging" >&6; }
4709 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4712 $as_echo "Enabling journal debugging" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4717 $as_echo "Disabling journal debugging by default" >&6; }
4721 # Check whether --enable-blkid-debug was given.
4722 if test "${enable_blkid_debug+set}" = set; then :
4723 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4726 $as_echo "Disabling blkid debugging" >&6; }
4729 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4732 $as_echo "Enabling blkid debugging" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4737 $as_echo "Disabling blkid debugging by default" >&6; }
4741 # Check whether --enable-testio-debug was given.
4742 if test "${enable_testio_debug+set}" = set; then :
4743 enableval=$enable_testio_debug;
4744 if test "$enableval" = "no"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4747 $as_echo "Disabling testio debugging" >&6; }
4751 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4754 $as_echo "Enabling testio debugging" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4759 $as_echo "Enabling testio debugging by default" >&6; }
4760 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4769 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4776 $as_echo_n "(cached) " >&6
4780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4802 if test -n "$PKG_CONFIG"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4804 $as_echo "$PKG_CONFIG" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_path_PKG_CONFIG"; then
4813 ac_pt_PKG_CONFIG=$PKG_CONFIG
4814 # Extract the first word of "pkg-config", so it can be a program name with args.
4815 set dummy pkg-config; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 case $ac_pt_PKG_CONFIG in
4823 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4845 if test -n "$ac_pt_PKG_CONFIG"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4847 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4853 if test "x$ac_pt_PKG_CONFIG" = x; then
4856 case $cross_compiling:$ac_tool_warned in
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4862 PKG_CONFIG=$ac_pt_PKG_CONFIG
4865 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4869 if test -n "$PKG_CONFIG"; then
4870 _pkg_min_version=0.9.0
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4872 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4873 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875 $as_echo "yes" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4888 DEPPROFILED_LIBUUID=
4890 # Check whether --enable-libuuid was given.
4891 if test "${enable_libuuid+set}" = set; then :
4892 enableval=$enable_libuuid; if test "$enableval" = "no"
4894 if test -z "$PKG_CONFIG"; then
4895 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4899 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4900 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 ac_check_lib_save_LIBS=$LIBS
4904 LIBS="-luuid $LIBUUID $LIBS"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4908 /* Override any GCC internal prototype to avoid an error.
4909 Use char because int might match the return type of a GCC
4910 builtin and then its argument prototype would still apply. */
4914 char uuid_generate ();
4918 return uuid_generate ();
4923 if ac_fn_c_try_link "$LINENO"; then :
4924 ac_cv_lib_uuid_uuid_generate=yes
4926 ac_cv_lib_uuid_uuid_generate=no
4928 rm -f core conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4933 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4934 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4935 LIBUUID=`$PKG_CONFIG --libs uuid`;
4936 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4938 as_fn_error $? "external uuid library not found" "$LINENO" 5
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4943 $as_echo "Disabling private uuid library" >&6; }
4945 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4947 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4948 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4949 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4950 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4952 $as_echo "Enabling private uuid library" >&6; }
4956 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4958 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4959 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4960 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4961 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4963 $as_echo "Enabling private uuid library by default" >&6; }
4976 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4977 if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4979 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4983 $as_echo_n "(cached) " >&6
4987 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5009 if test -n "$PKG_CONFIG"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5011 $as_echo "$PKG_CONFIG" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5019 if test -z "$ac_cv_path_PKG_CONFIG"; then
5020 ac_pt_PKG_CONFIG=$PKG_CONFIG
5021 # Extract the first word of "pkg-config", so it can be a program name with args.
5022 set dummy pkg-config; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 case $ac_pt_PKG_CONFIG in
5030 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5052 if test -n "$ac_pt_PKG_CONFIG"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5054 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5060 if test "x$ac_pt_PKG_CONFIG" = x; then
5063 case $cross_compiling:$ac_tool_warned in
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067 ac_tool_warned=yes ;;
5069 PKG_CONFIG=$ac_pt_PKG_CONFIG
5072 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5076 if test -n "$PKG_CONFIG"; then
5077 _pkg_min_version=0.9.0
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5079 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5080 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082 $as_echo "yes" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5095 DEPPROFILED_LIBBLKID=
5098 # Check whether --enable-libblkid was given.
5099 if test "${enable_libblkid+set}" = set; then :
5100 enableval=$enable_libblkid; if test "$enableval" = "no"
5102 if test -z "$PKG_CONFIG"; then
5103 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5107 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5108 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 ac_check_lib_save_LIBS=$LIBS
5112 LIBS="-lblkid $LIBBLKID $LIBS"
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 /* Override any GCC internal prototype to avoid an error.
5117 Use char because int might match the return type of a GCC
5118 builtin and then its argument prototype would still apply. */
5122 char blkid_get_cache ();
5126 return blkid_get_cache ();
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 ac_cv_lib_blkid_blkid_get_cache=yes
5134 ac_cv_lib_blkid_blkid_get_cache=no
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5141 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5142 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5143 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5144 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5146 as_fn_error $? "external blkid library not found" "$LINENO" 5
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5151 $as_echo "Disabling private blkid library" >&6; }
5153 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5154 DEPLIBBLKID=$LIBBLKID
5155 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5156 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5157 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5158 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5159 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5162 $as_echo "Enabling private blkid library" >&6; }
5166 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5167 DEPLIBBLKID=$LIBBLKID
5168 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5169 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5170 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5171 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5172 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5175 $as_echo "Enabling private blkid library by default" >&6; }
5188 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5195 $as_echo_n "(cached) " >&6
5199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5221 if test -n "$PKG_CONFIG"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5223 $as_echo "$PKG_CONFIG" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5231 if test -z "$ac_cv_path_PKG_CONFIG"; then
5232 ac_pt_PKG_CONFIG=$PKG_CONFIG
5233 # Extract the first word of "pkg-config", so it can be a program name with args.
5234 set dummy pkg-config; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5238 $as_echo_n "(cached) " >&6
5240 case $ac_pt_PKG_CONFIG in
5242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5264 if test -n "$ac_pt_PKG_CONFIG"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5266 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5272 if test "x$ac_pt_PKG_CONFIG" = x; then
5275 case $cross_compiling:$ac_tool_warned in
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5281 PKG_CONFIG=$ac_pt_PKG_CONFIG
5284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5288 if test -n "$PKG_CONFIG"; then
5289 _pkg_min_version=0.9.0
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5291 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5292 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294 $as_echo "yes" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5303 # Check whether --enable-quota was given.
5304 if test "${enable_quota+set}" = set; then :
5305 enableval=$enable_quota; if test "$enableval" = "no"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5308 $as_echo "Disabling quota support" >&6; }
5310 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5313 $as_echo "Enabling quota support" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5318 $as_echo "Disabling quota support by default" >&6; }
5322 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5323 DEPLIBQUOTA=$LIBQUOTA
5324 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5325 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5326 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5327 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5335 # Check whether --enable-debugfs was given.
5336 if test "${enable_debugfs+set}" = set; then :
5337 enableval=$enable_debugfs; if test "$enableval" = "no"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5340 $as_echo "Disabling debugfs support" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5345 $as_echo "Enabling debugfs support" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5350 $as_echo "Enabling debugfs support by default" >&6; }
5356 # Check whether --enable-imager was given.
5357 if test "${enable_imager+set}" = set; then :
5358 enableval=$enable_imager; if test "$enableval" = "no"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5361 $as_echo "Disabling e2image support" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5366 $as_echo "Enabling e2image support" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5371 $as_echo "Enabling e2image support by default" >&6; }
5377 # Check whether --enable-resizer was given.
5378 if test "${enable_resizer+set}" = set; then :
5379 enableval=$enable_resizer; if test "$enableval" = "no"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5382 $as_echo "Disabling e2resize support" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5387 $as_echo "Enabling e2resize support" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5392 $as_echo "Enabling e2resize support by default" >&6; }
5398 # Check whether --enable-defrag was given.
5399 if test "${enable_defrag+set}" = set; then :
5400 enableval=$enable_defrag; if test "$enableval" = "no"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5403 $as_echo "Disabling e4defrag support" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5408 $as_echo "Enabling e4defrag support" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5413 $as_echo "Enabling e4defrag support by default" >&6; }
5419 # Check whether --enable-fsck was given.
5420 if test "${enable_fsck+set}" = set; then :
5421 enableval=$enable_fsck; if test "$enableval" = "no"
5423 FSCK_PROG='' FSCK_MAN=''
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5425 $as_echo "Not building fsck wrapper" >&6; }
5427 FSCK_PROG=fsck FSCK_MAN=fsck.8
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5429 $as_echo "Building fsck wrapper" >&6; }
5435 FSCK_PROG='' FSCK_MAN=''
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5437 $as_echo "Not building fsck wrapper by default" >&6; }
5440 FSCK_PROG=fsck FSCK_MAN=fsck.8
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5442 $as_echo "Building fsck wrapper by default" >&6; }
5449 # Check whether --enable-e2initrd-helper was given.
5450 if test "${enable_e2initrd_helper+set}" = set; then :
5451 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5453 E2INITRD_PROG='' E2INITRD_MAN=''
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5455 $as_echo "Not building e2initrd helper" >&6; }
5457 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5459 $as_echo "Building e2initrd helper" >&6; }
5463 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5465 $as_echo "Building e2initrd helper by default" >&6; }
5471 # Check whether --enable-tls was given.
5472 if test "${enable_tls+set}" = set; then :
5473 enableval=$enable_tls; if test "$enableval" = "no"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5477 $as_echo "Disabling thread local support" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5481 $as_echo "Enabling thread local support" >&6; }
5485 if test -n "$WITH_DIET_LIBC"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5489 $as_echo "Diet libc does not support thread local support" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5493 $as_echo "Try using thread local support by default" >&6; }
5498 if test "$try_tls" = "yes"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5502 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5503 if ${ac_cv_tls+:} false; then :
5504 $as_echo_n "(cached) " >&6
5507 ax_tls_keywords="__thread __declspec(thread) none"
5508 for ax_tls_keyword in $ax_tls_keywords; do
5509 case $ax_tls_keyword in
5510 none) ac_cv_tls=none ; break ;;
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5517 static $ax_tls_keyword int bar;
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_tls=$ax_tls_keyword ; break
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 if test "$ac_cv_tls" != "none"; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define TLS $ac_cv_tls
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5549 $as_echo "$ac_cv_tls" >&6; }
5553 # Check whether --enable-uuidd was given.
5554 if test "${enable_uuidd+set}" = set; then :
5555 enableval=$enable_uuidd; if test "$enableval" = "no"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5558 $as_echo "Not building uuidd" >&6; }
5561 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5565 $as_echo "Building uuidd" >&6; }
5569 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5573 $as_echo "Building uuidd by default" >&6; }
5578 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5580 GETTEXT_PACKAGE=e2fsprogs
5582 VERSION="$E2FSPROGS_VERSION"
5585 cat >>confdefs.h <<_ACEOF
5586 #define PACKAGE "$PACKAGE"
5590 cat >>confdefs.h <<_ACEOF
5591 #define VERSION "$VERSION"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5599 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5601 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5602 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 cat >conftest.make <<\_ACEOF
5608 @echo '@@@%%%=$(MAKE)=@@@%%%'
5610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5611 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5613 eval ac_cv_prog_make_${ac_make}_set=yes;;
5615 eval ac_cv_prog_make_${ac_make}_set=no;;
5619 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 SET_MAKE="MAKE=${MAKE-make}"
5629 # Find a good install program. We prefer a C program (faster),
5630 # so one script is as good as another. But avoid the broken or
5631 # incompatible versions:
5632 # SysV /etc/install, /usr/sbin/install
5633 # SunOS /usr/etc/install
5634 # IRIX /sbin/install
5636 # AmigaOS /C/install, which installs bootblocks on floppy discs
5637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5640 # OS/2's system install, which has a completely different semantic
5641 # ./install, which can be erroneously created by make from ./install.sh.
5642 # Reject install programs that cannot install multiple files.
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5644 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5645 if test -z "$INSTALL"; then
5646 if ${ac_cv_path_install+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 # Account for people who put trailing slashes in PATH elements.
5655 case $as_dir/ in #((
5656 ./ | .// | /[cC]/* | \
5657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5658 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5661 # OSF1 and SCO ODT 3.0 have their own names for install.
5662 # Don't use installbsd from OSF since it installs stuff as root
5664 for ac_prog in ginstall scoinst install; do
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5667 if test $ac_prog = install &&
5668 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5669 # AIX install. It has an incompatible calling convention.
5671 elif test $ac_prog = install &&
5672 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5673 # program-specific install script used by HP pwplus--don't use.
5676 rm -rf conftest.one conftest.two conftest.dir
5677 echo one > conftest.one
5678 echo two > conftest.two
5680 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5681 test -s conftest.one && test -s conftest.two &&
5682 test -s conftest.dir/conftest.one &&
5683 test -s conftest.dir/conftest.two
5685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5698 rm -rf conftest.one conftest.two conftest.dir
5701 if test "${ac_cv_path_install+set}" = set; then
5702 INSTALL=$ac_cv_path_install
5704 # As a last resort, use the slow shell script. Don't cache a
5705 # value for INSTALL within a source directory, because that will
5706 # break other packages using the cache if that directory is
5707 # removed, or if the value is a relative name.
5708 INSTALL=$ac_install_sh
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5712 $as_echo "$INSTALL" >&6; }
5714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5715 # It thinks the first close brace ends the variable substitution.
5716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5724 if test -n "$ac_aux_dir"; then
5725 case "$ac_aux_dir" in
5726 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5727 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5730 if test -z "$MKINSTALLDIRS"; then
5731 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5737 $as_echo_n "checking whether NLS is requested... " >&6; }
5738 # Check whether --enable-nls was given.
5739 if test "${enable_nls+set}" = set; then :
5740 enableval=$enable_nls; USE_NLS=$enableval
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5746 $as_echo "$USE_NLS" >&6; }
5753 # Prepare PATH_SEPARATOR.
5754 # The user is always right.
5755 if test "${PATH_SEPARATOR+set}" != set; then
5756 echo "#! /bin/sh" >conf$$.sh
5757 echo "exit 0" >>conf$$.sh
5759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5767 # Find out how to test for executable files. Don't use a zero-byte file,
5768 # as systems may use methods other than mode bits to determine executability.
5769 cat >conf$$.file <<_ASEOF
5773 chmod +x conf$$.file
5774 if test -x conf$$.file >/dev/null 2>&1; then
5775 ac_executable_p="test -x"
5777 ac_executable_p="test -f"
5781 # Extract the first word of "msgfmt", so it can be a program name with args.
5782 set dummy msgfmt; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_path_MSGFMT+:} false; then :
5786 $as_echo_n "(cached) " >&6
5790 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5793 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5794 for ac_dir in $PATH; do
5796 test -z "$ac_dir" && ac_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5799 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5800 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5801 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5808 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5812 MSGFMT="$ac_cv_path_MSGFMT"
5813 if test "$MSGFMT" != ":"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5815 $as_echo "$MSGFMT" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5821 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5822 set dummy gmsgfmt; 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_GMSGFMT+:} false; then :
5826 $as_echo_n "(cached) " >&6
5830 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5852 GMSGFMT=$ac_cv_path_GMSGFMT
5853 if test -n "$GMSGFMT"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5855 $as_echo "$GMSGFMT" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5864 # Prepare PATH_SEPARATOR.
5865 # The user is always right.
5866 if test "${PATH_SEPARATOR+set}" != set; then
5867 echo "#! /bin/sh" >conf$$.sh
5868 echo "exit 0" >>conf$$.sh
5870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5878 # Find out how to test for executable files. Don't use a zero-byte file,
5879 # as systems may use methods other than mode bits to determine executability.
5880 cat >conf$$.file <<_ASEOF
5884 chmod +x conf$$.file
5885 if test -x conf$$.file >/dev/null 2>&1; then
5886 ac_executable_p="test -x"
5888 ac_executable_p="test -f"
5892 # Extract the first word of "xgettext", so it can be a program name with args.
5893 set dummy xgettext; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_path_XGETTEXT+:} false; then :
5897 $as_echo_n "(cached) " >&6
5901 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5907 test -z "$ac_dir" && ac_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5910 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5911 (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
5912 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5919 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5923 XGETTEXT="$ac_cv_path_XGETTEXT"
5924 if test "$XGETTEXT" != ":"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5926 $as_echo "$XGETTEXT" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5935 # Prepare PATH_SEPARATOR.
5936 # The user is always right.
5937 if test "${PATH_SEPARATOR+set}" != set; then
5938 echo "#! /bin/sh" >conf$$.sh
5939 echo "exit 0" >>conf$$.sh
5941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5949 # Find out how to test for executable files. Don't use a zero-byte file,
5950 # as systems may use methods other than mode bits to determine executability.
5951 cat >conf$$.file <<_ASEOF
5955 chmod +x conf$$.file
5956 if test -x conf$$.file >/dev/null 2>&1; then
5957 ac_executable_p="test -x"
5959 ac_executable_p="test -f"
5963 # Extract the first word of "msgmerge", so it can be a program name with args.
5964 set dummy msgmerge; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_path_MSGMERGE+:} false; then :
5968 $as_echo_n "(cached) " >&6
5972 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5976 for ac_dir in $PATH; do
5978 test -z "$ac_dir" && ac_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5981 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5982 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5989 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5993 MSGMERGE="$ac_cv_path_MSGMERGE"
5994 if test "$MSGMERGE" != ":"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5996 $as_echo "$MSGMERGE" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6003 if test "$GMSGFMT" != ":"; then
6004 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6005 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6008 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6010 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6015 if test "$XGETTEXT" != ":"; then
6016 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6017 (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
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6021 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6027 ac_config_commands="$ac_config_commands default-1"
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_RANLIB+:} false; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$RANLIB"; then
6039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 RANLIB=$ac_cv_prog_RANLIB
6059 if test -n "$RANLIB"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6061 $as_echo "$RANLIB" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_RANLIB"; then
6070 ac_ct_RANLIB=$RANLIB
6071 # Extract the first word of "ranlib", so it can be a program name with args.
6072 set dummy 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_ac_ct_RANLIB+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_RANLIB"; then
6079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6099 if test -n "$ac_ct_RANLIB"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6101 $as_echo "$ac_ct_RANLIB" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_RANLIB" = x; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6116 RANLIB=$ac_ct_RANLIB
6119 RANLIB="$ac_cv_prog_RANLIB"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6124 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6125 if ${ac_cv_lib_cposix_strerror+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 ac_check_lib_save_LIBS=$LIBS
6129 LIBS="-lcposix $LIBS"
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 /* Override any GCC internal prototype to avoid an error.
6134 Use char because int might match the return type of a GCC
6135 builtin and then its argument prototype would still apply. */
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 ac_cv_lib_cposix_strerror=yes
6151 ac_cv_lib_cposix_strerror=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6155 LIBS=$ac_check_lib_save_LIBS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6158 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6159 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6160 LIBS="$LIBS -lcposix"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6167 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6168 if ${ac_cv_path_GREP+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 if test -z "$GREP"; then
6172 ac_path_GREP_found=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 test -z "$as_dir" && as_dir=.
6179 for ac_prog in grep ggrep; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6182 as_fn_executable_p "$ac_path_GREP" || continue
6183 # Check for GNU ac_path_GREP and select it if it is found.
6184 # Check for GNU $ac_path_GREP
6185 case `"$ac_path_GREP" --version 2>&1` in
6187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6190 $as_echo_n 0123456789 >"conftest.in"
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo 'GREP' >> "conftest.nl"
6197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_GREP="$ac_path_GREP"
6203 ac_path_GREP_max=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 $ac_path_GREP_found && break 3
6216 if test -z "$ac_cv_path_GREP"; then
6217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 ac_cv_path_GREP=$GREP
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6225 $as_echo "$ac_cv_path_GREP" >&6; }
6226 GREP="$ac_cv_path_GREP"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6230 $as_echo_n "checking for egrep... " >&6; }
6231 if ${ac_cv_path_EGREP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6235 then ac_cv_path_EGREP="$GREP -E"
6237 if test -z "$EGREP"; then
6238 ac_path_EGREP_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in egrep; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6248 as_fn_executable_p "$ac_path_EGREP" || continue
6249 # Check for GNU ac_path_EGREP and select it if it is found.
6250 # Check for GNU $ac_path_EGREP
6251 case `"$ac_path_EGREP" --version 2>&1` in
6253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6256 $as_echo_n 0123456789 >"conftest.in"
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo 'EGREP' >> "conftest.nl"
6263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_EGREP="$ac_path_EGREP"
6269 ac_path_EGREP_max=$ac_count
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6277 $ac_path_EGREP_found && break 3
6282 if test -z "$ac_cv_path_EGREP"; then
6283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6286 ac_cv_path_EGREP=$EGREP
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6292 $as_echo "$ac_cv_path_EGREP" >&6; }
6293 EGREP="$ac_cv_path_EGREP"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6297 $as_echo_n "checking for ANSI C header files... " >&6; }
6298 if ${ac_cv_header_stdc+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 ac_cv_header_stdc=yes
6319 ac_cv_header_stdc=no
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 if test $ac_cv_header_stdc = yes; then
6324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6331 $EGREP "memchr" >/dev/null 2>&1; then :
6334 ac_cv_header_stdc=no
6340 if test $ac_cv_header_stdc = yes; then
6341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "free" >/dev/null 2>&1; then :
6351 ac_cv_header_stdc=no
6357 if test $ac_cv_header_stdc = yes; then
6358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6359 if test "$cross_compiling" = yes; then :
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6366 #if ((' ' & 0x0FF) == 0x020)
6367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6370 # define ISLOWER(c) \
6371 (('a' <= (c) && (c) <= 'i') \
6372 || ('j' <= (c) && (c) <= 'r') \
6373 || ('s' <= (c) && (c) <= 'z'))
6374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6382 for (i = 0; i < 256; i++)
6383 if (XOR (islower (i), ISLOWER (i))
6384 || toupper (i) != TOUPPER (i))
6389 if ac_fn_c_try_run "$LINENO"; then :
6392 ac_cv_header_stdc=no
6394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6395 conftest.$ac_objext conftest.beam conftest.$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6401 $as_echo "$ac_cv_header_stdc" >&6; }
6402 if test $ac_cv_header_stdc = yes; then
6404 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6410 if ${ac_cv_c_const+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6421 /* Ultrix mips cc rejects this sort of thing. */
6422 typedef int charset[2];
6423 const charset cs = { 0, 0 };
6424 /* SunOS 4.1.1 cc rejects this. */
6425 char const *const *pcpcc;
6427 /* NEC SVR4.0.2 mips cc rejects this. */
6428 struct point {int x, y;};
6429 static struct point const zero = {0,0};
6430 /* AIX XL C 1.02.0.0 rejects this.
6431 It does not let you subtract one const X* pointer from another in
6432 an arm of an if-expression whose if-part is not a constant
6434 const char *g = "string";
6435 pcpcc = &g + (g ? g-g : 0);
6436 /* HPUX 7.0 cc rejects these. */
6438 ppc = (char**) pcpcc;
6439 pcpcc = (char const *const *) ppc;
6440 { /* SCO 3.2v4 cc rejects this sort of thing. */
6443 char const *s = 0 ? (char *) 0 : (char const *) 0;
6448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6450 const int *foo = &x[0];
6453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6454 typedef const int *iptr;
6458 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6460 struct s { int j; const int *ap[3]; } bx;
6461 struct s *b = &bx; b->j = 5;
6463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6467 return !cs[0] && !zero.x;
6474 if ac_fn_c_try_compile "$LINENO"; then :
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6482 $as_echo "$ac_cv_c_const" >&6; }
6483 if test $ac_cv_c_const = no; then
6485 $as_echo "#define const /**/" >>confdefs.h
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6491 $as_echo_n "checking for signed... " >&6; }
6492 if ${bh_cv_c_signed+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6506 if ac_fn_c_try_compile "$LINENO"; then :
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6514 $as_echo "$bh_cv_c_signed" >&6; }
6515 if test $bh_cv_c_signed = no; then
6517 $as_echo "#define signed /**/" >>confdefs.h
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6522 $as_echo_n "checking for inline... " >&6; }
6523 if ${ac_cv_c_inline+:} false; then :
6524 $as_echo_n "(cached) " >&6
6527 for ac_kw in inline __inline__ __inline; do
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6532 static $ac_kw foo_t static_foo () {return 0; }
6533 $ac_kw foo_t foo () {return 0; }
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 ac_cv_c_inline=$ac_kw
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 test "$ac_cv_c_inline" != no && break
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6546 $as_echo "$ac_cv_c_inline" >&6; }
6548 case $ac_cv_c_inline in
6551 case $ac_cv_c_inline in
6553 *) ac_val=$ac_cv_c_inline;;
6555 cat >>confdefs.h <<_ACEOF
6557 #define inline $ac_val
6563 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6565 inttypes.h stdint.h unistd.h
6567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6571 cat >>confdefs.h <<_ACEOF
6572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6581 if test "x$ac_cv_type_off_t" = xyes; then :
6585 cat >>confdefs.h <<_ACEOF
6586 #define off_t long int
6591 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6592 if test "x$ac_cv_type_size_t" = xyes; then :
6596 cat >>confdefs.h <<_ACEOF
6597 #define size_t unsigned int
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6604 $as_echo_n "checking for long long... " >&6; }
6605 if ${ac_cv_type_long_long+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 long long ll = 1LL; int i = 63;
6614 long long llmax = (long long) -1;
6615 return ll << i | ll >> i | llmax / ll | llmax % ll;
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_type_long_long=yes
6623 ac_cv_type_long_long=no
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6629 $as_echo "$ac_cv_type_long_long" >&6; }
6630 if test $ac_cv_type_long_long = yes; then
6632 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6638 $as_echo_n "checking for long double... " >&6; }
6639 if ${gt_cv_c_long_double+:} false; then :
6640 $as_echo_n "(cached) " >&6
6642 if test "$GCC" = yes; then
6643 gt_cv_c_long_double=yes
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6648 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6649 long double foo = 0.0;
6650 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6651 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 gt_cv_c_long_double=yes
6664 gt_cv_c_long_double=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6670 $as_echo "$gt_cv_c_long_double" >&6; }
6671 if test $gt_cv_c_long_double = yes; then
6673 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6679 $as_echo_n "checking for wchar_t... " >&6; }
6680 if ${gt_cv_c_wchar_t+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 wchar_t foo = (wchar_t)'\0';
6695 if ac_fn_c_try_compile "$LINENO"; then :
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6703 $as_echo "$gt_cv_c_wchar_t" >&6; }
6704 if test $gt_cv_c_wchar_t = yes; then
6706 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6712 $as_echo_n "checking for wint_t... " >&6; }
6713 if ${gt_cv_c_wint_t+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6719 wint_t foo = (wchar_t)'\0';
6728 if ac_fn_c_try_compile "$LINENO"; then :
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6736 $as_echo "$gt_cv_c_wint_t" >&6; }
6737 if test $gt_cv_c_wint_t = yes; then
6739 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6745 $as_echo_n "checking for inttypes.h... " >&6; }
6746 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 #include <inttypes.h>
6756 uintmax_t i = (uintmax_t) -1;
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 jm_ac_cv_header_inttypes_h=yes
6764 jm_ac_cv_header_inttypes_h=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6769 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6770 if test $jm_ac_cv_header_inttypes_h = yes; then
6772 cat >>confdefs.h <<_ACEOF
6773 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6780 $as_echo_n "checking for stdint.h... " >&6; }
6781 if ${jm_ac_cv_header_stdint_h+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6791 uintmax_t i = (uintmax_t) -1;
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 jm_ac_cv_header_stdint_h=yes
6799 jm_ac_cv_header_stdint_h=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6804 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6805 if test $jm_ac_cv_header_stdint_h = yes; then
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STDINT_H_WITH_UINTMAX 1
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6817 $as_echo_n "checking for intmax_t... " >&6; }
6818 if ${gt_cv_c_intmax_t+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6826 #if HAVE_STDINT_H_WITH_UINTMAX
6829 #if HAVE_INTTYPES_H_WITH_UINTMAX
6830 #include <inttypes.h>
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 gt_cv_c_intmax_t=yes
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6849 $as_echo "$gt_cv_c_intmax_t" >&6; }
6850 if test $gt_cv_c_intmax_t = yes; then
6852 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6859 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6860 if ${gt_cv_func_printf_posix+:} false; then :
6861 $as_echo_n "(cached) " >&6
6864 if test "$cross_compiling" = yes; then :
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6869 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875 $EGREP "notposix" >/dev/null 2>&1; then :
6876 gt_cv_func_printf_posix="guessing no"
6878 gt_cv_func_printf_posix="guessing yes"
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6889 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6890 dollar expansion (possibly an autoconf bug). */
6891 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6892 static char buf[100];
6895 sprintf (buf, format, 33, 55);
6896 return (strcmp (buf, "55 33") != 0);
6899 if ac_fn_c_try_run "$LINENO"; then :
6900 gt_cv_func_printf_posix=yes
6902 gt_cv_func_printf_posix=no
6904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6905 conftest.$ac_objext conftest.beam conftest.$ac_ext
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6911 $as_echo "$gt_cv_func_printf_posix" >&6; }
6912 case $gt_cv_func_printf_posix in
6915 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6920 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6921 # for constant arguments. Useless!
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6923 $as_echo_n "checking for working alloca.h... " >&6; }
6924 if ${ac_cv_working_alloca_h+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6933 char *p = (char *) alloca (2 * sizeof (int));
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 ac_cv_working_alloca_h=yes
6942 ac_cv_working_alloca_h=no
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6948 $as_echo "$ac_cv_working_alloca_h" >&6; }
6949 if test $ac_cv_working_alloca_h = yes; then
6951 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6956 $as_echo_n "checking for alloca... " >&6; }
6957 if ${ac_cv_func_alloca_works+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6963 # define alloca __builtin_alloca
6966 # include <malloc.h>
6967 # define alloca _alloca
6969 # ifdef HAVE_ALLOCA_H
6970 # include <alloca.h>
6975 # ifndef alloca /* predefined by HP cc +Olibcalls */
6976 void *alloca (size_t);
6986 char *p = (char *) alloca (1);
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 ac_cv_func_alloca_works=yes
6995 ac_cv_func_alloca_works=no
6997 rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7001 $as_echo "$ac_cv_func_alloca_works" >&6; }
7003 if test $ac_cv_func_alloca_works = yes; then
7005 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7008 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7009 # that cause trouble. Some versions do not even contain alloca or
7010 # contain a buggy version. If you still want to use their alloca,
7011 # use ar to extract alloca.o from them instead of compiling alloca.c.
7013 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7015 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7019 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7020 if ${ac_cv_os_cray+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #if defined CRAY && ! defined CRAY2
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033 $EGREP "webecray" >/dev/null 2>&1; then :
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7042 $as_echo "$ac_cv_os_cray" >&6; }
7043 if test $ac_cv_os_cray = yes; then
7044 for ac_func in _getb67 GETB67 getb67; do
7045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7049 cat >>confdefs.h <<_ACEOF
7050 #define CRAY_STACKSEG_END $ac_func
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7060 $as_echo_n "checking stack direction for C alloca... " >&6; }
7061 if ${ac_cv_c_stack_direction+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 if test "$cross_compiling" = yes; then :
7065 ac_cv_c_stack_direction=0
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 $ac_includes_default
7071 find_stack_direction (int *addr, int depth)
7076 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7077 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7082 main (int argc, char **argv)
7084 return find_stack_direction (0, argc + !argv + 20) < 0;
7087 if ac_fn_c_try_run "$LINENO"; then :
7088 ac_cv_c_stack_direction=1
7090 ac_cv_c_stack_direction=-1
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7093 conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7098 $as_echo "$ac_cv_c_stack_direction" >&6; }
7099 cat >>confdefs.h <<_ACEOF
7100 #define STACK_DIRECTION $ac_cv_c_stack_direction
7109 for ac_header in $ac_header_list
7111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7115 cat >>confdefs.h <<_ACEOF
7116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 for ac_func in getpagesize
7132 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7133 if test "x$ac_cv_func_getpagesize" = xyes; then :
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_GETPAGESIZE 1
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7142 $as_echo_n "checking for working mmap... " >&6; }
7143 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 if test "$cross_compiling" = yes; then :
7147 ac_cv_func_mmap_fixed_mapped=no
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 $ac_includes_default
7152 /* malloc might have been renamed as rpl_malloc. */
7155 /* Thanks to Mike Haertel and Jim Avera for this test.
7156 Here is a matrix of mmap possibilities:
7157 mmap private not fixed
7158 mmap private fixed at somewhere currently unmapped
7159 mmap private fixed at somewhere already mapped
7160 mmap shared not fixed
7161 mmap shared fixed at somewhere currently unmapped
7162 mmap shared fixed at somewhere already mapped
7163 For private mappings, we should verify that changes cannot be read()
7164 back from the file, nor mmap's back from the file at a different
7165 address. (There have been systems where private was not correctly
7166 implemented like the infamous i386 svr4.0, and systems where the
7167 VM page cache was not coherent with the file system buffer cache
7168 like early versions of FreeBSD and possibly contemporary NetBSD.)
7169 For shared mappings, we should conversely verify that changes get
7170 propagated back to all the places they're supposed to be.
7172 Grep wants private fixed already mapped.
7173 The main things grep needs to know about mmap are:
7174 * does it exist and is it safe to write into the mmap'd area
7175 * how to use it (BSD variants) */
7178 #include <sys/mman.h>
7180 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7184 /* This mess was copied from the GNU getpagesize.h. */
7185 #ifndef HAVE_GETPAGESIZE
7186 # ifdef _SC_PAGESIZE
7187 # define getpagesize() sysconf(_SC_PAGESIZE)
7188 # else /* no _SC_PAGESIZE */
7189 # ifdef HAVE_SYS_PARAM_H
7190 # include <sys/param.h>
7191 # ifdef EXEC_PAGESIZE
7192 # define getpagesize() EXEC_PAGESIZE
7193 # else /* no EXEC_PAGESIZE */
7195 # define getpagesize() NBPG * CLSIZE
7198 # endif /* no CLSIZE */
7199 # else /* no NBPG */
7201 # define getpagesize() NBPC
7202 # else /* no NBPC */
7204 # define getpagesize() PAGESIZE
7205 # endif /* PAGESIZE */
7206 # endif /* no NBPC */
7207 # endif /* no NBPG */
7208 # endif /* no EXEC_PAGESIZE */
7209 # else /* no HAVE_SYS_PARAM_H */
7210 # define getpagesize() 8192 /* punt totally */
7211 # endif /* no HAVE_SYS_PARAM_H */
7212 # endif /* no _SC_PAGESIZE */
7214 #endif /* no HAVE_GETPAGESIZE */
7219 char *data, *data2, *data3;
7224 pagesize = getpagesize ();
7226 /* First, make a file with some known garbage in it. */
7227 data = (char *) malloc (pagesize);
7230 for (i = 0; i < pagesize; ++i)
7231 *(data + i) = rand ();
7233 fd = creat ("conftest.mmap", 0600);
7236 if (write (fd, data, pagesize) != pagesize)
7240 /* Next, check that the tail of a page is zero-filled. File must have
7241 non-zero length, otherwise we risk SIGBUS for entire page. */
7242 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7246 if (write (fd2, cdata2, 1) != 1)
7248 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7249 if (data2 == MAP_FAILED)
7251 for (i = 0; i < pagesize; ++i)
7255 if (munmap (data2, pagesize))
7258 /* Next, try to mmap the file at a fixed address which already has
7259 something else allocated at it. If we can, also make sure that
7260 we see the same garbage. */
7261 fd = open ("conftest.mmap", O_RDWR);
7264 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7265 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7267 for (i = 0; i < pagesize; ++i)
7268 if (*(data + i) != *(data2 + i))
7271 /* Finally, make sure that changes to the mapped area do not
7272 percolate back to the file as seen by read(). (This is a bug on
7273 some variants of i386 svr4.0.) */
7274 for (i = 0; i < pagesize; ++i)
7275 *(data2 + i) = *(data2 + i) + 1;
7276 data3 = (char *) malloc (pagesize);
7279 if (read (fd, data3, pagesize) != pagesize)
7281 for (i = 0; i < pagesize; ++i)
7282 if (*(data + i) != *(data3 + i))
7288 if ac_fn_c_try_run "$LINENO"; then :
7289 ac_cv_func_mmap_fixed_mapped=yes
7291 ac_cv_func_mmap_fixed_mapped=no
7293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7294 conftest.$ac_objext conftest.beam conftest.$ac_ext
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7299 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7300 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7302 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7305 rm -f conftest.mmap conftest.txt
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7309 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7310 if ${ac_cv_gnu_library_2_1+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7316 #include <features.h>
7317 #ifdef __GNU_LIBRARY__
7318 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7326 ac_cv_gnu_library_2_1=yes
7328 ac_cv_gnu_library_2_1=no
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7336 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7338 GLIBC21="$ac_cv_gnu_library_2_1"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7344 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7345 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7346 $as_echo_n "(cached) " >&6
7349 if test "$cross_compiling" = yes; then :
7351 # Guess based on the CPU.
7353 alpha* | i3456786 | m68k | s390*)
7354 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7356 gt_cv_int_divbyzero_sigfpe="guessing no";;
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7368 sigfpe_handler (int sig)
7370 sigfpe_handler (sig) int sig;
7373 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7374 exit (sig != SIGFPE);
7384 signal (SIGFPE, sigfpe_handler);
7385 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7386 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7387 signal (SIGTRAP, sigfpe_handler);
7389 /* Linux/SPARC yields signal SIGILL. */
7390 #if defined (__sparc__) && defined (__linux__)
7391 signal (SIGILL, sigfpe_handler);
7400 if ac_fn_c_try_run "$LINENO"; then :
7401 gt_cv_int_divbyzero_sigfpe=yes
7403 gt_cv_int_divbyzero_sigfpe=no
7405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7406 conftest.$ac_objext conftest.beam conftest.$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7412 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7413 case "$gt_cv_int_divbyzero_sigfpe" in
7418 cat >>confdefs.h <<_ACEOF
7419 #define INTDIV0_RAISES_SIGFPE $value
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7425 $as_echo_n "checking for unsigned long long... " >&6; }
7426 if ${ac_cv_type_unsigned_long_long+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 unsigned long long ull = 1ULL; int i = 63;
7435 unsigned long long ullmax = (unsigned long long) -1;
7436 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7441 if ac_fn_c_try_link "$LINENO"; then :
7442 ac_cv_type_unsigned_long_long=yes
7444 ac_cv_type_unsigned_long_long=no
7446 rm -f core conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7450 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7451 if test $ac_cv_type_unsigned_long_long = yes; then
7453 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7460 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7462 test $ac_cv_type_unsigned_long_long = yes \
7463 && ac_type='unsigned long long' \
7464 || ac_type='unsigned long'
7466 cat >>confdefs.h <<_ACEOF
7467 #define uintmax_t $ac_type
7472 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7478 $as_echo_n "checking for inttypes.h... " >&6; }
7479 if ${gt_cv_header_inttypes_h+:} false; then :
7480 $as_echo_n "(cached) " >&6
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485 #include <sys/types.h>
7486 #include <inttypes.h>
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 gt_cv_header_inttypes_h=yes
7498 gt_cv_header_inttypes_h=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7504 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7505 if test $gt_cv_header_inttypes_h = yes; then
7507 cat >>confdefs.h <<_ACEOF
7508 #define HAVE_INTTYPES_H 1
7515 if test $gt_cv_header_inttypes_h = yes; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7517 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7518 if ${gt_cv_inttypes_pri_broken+:} false; then :
7519 $as_echo_n "(cached) " >&6
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <inttypes.h>
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 gt_cv_inttypes_pri_broken=no
7540 gt_cv_inttypes_pri_broken=yes
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7546 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7548 if test "$gt_cv_inttypes_pri_broken" = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define PRI_MACROS_BROKEN 1
7557 for ac_header in stdint.h
7559 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7560 if test "x$ac_cv_header_stdint_h" = xyes; then :
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_STDINT_H 1
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7570 $as_echo_n "checking for SIZE_MAX... " >&6; }
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "Found it" >/dev/null 2>&1; then :
7590 if test -z "$result"; then
7591 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7598 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7605 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7612 if test "$fits_in_uint" = 1; then
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7617 extern unsigned long foo;
7627 if ac_fn_c_try_compile "$LINENO"; then :
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 if test -z "$result"; then
7633 if test "$fits_in_uint" = 1; then
7634 result="$res_hi$res_lo"U
7636 result="$res_hi$res_lo"UL
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7643 $as_echo "$result" >&6; }
7644 if test "$result" != yes; then
7646 cat >>confdefs.h <<_ACEOF
7647 #define SIZE_MAX $result
7654 for ac_header in stdint.h
7656 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7657 if test "x$ac_cv_header_stdint_h" = xyes; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_STDINT_H 1
7668 if test "X$prefix" = "XNONE"; then
7669 acl_final_prefix="$ac_default_prefix"
7671 acl_final_prefix="$prefix"
7673 if test "X$exec_prefix" = "XNONE"; then
7674 acl_final_exec_prefix='${prefix}'
7676 acl_final_exec_prefix="$exec_prefix"
7678 acl_save_prefix="$prefix"
7679 prefix="$acl_final_prefix"
7680 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7681 prefix="$acl_save_prefix"
7684 # Check whether --with-gnu-ld was given.
7685 if test "${with_gnu_ld+set}" = set; then :
7686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7691 # Prepare PATH_SEPARATOR.
7692 # The user is always right.
7693 if test "${PATH_SEPARATOR+set}" != set; then
7694 echo "#! /bin/sh" >conf$$.sh
7695 echo "exit 0" >>conf$$.sh
7697 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7705 if test "$GCC" = yes; then
7706 # Check if gcc -print-prog-name=ld gives a path.
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7708 $as_echo_n "checking for ld used by GCC... " >&6; }
7711 # gcc leaves a trailing carriage return which upsets mingw
7712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7717 # Accept absolute paths.
7718 [\\/]* | [A-Za-z]:[\\/]*)
7719 re_direlt='/[^/][^/]*/\.\./'
7720 # Canonicalize the path of ld
7721 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7723 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7725 test -z "$LD" && LD="$ac_prog"
7728 # If it fails, then pretend we aren't using GCC.
7732 # If it is relative, then search for the first ld in PATH.
7736 elif test "$with_gnu_ld" = yes; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7738 $as_echo_n "checking for GNU ld... " >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7741 $as_echo_n "checking for non-GNU ld... " >&6; }
7743 if ${acl_cv_path_LD+:} false; then :
7744 $as_echo_n "(cached) " >&6
7746 if test -z "$LD"; then
7747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7748 for ac_dir in $PATH; do
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7751 acl_cv_path_LD="$ac_dir/$ac_prog"
7752 # Check to see if the program is GNU ld. I'd rather use --version,
7753 # but apparently some GNU ld's only accept -v.
7754 # Break only if it was the GNU/non-GNU ld that we prefer.
7755 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7756 *GNU* | *'with BFD'*)
7757 test "$with_gnu_ld" != no && break ;;
7759 test "$with_gnu_ld" != yes && break ;;
7765 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7769 LD="$acl_cv_path_LD"
7770 if test -n "$LD"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7772 $as_echo "$LD" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7777 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7779 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7780 if ${acl_cv_prog_gnu_ld+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7784 case `$LD -v 2>&1 </dev/null` in
7785 *GNU* | *'with BFD'*)
7786 acl_cv_prog_gnu_ld=yes ;;
7788 acl_cv_prog_gnu_ld=no ;;
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7792 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7793 with_gnu_ld=$acl_cv_prog_gnu_ld
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7798 $as_echo_n "checking for shared library run path origin... " >&6; }
7799 if ${acl_cv_rpath+:} false; then :
7800 $as_echo_n "(cached) " >&6
7803 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7804 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7811 $as_echo "$acl_cv_rpath" >&6; }
7813 libext="$acl_cv_libext"
7814 shlibext="$acl_cv_shlibext"
7815 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7816 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7817 hardcode_direct="$acl_cv_hardcode_direct"
7818 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7819 # Check whether --enable-rpath was given.
7820 if test "${enable_rpath+set}" = set; then :
7821 enableval=$enable_rpath; :
7835 acl_save_prefix="$prefix"
7836 prefix="$acl_final_prefix"
7837 acl_save_exec_prefix="$exec_prefix"
7838 exec_prefix="$acl_final_exec_prefix"
7840 eval additional_includedir=\"$includedir\"
7841 eval additional_libdir=\"$libdir\"
7843 exec_prefix="$acl_save_exec_prefix"
7844 prefix="$acl_save_prefix"
7847 # Check whether --with-libiconv-prefix was given.
7848 if test "${with_libiconv_prefix+set}" = set; then :
7849 withval=$with_libiconv_prefix;
7850 if test "X$withval" = "Xno"; then
7853 if test "X$withval" = "X"; then
7855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
7860 eval additional_includedir=\"$includedir\"
7861 eval additional_libdir=\"$libdir\"
7863 exec_prefix="$acl_save_exec_prefix"
7864 prefix="$acl_save_prefix"
7867 additional_includedir="$withval/include"
7868 additional_libdir="$withval/lib"
7879 names_already_handled=
7880 names_next_round='iconv '
7881 while test -n "$names_next_round"; do
7882 names_this_round="$names_next_round"
7884 for name in $names_this_round; do
7886 for n in $names_already_handled; do
7887 if test "$n" = "$name"; then
7892 if test -z "$already_handled"; then
7893 names_already_handled="$names_already_handled $name"
7894 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7895 eval value=\"\$HAVE_LIB$uppername\"
7896 if test -n "$value"; then
7897 if test "$value" = yes; then
7898 eval value=\"\$LIB$uppername\"
7899 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7900 eval value=\"\$LTLIB$uppername\"
7901 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7910 if test $use_additional = yes; then
7911 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7912 found_dir="$additional_libdir"
7913 found_so="$additional_libdir/lib$name.$shlibext"
7914 if test -f "$additional_libdir/lib$name.la"; then
7915 found_la="$additional_libdir/lib$name.la"
7918 if test -f "$additional_libdir/lib$name.$libext"; then
7919 found_dir="$additional_libdir"
7920 found_a="$additional_libdir/lib$name.$libext"
7921 if test -f "$additional_libdir/lib$name.la"; then
7922 found_la="$additional_libdir/lib$name.la"
7927 if test "X$found_dir" = "X"; then
7928 for x in $LDFLAGS $LTLIBICONV; do
7930 acl_save_prefix="$prefix"
7931 prefix="$acl_final_prefix"
7932 acl_save_exec_prefix="$exec_prefix"
7933 exec_prefix="$acl_final_exec_prefix"
7935 exec_prefix="$acl_save_exec_prefix"
7936 prefix="$acl_save_prefix"
7940 dir=`echo "X$x" | sed -e 's/^X-L//'`
7941 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7943 found_so="$dir/lib$name.$shlibext"
7944 if test -f "$dir/lib$name.la"; then
7945 found_la="$dir/lib$name.la"
7948 if test -f "$dir/lib$name.$libext"; then
7950 found_a="$dir/lib$name.$libext"
7951 if test -f "$dir/lib$name.la"; then
7952 found_la="$dir/lib$name.la"
7958 if test "X$found_dir" != "X"; then
7963 if test "X$found_dir" != "X"; then
7964 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7965 if test "X$found_so" != "X"; then
7966 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7970 for x in $ltrpathdirs; do
7971 if test "X$x" = "X$found_dir"; then
7976 if test -z "$haveit"; then
7977 ltrpathdirs="$ltrpathdirs $found_dir"
7979 if test "$hardcode_direct" = yes; then
7980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7982 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7985 for x in $rpathdirs; do
7986 if test "X$x" = "X$found_dir"; then
7991 if test -z "$haveit"; then
7992 rpathdirs="$rpathdirs $found_dir"
7996 for x in $LDFLAGS $LIBICONV; do
7998 acl_save_prefix="$prefix"
7999 prefix="$acl_final_prefix"
8000 acl_save_exec_prefix="$exec_prefix"
8001 exec_prefix="$acl_final_exec_prefix"
8003 exec_prefix="$acl_save_exec_prefix"
8004 prefix="$acl_save_prefix"
8006 if test "X$x" = "X-L$found_dir"; then
8011 if test -z "$haveit"; then
8012 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8014 if test "$hardcode_minus_L" != no; then
8015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8023 if test "X$found_a" != "X"; then
8024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8026 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8029 additional_includedir=
8030 case "$found_dir" in
8032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8033 additional_includedir="$basedir/include"
8036 if test "X$additional_includedir" != "X"; then
8037 if test "X$additional_includedir" != "X/usr/include"; then
8039 if test "X$additional_includedir" = "X/usr/local/include"; then
8040 if test -n "$GCC"; then
8042 linux*) haveit=yes;;
8046 if test -z "$haveit"; then
8047 for x in $CPPFLAGS $INCICONV; do
8049 acl_save_prefix="$prefix"
8050 prefix="$acl_final_prefix"
8051 acl_save_exec_prefix="$exec_prefix"
8052 exec_prefix="$acl_final_exec_prefix"
8054 exec_prefix="$acl_save_exec_prefix"
8055 prefix="$acl_save_prefix"
8057 if test "X$x" = "X-I$additional_includedir"; then
8062 if test -z "$haveit"; then
8063 if test -d "$additional_includedir"; then
8064 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8070 if test -n "$found_la"; then
8071 save_libdir="$libdir"
8073 */* | *\\*) . "$found_la" ;;
8074 *) . "./$found_la" ;;
8076 libdir="$save_libdir"
8077 for dep in $dependency_libs; do
8080 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8081 if test "X$additional_libdir" != "X/usr/lib"; then
8083 if test "X$additional_libdir" = "X/usr/local/lib"; then
8084 if test -n "$GCC"; then
8086 linux*) haveit=yes;;
8090 if test -z "$haveit"; then
8092 for x in $LDFLAGS $LIBICONV; do
8094 acl_save_prefix="$prefix"
8095 prefix="$acl_final_prefix"
8096 acl_save_exec_prefix="$exec_prefix"
8097 exec_prefix="$acl_final_exec_prefix"
8099 exec_prefix="$acl_save_exec_prefix"
8100 prefix="$acl_save_prefix"
8102 if test "X$x" = "X-L$additional_libdir"; then
8107 if test -z "$haveit"; then
8108 if test -d "$additional_libdir"; then
8109 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8113 for x in $LDFLAGS $LTLIBICONV; do
8115 acl_save_prefix="$prefix"
8116 prefix="$acl_final_prefix"
8117 acl_save_exec_prefix="$exec_prefix"
8118 exec_prefix="$acl_final_exec_prefix"
8120 exec_prefix="$acl_save_exec_prefix"
8121 prefix="$acl_save_prefix"
8123 if test "X$x" = "X-L$additional_libdir"; then
8128 if test -z "$haveit"; then
8129 if test -d "$additional_libdir"; then
8130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8137 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8138 if test "$enable_rpath" != no; then
8140 for x in $rpathdirs; do
8141 if test "X$x" = "X$dir"; then
8146 if test -z "$haveit"; then
8147 rpathdirs="$rpathdirs $dir"
8150 for x in $ltrpathdirs; do
8151 if test "X$x" = "X$dir"; then
8156 if test -z "$haveit"; then
8157 ltrpathdirs="$ltrpathdirs $dir"
8162 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8168 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8169 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8175 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8182 if test "X$rpathdirs" != "X"; then
8183 if test -n "$hardcode_libdir_separator"; then
8185 for found_dir in $rpathdirs; do
8186 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8188 acl_save_libdir="$libdir"
8190 eval flag=\"$hardcode_libdir_flag_spec\"
8191 libdir="$acl_save_libdir"
8192 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8194 for found_dir in $rpathdirs; do
8195 acl_save_libdir="$libdir"
8197 eval flag=\"$hardcode_libdir_flag_spec\"
8198 libdir="$acl_save_libdir"
8199 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8203 if test "X$ltrpathdirs" != "X"; then
8204 for found_dir in $ltrpathdirs; do
8205 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8216 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8217 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8221 $as_echo "#define ptrdiff_t long" >>confdefs.h
8226 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8227 stdlib.h string.h unistd.h sys/param.h
8229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8232 cat >>confdefs.h <<_ACEOF
8233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8240 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8241 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8242 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8248 cat >>confdefs.h <<_ACEOF
8249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8258 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8259 if ${ac_cv_have_decl__snprintf+:} false; then :
8260 $as_echo_n "(cached) " >&6
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8270 char *p = (char *) _snprintf;
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 ac_cv_have_decl__snprintf=yes
8280 ac_cv_have_decl__snprintf=no
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8285 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8286 if test $ac_cv_have_decl__snprintf = yes; then
8292 cat >>confdefs.h <<_ACEOF
8293 #define HAVE_DECL__SNPRINTF $gt_value
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8299 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8300 if ${ac_cv_have_decl__snwprintf+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8311 char *p = (char *) _snwprintf;
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 ac_cv_have_decl__snwprintf=yes
8321 ac_cv_have_decl__snwprintf=no
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8326 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8327 if test $ac_cv_have_decl__snwprintf = yes; then
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_DECL__SNWPRINTF $gt_value
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8341 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8342 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8343 $as_echo_n "(cached) " >&6
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8352 #ifndef feof_unlocked
8353 char *p = (char *) feof_unlocked;
8360 if ac_fn_c_try_compile "$LINENO"; then :
8361 ac_cv_have_decl_feof_unlocked=yes
8363 ac_cv_have_decl_feof_unlocked=no
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8368 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8369 if test $ac_cv_have_decl_feof_unlocked = yes; then
8375 cat >>confdefs.h <<_ACEOF
8376 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8382 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8383 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8393 #ifndef fgets_unlocked
8394 char *p = (char *) fgets_unlocked;
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 ac_cv_have_decl_fgets_unlocked=yes
8404 ac_cv_have_decl_fgets_unlocked=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8409 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8410 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8416 cat >>confdefs.h <<_ACEOF
8417 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8423 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8424 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8434 #ifndef getc_unlocked
8435 char *p = (char *) getc_unlocked;
8442 if ac_fn_c_try_compile "$LINENO"; then :
8443 ac_cv_have_decl_getc_unlocked=yes
8445 ac_cv_have_decl_getc_unlocked=no
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8450 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8451 if test $ac_cv_have_decl_getc_unlocked = yes; then
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8463 case $gt_cv_func_printf_posix in
8464 *yes) HAVE_POSIX_PRINTF=1 ;;
8465 *) HAVE_POSIX_PRINTF=0 ;;
8468 if test "$ac_cv_func_asprintf" = yes; then
8474 if test "$ac_cv_func_snprintf" = yes; then
8480 if test "$ac_cv_func_wprintf" = yes; then
8492 am_save_CPPFLAGS="$CPPFLAGS"
8494 for element in $INCICONV; do
8496 for x in $CPPFLAGS; do
8498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 acl_save_exec_prefix="$exec_prefix"
8501 exec_prefix="$acl_final_exec_prefix"
8503 exec_prefix="$acl_save_exec_prefix"
8504 prefix="$acl_save_prefix"
8506 if test "X$x" = "X$element"; then
8511 if test -z "$haveit"; then
8512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8518 $as_echo_n "checking for iconv... " >&6; }
8519 if ${am_cv_func_iconv+:} false; then :
8520 $as_echo_n "(cached) " >&6
8523 am_cv_func_iconv="no, consider installing GNU libiconv"
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8532 iconv_t cd = iconv_open("","");
8533 iconv(cd,NULL,NULL,NULL,NULL);
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 am_cv_func_iconv=yes
8542 rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 if test "$am_cv_func_iconv" != yes; then
8545 am_save_LIBS="$LIBS"
8546 LIBS="$LIBS $LIBICONV"
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8554 iconv_t cd = iconv_open("","");
8555 iconv(cd,NULL,NULL,NULL,NULL);
8561 if ac_fn_c_try_link "$LINENO"; then :
8563 am_cv_func_iconv=yes
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS="$am_save_LIBS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8572 $as_echo "$am_cv_func_iconv" >&6; }
8573 if test "$am_cv_func_iconv" = yes; then
8575 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8578 if test "$am_cv_lib_iconv" = yes; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8580 $as_echo_n "checking how to link with libiconv... " >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8582 $as_echo "$LIBICONV" >&6; }
8584 CPPFLAGS="$am_save_CPPFLAGS"
8591 if test "$am_cv_func_iconv" = yes; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8593 $as_echo_n "checking for iconv declaration... " >&6; }
8594 if ${am_cv_proto_iconv+:} false; then :
8595 $as_echo_n "(cached) " >&6
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8607 #if defined(__STDC__) || defined(__cplusplus)
8608 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8621 if ac_fn_c_try_compile "$LINENO"; then :
8622 am_cv_proto_iconv_arg1=""
8624 am_cv_proto_iconv_arg1="const"
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 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);"
8630 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8632 }$am_cv_proto_iconv" >&5
8634 }$am_cv_proto_iconv" >&6; }
8636 cat >>confdefs.h <<_ACEOF
8637 #define ICONV_CONST $am_cv_proto_iconv_arg1
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8644 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8645 if ${am_cv_langinfo_codeset+:} false; then :
8646 $as_echo_n "(cached) " >&6
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <langinfo.h>
8654 char* cs = nl_langinfo(CODESET);
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 am_cv_langinfo_codeset=yes
8662 am_cv_langinfo_codeset=no
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8669 $as_echo "$am_cv_langinfo_codeset" >&6; }
8670 if test $am_cv_langinfo_codeset = yes; then
8672 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8676 if test $ac_cv_header_locale_h = yes; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8679 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8680 if ${am_cv_val_LC_MESSAGES+:} false; then :
8681 $as_echo_n "(cached) " >&6
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 am_cv_val_LC_MESSAGES=yes
8697 am_cv_val_LC_MESSAGES=no
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8703 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8704 if test $am_cv_val_LC_MESSAGES = yes; then
8706 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8712 for ac_prog in bison
8714 # Extract the first word of "$ac_prog", so it can be a program name with args.
8715 set dummy $ac_prog; ac_word=$2
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717 $as_echo_n "checking for $ac_word... " >&6; }
8718 if ${ac_cv_prog_INTLBISON+:} false; then :
8719 $as_echo_n "(cached) " >&6
8721 if test -n "$INTLBISON"; then
8722 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731 ac_cv_prog_INTLBISON="$ac_prog"
8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 INTLBISON=$ac_cv_prog_INTLBISON
8742 if test -n "$INTLBISON"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8744 $as_echo "$INTLBISON" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8751 test -n "$INTLBISON" && break
8754 if test -z "$INTLBISON"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8758 $as_echo_n "checking version of bison... " >&6; }
8759 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8760 case $ac_prog_version in
8761 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8762 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8763 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8764 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8767 $as_echo "$ac_prog_version" >&6; }
8769 if test $ac_verc_fail = yes; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8789 $as_echo_n "checking whether NLS is requested... " >&6; }
8790 # Check whether --enable-nls was given.
8791 if test "${enable_nls+set}" = set; then :
8792 enableval=$enable_nls; USE_NLS=$enableval
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8798 $as_echo "$USE_NLS" >&6; }
8803 BUILD_INCLUDED_LIBINTL=no
8804 USE_INCLUDED_LIBINTL=no
8810 if test "$USE_NLS" = "yes"; then
8811 gt_use_preinstalled_gnugettext=no
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8814 $as_echo_n "checking whether included gettext is requested... " >&6; }
8816 # Check whether --with-included-gettext was given.
8817 if test "${with_included_gettext+set}" = set; then :
8818 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8820 nls_cv_force_use_gnu_gettext=no
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8824 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8826 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8827 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8835 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8836 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <libintl.h>
8842 extern int _nl_msg_cat_cntr;
8843 extern int *_nl_domain_bindings;
8847 bindtextdomain ("", "");
8848 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8853 if ac_fn_c_try_link "$LINENO"; then :
8854 gt_cv_func_gnugettext1_libc=yes
8856 gt_cv_func_gnugettext1_libc=no
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8862 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8864 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8870 acl_save_prefix="$prefix"
8871 prefix="$acl_final_prefix"
8872 acl_save_exec_prefix="$exec_prefix"
8873 exec_prefix="$acl_final_exec_prefix"
8875 eval additional_includedir=\"$includedir\"
8876 eval additional_libdir=\"$libdir\"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8882 # Check whether --with-libintl-prefix was given.
8883 if test "${with_libintl_prefix+set}" = set; then :
8884 withval=$with_libintl_prefix;
8885 if test "X$withval" = "Xno"; then
8888 if test "X$withval" = "X"; then
8890 acl_save_prefix="$prefix"
8891 prefix="$acl_final_prefix"
8892 acl_save_exec_prefix="$exec_prefix"
8893 exec_prefix="$acl_final_exec_prefix"
8895 eval additional_includedir=\"$includedir\"
8896 eval additional_libdir=\"$libdir\"
8898 exec_prefix="$acl_save_exec_prefix"
8899 prefix="$acl_save_prefix"
8902 additional_includedir="$withval/include"
8903 additional_libdir="$withval/lib"
8914 names_already_handled=
8915 names_next_round='intl '
8916 while test -n "$names_next_round"; do
8917 names_this_round="$names_next_round"
8919 for name in $names_this_round; do
8921 for n in $names_already_handled; do
8922 if test "$n" = "$name"; then
8927 if test -z "$already_handled"; then
8928 names_already_handled="$names_already_handled $name"
8929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8930 eval value=\"\$HAVE_LIB$uppername\"
8931 if test -n "$value"; then
8932 if test "$value" = yes; then
8933 eval value=\"\$LIB$uppername\"
8934 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8935 eval value=\"\$LTLIB$uppername\"
8936 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8945 if test $use_additional = yes; then
8946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8947 found_dir="$additional_libdir"
8948 found_so="$additional_libdir/lib$name.$shlibext"
8949 if test -f "$additional_libdir/lib$name.la"; then
8950 found_la="$additional_libdir/lib$name.la"
8953 if test -f "$additional_libdir/lib$name.$libext"; then
8954 found_dir="$additional_libdir"
8955 found_a="$additional_libdir/lib$name.$libext"
8956 if test -f "$additional_libdir/lib$name.la"; then
8957 found_la="$additional_libdir/lib$name.la"
8962 if test "X$found_dir" = "X"; then
8963 for x in $LDFLAGS $LTLIBINTL; do
8965 acl_save_prefix="$prefix"
8966 prefix="$acl_final_prefix"
8967 acl_save_exec_prefix="$exec_prefix"
8968 exec_prefix="$acl_final_exec_prefix"
8970 exec_prefix="$acl_save_exec_prefix"
8971 prefix="$acl_save_prefix"
8975 dir=`echo "X$x" | sed -e 's/^X-L//'`
8976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8978 found_so="$dir/lib$name.$shlibext"
8979 if test -f "$dir/lib$name.la"; then
8980 found_la="$dir/lib$name.la"
8983 if test -f "$dir/lib$name.$libext"; then
8985 found_a="$dir/lib$name.$libext"
8986 if test -f "$dir/lib$name.la"; then
8987 found_la="$dir/lib$name.la"
8993 if test "X$found_dir" != "X"; then
8998 if test "X$found_dir" != "X"; then
8999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9000 if test "X$found_so" != "X"; then
9001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9005 for x in $ltrpathdirs; do
9006 if test "X$x" = "X$found_dir"; then
9011 if test -z "$haveit"; then
9012 ltrpathdirs="$ltrpathdirs $found_dir"
9014 if test "$hardcode_direct" = yes; then
9015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9020 for x in $rpathdirs; do
9021 if test "X$x" = "X$found_dir"; then
9026 if test -z "$haveit"; then
9027 rpathdirs="$rpathdirs $found_dir"
9031 for x in $LDFLAGS $LIBINTL; do
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9041 if test "X$x" = "X-L$found_dir"; then
9046 if test -z "$haveit"; then
9047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9049 if test "$hardcode_minus_L" != no; then
9050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9052 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9058 if test "X$found_a" != "X"; then
9059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9064 additional_includedir=
9065 case "$found_dir" in
9067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9068 additional_includedir="$basedir/include"
9071 if test "X$additional_includedir" != "X"; then
9072 if test "X$additional_includedir" != "X/usr/include"; then
9074 if test "X$additional_includedir" = "X/usr/local/include"; then
9075 if test -n "$GCC"; then
9077 linux*) haveit=yes;;
9081 if test -z "$haveit"; then
9082 for x in $CPPFLAGS $INCINTL; do
9084 acl_save_prefix="$prefix"
9085 prefix="$acl_final_prefix"
9086 acl_save_exec_prefix="$exec_prefix"
9087 exec_prefix="$acl_final_exec_prefix"
9089 exec_prefix="$acl_save_exec_prefix"
9090 prefix="$acl_save_prefix"
9092 if test "X$x" = "X-I$additional_includedir"; then
9097 if test -z "$haveit"; then
9098 if test -d "$additional_includedir"; then
9099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9105 if test -n "$found_la"; then
9106 save_libdir="$libdir"
9108 */* | *\\*) . "$found_la" ;;
9109 *) . "./$found_la" ;;
9111 libdir="$save_libdir"
9112 for dep in $dependency_libs; do
9115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9116 if test "X$additional_libdir" != "X/usr/lib"; then
9118 if test "X$additional_libdir" = "X/usr/local/lib"; then
9119 if test -n "$GCC"; then
9121 linux*) haveit=yes;;
9125 if test -z "$haveit"; then
9127 for x in $LDFLAGS $LIBINTL; do
9129 acl_save_prefix="$prefix"
9130 prefix="$acl_final_prefix"
9131 acl_save_exec_prefix="$exec_prefix"
9132 exec_prefix="$acl_final_exec_prefix"
9134 exec_prefix="$acl_save_exec_prefix"
9135 prefix="$acl_save_prefix"
9137 if test "X$x" = "X-L$additional_libdir"; then
9142 if test -z "$haveit"; then
9143 if test -d "$additional_libdir"; then
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9148 for x in $LDFLAGS $LTLIBINTL; do
9150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9155 exec_prefix="$acl_save_exec_prefix"
9156 prefix="$acl_save_prefix"
9158 if test "X$x" = "X-L$additional_libdir"; then
9163 if test -z "$haveit"; then
9164 if test -d "$additional_libdir"; then
9165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9173 if test "$enable_rpath" != no; then
9175 for x in $rpathdirs; do
9176 if test "X$x" = "X$dir"; then
9181 if test -z "$haveit"; then
9182 rpathdirs="$rpathdirs $dir"
9185 for x in $ltrpathdirs; do
9186 if test "X$x" = "X$dir"; then
9191 if test -z "$haveit"; then
9192 ltrpathdirs="$ltrpathdirs $dir"
9197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9217 if test "X$rpathdirs" != "X"; then
9218 if test -n "$hardcode_libdir_separator"; then
9220 for found_dir in $rpathdirs; do
9221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9223 acl_save_libdir="$libdir"
9225 eval flag=\"$hardcode_libdir_flag_spec\"
9226 libdir="$acl_save_libdir"
9227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9229 for found_dir in $rpathdirs; do
9230 acl_save_libdir="$libdir"
9232 eval flag=\"$hardcode_libdir_flag_spec\"
9233 libdir="$acl_save_libdir"
9234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9238 if test "X$ltrpathdirs" != "X"; then
9239 for found_dir in $ltrpathdirs; do
9240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9245 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9246 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9247 $as_echo_n "(cached) " >&6
9249 gt_save_CPPFLAGS="$CPPFLAGS"
9250 CPPFLAGS="$CPPFLAGS $INCINTL"
9251 gt_save_LIBS="$LIBS"
9252 LIBS="$LIBS $LIBINTL"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <libintl.h>
9256 extern int _nl_msg_cat_cntr;
9261 const char *_nl_expand_alias ();
9265 bindtextdomain ("", "");
9266 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9271 if ac_fn_c_try_link "$LINENO"; then :
9272 gt_cv_func_gnugettext1_libintl=yes
9274 gt_cv_func_gnugettext1_libintl=no
9276 rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9278 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9279 LIBS="$LIBS $LIBICONV"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <libintl.h>
9283 extern int _nl_msg_cat_cntr;
9288 const char *_nl_expand_alias ();
9292 bindtextdomain ("", "");
9293 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 LIBINTL="$LIBINTL $LIBICONV"
9300 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9301 gt_cv_func_gnugettext1_libintl=yes
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9307 CPPFLAGS="$gt_save_CPPFLAGS"
9308 LIBS="$gt_save_LIBS"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9311 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9314 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9315 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9316 && test "$PACKAGE" != gettext-runtime \
9317 && test "$PACKAGE" != gettext-tools; }; then
9318 gt_use_preinstalled_gnugettext=yes
9326 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9327 nls_cv_use_gnu_gettext=yes
9331 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9332 BUILD_INCLUDED_LIBINTL=yes
9333 USE_INCLUDED_LIBINTL=yes
9334 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9335 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9336 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9339 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9340 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9345 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9346 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9348 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9356 $as_echo_n "checking whether to use NLS... " >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9358 $as_echo "$USE_NLS" >&6; }
9359 if test "$USE_NLS" = "yes"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9361 $as_echo_n "checking where the gettext function comes from... " >&6; }
9362 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9363 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9364 gt_source="external libintl"
9369 gt_source="included intl directory"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9372 $as_echo "$gt_source" >&6; }
9375 if test "$USE_NLS" = "yes"; then
9377 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9378 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9380 $as_echo_n "checking how to link with libintl... " >&6; }
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9382 $as_echo "$LIBINTL" >&6; }
9384 for element in $INCINTL; do
9386 for x in $CPPFLAGS; do
9388 acl_save_prefix="$prefix"
9389 prefix="$acl_final_prefix"
9390 acl_save_exec_prefix="$exec_prefix"
9391 exec_prefix="$acl_final_exec_prefix"
9393 exec_prefix="$acl_save_exec_prefix"
9394 prefix="$acl_save_prefix"
9396 if test "X$x" = "X$element"; then
9401 if test -z "$haveit"; then
9402 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9409 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9412 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9420 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9421 BUILD_INCLUDED_LIBINTL=yes
9429 nls_cv_header_libgt=
9440 if test "$USE_INCLUDED_LIBINTL" = yes; then
9441 INTLOBJS="\$(GETTOBJS)"
9445 INTL_LIBTOOL_SUFFIX_PREFIX=
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9458 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9460 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9461 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9462 $as_echo_n "(cached) " >&6
9464 cat >conftest.make <<\_ACEOF
9467 @echo '@@@%%%=$(MAKE)=@@@%%%'
9469 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9470 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9472 eval ac_cv_prog_make_${ac_make}_set=yes;;
9474 eval ac_cv_prog_make_${ac_make}_set=no;;
9478 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9480 $as_echo "yes" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 SET_MAKE="MAKE=${MAKE-make}"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9489 $as_echo_n "checking for GNU make... " >&6; }
9490 if ${_cv_gnu_make_command+:} false; then :
9491 $as_echo_n "(cached) " >&6
9493 _cv_gnu_make_command='' ;
9494 for a in "$MAKE" make gmake gnumake ; do
9495 if test -z "$a" ; then continue ; fi ;
9496 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9497 _cv_gnu_make_command=$a ;
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9504 $as_echo "$_cv_gnu_make_command" >&6; } ;
9505 if test "x$_cv_gnu_make_command" != "x" ; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9512 $as_echo "\"Not found\"" >&6; };
9517 # Extract the first word of "ln", so it can be a program name with args.
9518 set dummy ln; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_path_LN+:} false; then :
9522 $as_echo_n "(cached) " >&6
9526 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9549 if test -n "$LN"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9551 $as_echo "$LN" >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9559 $as_echo_n "checking whether ln -s works... " >&6; }
9561 if test "$LN_S" = "ln -s"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9563 $as_echo "yes" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9566 $as_echo "no, using $LN_S" >&6; }
9569 # Extract the first word of "mv", so it can be a program name with args.
9570 set dummy mv; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_path_MV+:} false; then :
9574 $as_echo_n "(cached) " >&6
9578 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9601 if test -n "$MV"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9603 $as_echo "$MV" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9610 # Extract the first word of "cp", so it can be a program name with args.
9611 set dummy cp; ac_word=$2
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613 $as_echo_n "checking for $ac_word... " >&6; }
9614 if ${ac_cv_path_CP+:} false; then :
9615 $as_echo_n "(cached) " >&6
9619 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 test -z "$as_dir" && as_dir=.
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9629 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9642 if test -n "$CP"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9644 $as_echo "$CP" >&6; }
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9651 # Extract the first word of "rm", so it can be a program name with args.
9652 set dummy rm; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_path_RM+:} false; then :
9656 $as_echo_n "(cached) " >&6
9660 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9683 if test -n "$RM"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9685 $as_echo "$RM" >&6; }
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9692 # Extract the first word of "chmod", so it can be a program name with args.
9693 set dummy chmod; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if ${ac_cv_path_CHMOD+:} false; then :
9697 $as_echo_n "(cached) " >&6
9701 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9723 CHMOD=$ac_cv_path_CHMOD
9724 if test -n "$CHMOD"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9726 $as_echo "$CHMOD" >&6; }
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9733 for ac_prog in gawk mawk nawk awk
9735 # Extract the first word of "$ac_prog", so it can be a program name with args.
9736 set dummy $ac_prog; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_AWK+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 if test -n "$AWK"; then
9743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_AWK="$ac_prog"
9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9763 if test -n "$AWK"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9765 $as_echo "$AWK" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 test -n "$AWK" && break
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9776 $as_echo_n "checking for egrep... " >&6; }
9777 if ${ac_cv_path_EGREP+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9781 then ac_cv_path_EGREP="$GREP -E"
9783 if test -z "$EGREP"; then
9784 ac_path_EGREP_found=false
9785 # Loop through the user's path and test for each of PROGNAME-LIST
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9790 test -z "$as_dir" && as_dir=.
9791 for ac_prog in egrep; do
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9794 as_fn_executable_p "$ac_path_EGREP" || continue
9795 # Check for GNU ac_path_EGREP and select it if it is found.
9796 # Check for GNU $ac_path_EGREP
9797 case `"$ac_path_EGREP" --version 2>&1` in
9799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9802 $as_echo_n 0123456789 >"conftest.in"
9805 cat "conftest.in" "conftest.in" >"conftest.tmp"
9806 mv "conftest.tmp" "conftest.in"
9807 cp "conftest.in" "conftest.nl"
9808 $as_echo 'EGREP' >> "conftest.nl"
9809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9811 as_fn_arith $ac_count + 1 && ac_count=$as_val
9812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9813 # Best one so far, save it but keep looking for a better one
9814 ac_cv_path_EGREP="$ac_path_EGREP"
9815 ac_path_EGREP_max=$ac_count
9817 # 10*(2^10) chars as input seems more than enough
9818 test $ac_count -gt 10 && break
9820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9823 $ac_path_EGREP_found && break 3
9828 if test -z "$ac_cv_path_EGREP"; then
9829 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9832 ac_cv_path_EGREP=$EGREP
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9838 $as_echo "$ac_cv_path_EGREP" >&6; }
9839 EGREP="$ac_cv_path_EGREP"
9842 # Extract the first word of "sed", so it can be a program name with args.
9843 set dummy sed; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_SED+:} false; then :
9847 $as_echo_n "(cached) " >&6
9851 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9874 if test -n "$SED"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9876 $as_echo "$SED" >&6; }
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9883 # Extract the first word of "perl", so it can be a program name with args.
9884 set dummy perl; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_path_PERL+:} false; then :
9888 $as_echo_n "(cached) " >&6
9892 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9914 PERL=$ac_cv_path_PERL
9915 if test -n "$PERL"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9917 $as_echo "$PERL" >&6; }
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 $as_echo "no" >&6; }
9924 # Extract the first word of "ldconfig", so it can be a program name with args.
9925 set dummy ldconfig; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if ${ac_cv_path_LDCONFIG+:} false; then :
9929 $as_echo_n "(cached) " >&6
9933 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9955 LDCONFIG=$ac_cv_path_LDCONFIG
9956 if test -n "$LDCONFIG"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9958 $as_echo "$LDCONFIG" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9965 if test -n "$ac_tool_prefix"; then
9966 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9967 set dummy ${ac_tool_prefix}ar; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_prog_AR+:} false; then :
9971 $as_echo_n "(cached) " >&6
9973 if test -n "$AR"; then
9974 ac_cv_prog_AR="$AR" # Let the user override the test.
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_prog_AR="${ac_tool_prefix}ar"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 if test -n "$AR"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9996 $as_echo "$AR" >&6; }
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10004 if test -z "$ac_cv_prog_AR"; then
10006 # Extract the first word of "ar", so it can be a program name with args.
10007 set dummy 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_ac_ct_AR+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 if test -n "$ac_ct_AR"; then
10014 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10034 if test -n "$ac_ct_AR"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10036 $as_echo "$ac_ct_AR" >&6; }
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10042 if test "x$ac_ct_AR" = x; then
10045 case $cross_compiling:$ac_tool_warned in
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10049 ac_tool_warned=yes ;;
10054 AR="$ac_cv_prog_AR"
10057 if test -n "$ac_tool_prefix"; then
10058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_prog_RANLIB+:} false; then :
10063 $as_echo_n "(cached) " >&6
10065 if test -n "$RANLIB"; then
10066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 RANLIB=$ac_cv_prog_RANLIB
10086 if test -n "$RANLIB"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10088 $as_echo "$RANLIB" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10096 if test -z "$ac_cv_prog_RANLIB"; then
10097 ac_ct_RANLIB=$RANLIB
10098 # Extract the first word of "ranlib", so it can be a program name with args.
10099 set dummy 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_ac_ct_RANLIB+:} false; then :
10103 $as_echo_n "(cached) " >&6
10105 if test -n "$ac_ct_RANLIB"; then
10106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10126 if test -n "$ac_ct_RANLIB"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10128 $as_echo "$ac_ct_RANLIB" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10134 if test "x$ac_ct_RANLIB" = x; then
10137 case $cross_compiling:$ac_tool_warned in
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10141 ac_tool_warned=yes ;;
10143 RANLIB=$ac_ct_RANLIB
10146 RANLIB="$ac_cv_prog_RANLIB"
10149 if test -n "$ac_tool_prefix"; then
10150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10151 set dummy ${ac_tool_prefix}strip; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if ${ac_cv_prog_STRIP+:} false; then :
10155 $as_echo_n "(cached) " >&6
10157 if test -n "$STRIP"; then
10158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 STRIP=$ac_cv_prog_STRIP
10178 if test -n "$STRIP"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10180 $as_echo "$STRIP" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 if test -z "$ac_cv_prog_STRIP"; then
10190 # Extract the first word of "strip", so it can be a program name with args.
10191 set dummy 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_ac_ct_STRIP+:} false; then :
10195 $as_echo_n "(cached) " >&6
10197 if test -n "$ac_ct_STRIP"; then
10198 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10218 if test -n "$ac_ct_STRIP"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10220 $as_echo "$ac_ct_STRIP" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10226 if test "x$ac_ct_STRIP" = x; then
10229 case $cross_compiling:$ac_tool_warned in
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10233 ac_tool_warned=yes ;;
10238 STRIP="$ac_cv_prog_STRIP"
10241 # Extract the first word of "makeinfo", so it can be a program name with args.
10242 set dummy makeinfo; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if ${ac_cv_prog_MAKEINFO+:} false; then :
10246 $as_echo_n "(cached) " >&6
10248 if test -n "$MAKEINFO"; then
10249 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258 ac_cv_prog_MAKEINFO="makeinfo"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 MAKEINFO=$ac_cv_prog_MAKEINFO
10269 if test -n "$MAKEINFO"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10271 $as_echo "$MAKEINFO" >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10278 if test "_$MAKEINFO" = "_"; then
10279 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10281 case "$MAKEINFO" in
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10284 *** Makeinfo is missing. Info documentation will not be built." >&5
10285 $as_echo "$as_me: WARNING:
10286 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10294 # See if we need a separate native compiler.
10295 if test $cross_compiling = no; then
10299 for ac_prog in gcc cc
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_prog_BUILD_CC+:} false; then :
10306 $as_echo_n "(cached) " >&6
10308 if test -n "$BUILD_CC"; then
10309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_BUILD_CC="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 BUILD_CC=$ac_cv_prog_BUILD_CC
10329 if test -n "$BUILD_CC"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10331 $as_echo "$BUILD_CC" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10338 test -n "$BUILD_CC" && break
10342 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 net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.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
10344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10345 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10347 cat >>confdefs.h <<_ACEOF
10348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10355 for ac_header in sys/disk.h sys/mount.h
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10359 #if HAVE_SYS_QUEUE_H
10360 #include <sys/queue.h>
10364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10365 cat >>confdefs.h <<_ACEOF
10366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10373 for ac_header in net/if.h
10375 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10376 #if HAVE_SYS_TYPES_H
10377 #include <sys/types.h>
10379 #if HAVE_SYS_SOCKET
10380 #include <sys/socket.h>
10384 if test "x$ac_cv_header_net_if_h" = xyes; then :
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE_NET_IF_H 1
10393 for ac_func in vprintf
10395 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10396 if test "x$ac_cv_func_vprintf" = xyes; then :
10397 cat >>confdefs.h <<_ACEOF
10398 #define HAVE_VPRINTF 1
10401 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10402 if test "x$ac_cv_func__doprnt" = xyes; then :
10404 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10412 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10414 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10416 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10420 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10422 if test "x$ac_cv_type_ssize_t" = xyes; then :
10424 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10428 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10430 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10432 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10436 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10437 #define _LARGEFILE64_SOURCE
10438 #include <unistd.h>
10440 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10442 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10446 # The cast to long int works around a bug in the HP C Compiler
10447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10449 # This bug is HP SR number 8606223364.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10451 $as_echo_n "checking size of short... " >&6; }
10452 if ${ac_cv_sizeof_short+:} false; then :
10453 $as_echo_n "(cached) " >&6
10455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10458 if test "$ac_cv_type_short" = yes; then
10459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10461 as_fn_error 77 "cannot compute sizeof (short)
10462 See \`config.log' for more details" "$LINENO" 5; }
10464 ac_cv_sizeof_short=0
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10470 $as_echo "$ac_cv_sizeof_short" >&6; }
10474 cat >>confdefs.h <<_ACEOF
10475 #define SIZEOF_SHORT $ac_cv_sizeof_short
10479 # The cast to long int works around a bug in the HP C Compiler
10480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10482 # This bug is HP SR number 8606223364.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10484 $as_echo_n "checking size of int... " >&6; }
10485 if ${ac_cv_sizeof_int+:} false; then :
10486 $as_echo_n "(cached) " >&6
10488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10491 if test "$ac_cv_type_int" = yes; then
10492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10494 as_fn_error 77 "cannot compute sizeof (int)
10495 See \`config.log' for more details" "$LINENO" 5; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10503 $as_echo "$ac_cv_sizeof_int" >&6; }
10507 cat >>confdefs.h <<_ACEOF
10508 #define SIZEOF_INT $ac_cv_sizeof_int
10512 # The cast to long int works around a bug in the HP C Compiler
10513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10515 # This bug is HP SR number 8606223364.
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10517 $as_echo_n "checking size of long... " >&6; }
10518 if ${ac_cv_sizeof_long+:} false; then :
10519 $as_echo_n "(cached) " >&6
10521 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10524 if test "$ac_cv_type_long" = yes; then
10525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10527 as_fn_error 77 "cannot compute sizeof (long)
10528 See \`config.log' for more details" "$LINENO" 5; }
10530 ac_cv_sizeof_long=0
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10536 $as_echo "$ac_cv_sizeof_long" >&6; }
10540 cat >>confdefs.h <<_ACEOF
10541 #define SIZEOF_LONG $ac_cv_sizeof_long
10545 # The cast to long int works around a bug in the HP C Compiler
10546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10548 # This bug is HP SR number 8606223364.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10550 $as_echo_n "checking size of long long... " >&6; }
10551 if ${ac_cv_sizeof_long_long+:} false; then :
10552 $as_echo_n "(cached) " >&6
10554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10557 if test "$ac_cv_type_long_long" = yes; then
10558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10560 as_fn_error 77 "cannot compute sizeof (long long)
10561 See \`config.log' for more details" "$LINENO" 5; }
10563 ac_cv_sizeof_long_long=0
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10569 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10573 cat >>confdefs.h <<_ACEOF
10574 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10578 # The cast to long int works around a bug in the HP C Compiler
10579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581 # This bug is HP SR number 8606223364.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10583 $as_echo_n "checking size of off_t... " >&6; }
10584 if ${ac_cv_sizeof_off_t+:} false; then :
10585 $as_echo_n "(cached) " >&6
10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10590 if test "$ac_cv_type_off_t" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 as_fn_error 77 "cannot compute sizeof (off_t)
10594 See \`config.log' for more details" "$LINENO" 5; }
10596 ac_cv_sizeof_off_t=0
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10602 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10611 SIZEOF_SHORT=$ac_cv_sizeof_short
10612 SIZEOF_INT=$ac_cv_sizeof_int
10613 SIZEOF_LONG=$ac_cv_sizeof_long
10614 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10615 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10622 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10623 if ${ac_cv_c_bigendian+:} false; then :
10624 $as_echo_n "(cached) " >&6
10626 ac_cv_c_bigendian=unknown
10627 # See if we're dealing with a universal compiler.
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 #ifndef __APPLE_CC__
10631 not a universal capable compiler
10636 if ac_fn_c_try_compile "$LINENO"; then :
10638 # Check for potential -arch flags. It is not universal unless
10639 # there are at least two -arch flags with different values.
10642 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10643 if test -n "$ac_prev"; then
10645 i?86 | x86_64 | ppc | ppc64)
10646 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10649 ac_cv_c_bigendian=universal
10655 elif test "x$ac_word" = "x-arch"; then
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if test $ac_cv_c_bigendian = unknown; then
10662 # See if sys/param.h defines the BYTE_ORDER macro.
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #include <sys/types.h>
10666 #include <sys/param.h>
10671 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10672 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10674 bogus endian macros
10681 if ac_fn_c_try_compile "$LINENO"; then :
10682 # It does; now see whether it defined to BIG_ENDIAN or not.
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10685 #include <sys/types.h>
10686 #include <sys/param.h>
10691 #if BYTE_ORDER != BIG_ENDIAN
10699 if ac_fn_c_try_compile "$LINENO"; then :
10700 ac_cv_c_bigendian=yes
10702 ac_cv_c_bigendian=no
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708 if test $ac_cv_c_bigendian = unknown; then
10709 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <limits.h>
10717 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10718 bogus endian macros
10725 if ac_fn_c_try_compile "$LINENO"; then :
10726 # It does; now see whether it defined to _BIG_ENDIAN or not.
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #include <limits.h>
10734 #ifndef _BIG_ENDIAN
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 ac_cv_c_bigendian=yes
10745 ac_cv_c_bigendian=no
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 if test $ac_cv_c_bigendian = unknown; then
10752 # Compile a test program.
10753 if test "$cross_compiling" = yes; then :
10754 # Try to guess by grepping values from an object file.
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 short int ascii_mm[] =
10758 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10759 short int ascii_ii[] =
10760 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10761 int use_ascii (int i) {
10762 return ascii_mm[i] + ascii_ii[i];
10764 short int ebcdic_ii[] =
10765 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10766 short int ebcdic_mm[] =
10767 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10768 int use_ebcdic (int i) {
10769 return ebcdic_mm[i] + ebcdic_ii[i];
10776 return use_ascii (foo) == use_ebcdic (foo);
10781 if ac_fn_c_try_compile "$LINENO"; then :
10782 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10783 ac_cv_c_bigendian=yes
10785 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10786 if test "$ac_cv_c_bigendian" = unknown; then
10787 ac_cv_c_bigendian=no
10789 # finding both strings is unlikely to happen, but who knows?
10790 ac_cv_c_bigendian=unknown
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 $ac_includes_default
10803 /* Are we little or big endian? From Harbison&Steele. */
10807 char c[sizeof (long int)];
10810 return u.c[sizeof (long int) - 1] == 1;
10816 if ac_fn_c_try_run "$LINENO"; then :
10817 ac_cv_c_bigendian=no
10819 ac_cv_c_bigendian=yes
10821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10822 conftest.$ac_objext conftest.beam conftest.$ac_ext
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10828 $as_echo "$ac_cv_c_bigendian" >&6; }
10829 case $ac_cv_c_bigendian in #(
10831 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10837 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10841 as_fn_error $? "unknown endianness
10842 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10845 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10846 ASM_TYPES_HEADER=./asm_types.h
10848 echo "/* These defines are needed for the public ext2fs.h header file */" \
10850 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10851 uniq tmp_config.$$ >> public_config.h
10853 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10855 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10856 uniq tmp_config.$$ >> public_config.h
10858 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10860 rm -f tmp_config.$$
10861 PUBLIC_CONFIG_HEADER=./public_config.h
10863 for ac_header in inttypes.h
10865 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10866 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10867 cat >>confdefs.h <<_ACEOF
10868 #define HAVE_INTTYPES_H 1
10875 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10876 if test "x$ac_cv_type_intptr_t" = xyes; then :
10878 cat >>confdefs.h <<_ACEOF
10879 #define HAVE_INTPTR_T 1
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10886 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10887 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <sys/stat.h>
10896 struct stat stat; stat.st_flags = 0;
10901 if ac_fn_c_try_compile "$LINENO"; then :
10902 e2fsprogs_cv_struct_st_flags=yes
10904 e2fsprogs_cv_struct_st_flags=no
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10910 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10911 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10913 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10914 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10915 $as_echo_n "(cached) " >&6
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <sys/stat.h>
10923 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 e2fsprogs_cv_struct_st_flags_immut=yes
10931 e2fsprogs_cv_struct_st_flags_immut=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10937 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10938 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10940 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10944 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10945 #include <sys/socket.h>
10947 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10949 cat >>confdefs.h <<_ACEOF
10950 #define HAVE_SA_LEN 1
10955 if test -n "$BLKID_CMT"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10957 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10958 if ${ac_cv_search_blkid_probe_all+:} false; then :
10959 $as_echo_n "(cached) " >&6
10961 ac_func_search_save_LIBS=$LIBS
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10965 /* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10971 char blkid_probe_all ();
10975 return blkid_probe_all ();
10980 for ac_lib in '' blkid; do
10981 if test -z "$ac_lib"; then
10982 ac_res="none required"
10985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_search_blkid_probe_all=$ac_res
10990 rm -f core conftest.err conftest.$ac_objext \
10992 if ${ac_cv_search_blkid_probe_all+:} false; then :
10996 if ${ac_cv_search_blkid_probe_all+:} false; then :
10999 ac_cv_search_blkid_probe_all=no
11001 rm conftest.$ac_ext
11002 LIBS=$ac_func_search_save_LIBS
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11005 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11006 ac_res=$ac_cv_search_blkid_probe_all
11007 if test "$ac_res" != no; then :
11008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11013 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11018 cat >>confdefs.h <<_ACEOF
11019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11027 $as_echo_n "checking for socket in -lsocket... " >&6; }
11028 if ${ac_cv_lib_socket_socket+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lsocket $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_socket_socket=yes
11054 ac_cv_lib_socket_socket=no
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11061 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11062 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11063 SOCKET_LIB=-lsocket
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11068 $as_echo_n "checking for optreset... " >&6; }
11069 if ${ac_cv_have_optreset+:} false; then :
11070 $as_echo_n "(cached) " >&6
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074 #include <unistd.h>
11077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11078 $EGREP "optreset" >/dev/null 2>&1; then :
11079 ac_cv_have_optreset=yes
11081 ac_cv_have_optreset=no
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11087 $as_echo "$ac_cv_have_optreset" >&6; }
11088 if test $ac_cv_have_optreset = yes; then
11090 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11095 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11096 if test "x$ac_cv_func_sem_init" = xyes; then :
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11100 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11101 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11102 $as_echo_n "(cached) " >&6
11104 ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-lpthread $LIBS"
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11119 return sem_init ();
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_pthread_sem_init=yes
11127 ac_cv_lib_pthread_sem_init=no
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11134 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11135 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11136 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11138 SEM_INIT_LIB=-lpthread
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11141 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11142 if ${ac_cv_lib_rt_sem_init+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_check_lib_save_LIBS=$LIBS
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11160 return sem_init ();
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 ac_cv_lib_rt_sem_init=yes
11168 ac_cv_lib_rt_sem_init=no
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11175 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11176 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11177 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11182 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11183 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_check_lib_save_LIBS=$LIBS
11187 LIBS="-lposix4 $LIBS"
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11201 return sem_init ();
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 ac_cv_lib_posix4_sem_init=yes
11209 ac_cv_lib_posix4_sem_init=no
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 LIBS=$ac_check_lib_save_LIBS
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11216 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11217 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11218 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11220 SEM_INIT_LIB=-lposix4
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11230 $as_echo_n "checking for unified diff option... " >&6; }
11231 if diff -u $0 $0 > /dev/null 2>&1 ; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11237 $as_echo "$UNI_DIFF_OPTS" >&6; }
11242 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11262 linux* | gnu* | k*bsd*-gnu)
11263 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11266 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11271 linux* | gnu* | k*bsd*-gnu)
11272 if test "$prefix" = NONE ; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11275 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11276 if test "$mandir" = '${prefix}/man' ; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11278 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11279 mandir=/usr/share/man
11284 if test "$root_prefix" = NONE ; then
11285 if test "$prefix" = NONE ; then
11286 root_prefix="$ac_default_prefix"
11288 root_prefix="$prefix"
11290 root_bindir=$bindir
11291 root_sbindir=$sbindir
11292 root_libdir=$libdir
11293 root_sysconfdir=$sysconfdir
11295 root_bindir='${root_prefix}/bin'
11296 root_sbindir='${root_prefix}/sbin'
11297 root_libdir='${root_prefix}/lib'
11298 root_sysconfdir='${root_prefix}/etc'
11300 if test "$bindir" != '${exec_prefix}/bin'; then
11301 root_bindir=$bindir
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11303 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11305 if test "$sbindir" != '${exec_prefix}/sbin'; then
11306 root_sbindir=$sbindir
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11308 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11310 if test "$libdir" != '${exec_prefix}/lib'; then
11311 root_libdir=$libdir
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11313 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11315 if test "$sysconfdir" != '${prefix}/etc'; then
11316 root_sysconfdir=$sysconfdir
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11318 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11326 # Check whether --with-multiarch was given.
11327 if test "${with_multiarch+set}" = set; then :
11328 withval=$with_multiarch; libdir=$libdir/$withval
11329 root_libdir=$root_libdir/$withval
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11333 $as_echo_n "checking whether we can link with -static... " >&6; }
11334 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11335 $as_echo_n "(cached) " >&6
11337 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11349 if ac_fn_c_try_link "$LINENO"; then :
11350 ac_cv_e2fsprogs_use_static=yes
11352 ac_cv_e2fsprogs_use_static=no
11354 rm -f core conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356 LDFLAGS=$SAVE_LDFLAGS
11361 ac_cv_e2fsprogs_use_static=no
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11365 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11367 if test $ac_cv_e2fsprogs_use_static = yes; then
11368 LDFLAG_STATIC=-static
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11374 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11376 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11380 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11381 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11384 if test "$cross_compiling" = yes ; then
11387 DO_TEST_SUITE=check
11390 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11391 if test -n "$CPPFLAGS" ; then
11392 INCLUDES="$INCLUDES $CPPFLAGS"
11394 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11395 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11398 if test $cross_compiling = no; then
11399 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11400 BUILD_LDFLAGS="$LDFLAGS"
11407 test -d lib || mkdir lib
11408 test -d include || mkdir include
11409 test -d include/linux || mkdir include/linux
11410 test -d include/asm || mkdir include/asm
11411 for i in MCONFIG Makefile e2fsprogs.spec \
11412 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11413 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11414 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11415 lib/uuid/Makefile lib/uuid/uuid_types.h \
11416 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11417 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11418 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11419 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11420 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11421 resize/Makefile doc/Makefile intl/Makefile \
11422 intl/libgnuintl.h po/Makefile.in ; do
11423 if test -d `dirname ${srcdir}/$i` ; then
11424 outlist="$outlist $i"
11427 ac_config_files="$ac_config_files $outlist"
11429 cat >confcache <<\_ACEOF
11430 # This file is a shell script that caches the results of configure
11431 # tests run on this system so they can be shared between configure
11432 # scripts and configure runs, see configure's option --config-cache.
11433 # It is not useful on other systems. If it contains results you don't
11434 # want to keep, you may remove or edit it.
11436 # config.status only pays attention to the cache file if you give it
11437 # the --recheck option to rerun configure.
11439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11441 # following values.
11445 # The following way of writing the cache mishandles newlines in values,
11446 # but we know of no workaround that is simple, portable, and efficient.
11447 # So, we kill variables containing newlines.
11448 # Ultrix sh set writes to stderr and can't be redirected directly,
11449 # and sets the high bit in the cache file unless we assign to the vars.
11451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11452 eval ac_val=\$$ac_var
11456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11460 _ | IFS | as_nl) ;; #(
11461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11462 *) { eval $ac_var=; unset $ac_var;} ;;
11468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11469 *${as_nl}ac_space=\ *)
11470 # `set' does not quote correctly, so add quotes: double-quote
11471 # substitution turns \\\\ into \\, and sed turns \\ into \.
11474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11477 # `set' quotes correctly as required by POSIX, so do not add quotes.
11478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11492 if test -w "$cache_file"; then
11493 if test "x$cache_file" != "x/dev/null"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11495 $as_echo "$as_me: updating cache $cache_file" >&6;}
11496 if test ! -f "$cache_file" || test -h "$cache_file"; then
11497 cat confcache >"$cache_file"
11499 case $cache_file in #(
11501 mv -f confcache "$cache_file"$$ &&
11502 mv -f "$cache_file"$$ "$cache_file" ;; #(
11504 mv -f confcache "$cache_file" ;;
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11516 # Let make expand exec_prefix.
11517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11519 DEFS=-DHAVE_CONFIG_H
11524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11525 # 1. Remove the extension, and $U if already installed.
11526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11527 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11529 # will be set to the directory where LIBOBJS objects are built.
11530 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11531 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11533 LIBOBJS=$ac_libobjs
11535 LTLIBOBJS=$ac_ltlibobjs
11540 : "${CONFIG_STATUS=./config.status}"
11542 ac_clean_files_save=$ac_clean_files
11543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11545 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11547 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11549 # Generated by $as_me.
11550 # Run this file to recreate the current configuration.
11551 # Compiler output produced by configure, useful for debugging
11552 # configure, is in config.log if it exists.
11555 ac_cs_recheck=false
11558 SHELL=\${CONFIG_SHELL-$SHELL}
11561 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11562 ## -------------------- ##
11563 ## M4sh Initialization. ##
11564 ## -------------------- ##
11566 # Be more Bourne compatible
11567 DUALCASE=1; export DUALCASE # for MKS sh
11568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11572 # is contrary to our usage. Disable this feature.
11573 alias -g '${1+"$@"}'='"$@"'
11574 setopt NO_GLOB_SUBST
11576 case `(set -o) 2>/dev/null` in #(
11588 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11589 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11592 # Prefer a ksh shell builtin over an external printf program on Solaris,
11593 # but without wasting forks for bash or zsh.
11594 if test -z "$BASH_VERSION$ZSH_VERSION" \
11595 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11596 as_echo='print -r --'
11597 as_echo_n='print -rn --'
11598 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11599 as_echo='printf %s\n'
11600 as_echo_n='printf %s'
11602 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11604 as_echo_n='/usr/ucb/echo -n'
11606 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11607 as_echo_n_body='eval
11611 expr "X$arg" : "X\\(.*\\)$as_nl";
11612 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11614 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11616 export as_echo_n_body
11617 as_echo_n='sh -c $as_echo_n_body as_echo'
11619 export as_echo_body
11620 as_echo='sh -c $as_echo_body as_echo'
11623 # The user is always right.
11624 if test "${PATH_SEPARATOR+set}" != set; then
11626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11634 # We need space, tab and new line, in precisely that order. Quoting is
11635 # there to prevent editors from complaining about space-tab.
11636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11637 # splitting by setting IFS to empty value.)
11640 # Find who we are. Look in the path if we contain no directory separator.
11643 *[\\/]* ) as_myself=$0 ;;
11644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11648 test -z "$as_dir" && as_dir=.
11649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11655 # We did not find ourselves, most probably we were run as `sh COMMAND'
11656 # in which case we are not to be found in the path.
11657 if test "x$as_myself" = x; then
11660 if test ! -f "$as_myself"; then
11661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11665 # Unset variables that we do not need and which cause bugs (e.g. in
11666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11667 # suppresses any "Segmentation fault" message there. '((' could
11668 # trigger a bug in pdksh 5.2.14.
11669 for as_var in BASH_ENV ENV MAIL MAILPATH
11670 do eval test x\${$as_var+set} = xset \
11671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11687 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11688 # ----------------------------------------
11689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11691 # script with STATUS, using 1 if that was 0.
11694 as_status=$1; test $as_status -eq 0 && as_status=1
11696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11699 $as_echo "$as_me: error: $2" >&2
11700 as_fn_exit $as_status
11704 # as_fn_set_status STATUS
11705 # -----------------------
11706 # Set $? to STATUS, without forking.
11707 as_fn_set_status ()
11710 } # as_fn_set_status
11712 # as_fn_exit STATUS
11713 # -----------------
11714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11718 as_fn_set_status $1
11724 # Portably unset VAR.
11727 { eval $1=; unset $1;}
11729 as_unset=as_fn_unset
11730 # as_fn_append VAR VALUE
11731 # ----------------------
11732 # Append the text in VALUE to the end of the definition contained in VAR. Take
11733 # advantage of any shell optimizations that allow amortized linear growth over
11734 # repeated appends, instead of the typical quadratic growth present in naive
11736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11737 eval 'as_fn_append ()
11748 # as_fn_arith ARG...
11749 # ------------------
11750 # Perform arithmetic evaluation on the ARGs, and store the result in the
11751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11752 # must be portable across $(()) and expr.
11753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11754 eval 'as_fn_arith ()
11761 as_val=`expr "$@" || test $? -eq 1`
11766 if expr a : '\(a\)' >/dev/null 2>&1 &&
11767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11774 as_basename=basename
11779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11785 as_me=`$as_basename -- "$0" ||
11786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11787 X"$0" : 'X\(//\)$' \| \
11788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11790 sed '/^.*\/\([^/][^/]*\)\/*$/{
11804 # Avoid depending upon Character Ranges.
11805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11808 as_cr_digits='0123456789'
11809 as_cr_alnum=$as_cr_Letters$as_cr_digits
11811 ECHO_C= ECHO_N= ECHO_T=
11812 case `echo -n x` in #(((((
11814 case `echo 'xy\c'` in
11815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11824 rm -f conf$$ conf$$.exe conf$$.file
11825 if test -d conf$$.dir; then
11826 rm -f conf$$.dir/conf$$.file
11829 mkdir conf$$.dir 2>/dev/null
11831 if (echo >conf$$.file) 2>/dev/null; then
11832 if ln -s conf$$.file conf$$ 2>/dev/null; then
11834 # ... but there are two gotchas:
11835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11837 # In both cases, we have to default to `cp -pR'.
11838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11840 elif ln conf$$.file conf$$ 2>/dev/null; then
11848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11849 rmdir conf$$.dir 2>/dev/null
11854 # Create "$as_dir" as a directory, including parents if necessary.
11859 -*) as_dir=./$as_dir;;
11861 test -d "$as_dir" || eval $as_mkdir_p || {
11865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11866 *) as_qdir=$as_dir;;
11868 as_dirs="'$as_qdir' $as_dirs"
11869 as_dir=`$as_dirname -- "$as_dir" ||
11870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11871 X"$as_dir" : 'X\(//\)[^/]' \| \
11872 X"$as_dir" : 'X\(//\)$' \| \
11873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11874 $as_echo X"$as_dir" |
11875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11879 /^X\(\/\/\)[^/].*/{
11892 test -d "$as_dir" && break
11894 test -z "$as_dirs" || eval "mkdir $as_dirs"
11895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11899 if mkdir -p . 2>/dev/null; then
11900 as_mkdir_p='mkdir -p "$as_dir"'
11902 test -d ./-p && rmdir ./-p
11907 # as_fn_executable_p FILE
11908 # -----------------------
11909 # Test if FILE is an executable regular file.
11910 as_fn_executable_p ()
11912 test -f "$1" && test -x "$1"
11913 } # as_fn_executable_p
11914 as_test_x='test -x'
11915 as_executable_p=as_fn_executable_p
11917 # Sed expression to map a string onto a valid CPP name.
11918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11920 # Sed expression to map a string onto a valid variable name.
11921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11925 ## ----------------------------------- ##
11926 ## Main body of $CONFIG_STATUS script. ##
11927 ## ----------------------------------- ##
11929 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11932 # Save the log message, to keep $0 and so on meaningful, and to
11933 # report actual input values of CONFIG_FILES etc. instead of their
11934 # values after options handling.
11936 This file was extended by $as_me, which was
11937 generated by GNU Autoconf 2.69. Invocation command line was
11939 CONFIG_FILES = $CONFIG_FILES
11940 CONFIG_HEADERS = $CONFIG_HEADERS
11941 CONFIG_LINKS = $CONFIG_LINKS
11942 CONFIG_COMMANDS = $CONFIG_COMMANDS
11945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11950 case $ac_config_files in *"
11951 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11954 case $ac_config_headers in *"
11955 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11960 # Files that config.status was made for.
11961 config_files="$ac_config_files"
11962 config_headers="$ac_config_headers"
11963 config_commands="$ac_config_commands"
11967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11969 \`$as_me' instantiates files and other configuration actions
11970 from templates according to the current configuration. Unless the files
11971 and actions are specified as TAGs, all are instantiated by default.
11973 Usage: $0 [OPTION]... [TAG]...
11975 -h, --help print this help, then exit
11976 -V, --version print version number and configuration settings, then exit
11977 --config print configuration, then exit
11978 -q, --quiet, --silent
11979 do not print progress messages
11980 -d, --debug don't remove temporary files
11981 --recheck update $as_me by reconfiguring in the same conditions
11982 --file=FILE[:TEMPLATE]
11983 instantiate the configuration file FILE
11984 --header=FILE[:TEMPLATE]
11985 instantiate the configuration header FILE
11987 Configuration files:
11990 Configuration headers:
11993 Configuration commands:
11996 Report bugs to the package provider."
11999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12000 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12003 configured by $0, generated by GNU Autoconf 2.69,
12004 with options \\"\$ac_cs_config\\"
12006 Copyright (C) 2012 Free Software Foundation, Inc.
12007 This config.status script is free software; the Free Software Foundation
12008 gives unlimited permission to copy, distribute and modify it."
12014 test -n "\$AWK" || AWK=awk
12017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12018 # The default lists apply if the user does not specify any file.
12024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12041 # Handling of the options.
12042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12045 $as_echo "$ac_cs_version"; exit ;;
12046 --config | --confi | --conf | --con | --co | --c )
12047 $as_echo "$ac_cs_config"; exit ;;
12048 --debug | --debu | --deb | --de | --d | -d )
12050 --file | --fil | --fi | --f )
12053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12054 '') as_fn_error $? "missing file argument" ;;
12056 as_fn_append CONFIG_FILES " '$ac_optarg'"
12057 ac_need_defaults=false;;
12058 --header | --heade | --head | --hea )
12061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12064 ac_need_defaults=false;;
12066 # Conflict between --help and --header
12067 as_fn_error $? "ambiguous option: \`$1'
12068 Try \`$0 --help' for more information.";;
12069 --help | --hel | -h )
12070 $as_echo "$ac_cs_usage"; exit ;;
12071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12075 # This is an error.
12076 -*) as_fn_error $? "unrecognized option: \`$1'
12077 Try \`$0 --help' for more information." ;;
12079 *) as_fn_append ac_config_targets " $1"
12080 ac_need_defaults=false ;;
12086 ac_configure_extra_args=
12088 if $ac_cs_silent; then
12090 ac_configure_extra_args="$ac_configure_extra_args --silent"
12094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12095 if \$ac_cs_recheck; then
12096 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12099 CONFIG_SHELL='$SHELL'
12100 export CONFIG_SHELL
12105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12110 ## Running $as_me. ##
12116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12120 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12121 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12123 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12124 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12125 LINGUAS="${LINGUAS-%UNSET%}"
12130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12132 # Handling of arguments.
12133 for ac_config_target in $ac_config_targets
12135 case $ac_config_target in
12136 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12137 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12138 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12145 # If the user did not use the arguments to specify the items to instantiate,
12146 # then the envvar interface is used. Set only those that are not.
12147 # We use the long form for the default assignment because of an extremely
12148 # bizarre bug on SunOS 4.1.3.
12149 if $ac_need_defaults; then
12150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12155 # Have a temporary directory for convenience. Make it in the build tree
12156 # simply because there is no reason against having it here, and in addition,
12157 # creating and moving files from /tmp can sometimes cause problems.
12158 # Hook for its removal unless debugging.
12159 # Note that there is a small window in which the directory will not be cleaned:
12160 # after its creation but before its name has been assigned to `$tmp'.
12164 trap 'exit_status=$?
12165 : "${ac_tmp:=$tmp}"
12166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12168 trap 'as_fn_exit 1' 1 2 13 15
12170 # Create a (secure) tmp directory for tmp files.
12173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12177 tmp=./conf$$-$RANDOM
12178 (umask 077 && mkdir "$tmp")
12179 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12182 # Set up the scripts for CONFIG_FILES section.
12183 # No need to generate them if there are no CONFIG_FILES.
12184 # This happens for instance with `./config.status config.h'.
12185 if test -n "$CONFIG_FILES"; then
12187 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12188 ac_cs_awk_getline=:
12189 ac_cs_awk_pipe_init=
12190 ac_cs_awk_read_file='
12191 while ((getline aline < (F[key])) > 0)
12194 ac_cs_awk_pipe_fini=
12196 ac_cs_awk_getline=false
12197 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12198 ac_cs_awk_read_file='
12200 print "cat " F[key] " &&"
12201 '$ac_cs_awk_pipe_init
12202 # The final `:' finishes the AND list.
12203 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12205 ac_cr=`echo X | tr X '\015'`
12206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12207 # But we know of no other shell where ac_cr would be empty at this
12208 # point, so we can use a bashism as a fallback.
12209 if test "x$ac_cr" = x; then
12210 eval ac_cr=\$\'\\r\'
12212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12216 ac_cs_awk_cr=$ac_cr
12219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12222 # Create commands to substitute file output variables.
12224 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12225 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12226 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12229 } >conf$$files.sh &&
12230 . ./conf$$files.sh ||
12231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12232 rm -f conf$$files.sh
12235 echo "cat >conf$$subs.awk <<_ACEOF" &&
12236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12238 } >conf$$subs.sh ||
12239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12242 for ac_last_try in false false false false false :; do
12243 . ./conf$$subs.sh ||
12244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12246 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12247 if test $ac_delim_n = $ac_delim_num; then
12249 elif $ac_last_try; then
12250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255 rm -f conf$$subs.sh
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12262 s/^/S["/; s/!.*/"]=/
12272 s/\(.\{148\}\)..*/\1/
12274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12286 s/\(.\{148\}\)..*/\1/
12288 s/["\\]/\\&/g; s/^/"/; s/$/"/
12292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12297 ' <conf$$subs.awk | sed '
12302 ' >>$CONFIG_STATUS || ac_write_fail=1
12303 rm -f conf$$subs.awk
12304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12306 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12307 for (key in S) S_is_set[key] = 1
12309 \$ac_cs_awk_pipe_init
12313 nfields = split(line, field, "@")
12315 len = length(field[1])
12316 for (i = 2; i < nfields; i++) {
12318 keylen = length(key)
12319 if (S_is_set[key]) {
12321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12322 len += length(value) + length(field[++i])
12327 if (nfields == 3 && !substed) {
12329 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12330 \$ac_cs_awk_read_file
12336 \$ac_cs_awk_pipe_fini
12339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12340 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12341 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12344 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12345 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12348 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12349 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12350 # trailing colons and then remove the whole line if VPATH becomes empty
12351 # (actually we leave an empty line to preserve line numbers).
12352 if test "x$srcdir" = x.; then
12353 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12372 fi # test -n "$CONFIG_FILES"
12374 # Set up the scripts for CONFIG_HEADERS section.
12375 # No need to generate them if there are no CONFIG_HEADERS.
12376 # This happens for instance with `./config.status Makefile'.
12377 if test -n "$CONFIG_HEADERS"; then
12378 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12382 # Transform confdefs.h into an awk script `defines.awk', embedded as
12383 # here-document in config.status, that substitutes the proper values into
12384 # config.h.in to produce config.h.
12386 # Create a delimiter string that does not exist in confdefs.h, to ease
12387 # handling of long lines.
12389 for ac_last_try in false false :; do
12390 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12391 if test -z "$ac_tt"; then
12393 elif $ac_last_try; then
12394 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12400 # For the awk script, D is an array of macro values keyed by name,
12401 # likewise P contains macro parameters if any. Preserve backslash
12402 # newline sequences.
12404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12406 s/.\{148\}/&'"$ac_delim"'/g
12409 s/^[ ]*#[ ]*define[ ][ ]*/ /
12416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12418 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12423 D["\1"]=" \3\\\\\\n"\\/p
12425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12430 s/.\{148\}/&'"$ac_delim"'/g
12435 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12438 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12440 ' <confdefs.h | sed '
12441 s/'"$ac_delim"'/"\\\
12442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12445 for (key in D) D_is_set[key] = 1
12448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12450 split(line, arg, " ")
12451 if (arg[1] == "#") {
12455 defundef = substr(arg[1], 2)
12458 split(mac1, mac2, "(") #)
12460 prefix = substr(line, 1, index(line, defundef) - 1)
12461 if (D_is_set[macro]) {
12462 # Preserve the white space surrounding the "#".
12463 print prefix "define", macro P[macro] D[macro]
12466 # Replace #undef with comments. This is necessary, for example,
12467 # in the case of _POSIX_SOURCE, which is predefined and required
12468 # on some systems where configure will not decide to define it.
12469 if (defundef == "undef") {
12470 print "/*", prefix defundef, macro, "*/"
12478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12480 fi # test -n "$CONFIG_HEADERS"
12483 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12488 :[FHLC]) ac_mode=$ac_tag; continue;;
12490 case $ac_mode$ac_tag in
12492 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12493 :[FH]-) ac_tag=-:-;;
12494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12511 -) ac_f="$ac_tmp/stdin";;
12512 *) # Look for the file first in the build tree, then in the source tree
12513 # (if the path is not absolute). The absolute path cannot be DOS-style,
12514 # because $ac_f cannot contain `:'.
12518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12520 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12522 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12523 as_fn_append ac_file_inputs " '$ac_f'"
12526 # Let's still pretend it is `configure' which instantiates (i.e., don't
12527 # use $as_me), people would be surprised to read:
12528 # /* config.h. Generated by config.status. */
12529 configure_input='Generated from '`
12530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12532 if test x"$ac_file" != x-; then
12533 configure_input="$ac_file. $configure_input"
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12535 $as_echo "$as_me: creating $ac_file" >&6;}
12537 # Neutralize special characters interpreted by sed in replacement strings.
12538 case $configure_input in #(
12539 *\&* | *\|* | *\\* )
12540 ac_sed_conf_input=`$as_echo "$configure_input" |
12541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12542 *) ac_sed_conf_input=$configure_input;;
12546 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12552 ac_dir=`$as_dirname -- "$ac_file" ||
12553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12554 X"$ac_file" : 'X\(//\)[^/]' \| \
12555 X"$ac_file" : 'X\(//\)$' \| \
12556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12557 $as_echo X"$ac_file" |
12558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12562 /^X\(\/\/\)[^/].*/{
12575 as_dir="$ac_dir"; as_fn_mkdir_p
12579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12582 # A ".." for each directory in $ac_dir_suffix.
12583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12584 case $ac_top_builddir_sub in
12585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12589 ac_abs_top_builddir=$ac_pwd
12590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12591 # for backward compatibility:
12592 ac_top_builddir=$ac_top_build_prefix
12595 .) # We are building in place.
12597 ac_top_srcdir=$ac_top_builddir_sub
12598 ac_abs_top_srcdir=$ac_pwd ;;
12599 [\\/]* | ?:[\\/]* ) # Absolute name.
12600 ac_srcdir=$srcdir$ac_dir_suffix;
12601 ac_top_srcdir=$srcdir
12602 ac_abs_top_srcdir=$srcdir ;;
12603 *) # Relative name.
12604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12605 ac_top_srcdir=$ac_top_build_prefix$srcdir
12606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12618 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12619 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12624 # If the template does not know about datarootdir, expand it.
12625 # FIXME: This hack should be removed a few years after 2.60.
12626 ac_datarootdir_hack=; ac_datarootdir_seen=
12637 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12638 *datarootdir*) ac_datarootdir_seen=yes;;
12639 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12641 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12644 ac_datarootdir_hack='
12645 s&@datadir@&$datadir&g
12646 s&@docdir@&$docdir&g
12647 s&@infodir@&$infodir&g
12648 s&@localedir@&$localedir&g
12649 s&@mandir@&$mandir&g
12650 s&\\\${datarootdir}&$datarootdir&g' ;;
12654 # Neutralize VPATH when `$srcdir' = `.'.
12655 # Shell code in configure.ac might set extrasub.
12656 # FIXME: do we really want to maintain this feature?
12657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12658 ac_sed_extra="$ac_vpsub
12661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12664 s|@configure_input@|$ac_sed_conf_input|;t t
12665 s&@top_builddir@&$ac_top_builddir_sub&;t t
12666 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12667 s&@srcdir@&$ac_srcdir&;t t
12668 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12669 s&@top_srcdir@&$ac_top_srcdir&;t t
12670 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12671 s&@builddir@&$ac_builddir&;t t
12672 s&@abs_builddir@&$ac_abs_builddir&;t t
12673 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12674 s&@INSTALL@&$ac_INSTALL&;t t
12675 $ac_datarootdir_hack
12677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12678 if $ac_cs_awk_getline; then
12679 $AWK -f "$ac_tmp/subs.awk"
12681 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12683 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12685 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12686 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12687 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12688 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12690 which seems to be undefined. Please make sure it is defined" >&5
12691 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12692 which seems to be undefined. Please make sure it is defined" >&2;}
12694 rm -f "$ac_tmp/stdin"
12696 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12697 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12705 if test x"$ac_file" != x-; then
12707 $as_echo "/* $configure_input */" \
12708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12709 } >"$ac_tmp/config.h" \
12710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12711 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12713 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12716 mv "$ac_tmp/config.h" "$ac_file" \
12717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12720 $as_echo "/* $configure_input */" \
12721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12722 || as_fn_error $? "could not create -" "$LINENO" 5
12726 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12727 $as_echo "$as_me: executing $ac_file commands" >&6;}
12732 case $ac_file$ac_mode in
12734 for ac_file in $CONFIG_FILES; do
12735 # Support "outfile[:infile[:infile...]]"
12737 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12739 # PO directories have a Makefile.in generated from Makefile.in.in.
12740 case "$ac_file" in */Makefile.in)
12741 # Adjust a relative srcdir.
12742 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12743 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12744 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12745 # In autoconf-2.13 it is called $ac_given_srcdir.
12746 # In autoconf-2.50 it is called $srcdir.
12747 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12748 case "$ac_given_srcdir" in
12749 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12750 /*) top_srcdir="$ac_given_srcdir" ;;
12751 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12753 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12754 rm -f "$ac_dir/POTFILES"
12755 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12756 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12757 POMAKEFILEDEPS="POTFILES.in"
12758 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12759 # on $ac_dir but don't depend on user-specified configuration
12761 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12762 # The LINGUAS file contains the set of available languages.
12763 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12764 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12766 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12767 # Hide the ALL_LINGUAS assigment from automake.
12768 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12769 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12771 # The set of available languages was given in configure.in.
12772 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12775 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12776 # Compute UPDATEPOFILES
12777 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12778 # Compute DUMMYPOFILES
12779 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12781 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12782 case "$ac_given_srcdir" in
12784 *) srcdirpre='$(srcdir)/' ;;
12790 for lang in $ALL_LINGUAS; do
12791 POFILES="$POFILES $srcdirpre$lang.po"
12792 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12793 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12794 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12796 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12797 # environment variable.
12799 if test -n "$ALL_LINGUAS"; then
12800 for presentlang in $ALL_LINGUAS; do
12802 if test "%UNSET%" != "$LINGUAS"; then
12803 desiredlanguages="$LINGUAS"
12805 desiredlanguages="$ALL_LINGUAS"
12807 for desiredlang in $desiredlanguages; do
12808 # Use the presentlang catalog if desiredlang is
12809 # a. equal to presentlang, or
12810 # b. a variant of presentlang (because in this case,
12811 # presentlang can be used as a fallback for messages
12812 # which are not translated in the desiredlang catalog).
12813 case "$desiredlang" in
12814 "$presentlang"*) useit=yes;;
12817 if test $useit = yes; then
12818 INST_LINGUAS="$INST_LINGUAS $presentlang"
12823 if test -n "$INST_LINGUAS"; then
12824 for lang in $INST_LINGUAS; do
12825 CATALOGS="$CATALOGS $lang.gmo"
12828 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12829 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"
12830 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12831 if test -f "$f"; then
12833 *.orig | *.bak | *~) ;;
12834 *) cat "$f" >> "$ac_dir/Makefile" ;;
12849 ac_clean_files=$ac_clean_files_save
12851 test $ac_write_fail = 0 ||
12852 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12855 # configure is writing to config.log, and then calls config.status.
12856 # config.status does its own redirection, appending to config.log.
12857 # Unfortunately, on DOS this fails, as config.log is still kept open
12858 # by configure, so config.status won't be able to write to it; its
12859 # output is simply discarded. So we exec the FD to /dev/null,
12860 # effectively closing config.log, so it can be properly (re)opened and
12861 # appended to by config.status. When coming back to configure, we
12862 # need to make the FD available again.
12863 if test "$no_create" != yes; then
12865 ac_config_status_args=
12866 test "$silent" = yes &&
12867 ac_config_status_args="$ac_config_status_args --quiet"
12869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12872 # would make configure fail if this is the last instruction.
12873 $ac_cs_success || as_fn_exit 1
12875 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12880 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi