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
802 program_transform_name
813 ac_subst_files='MCONFIG
820 PUBLIC_CONFIG_HEADER'
822 enable_option_checking
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
833 enable_verbose_makecmds
852 enable_e2initrd_helper
859 with_included_gettext
863 ac_precious_vars='build_alias
875 # Initialize some variables set by options.
877 ac_init_version=false
878 ac_unrecognized_opts=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
889 program_transform_name=s,x,x,
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=no ;;
994 -docdir | --docdir | --docdi | --doc | --do)
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=no ;;
1241 # Obsolete; use --with-x.
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-maintainer-mode enable makefile rules useful for maintainers
1485 --enable-symlink-install use symlinks when installing instead of hard links
1486 --enable-relative-symlinks use relative symlinks when installing
1488 --enable-symlink-build use symlinks while building instead of hard links
1489 --enable-verbose-makecmds enable verbose make command output
1490 --enable-compression enable EXPERIMENTAL compression support
1491 --enable-htree enable EXPERIMENTAL htree directory support
1492 --enable-elf-shlibs select ELF shared libraries
1493 --enable-bsd-shlibs select BSD shared libraries
1494 --enable-profile build profiling libraries
1495 --enable-checker build checker libraries
1496 --enable-jbd-debug enable journal debugging
1497 --enable-blkid-debug enable blkid debugging
1498 --disable-testio-debug disable the use of the test I/O manager for debugging
1499 --disable-libuuid do not build private uuid library
1500 --disable-libblkid do not build private blkid library
1501 --enable-quota enable quota support
1502 --disable-backtrace disable use backtrace
1503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
1506 --disable-defrag disable support of e4defrag program
1507 --enable-fsck build fsck wrapper program
1508 --enable-e2initrd-helper build e2initrd-helper program
1509 --disable-tls disable use of thread local support
1510 --disable-uuidd disable building the uuid daemon
1511 --disable-nls do not use Native Language Support
1512 --disable-rpath do not hardcode runtime library paths
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-diet-libc use diet libc
1518 --with-cc no longer supported, use CC= instead
1519 --with-ccopts no longer supported, use CFLAGS= instead
1520 --with-ldopts no longer supported, use LDFLAGS= instead
1521 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-included-gettext use the GNU gettext library included here
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
1528 --with-multiarch=ARCH specify the multiarch triplet
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1539 PKG_CONFIG path to pkg-config utility
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1544 Report bugs to the package provider.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1608 generated by GNU Autoconf 2.69
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=$ac_status
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1784 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785 # -------------------------------------------
1786 # Tests whether TYPE exists after having included INCLUDES, setting cache
1787 # variable VAR accordingly.
1788 ac_fn_c_check_type ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1822 if ac_fn_c_try_compile "$LINENO"; then :
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_type
1838 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists and can be compiled using the include files in
1841 # INCLUDES, setting the cache variable VAR accordingly.
1842 ac_fn_c_check_header_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1855 if ac_fn_c_try_compile "$LINENO"; then :
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_header_compile
1869 # ac_fn_c_check_func LINENO FUNC VAR
1870 # ----------------------------------
1871 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1872 ac_fn_c_check_func ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884 #define $2 innocuous_$2
1886 /* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (); below.
1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889 <limits.h> exists even on freestanding compilers. */
1892 # include <limits.h>
1894 # include <assert.h>
1899 /* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1906 /* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909 #if defined __stub_$2 || defined __stub___$2
1921 if ac_fn_c_try_link "$LINENO"; then :
1926 rm -f core conftest.err conftest.$ac_objext \
1927 conftest$ac_exeext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 } # ac_fn_c_check_func
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1941 ac_fn_c_check_header_mongrel ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if eval \${$3+:} false; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1965 ac_header_compiler=no
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1981 ac_header_preproc=no
1983 rm -f conftest.err conftest.i conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1987 # So? What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 eval "$3=\$ac_header_compiler"
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_header_mongrel
2023 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2024 # --------------------------------------------
2025 # Tries to find the compile-time value of EXPR in a program that includes
2026 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2028 ac_fn_c_compute_int ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if test "$cross_compiling" = yes; then
2032 # Depending upon the size, compute the lo and hi bounds.
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2039 static int test_array [1 - 2 * !(($2) >= 0)];
2041 return test_array [0];
2047 if ac_fn_c_try_compile "$LINENO"; then :
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2056 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2058 return test_array [0];
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_hi=$ac_mid; break
2067 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2068 if test $ac_lo -le $ac_mid; then
2072 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) < 0)];
2085 return test_array [0];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2102 return test_array [0];
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_lo=$ac_mid; break
2111 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2112 if test $ac_mid -le $ac_hi; then
2116 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 # Binary search between lo and hi bounds.
2127 while test "x$ac_lo" != "x$ac_hi"; do
2128 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137 return test_array [0];
2143 if ac_fn_c_try_compile "$LINENO"; then :
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2158 static long int longval () { return $2; }
2159 static unsigned long int ulongval () { return $2; }
2166 FILE *f = fopen ("conftest.val", "w");
2171 long int i = longval ();
2174 fprintf (f, "%ld", i);
2178 unsigned long int i = ulongval ();
2181 fprintf (f, "%lu", i);
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2191 if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_c_compute_int
2206 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2207 # ----------------------------------------------------
2208 # Tries to find if the field MEMBER exists in type AGGR, after including
2209 # INCLUDES, setting cache variable VAR accordingly.
2210 ac_fn_c_check_member ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2214 $as_echo_n "checking for $2.$3... " >&6; }
2215 if eval \${$4+:} false; then :
2216 $as_echo_n "(cached) " >&6
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2241 if (sizeof ac_aggr.$3)
2247 if ac_fn_c_try_compile "$LINENO"; then :
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_member
2263 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2264 # ---------------------------------------------
2265 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2267 ac_fn_c_check_decl ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 as_decl_name=`echo $2|sed 's/ *(.*//'`
2271 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2274 if eval \${$3+:} false; then :
2275 $as_echo_n "(cached) " >&6
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2283 #ifndef $as_decl_name
2285 (void) $as_decl_use;
2287 (void) $as_decl_name;
2295 if ac_fn_c_try_compile "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 } # ac_fn_c_check_decl
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.69. Invocation command line was
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2334 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2338 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_must_keep_next=false
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402 -* ) ac_must_keep_next=true ;;
2405 as_fn_append ac_configure_args " '$ac_arg'"
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2423 $as_echo "## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##"
2427 # The following way of writing the cache mishandles newlines in values,
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438 _ | IFS | as_nl) ;; #(
2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440 *) { eval $ac_var=; unset $ac_var;} ;;
2445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
2448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 $as_echo "## ----------------- ##
2460 ## Output variables. ##
2461 ## ----------------- ##"
2463 for ac_var in $ac_subst_vars
2465 eval ac_val=\$$ac_var
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 $as_echo "$ac_var='\''$ac_val'\''"
2473 if test -n "$ac_subst_files"; then
2474 $as_echo "## ------------------- ##
2475 ## File substitutions. ##
2476 ## ------------------- ##"
2478 for ac_var in $ac_subst_files
2480 eval ac_val=\$$ac_var
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 $as_echo "$ac_var='\''$ac_val'\''"
2489 if test -s confdefs.h; then
2490 $as_echo "## ----------- ##
2497 test "$ac_signal" != 0 &&
2498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
2501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505 for ac_signal in 1 2 13 15; do
2506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2511 rm -f -r conftest* confdefs.h
2513 $as_echo "/* confdefs.h */" > confdefs.h
2515 # Predefined preprocessor variables.
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_NAME "$PACKAGE_NAME"
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_STRING "$PACKAGE_STRING"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_URL "$PACKAGE_URL"
2542 # Let the site file select an alternate cache file if it wants to.
2543 # Prefer an explicitly selected file to automatically selected ones.
2546 if test -n "$CONFIG_SITE"; then
2547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2553 elif test "x$prefix" != xNONE; then
2554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
2557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562 test "x$ac_site_file" = xNONE && continue
2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 as_fn_append ac_header_list " stdlib.h"
2593 as_fn_append ac_header_list " unistd.h"
2594 as_fn_append ac_header_list " sys/param.h"
2595 # Check that the precious variables saved in the cache have kept the same
2597 ac_cache_corrupted=false
2598 for ac_var in $ac_precious_vars; do
2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
2603 case $ac_old_set,$ac_new_set in
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
2615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2628 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2630 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 *) ac_arg=$ac_var=$ac_new_val ;;
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 if $ac_cache_corrupted; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2652 ## -------------------- ##
2653 ## Main body of script. ##
2654 ## -------------------- ##
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665 for ac_dir in config "$srcdir"/config; do
2666 if test -f "$ac_dir/install-sh"; then
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2670 elif test -f "$ac_dir/install.sh"; then
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2674 elif test -f "$ac_dir/shtool"; then
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 if test -z "$ac_aux_dir"; then
2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2693 ac_config_headers="$ac_config_headers lib/config.h"
2699 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2700 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2701 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2703 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2704 MONTH=`echo $DATE | awk -F- '{print $2}'`
2705 YEAR=`echo $DATE | awk -F- '{print $3}'`
2707 if expr $YEAR ">" 1900 > /dev/null ; then
2708 E2FSPROGS_YEAR=$YEAR
2709 elif expr $YEAR ">" 90 >/dev/null ; then
2710 E2FSPROGS_YEAR=19$YEAR
2712 E2FSPROGS_YEAR=20$YEAR
2716 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2717 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2718 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2719 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2720 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2721 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2722 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2723 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2724 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2725 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2726 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2727 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2729 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2732 base_ver=`echo $E2FSPROGS_VERSION | \
2733 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2735 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2737 case $E2FSPROGS_VERSION in
2739 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2742 E2FSPROGS_PKGVER="$base_ver"
2746 unset DATE MONTH YEAR base_ver pre_vers date_spec
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2748 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2750 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2756 # Make sure we can run config.sub.
2757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 $as_echo_n "checking build system type... " >&6; }
2762 if ${ac_cv_build+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 ac_build_alias=$build_alias
2766 test "x$ac_build_alias" = x &&
2767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768 test "x$ac_build_alias" = x &&
2769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2778 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2781 ac_save_IFS=$IFS; IFS='-'
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if ${ac_cv_host+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2808 $as_echo "$ac_cv_host" >&6; }
2811 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2814 ac_save_IFS=$IFS; IFS='-'
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2824 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2872 if test -z "$ac_cv_prog_CC"; then
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_ac_ct_CC="gcc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2910 if test "x$ac_ct_CC" = x; then
2913 case $cross_compiling:$ac_tool_warned in
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2966 if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test $ac_prog_rejected = yes; then
2998 # We found a bogon in the path, so make sure we never use it.
2999 set dummy $ac_cv_prog_CC
3001 if test $# != 0; then
3002 # We chose a different compiler from the bogus one.
3003 # However, it has the same basename, so the bogon will be chosen
3004 # first if we set CC to just the basename; use the full file name.
3006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 for ac_prog in cl.exe
3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$CC" && break
3066 if test -z "$CC"; then
3068 for ac_prog in cl.exe
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_ac_ct_CC="$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3107 test -n "$ac_ct_CC" && break
3110 if test "x$ac_ct_CC" = x; then
3113 case $cross_compiling:$ac_tool_warned in
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details" "$LINENO" 5; }
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 if test -s conftest.err; then
3147 ... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173 $as_echo_n "checking whether the C compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180 for ac_file in $ac_files
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 if { { ac_try="$ac_link_default"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link_default") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3205 for ac_file in $ac_files ''
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 # We found the default executable, but exeext='' is most
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 if test -z "$ac_file"; then :
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3274 for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3302 FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3339 if test "$cross_compiling" = maybe; then
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if ${ac_cv_c_compiler_gnu+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if ${ac_cv_prog_cc_g+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_save_c_werror_flag=$ac_c_werror_flag
3449 ac_c_werror_flag=yes
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 if ac_fn_c_try_compile "$LINENO"; then :
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"; then :
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507 CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3515 if test "$GCC" = yes; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if ${ac_cv_prog_cc_c89+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 ac_cv_prog_cc_c89=no
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534 struct buf { int x; };
3535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536 static char *e (p, i)
3542 static char *f (char * (*g) (char **, int), char **p, ...)
3547 s = g (p, va_arg (v,int));
3552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
3555 as 'x'. The following induces an error, until -std is added to get
3556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
3558 that's true only with -std. */
3559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566 int test (int i, double x);
3567 struct s1 {int (*f) (int a);};
3568 struct s2 {int (*f) (double a);};
3569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_c89=$ac_arg
3587 rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 rm -f conftest.$ac_ext
3595 case "x$ac_cv_prog_cc_c89" in
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3598 $as_echo "none needed" >&6; } ;;
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3601 $as_echo "unsupported" >&6; } ;;
3603 CC="$CC $ac_cv_prog_cc_c89"
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607 if test "x$ac_cv_prog_cc_c89" != xno; then :
3612 ac_cpp='$CPP $CPPFLAGS'
3613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3620 if ${ac_cv_lib_dl_dlopen+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 ac_check_lib_save_LIBS=$LIBS
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3628 /* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
3643 if ac_fn_c_try_link "$LINENO"; then :
3644 ac_cv_lib_dl_dlopen=yes
3646 ac_cv_lib_dl_dlopen=no
3648 rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
3650 LIBS=$ac_check_lib_save_LIBS
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3654 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3657 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3664 # Check whether --with-diet-libc was given.
3665 if test "${with_diet_libc+set}" = set; then :
3666 withval=$with_diet_libc; CC="diet cc -nostdinc"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3669 $as_echo "CC=$CC" >&6; }
3672 # Check whether --with-cc was given.
3673 if test "${with_cc+set}" = set; then :
3674 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3678 # Check whether --with-ccopts was given.
3679 if test "${with_ccopts+set}" = set; then :
3680 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3684 # Check whether --with-ldopts was given.
3685 if test "${with_ldopts+set}" = set; then :
3686 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3733 if test -z "$ac_cv_prog_CC"; then
3735 # Extract the first word of "gcc", so it can be a program name with args.
3736 set dummy gcc; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_ac_ct_CC="gcc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 $as_echo "$ac_ct_CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3771 if test "x$ac_ct_CC" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3786 if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}cc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_prog_CC+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_CC="${ac_tool_prefix}cc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3827 if test -z "$CC"; then
3828 # Extract the first word of "cc", so it can be a program name with args.
3829 set dummy cc; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_prog_CC+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3847 ac_prog_rejected=yes
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 if test $ac_prog_rejected = yes; then
3859 # We found a bogon in the path, so make sure we never use it.
3860 set dummy $ac_cv_prog_CC
3862 if test $# != 0; then
3863 # We chose a different compiler from the bogus one.
3864 # However, it has the same basename, so the bogon will be chosen
3865 # first if we set CC to just the basename; use the full file name.
3867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3873 if test -n "$CC"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3875 $as_echo "$CC" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3883 if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 for ac_prog in cl.exe
3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if ${ac_cv_prog_CC+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 if test -n "$CC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917 $as_echo "$CC" >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$CC" && break
3927 if test -z "$CC"; then
3929 for ac_prog in cl.exe
3931 # Extract the first word of "$ac_prog", so it can be a program name with args.
3932 set dummy $ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_ac_ct_CC="$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 $as_echo "$ac_ct_CC" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3968 test -n "$ac_ct_CC" && break
3971 if test "x$ac_ct_CC" = x; then
3974 case $cross_compiling:$ac_tool_warned in
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978 ac_tool_warned=yes ;;
3987 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $? "no acceptable C compiler found in \$PATH
3990 See \`config.log' for more details" "$LINENO" 5; }
3992 # Provide some information about the compiler.
3993 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3996 for ac_option in --version -v -V -qversion; do
3997 { { ac_try="$ac_compiler $ac_option >&5"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4006 if test -s conftest.err; then
4008 ... rest of stderr output deleted ...
4009 10q' conftest.err >conftest.er1
4010 cat conftest.er1 >&5
4012 rm -f conftest.er1 conftest.err
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4018 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4019 if ${ac_cv_c_compiler_gnu+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4046 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4047 if test $ac_compiler_gnu = yes; then
4052 ac_test_CFLAGS=${CFLAGS+set}
4053 ac_save_CFLAGS=$CFLAGS
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4055 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4056 if ${ac_cv_prog_cc_g+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 ac_save_c_werror_flag=$ac_c_werror_flag
4060 ac_c_werror_flag=yes
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4074 if ac_fn_c_try_compile "$LINENO"; then :
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_c_werror_flag=$ac_save_c_werror_flag
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4105 if ac_fn_c_try_compile "$LINENO"; then :
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4116 $as_echo "$ac_cv_prog_cc_g" >&6; }
4117 if test "$ac_test_CFLAGS" = set; then
4118 CFLAGS=$ac_save_CFLAGS
4119 elif test $ac_cv_prog_cc_g = yes; then
4120 if test "$GCC" = yes; then
4126 if test "$GCC" = yes; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4133 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4134 if ${ac_cv_prog_cc_c89+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 ac_cv_prog_cc_c89=no
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4145 struct buf { int x; };
4146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4147 static char *e (p, i)
4153 static char *f (char * (*g) (char **, int), char **p, ...)
4158 s = g (p, va_arg (v,int));
4163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4164 function prototypes and stuff, but not '\xHH' hex character constants.
4165 These don't provoke an error unfortunately, instead are silently treated
4166 as 'x'. The following induces an error, until -std is added to get
4167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4168 array size at least. It's necessary to write '\x00'==0 to get something
4169 that's true only with -std. */
4170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4173 inside strings and character constants. */
4175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4177 int test (int i, double x);
4178 struct s1 {int (*f) (int a);};
4179 struct s2 {int (*f) (double a);};
4180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4194 CC="$ac_save_CC $ac_arg"
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_c89=$ac_arg
4198 rm -f core conftest.err conftest.$ac_objext
4199 test "x$ac_cv_prog_cc_c89" != "xno" && break
4201 rm -f conftest.$ac_ext
4206 case "x$ac_cv_prog_cc_c89" in
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209 $as_echo "none needed" >&6; } ;;
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4212 $as_echo "unsupported" >&6; } ;;
4214 CC="$CC $ac_cv_prog_cc_c89"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4216 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4218 if test "x$ac_cv_prog_cc_c89" != xno; then :
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 if test "$GCC" = yes; then
4229 RDYNAMIC="-rdynamic"
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4243 if test -z "$CPP"; then
4244 if ${ac_cv_prog_CPP+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 # Double quotes because CPP needs to be expanded
4248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4251 for ac_c_preproc_warn_flag in '' yes
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
4257 # On the NeXT, cc -E runs the code through the compiler's parser,
4258 # not just through cpp. "Syntax error" is here to catch this case.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4262 # include <limits.h>
4264 # include <assert.h>
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4271 # Broken: fails on valid input.
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4276 # OK, works on sane cases. Now check whether nonexistent headers
4277 # can be detected and how.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283 # Broken: success on invalid input.
4286 # Passes both tests.
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.i conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then :
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4308 $as_echo "$CPP" >&6; }
4310 for ac_c_preproc_warn_flag in '' yes
4312 # Use a header file that comes with gcc, so configuring glibc
4313 # with a fresh cross-compiler works.
4314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315 # <limits.h> exists even on freestanding compilers.
4316 # On the NeXT, cc -E runs the code through the compiler's parser,
4317 # not just through cpp. "Syntax error" is here to catch this case.
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4321 # include <limits.h>
4323 # include <assert.h>
4327 if ac_fn_c_try_cpp "$LINENO"; then :
4330 # Broken: fails on valid input.
4333 rm -f conftest.err conftest.i conftest.$ac_ext
4335 # OK, works on sane cases. Now check whether nonexistent headers
4336 # can be detected and how.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #include <ac_nonexistent.h>
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342 # Broken: success on invalid input.
4345 # Passes both tests.
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.i conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then :
4357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4359 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details" "$LINENO" 5; }
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4370 $as_echo_n "checking for additional special compiler flags... " >&6; }
4371 if test "$GCC" = yes
4374 alpha) addcflags="-mieee" ;;
4377 if test "x$addcflags" != x
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4380 $as_echo "$addcflags" >&6; }
4381 CFLAGS="$addcflags $CFLAGS"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4384 $as_echo "(none)" >&6; }
4390 # Check whether --with-root-prefix was given.
4391 if test "${with_root_prefix+set}" = set; then :
4392 withval=$with_root_prefix; root_prefix=$withval
4396 # Check whether --enable-maintainer-mode was given.
4397 if test "${enable_maintainer_mode+set}" = set; then :
4398 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4402 $as_echo "Disabling maintainer mode" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4406 $as_echo "Enabling maintainer mode" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4412 $as_echo "Disabling maintainer mode by default" >&6; }
4417 # Check whether --enable-symlink-install was given.
4418 if test "${enable_symlink_install+set}" = set; then :
4419 enableval=$enable_symlink_install; if test "$enableval" = "no"
4421 LINK_INSTALL_FLAGS=-f
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4423 $as_echo "Disabling symlinks for install" >&6; }
4425 LINK_INSTALL_FLAGS=-sf
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4427 $as_echo "Enabling symlinks for install" >&6; }
4431 LINK_INSTALL_FLAGS=-f
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4433 $as_echo "Disabling symlinks for install by default" >&6; }
4438 relative_symlink_defined=
4439 # Check whether --enable-relative-symlinks was given.
4440 if test "${enable_relative_symlinks+set}" = set; then :
4441 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4444 relative_symlink_defined=yes
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4446 $as_echo "Disabling relative symlinks for install" >&6; }
4448 SYMLINK_RELATIVE=--relative
4449 relative_symlink_defined=yes
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4451 $as_echo "Enabling relative symlinks for install" >&6; }
4455 # Check whether --enable-symlink-relative-symlinks was given.
4456 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4457 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4459 SYMLINK_RELATIVE=yes
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4461 $as_echo "Disabling relative symlinks for install" >&6; }
4463 SYMLINK_RELATIVE=--relative
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4465 $as_echo "Enabling relative symlinks for install" >&6; }
4469 if test -z "$relative_symlink_defined"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4473 $as_echo "Disabling relative symlinks for install by default" >&6; }
4479 # Check whether --enable-symlink-build was given.
4480 if test "${enable_symlink_build+set}" = set; then :
4481 enableval=$enable_symlink_build; if test "$enableval" = "no"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4485 $as_echo "Disabling symlinks for build" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4489 $as_echo "Enabling symlinks for build" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4495 $as_echo "Disabling symlinks for build by default" >&6; }
4500 # Check whether --enable-verbose-makecmds was given.
4501 if test "${enable_verbose_makecmds+set}" = set; then :
4502 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4505 $as_echo "Disabling verbose make commands" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4511 $as_echo "Enabling verbose make commands" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4519 $as_echo "Disabling verbose make commands" >&6; }
4529 # Check whether --enable-compression was given.
4530 if test "${enable_compression+set}" = set; then :
4531 enableval=$enable_compression; if test "$enableval" = "no"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4534 $as_echo "Disabling compression support" >&6; }
4537 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4540 $as_echo "Enabling compression support" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4542 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4547 $as_echo "Disabling compression support by default" >&6; }
4552 # Check whether --enable-htree was given.
4553 if test "${enable_htree+set}" = set; then :
4554 enableval=$enable_htree; if test "$enableval" = "no"
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4558 $as_echo "Disabling htree directory support" >&6; }
4561 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4564 $as_echo "Enabling htree directory support" >&6; }
4569 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4572 $as_echo "Enabling htree directory support by default" >&6; }
4577 E2_PKG_CONFIG_STATIC=--static
4580 # Check whether --enable-elf-shlibs was given.
4581 if test "${enable_elf_shlibs+set}" = set; then :
4582 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4585 MAKEFILE_ELF=/dev/null
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4587 $as_echo "Disabling ELF shared libraries" >&6; }
4589 E2_PKG_CONFIG_STATIC=
4591 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4594 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4600 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4602 $as_echo "Enabling ELF shared libraries" >&6; }
4606 MAKEFILE_ELF=/dev/null
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4609 $as_echo "Disabling ELF shared libraries by default" >&6; }
4615 # Check whether --enable-bsd-shlibs was given.
4616 if test "${enable_bsd_shlibs+set}" = set; then :
4617 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4620 MAKEFILE_BSDLIB=/dev/null
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4622 $as_echo "Disabling BSD shared libraries" >&6; }
4624 E2_PKG_CONFIG_STATIC=
4626 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4630 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4635 $as_echo "Enabling BSD shared libraries" >&6; }
4639 MAKEFILE_BSDLIB=/dev/null
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4642 $as_echo "Disabling BSD shared libraries by default" >&6; }
4648 # Check whether --enable-profile was given.
4649 if test "${enable_profile+set}" = set; then :
4650 enableval=$enable_profile; if test "$enableval" = "no"
4653 MAKEFILE_PROFILE=/dev/null
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4655 $as_echo "Disabling profiling libraries" >&6; }
4658 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4659 PROFILED_LIB_EXT=_p.a
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4661 $as_echo "Building profiling libraries" >&6; }
4666 MAKEFILE_PROFILE=/dev/null
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4668 $as_echo "Disabling profiling libraries by default" >&6; }
4674 # Check whether --enable-checker was given.
4675 if test "${enable_checker+set}" = set; then :
4676 enableval=$enable_checker; if test "$enableval" = "no"
4679 MAKEFILE_CHECKER=/dev/null
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4681 $as_echo "Disabling checker libraries" >&6; }
4684 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4686 $as_echo "Building checker libraries" >&6; }
4691 MAKEFILE_CHECKER=/dev/null
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4693 $as_echo "Disabling checker libraries by default" >&6; }
4704 # Check whether --enable-jbd-debug was given.
4705 if test "${enable_jbd_debug+set}" = set; then :
4706 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4709 $as_echo "Disabling journal debugging" >&6; }
4712 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4715 $as_echo "Enabling journal debugging" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4720 $as_echo "Disabling journal debugging by default" >&6; }
4724 # Check whether --enable-blkid-debug was given.
4725 if test "${enable_blkid_debug+set}" = set; then :
4726 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4729 $as_echo "Disabling blkid debugging" >&6; }
4732 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4735 $as_echo "Enabling blkid debugging" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4740 $as_echo "Disabling blkid debugging by default" >&6; }
4744 # Check whether --enable-testio-debug was given.
4745 if test "${enable_testio_debug+set}" = set; then :
4746 enableval=$enable_testio_debug;
4747 if test "$enableval" = "no"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4750 $as_echo "Disabling testio debugging" >&6; }
4754 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4757 $as_echo "Enabling testio debugging" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4762 $as_echo "Enabling testio debugging by default" >&6; }
4763 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4772 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4779 $as_echo_n "(cached) " >&6
4783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4805 if test -n "$PKG_CONFIG"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4807 $as_echo "$PKG_CONFIG" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4815 if test -z "$ac_cv_path_PKG_CONFIG"; then
4816 ac_pt_PKG_CONFIG=$PKG_CONFIG
4817 # Extract the first word of "pkg-config", so it can be a program name with args.
4818 set dummy pkg-config; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 case $ac_pt_PKG_CONFIG in
4826 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4848 if test -n "$ac_pt_PKG_CONFIG"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4850 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4856 if test "x$ac_pt_PKG_CONFIG" = x; then
4859 case $cross_compiling:$ac_tool_warned in
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4865 PKG_CONFIG=$ac_pt_PKG_CONFIG
4868 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4872 if test -n "$PKG_CONFIG"; then
4873 _pkg_min_version=0.9.0
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4875 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4876 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878 $as_echo "yes" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4891 DEPPROFILED_LIBUUID=
4893 # Check whether --enable-libuuid was given.
4894 if test "${enable_libuuid+set}" = set; then :
4895 enableval=$enable_libuuid; if test "$enableval" = "no"
4897 if test -z "$PKG_CONFIG"; then
4898 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4902 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4903 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 ac_check_lib_save_LIBS=$LIBS
4907 LIBS="-luuid $LIBUUID $LIBS"
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4911 /* Override any GCC internal prototype to avoid an error.
4912 Use char because int might match the return type of a GCC
4913 builtin and then its argument prototype would still apply. */
4917 char uuid_generate ();
4921 return uuid_generate ();
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 ac_cv_lib_uuid_uuid_generate=yes
4929 ac_cv_lib_uuid_uuid_generate=no
4931 rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4933 LIBS=$ac_check_lib_save_LIBS
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4936 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4937 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4938 LIBUUID=`$PKG_CONFIG --libs uuid`;
4939 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4941 as_fn_error $? "external uuid library not found" "$LINENO" 5
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4946 $as_echo "Disabling private uuid library" >&6; }
4948 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4950 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4951 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4952 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4953 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4955 $as_echo "Enabling private uuid library" >&6; }
4959 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4961 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4962 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4963 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4964 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4966 $as_echo "Enabling private uuid library by default" >&6; }
4979 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4986 $as_echo_n "(cached) " >&6
4990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5012 if test -n "$PKG_CONFIG"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5014 $as_echo "$PKG_CONFIG" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5022 if test -z "$ac_cv_path_PKG_CONFIG"; then
5023 ac_pt_PKG_CONFIG=$PKG_CONFIG
5024 # Extract the first word of "pkg-config", so it can be a program name with args.
5025 set dummy pkg-config; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 case $ac_pt_PKG_CONFIG in
5033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5055 if test -n "$ac_pt_PKG_CONFIG"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5057 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5063 if test "x$ac_pt_PKG_CONFIG" = x; then
5066 case $cross_compiling:$ac_tool_warned in
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070 ac_tool_warned=yes ;;
5072 PKG_CONFIG=$ac_pt_PKG_CONFIG
5075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5079 if test -n "$PKG_CONFIG"; then
5080 _pkg_min_version=0.9.0
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5082 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5098 DEPPROFILED_LIBBLKID=
5101 # Check whether --enable-libblkid was given.
5102 if test "${enable_libblkid+set}" = set; then :
5103 enableval=$enable_libblkid; if test "$enableval" = "no"
5105 if test -z "$PKG_CONFIG"; then
5106 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5110 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5111 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 ac_check_lib_save_LIBS=$LIBS
5115 LIBS="-lblkid $LIBBLKID $LIBS"
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5125 char blkid_get_cache ();
5129 return blkid_get_cache ();
5134 if ac_fn_c_try_link "$LINENO"; then :
5135 ac_cv_lib_blkid_blkid_get_cache=yes
5137 ac_cv_lib_blkid_blkid_get_cache=no
5139 rm -f core conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5141 LIBS=$ac_check_lib_save_LIBS
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5144 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5145 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5146 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5147 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5149 as_fn_error $? "external blkid library not found" "$LINENO" 5
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5154 $as_echo "Disabling private blkid library" >&6; }
5156 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5157 DEPLIBBLKID=$LIBBLKID
5158 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5159 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5160 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5161 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5162 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5165 $as_echo "Enabling private blkid library" >&6; }
5169 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5170 DEPLIBBLKID=$LIBBLKID
5171 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5172 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5173 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5174 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5175 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5178 $as_echo "Enabling private blkid library by default" >&6; }
5189 QUOTA_MAN_COMMENT='.\"'
5193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5200 $as_echo_n "(cached) " >&6
5204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5226 if test -n "$PKG_CONFIG"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5228 $as_echo "$PKG_CONFIG" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5236 if test -z "$ac_cv_path_PKG_CONFIG"; then
5237 ac_pt_PKG_CONFIG=$PKG_CONFIG
5238 # Extract the first word of "pkg-config", so it can be a program name with args.
5239 set dummy pkg-config; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 case $ac_pt_PKG_CONFIG in
5247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5269 if test -n "$ac_pt_PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5271 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5277 if test "x$ac_pt_PKG_CONFIG" = x; then
5280 case $cross_compiling:$ac_tool_warned in
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284 ac_tool_warned=yes ;;
5286 PKG_CONFIG=$ac_pt_PKG_CONFIG
5289 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5293 if test -n "$PKG_CONFIG"; then
5294 _pkg_min_version=0.9.0
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5296 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5297 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5308 # Check whether --enable-quota was given.
5309 if test "${enable_quota+set}" = set; then :
5310 enableval=$enable_quota; if test "$enableval" = "no"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5313 $as_echo "Disabling quota support" >&6; }
5315 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5318 $as_echo "Enabling quota support" >&6; }
5319 QUOTA_MAN_COMMENT=""
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5325 $as_echo "Disabling quota support by default" >&6; }
5329 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5330 DEPLIBQUOTA=$LIBQUOTA
5331 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5332 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5333 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5334 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5343 # Check whether --enable-backtrace was given.
5344 if test "${enable_backtrace+set}" = set; then :
5345 enableval=$enable_backtrace; if test "$enableval" = "no"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5348 $as_echo "Disabling use of backtrace" >&6; }
5349 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5353 $as_echo "Enabling use of backtrace" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5358 $as_echo "Enabling use of backtrace by default" >&6; }
5362 # Check whether --enable-debugfs was given.
5363 if test "${enable_debugfs+set}" = set; then :
5364 enableval=$enable_debugfs; if test "$enableval" = "no"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5367 $as_echo "Disabling debugfs support" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5372 $as_echo "Enabling debugfs support" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5377 $as_echo "Enabling debugfs support by default" >&6; }
5383 # Check whether --enable-imager was given.
5384 if test "${enable_imager+set}" = set; then :
5385 enableval=$enable_imager; if test "$enableval" = "no"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5388 $as_echo "Disabling e2image support" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5393 $as_echo "Enabling e2image support" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5398 $as_echo "Enabling e2image support by default" >&6; }
5404 # Check whether --enable-resizer was given.
5405 if test "${enable_resizer+set}" = set; then :
5406 enableval=$enable_resizer; if test "$enableval" = "no"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5409 $as_echo "Disabling e2resize support" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5414 $as_echo "Enabling e2resize support" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5419 $as_echo "Enabling e2resize support by default" >&6; }
5425 # Check whether --enable-defrag was given.
5426 if test "${enable_defrag+set}" = set; then :
5427 enableval=$enable_defrag; if test "$enableval" = "no"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5430 $as_echo "Disabling e4defrag support" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5435 $as_echo "Enabling e4defrag support" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5440 $as_echo "Enabling e4defrag support by default" >&6; }
5446 # Check whether --enable-fsck was given.
5447 if test "${enable_fsck+set}" = set; then :
5448 enableval=$enable_fsck; if test "$enableval" = "no"
5450 FSCK_PROG='' FSCK_MAN=''
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5452 $as_echo "Not building fsck wrapper" >&6; }
5454 FSCK_PROG=fsck FSCK_MAN=fsck.8
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5456 $as_echo "Building fsck wrapper" >&6; }
5462 FSCK_PROG='' FSCK_MAN=''
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5464 $as_echo "Not building fsck wrapper by default" >&6; }
5467 FSCK_PROG=fsck FSCK_MAN=fsck.8
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5469 $as_echo "Building fsck wrapper by default" >&6; }
5476 # Check whether --enable-e2initrd-helper was given.
5477 if test "${enable_e2initrd_helper+set}" = set; then :
5478 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5480 E2INITRD_PROG='' E2INITRD_MAN=''
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5482 $as_echo "Not building e2initrd helper" >&6; }
5484 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5486 $as_echo "Building e2initrd helper" >&6; }
5490 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5492 $as_echo "Building e2initrd helper by default" >&6; }
5498 # Check whether --enable-tls was given.
5499 if test "${enable_tls+set}" = set; then :
5500 enableval=$enable_tls; if test "$enableval" = "no"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5504 $as_echo "Disabling thread local support" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5508 $as_echo "Enabling thread local support" >&6; }
5512 if test -n "$WITH_DIET_LIBC"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5516 $as_echo "Diet libc does not support thread local support" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5520 $as_echo "Try using thread local support by default" >&6; }
5525 if test "$try_tls" = "yes"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5529 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5530 if ${ac_cv_tls+:} false; then :
5531 $as_echo_n "(cached) " >&6
5534 ax_tls_keywords="__thread __declspec(thread) none"
5535 for ax_tls_keyword in $ax_tls_keywords; do
5536 case $ax_tls_keyword in
5537 none) ac_cv_tls=none ; break ;;
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5544 static $ax_tls_keyword int bar;
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 ac_cv_tls=$ax_tls_keyword ; break
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 if test "$ac_cv_tls" != "none"; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define TLS $ac_cv_tls
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5576 $as_echo "$ac_cv_tls" >&6; }
5580 # Check whether --enable-uuidd was given.
5581 if test "${enable_uuidd+set}" = set; then :
5582 enableval=$enable_uuidd; if test "$enableval" = "no"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5585 $as_echo "Not building uuidd" >&6; }
5588 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5592 $as_echo "Building uuidd" >&6; }
5596 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5600 $as_echo "Building uuidd by default" >&6; }
5605 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5607 GETTEXT_PACKAGE=e2fsprogs
5609 VERSION="$E2FSPROGS_VERSION"
5612 cat >>confdefs.h <<_ACEOF
5613 #define PACKAGE "$PACKAGE"
5617 cat >>confdefs.h <<_ACEOF
5618 #define VERSION "$VERSION"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5630 $as_echo_n "(cached) " >&6
5632 cat >conftest.make <<\_ACEOF
5635 @echo '@@@%%%=$(MAKE)=@@@%%%'
5637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5640 eval ac_cv_prog_make_${ac_make}_set=yes;;
5642 eval ac_cv_prog_make_${ac_make}_set=no;;
5646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5653 SET_MAKE="MAKE=${MAKE-make}"
5656 # Find a good install program. We prefer a C program (faster),
5657 # so one script is as good as another. But avoid the broken or
5658 # incompatible versions:
5659 # SysV /etc/install, /usr/sbin/install
5660 # SunOS /usr/etc/install
5661 # IRIX /sbin/install
5663 # AmigaOS /C/install, which installs bootblocks on floppy discs
5664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5667 # OS/2's system install, which has a completely different semantic
5668 # ./install, which can be erroneously created by make from ./install.sh.
5669 # Reject install programs that cannot install multiple files.
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5671 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5672 if test -z "$INSTALL"; then
5673 if ${ac_cv_path_install+:} false; then :
5674 $as_echo_n "(cached) " >&6
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 # Account for people who put trailing slashes in PATH elements.
5682 case $as_dir/ in #((
5683 ./ | .// | /[cC]/* | \
5684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5685 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5688 # OSF1 and SCO ODT 3.0 have their own names for install.
5689 # Don't use installbsd from OSF since it installs stuff as root
5691 for ac_prog in ginstall scoinst install; do
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5694 if test $ac_prog = install &&
5695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5696 # AIX install. It has an incompatible calling convention.
5698 elif test $ac_prog = install &&
5699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5700 # program-specific install script used by HP pwplus--don't use.
5703 rm -rf conftest.one conftest.two conftest.dir
5704 echo one > conftest.one
5705 echo two > conftest.two
5707 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5708 test -s conftest.one && test -s conftest.two &&
5709 test -s conftest.dir/conftest.one &&
5710 test -s conftest.dir/conftest.two
5712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5725 rm -rf conftest.one conftest.two conftest.dir
5728 if test "${ac_cv_path_install+set}" = set; then
5729 INSTALL=$ac_cv_path_install
5731 # As a last resort, use the slow shell script. Don't cache a
5732 # value for INSTALL within a source directory, because that will
5733 # break other packages using the cache if that directory is
5734 # removed, or if the value is a relative name.
5735 INSTALL=$ac_install_sh
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5739 $as_echo "$INSTALL" >&6; }
5741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5742 # It thinks the first close brace ends the variable substitution.
5743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5751 if test -n "$ac_aux_dir"; then
5752 case "$ac_aux_dir" in
5753 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5754 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5757 if test -z "$MKINSTALLDIRS"; then
5758 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5764 $as_echo_n "checking whether NLS is requested... " >&6; }
5765 # Check whether --enable-nls was given.
5766 if test "${enable_nls+set}" = set; then :
5767 enableval=$enable_nls; USE_NLS=$enableval
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5773 $as_echo "$USE_NLS" >&6; }
5780 # Prepare PATH_SEPARATOR.
5781 # The user is always right.
5782 if test "${PATH_SEPARATOR+set}" != set; then
5783 echo "#! /bin/sh" >conf$$.sh
5784 echo "exit 0" >>conf$$.sh
5786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5794 # Find out how to test for executable files. Don't use a zero-byte file,
5795 # as systems may use methods other than mode bits to determine executability.
5796 cat >conf$$.file <<_ASEOF
5800 chmod +x conf$$.file
5801 if test -x conf$$.file >/dev/null 2>&1; then
5802 ac_executable_p="test -x"
5804 ac_executable_p="test -f"
5808 # Extract the first word of "msgfmt", so it can be a program name with args.
5809 set dummy msgfmt; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_path_MSGFMT+:} false; then :
5813 $as_echo_n "(cached) " >&6
5817 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5820 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5821 for ac_dir in $PATH; do
5823 test -z "$ac_dir" && ac_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5826 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5827 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5828 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5835 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5839 MSGFMT="$ac_cv_path_MSGFMT"
5840 if test "$MSGFMT" != ":"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5842 $as_echo "$MSGFMT" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5848 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5849 set dummy gmsgfmt; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_path_GMSGFMT+:} false; then :
5853 $as_echo_n "(cached) " >&6
5857 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5879 GMSGFMT=$ac_cv_path_GMSGFMT
5880 if test -n "$GMSGFMT"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5882 $as_echo "$GMSGFMT" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5891 # Prepare PATH_SEPARATOR.
5892 # The user is always right.
5893 if test "${PATH_SEPARATOR+set}" != set; then
5894 echo "#! /bin/sh" >conf$$.sh
5895 echo "exit 0" >>conf$$.sh
5897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5905 # Find out how to test for executable files. Don't use a zero-byte file,
5906 # as systems may use methods other than mode bits to determine executability.
5907 cat >conf$$.file <<_ASEOF
5911 chmod +x conf$$.file
5912 if test -x conf$$.file >/dev/null 2>&1; then
5913 ac_executable_p="test -x"
5915 ac_executable_p="test -f"
5919 # Extract the first word of "xgettext", so it can be a program name with args.
5920 set dummy xgettext; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_path_XGETTEXT+:} false; then :
5924 $as_echo_n "(cached) " >&6
5928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5931 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5932 for ac_dir in $PATH; do
5934 test -z "$ac_dir" && ac_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5937 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5938 (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
5939 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5946 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5950 XGETTEXT="$ac_cv_path_XGETTEXT"
5951 if test "$XGETTEXT" != ":"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5953 $as_echo "$XGETTEXT" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5962 # Prepare PATH_SEPARATOR.
5963 # The user is always right.
5964 if test "${PATH_SEPARATOR+set}" != set; then
5965 echo "#! /bin/sh" >conf$$.sh
5966 echo "exit 0" >>conf$$.sh
5968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5976 # Find out how to test for executable files. Don't use a zero-byte file,
5977 # as systems may use methods other than mode bits to determine executability.
5978 cat >conf$$.file <<_ASEOF
5982 chmod +x conf$$.file
5983 if test -x conf$$.file >/dev/null 2>&1; then
5984 ac_executable_p="test -x"
5986 ac_executable_p="test -f"
5990 # Extract the first word of "msgmerge", so it can be a program name with args.
5991 set dummy msgmerge; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_path_MSGMERGE+:} false; then :
5995 $as_echo_n "(cached) " >&6
5999 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6002 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6003 for ac_dir in $PATH; do
6005 test -z "$ac_dir" && ac_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6008 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6009 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6016 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6020 MSGMERGE="$ac_cv_path_MSGMERGE"
6021 if test "$MSGMERGE" != ":"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6023 $as_echo "$MSGMERGE" >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6030 if test "$GMSGFMT" != ":"; then
6031 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6032 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6035 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6037 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6042 if test "$XGETTEXT" != ":"; then
6043 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6044 (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
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6048 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6054 ac_config_commands="$ac_config_commands default-1"
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_RANLIB+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 if test -n "$RANLIB"; then
6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 RANLIB=$ac_cv_prog_RANLIB
6086 if test -n "$RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6088 $as_echo "$RANLIB" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6096 if test -z "$ac_cv_prog_RANLIB"; then
6097 ac_ct_RANLIB=$RANLIB
6098 # Extract the first word of "ranlib", so it can be a program name with args.
6099 set dummy ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$ac_ct_RANLIB"; then
6106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_ac_ct_RANLIB="ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6126 if test -n "$ac_ct_RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6128 $as_echo "$ac_ct_RANLIB" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6134 if test "x$ac_ct_RANLIB" = x; then
6137 case $cross_compiling:$ac_tool_warned in
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6141 ac_tool_warned=yes ;;
6143 RANLIB=$ac_ct_RANLIB
6146 RANLIB="$ac_cv_prog_RANLIB"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6151 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6152 if ${ac_cv_lib_cposix_strerror+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lcposix $LIBS"
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6175 if ac_fn_c_try_link "$LINENO"; then :
6176 ac_cv_lib_cposix_strerror=yes
6178 ac_cv_lib_cposix_strerror=no
6180 rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6185 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6186 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6187 LIBS="$LIBS -lcposix"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6195 if ${ac_cv_path_GREP+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -z "$GREP"; then
6199 ac_path_GREP_found=false
6200 # Loop through the user's path and test for each of PROGNAME-LIST
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205 test -z "$as_dir" && as_dir=.
6206 for ac_prog in grep ggrep; do
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6209 as_fn_executable_p "$ac_path_GREP" || continue
6210 # Check for GNU ac_path_GREP and select it if it is found.
6211 # Check for GNU $ac_path_GREP
6212 case `"$ac_path_GREP" --version 2>&1` in
6214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6217 $as_echo_n 0123456789 >"conftest.in"
6220 cat "conftest.in" "conftest.in" >"conftest.tmp"
6221 mv "conftest.tmp" "conftest.in"
6222 cp "conftest.in" "conftest.nl"
6223 $as_echo 'GREP' >> "conftest.nl"
6224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6226 as_fn_arith $ac_count + 1 && ac_count=$as_val
6227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6228 # Best one so far, save it but keep looking for a better one
6229 ac_cv_path_GREP="$ac_path_GREP"
6230 ac_path_GREP_max=$ac_count
6232 # 10*(2^10) chars as input seems more than enough
6233 test $ac_count -gt 10 && break
6235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238 $ac_path_GREP_found && break 3
6243 if test -z "$ac_cv_path_GREP"; then
6244 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6247 ac_cv_path_GREP=$GREP
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6252 $as_echo "$ac_cv_path_GREP" >&6; }
6253 GREP="$ac_cv_path_GREP"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6257 $as_echo_n "checking for egrep... " >&6; }
6258 if ${ac_cv_path_EGREP+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6262 then ac_cv_path_EGREP="$GREP -E"
6264 if test -z "$EGREP"; then
6265 ac_path_EGREP_found=false
6266 # Loop through the user's path and test for each of PROGNAME-LIST
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6271 test -z "$as_dir" && as_dir=.
6272 for ac_prog in egrep; do
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6275 as_fn_executable_p "$ac_path_EGREP" || continue
6276 # Check for GNU ac_path_EGREP and select it if it is found.
6277 # Check for GNU $ac_path_EGREP
6278 case `"$ac_path_EGREP" --version 2>&1` in
6280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6283 $as_echo_n 0123456789 >"conftest.in"
6286 cat "conftest.in" "conftest.in" >"conftest.tmp"
6287 mv "conftest.tmp" "conftest.in"
6288 cp "conftest.in" "conftest.nl"
6289 $as_echo 'EGREP' >> "conftest.nl"
6290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292 as_fn_arith $ac_count + 1 && ac_count=$as_val
6293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6294 # Best one so far, save it but keep looking for a better one
6295 ac_cv_path_EGREP="$ac_path_EGREP"
6296 ac_path_EGREP_max=$ac_count
6298 # 10*(2^10) chars as input seems more than enough
6299 test $ac_count -gt 10 && break
6301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6304 $ac_path_EGREP_found && break 3
6309 if test -z "$ac_cv_path_EGREP"; then
6310 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6313 ac_cv_path_EGREP=$EGREP
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6319 $as_echo "$ac_cv_path_EGREP" >&6; }
6320 EGREP="$ac_cv_path_EGREP"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6324 $as_echo_n "checking for ANSI C header files... " >&6; }
6325 if ${ac_cv_header_stdc+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 ac_cv_header_stdc=yes
6346 ac_cv_header_stdc=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 if test $ac_cv_header_stdc = yes; then
6351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "memchr" >/dev/null 2>&1; then :
6361 ac_cv_header_stdc=no
6367 if test $ac_cv_header_stdc = yes; then
6368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 $EGREP "free" >/dev/null 2>&1; then :
6378 ac_cv_header_stdc=no
6384 if test $ac_cv_header_stdc = yes; then
6385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6386 if test "$cross_compiling" = yes; then :
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6393 #if ((' ' & 0x0FF) == 0x020)
6394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6397 # define ISLOWER(c) \
6398 (('a' <= (c) && (c) <= 'i') \
6399 || ('j' <= (c) && (c) <= 'r') \
6400 || ('s' <= (c) && (c) <= 'z'))
6401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6409 for (i = 0; i < 256; i++)
6410 if (XOR (islower (i), ISLOWER (i))
6411 || toupper (i) != TOUPPER (i))
6416 if ac_fn_c_try_run "$LINENO"; then :
6419 ac_cv_header_stdc=no
6421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6422 conftest.$ac_objext conftest.beam conftest.$ac_ext
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6428 $as_echo "$ac_cv_header_stdc" >&6; }
6429 if test $ac_cv_header_stdc = yes; then
6431 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6436 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6437 if ${ac_cv_c_const+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6448 /* Ultrix mips cc rejects this sort of thing. */
6449 typedef int charset[2];
6450 const charset cs = { 0, 0 };
6451 /* SunOS 4.1.1 cc rejects this. */
6452 char const *const *pcpcc;
6454 /* NEC SVR4.0.2 mips cc rejects this. */
6455 struct point {int x, y;};
6456 static struct point const zero = {0,0};
6457 /* AIX XL C 1.02.0.0 rejects this.
6458 It does not let you subtract one const X* pointer from another in
6459 an arm of an if-expression whose if-part is not a constant
6461 const char *g = "string";
6462 pcpcc = &g + (g ? g-g : 0);
6463 /* HPUX 7.0 cc rejects these. */
6465 ppc = (char**) pcpcc;
6466 pcpcc = (char const *const *) ppc;
6467 { /* SCO 3.2v4 cc rejects this sort of thing. */
6470 char const *s = 0 ? (char *) 0 : (char const *) 0;
6475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6477 const int *foo = &x[0];
6480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6481 typedef const int *iptr;
6485 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6487 struct s { int j; const int *ap[3]; } bx;
6488 struct s *b = &bx; b->j = 5;
6490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6494 return !cs[0] && !zero.x;
6501 if ac_fn_c_try_compile "$LINENO"; then :
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6509 $as_echo "$ac_cv_c_const" >&6; }
6510 if test $ac_cv_c_const = no; then
6512 $as_echo "#define const /**/" >>confdefs.h
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6518 $as_echo_n "checking for signed... " >&6; }
6519 if ${bh_cv_c_signed+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6533 if ac_fn_c_try_compile "$LINENO"; then :
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6541 $as_echo "$bh_cv_c_signed" >&6; }
6542 if test $bh_cv_c_signed = no; then
6544 $as_echo "#define signed /**/" >>confdefs.h
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6549 $as_echo_n "checking for inline... " >&6; }
6550 if ${ac_cv_c_inline+:} false; then :
6551 $as_echo_n "(cached) " >&6
6554 for ac_kw in inline __inline__ __inline; do
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6559 static $ac_kw foo_t static_foo () {return 0; }
6560 $ac_kw foo_t foo () {return 0; }
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565 ac_cv_c_inline=$ac_kw
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 test "$ac_cv_c_inline" != no && break
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6573 $as_echo "$ac_cv_c_inline" >&6; }
6575 case $ac_cv_c_inline in
6578 case $ac_cv_c_inline in
6580 *) ac_val=$ac_cv_c_inline;;
6582 cat >>confdefs.h <<_ACEOF
6584 #define inline $ac_val
6590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6592 inttypes.h stdint.h unistd.h
6594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6598 cat >>confdefs.h <<_ACEOF
6599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6608 if test "x$ac_cv_type_off_t" = xyes; then :
6612 cat >>confdefs.h <<_ACEOF
6613 #define off_t long int
6618 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6619 if test "x$ac_cv_type_size_t" = xyes; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define size_t unsigned int
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6631 $as_echo_n "checking for long long... " >&6; }
6632 if ${ac_cv_type_long_long+:} false; then :
6633 $as_echo_n "(cached) " >&6
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 long long ll = 1LL; int i = 63;
6641 long long llmax = (long long) -1;
6642 return ll << i | ll >> i | llmax / ll | llmax % ll;
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 ac_cv_type_long_long=yes
6650 ac_cv_type_long_long=no
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6656 $as_echo "$ac_cv_type_long_long" >&6; }
6657 if test $ac_cv_type_long_long = yes; then
6659 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6665 $as_echo_n "checking for long double... " >&6; }
6666 if ${gt_cv_c_long_double+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 if test "$GCC" = yes; then
6670 gt_cv_c_long_double=yes
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6675 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6676 long double foo = 0.0;
6677 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6678 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 gt_cv_c_long_double=yes
6691 gt_cv_c_long_double=no
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6697 $as_echo "$gt_cv_c_long_double" >&6; }
6698 if test $gt_cv_c_long_double = yes; then
6700 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6706 $as_echo_n "checking for wchar_t... " >&6; }
6707 if ${gt_cv_c_wchar_t+:} false; then :
6708 $as_echo_n "(cached) " >&6
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6713 wchar_t foo = (wchar_t)'\0';
6722 if ac_fn_c_try_compile "$LINENO"; then :
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6730 $as_echo "$gt_cv_c_wchar_t" >&6; }
6731 if test $gt_cv_c_wchar_t = yes; then
6733 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6739 $as_echo_n "checking for wint_t... " >&6; }
6740 if ${gt_cv_c_wint_t+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6746 wint_t foo = (wchar_t)'\0';
6755 if ac_fn_c_try_compile "$LINENO"; then :
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6763 $as_echo "$gt_cv_c_wint_t" >&6; }
6764 if test $gt_cv_c_wint_t = yes; then
6766 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6772 $as_echo_n "checking for inttypes.h... " >&6; }
6773 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6779 #include <inttypes.h>
6783 uintmax_t i = (uintmax_t) -1;
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 jm_ac_cv_header_inttypes_h=yes
6791 jm_ac_cv_header_inttypes_h=no
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6796 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6797 if test $jm_ac_cv_header_inttypes_h = yes; then
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6807 $as_echo_n "checking for stdint.h... " >&6; }
6808 if ${jm_ac_cv_header_stdint_h+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <sys/types.h>
6818 uintmax_t i = (uintmax_t) -1;
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 jm_ac_cv_header_stdint_h=yes
6826 jm_ac_cv_header_stdint_h=no
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6831 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6832 if test $jm_ac_cv_header_stdint_h = yes; then
6834 cat >>confdefs.h <<_ACEOF
6835 #define HAVE_STDINT_H_WITH_UINTMAX 1
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6844 $as_echo_n "checking for intmax_t... " >&6; }
6845 if ${gt_cv_c_intmax_t+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6853 #if HAVE_STDINT_H_WITH_UINTMAX
6856 #if HAVE_INTTYPES_H_WITH_UINTMAX
6857 #include <inttypes.h>
6868 if ac_fn_c_try_compile "$LINENO"; then :
6869 gt_cv_c_intmax_t=yes
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6876 $as_echo "$gt_cv_c_intmax_t" >&6; }
6877 if test $gt_cv_c_intmax_t = yes; then
6879 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6886 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6887 if ${gt_cv_func_printf_posix+:} false; then :
6888 $as_echo_n "(cached) " >&6
6891 if test "$cross_compiling" = yes; then :
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6896 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902 $EGREP "notposix" >/dev/null 2>&1; then :
6903 gt_cv_func_printf_posix="guessing no"
6905 gt_cv_func_printf_posix="guessing yes"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6916 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6917 dollar expansion (possibly an autoconf bug). */
6918 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6919 static char buf[100];
6922 sprintf (buf, format, 33, 55);
6923 return (strcmp (buf, "55 33") != 0);
6926 if ac_fn_c_try_run "$LINENO"; then :
6927 gt_cv_func_printf_posix=yes
6929 gt_cv_func_printf_posix=no
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932 conftest.$ac_objext conftest.beam conftest.$ac_ext
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6938 $as_echo "$gt_cv_func_printf_posix" >&6; }
6939 case $gt_cv_func_printf_posix in
6942 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6948 # for constant arguments. Useless!
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6950 $as_echo_n "checking for working alloca.h... " >&6; }
6951 if ${ac_cv_working_alloca_h+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6960 char *p = (char *) alloca (2 * sizeof (int));
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 ac_cv_working_alloca_h=yes
6969 ac_cv_working_alloca_h=no
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6975 $as_echo "$ac_cv_working_alloca_h" >&6; }
6976 if test $ac_cv_working_alloca_h = yes; then
6978 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6983 $as_echo_n "checking for alloca... " >&6; }
6984 if ${ac_cv_func_alloca_works+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6990 # define alloca __builtin_alloca
6993 # include <malloc.h>
6994 # define alloca _alloca
6996 # ifdef HAVE_ALLOCA_H
6997 # include <alloca.h>
7002 # ifndef alloca /* predefined by HP cc +Olibcalls */
7003 void *alloca (size_t);
7013 char *p = (char *) alloca (1);
7019 if ac_fn_c_try_link "$LINENO"; then :
7020 ac_cv_func_alloca_works=yes
7022 ac_cv_func_alloca_works=no
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7028 $as_echo "$ac_cv_func_alloca_works" >&6; }
7030 if test $ac_cv_func_alloca_works = yes; then
7032 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7035 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7036 # that cause trouble. Some versions do not even contain alloca or
7037 # contain a buggy version. If you still want to use their alloca,
7038 # use ar to extract alloca.o from them instead of compiling alloca.c.
7040 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7042 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7046 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7047 if ${ac_cv_os_cray+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #if defined CRAY && ! defined CRAY2
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 $EGREP "webecray" >/dev/null 2>&1; then :
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7069 $as_echo "$ac_cv_os_cray" >&6; }
7070 if test $ac_cv_os_cray = yes; then
7071 for ac_func in _getb67 GETB67 getb67; do
7072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7076 cat >>confdefs.h <<_ACEOF
7077 #define CRAY_STACKSEG_END $ac_func
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7087 $as_echo_n "checking stack direction for C alloca... " >&6; }
7088 if ${ac_cv_c_stack_direction+:} false; then :
7089 $as_echo_n "(cached) " >&6
7091 if test "$cross_compiling" = yes; then :
7092 ac_cv_c_stack_direction=0
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 $ac_includes_default
7098 find_stack_direction (int *addr, int depth)
7103 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7104 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7109 main (int argc, char **argv)
7111 return find_stack_direction (0, argc + !argv + 20) < 0;
7114 if ac_fn_c_try_run "$LINENO"; then :
7115 ac_cv_c_stack_direction=1
7117 ac_cv_c_stack_direction=-1
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7120 conftest.$ac_objext conftest.beam conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7125 $as_echo "$ac_cv_c_stack_direction" >&6; }
7126 cat >>confdefs.h <<_ACEOF
7127 #define STACK_DIRECTION $ac_cv_c_stack_direction
7136 for ac_header in $ac_header_list
7138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7142 cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157 for ac_func in getpagesize
7159 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7160 if test "x$ac_cv_func_getpagesize" = xyes; then :
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_GETPAGESIZE 1
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7169 $as_echo_n "checking for working mmap... " >&6; }
7170 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test "$cross_compiling" = yes; then :
7174 ac_cv_func_mmap_fixed_mapped=no
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 /* malloc might have been renamed as rpl_malloc. */
7182 /* Thanks to Mike Haertel and Jim Avera for this test.
7183 Here is a matrix of mmap possibilities:
7184 mmap private not fixed
7185 mmap private fixed at somewhere currently unmapped
7186 mmap private fixed at somewhere already mapped
7187 mmap shared not fixed
7188 mmap shared fixed at somewhere currently unmapped
7189 mmap shared fixed at somewhere already mapped
7190 For private mappings, we should verify that changes cannot be read()
7191 back from the file, nor mmap's back from the file at a different
7192 address. (There have been systems where private was not correctly
7193 implemented like the infamous i386 svr4.0, and systems where the
7194 VM page cache was not coherent with the file system buffer cache
7195 like early versions of FreeBSD and possibly contemporary NetBSD.)
7196 For shared mappings, we should conversely verify that changes get
7197 propagated back to all the places they're supposed to be.
7199 Grep wants private fixed already mapped.
7200 The main things grep needs to know about mmap are:
7201 * does it exist and is it safe to write into the mmap'd area
7202 * how to use it (BSD variants) */
7205 #include <sys/mman.h>
7207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7211 /* This mess was copied from the GNU getpagesize.h. */
7212 #ifndef HAVE_GETPAGESIZE
7213 # ifdef _SC_PAGESIZE
7214 # define getpagesize() sysconf(_SC_PAGESIZE)
7215 # else /* no _SC_PAGESIZE */
7216 # ifdef HAVE_SYS_PARAM_H
7217 # include <sys/param.h>
7218 # ifdef EXEC_PAGESIZE
7219 # define getpagesize() EXEC_PAGESIZE
7220 # else /* no EXEC_PAGESIZE */
7222 # define getpagesize() NBPG * CLSIZE
7225 # endif /* no CLSIZE */
7226 # else /* no NBPG */
7228 # define getpagesize() NBPC
7229 # else /* no NBPC */
7231 # define getpagesize() PAGESIZE
7232 # endif /* PAGESIZE */
7233 # endif /* no NBPC */
7234 # endif /* no NBPG */
7235 # endif /* no EXEC_PAGESIZE */
7236 # else /* no HAVE_SYS_PARAM_H */
7237 # define getpagesize() 8192 /* punt totally */
7238 # endif /* no HAVE_SYS_PARAM_H */
7239 # endif /* no _SC_PAGESIZE */
7241 #endif /* no HAVE_GETPAGESIZE */
7246 char *data, *data2, *data3;
7251 pagesize = getpagesize ();
7253 /* First, make a file with some known garbage in it. */
7254 data = (char *) malloc (pagesize);
7257 for (i = 0; i < pagesize; ++i)
7258 *(data + i) = rand ();
7260 fd = creat ("conftest.mmap", 0600);
7263 if (write (fd, data, pagesize) != pagesize)
7267 /* Next, check that the tail of a page is zero-filled. File must have
7268 non-zero length, otherwise we risk SIGBUS for entire page. */
7269 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7273 if (write (fd2, cdata2, 1) != 1)
7275 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7276 if (data2 == MAP_FAILED)
7278 for (i = 0; i < pagesize; ++i)
7282 if (munmap (data2, pagesize))
7285 /* Next, try to mmap the file at a fixed address which already has
7286 something else allocated at it. If we can, also make sure that
7287 we see the same garbage. */
7288 fd = open ("conftest.mmap", O_RDWR);
7291 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7294 for (i = 0; i < pagesize; ++i)
7295 if (*(data + i) != *(data2 + i))
7298 /* Finally, make sure that changes to the mapped area do not
7299 percolate back to the file as seen by read(). (This is a bug on
7300 some variants of i386 svr4.0.) */
7301 for (i = 0; i < pagesize; ++i)
7302 *(data2 + i) = *(data2 + i) + 1;
7303 data3 = (char *) malloc (pagesize);
7306 if (read (fd, data3, pagesize) != pagesize)
7308 for (i = 0; i < pagesize; ++i)
7309 if (*(data + i) != *(data3 + i))
7315 if ac_fn_c_try_run "$LINENO"; then :
7316 ac_cv_func_mmap_fixed_mapped=yes
7318 ac_cv_func_mmap_fixed_mapped=no
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7332 rm -f conftest.mmap conftest.txt
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7336 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7337 if ${ac_cv_gnu_library_2_1+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7343 #include <features.h>
7344 #ifdef __GNU_LIBRARY__
7345 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7353 ac_cv_gnu_library_2_1=yes
7355 ac_cv_gnu_library_2_1=no
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7363 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7365 GLIBC21="$ac_cv_gnu_library_2_1"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7371 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7372 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7373 $as_echo_n "(cached) " >&6
7376 if test "$cross_compiling" = yes; then :
7378 # Guess based on the CPU.
7380 alpha* | i3456786 | m68k | s390*)
7381 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7383 gt_cv_int_divbyzero_sigfpe="guessing no";;
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7395 sigfpe_handler (int sig)
7397 sigfpe_handler (sig) int sig;
7400 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7401 exit (sig != SIGFPE);
7411 signal (SIGFPE, sigfpe_handler);
7412 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7413 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7414 signal (SIGTRAP, sigfpe_handler);
7416 /* Linux/SPARC yields signal SIGILL. */
7417 #if defined (__sparc__) && defined (__linux__)
7418 signal (SIGILL, sigfpe_handler);
7427 if ac_fn_c_try_run "$LINENO"; then :
7428 gt_cv_int_divbyzero_sigfpe=yes
7430 gt_cv_int_divbyzero_sigfpe=no
7432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7433 conftest.$ac_objext conftest.beam conftest.$ac_ext
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7439 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7440 case "$gt_cv_int_divbyzero_sigfpe" in
7445 cat >>confdefs.h <<_ACEOF
7446 #define INTDIV0_RAISES_SIGFPE $value
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7452 $as_echo_n "checking for unsigned long long... " >&6; }
7453 if ${ac_cv_type_unsigned_long_long+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 unsigned long long ull = 1ULL; int i = 63;
7462 unsigned long long ullmax = (unsigned long long) -1;
7463 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7468 if ac_fn_c_try_link "$LINENO"; then :
7469 ac_cv_type_unsigned_long_long=yes
7471 ac_cv_type_unsigned_long_long=no
7473 rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7477 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7478 if test $ac_cv_type_unsigned_long_long = yes; then
7480 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7487 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7489 test $ac_cv_type_unsigned_long_long = yes \
7490 && ac_type='unsigned long long' \
7491 || ac_type='unsigned long'
7493 cat >>confdefs.h <<_ACEOF
7494 #define uintmax_t $ac_type
7499 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7505 $as_echo_n "checking for inttypes.h... " >&6; }
7506 if ${gt_cv_header_inttypes_h+:} false; then :
7507 $as_echo_n "(cached) " >&6
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <sys/types.h>
7513 #include <inttypes.h>
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 gt_cv_header_inttypes_h=yes
7525 gt_cv_header_inttypes_h=no
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7531 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7532 if test $gt_cv_header_inttypes_h = yes; then
7534 cat >>confdefs.h <<_ACEOF
7535 #define HAVE_INTTYPES_H 1
7542 if test $gt_cv_header_inttypes_h = yes; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7544 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7545 if ${gt_cv_inttypes_pri_broken+:} false; then :
7546 $as_echo_n "(cached) " >&6
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 #include <inttypes.h>
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 gt_cv_inttypes_pri_broken=no
7567 gt_cv_inttypes_pri_broken=yes
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7573 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7575 if test "$gt_cv_inttypes_pri_broken" = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578 #define PRI_MACROS_BROKEN 1
7584 for ac_header in stdint.h
7586 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7587 if test "x$ac_cv_header_stdint_h" = xyes; then :
7588 cat >>confdefs.h <<_ACEOF
7589 #define HAVE_STDINT_H 1
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7597 $as_echo_n "checking for SIZE_MAX... " >&6; }
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7612 $EGREP "Found it" >/dev/null 2>&1; then :
7617 if test -z "$result"; then
7618 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7625 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7632 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7639 if test "$fits_in_uint" = 1; then
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7644 extern unsigned long foo;
7654 if ac_fn_c_try_compile "$LINENO"; then :
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 if test -z "$result"; then
7660 if test "$fits_in_uint" = 1; then
7661 result="$res_hi$res_lo"U
7663 result="$res_hi$res_lo"UL
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7670 $as_echo "$result" >&6; }
7671 if test "$result" != yes; then
7673 cat >>confdefs.h <<_ACEOF
7674 #define SIZE_MAX $result
7681 for ac_header in stdint.h
7683 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7684 if test "x$ac_cv_header_stdint_h" = xyes; then :
7685 cat >>confdefs.h <<_ACEOF
7686 #define HAVE_STDINT_H 1
7695 if test "X$prefix" = "XNONE"; then
7696 acl_final_prefix="$ac_default_prefix"
7698 acl_final_prefix="$prefix"
7700 if test "X$exec_prefix" = "XNONE"; then
7701 acl_final_exec_prefix='${prefix}'
7703 acl_final_exec_prefix="$exec_prefix"
7705 acl_save_prefix="$prefix"
7706 prefix="$acl_final_prefix"
7707 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7708 prefix="$acl_save_prefix"
7711 # Check whether --with-gnu-ld was given.
7712 if test "${with_gnu_ld+set}" = set; then :
7713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7718 # Prepare PATH_SEPARATOR.
7719 # The user is always right.
7720 if test "${PATH_SEPARATOR+set}" != set; then
7721 echo "#! /bin/sh" >conf$$.sh
7722 echo "exit 0" >>conf$$.sh
7724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7732 if test "$GCC" = yes; then
7733 # Check if gcc -print-prog-name=ld gives a path.
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7735 $as_echo_n "checking for ld used by GCC... " >&6; }
7738 # gcc leaves a trailing carriage return which upsets mingw
7739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7744 # Accept absolute paths.
7745 [\\/]* | [A-Za-z]:[\\/]*)
7746 re_direlt='/[^/][^/]*/\.\./'
7747 # Canonicalize the path of ld
7748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7752 test -z "$LD" && LD="$ac_prog"
7755 # If it fails, then pretend we aren't using GCC.
7759 # If it is relative, then search for the first ld in PATH.
7763 elif test "$with_gnu_ld" = yes; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7765 $as_echo_n "checking for GNU ld... " >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7768 $as_echo_n "checking for non-GNU ld... " >&6; }
7770 if ${acl_cv_path_LD+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -z "$LD"; then
7774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7775 for ac_dir in $PATH; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7778 acl_cv_path_LD="$ac_dir/$ac_prog"
7779 # Check to see if the program is GNU ld. I'd rather use --version,
7780 # but apparently some GNU ld's only accept -v.
7781 # Break only if it was the GNU/non-GNU ld that we prefer.
7782 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7783 *GNU* | *'with BFD'*)
7784 test "$with_gnu_ld" != no && break ;;
7786 test "$with_gnu_ld" != yes && break ;;
7792 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7796 LD="$acl_cv_path_LD"
7797 if test -n "$LD"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7799 $as_echo "$LD" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7804 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7806 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7807 if ${acl_cv_prog_gnu_ld+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7811 case `$LD -v 2>&1 </dev/null` in
7812 *GNU* | *'with BFD'*)
7813 acl_cv_prog_gnu_ld=yes ;;
7815 acl_cv_prog_gnu_ld=no ;;
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7819 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7820 with_gnu_ld=$acl_cv_prog_gnu_ld
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7825 $as_echo_n "checking for shared library run path origin... " >&6; }
7826 if ${acl_cv_rpath+:} false; then :
7827 $as_echo_n "(cached) " >&6
7830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7838 $as_echo "$acl_cv_rpath" >&6; }
7840 libext="$acl_cv_libext"
7841 shlibext="$acl_cv_shlibext"
7842 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7843 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7844 hardcode_direct="$acl_cv_hardcode_direct"
7845 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7846 # Check whether --enable-rpath was given.
7847 if test "${enable_rpath+set}" = set; then :
7848 enableval=$enable_rpath; :
7862 acl_save_prefix="$prefix"
7863 prefix="$acl_final_prefix"
7864 acl_save_exec_prefix="$exec_prefix"
7865 exec_prefix="$acl_final_exec_prefix"
7867 eval additional_includedir=\"$includedir\"
7868 eval additional_libdir=\"$libdir\"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7874 # Check whether --with-libiconv-prefix was given.
7875 if test "${with_libiconv_prefix+set}" = set; then :
7876 withval=$with_libiconv_prefix;
7877 if test "X$withval" = "Xno"; then
7880 if test "X$withval" = "X"; then
7882 acl_save_prefix="$prefix"
7883 prefix="$acl_final_prefix"
7884 acl_save_exec_prefix="$exec_prefix"
7885 exec_prefix="$acl_final_exec_prefix"
7887 eval additional_includedir=\"$includedir\"
7888 eval additional_libdir=\"$libdir\"
7890 exec_prefix="$acl_save_exec_prefix"
7891 prefix="$acl_save_prefix"
7894 additional_includedir="$withval/include"
7895 additional_libdir="$withval/lib"
7906 names_already_handled=
7907 names_next_round='iconv '
7908 while test -n "$names_next_round"; do
7909 names_this_round="$names_next_round"
7911 for name in $names_this_round; do
7913 for n in $names_already_handled; do
7914 if test "$n" = "$name"; then
7919 if test -z "$already_handled"; then
7920 names_already_handled="$names_already_handled $name"
7921 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7922 eval value=\"\$HAVE_LIB$uppername\"
7923 if test -n "$value"; then
7924 if test "$value" = yes; then
7925 eval value=\"\$LIB$uppername\"
7926 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7927 eval value=\"\$LTLIB$uppername\"
7928 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7937 if test $use_additional = yes; then
7938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7939 found_dir="$additional_libdir"
7940 found_so="$additional_libdir/lib$name.$shlibext"
7941 if test -f "$additional_libdir/lib$name.la"; then
7942 found_la="$additional_libdir/lib$name.la"
7945 if test -f "$additional_libdir/lib$name.$libext"; then
7946 found_dir="$additional_libdir"
7947 found_a="$additional_libdir/lib$name.$libext"
7948 if test -f "$additional_libdir/lib$name.la"; then
7949 found_la="$additional_libdir/lib$name.la"
7954 if test "X$found_dir" = "X"; then
7955 for x in $LDFLAGS $LTLIBICONV; do
7957 acl_save_prefix="$prefix"
7958 prefix="$acl_final_prefix"
7959 acl_save_exec_prefix="$exec_prefix"
7960 exec_prefix="$acl_final_exec_prefix"
7962 exec_prefix="$acl_save_exec_prefix"
7963 prefix="$acl_save_prefix"
7967 dir=`echo "X$x" | sed -e 's/^X-L//'`
7968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7970 found_so="$dir/lib$name.$shlibext"
7971 if test -f "$dir/lib$name.la"; then
7972 found_la="$dir/lib$name.la"
7975 if test -f "$dir/lib$name.$libext"; then
7977 found_a="$dir/lib$name.$libext"
7978 if test -f "$dir/lib$name.la"; then
7979 found_la="$dir/lib$name.la"
7985 if test "X$found_dir" != "X"; then
7990 if test "X$found_dir" != "X"; then
7991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7992 if test "X$found_so" != "X"; then
7993 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7997 for x in $ltrpathdirs; do
7998 if test "X$x" = "X$found_dir"; then
8003 if test -z "$haveit"; then
8004 ltrpathdirs="$ltrpathdirs $found_dir"
8006 if test "$hardcode_direct" = yes; then
8007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8012 for x in $rpathdirs; do
8013 if test "X$x" = "X$found_dir"; then
8018 if test -z "$haveit"; then
8019 rpathdirs="$rpathdirs $found_dir"
8023 for x in $LDFLAGS $LIBICONV; do
8025 acl_save_prefix="$prefix"
8026 prefix="$acl_final_prefix"
8027 acl_save_exec_prefix="$exec_prefix"
8028 exec_prefix="$acl_final_exec_prefix"
8030 exec_prefix="$acl_save_exec_prefix"
8031 prefix="$acl_save_prefix"
8033 if test "X$x" = "X-L$found_dir"; then
8038 if test -z "$haveit"; then
8039 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8041 if test "$hardcode_minus_L" != no; then
8042 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8044 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8050 if test "X$found_a" != "X"; then
8051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8053 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8056 additional_includedir=
8057 case "$found_dir" in
8059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8060 additional_includedir="$basedir/include"
8063 if test "X$additional_includedir" != "X"; then
8064 if test "X$additional_includedir" != "X/usr/include"; then
8066 if test "X$additional_includedir" = "X/usr/local/include"; then
8067 if test -n "$GCC"; then
8069 linux*) haveit=yes;;
8073 if test -z "$haveit"; then
8074 for x in $CPPFLAGS $INCICONV; do
8076 acl_save_prefix="$prefix"
8077 prefix="$acl_final_prefix"
8078 acl_save_exec_prefix="$exec_prefix"
8079 exec_prefix="$acl_final_exec_prefix"
8081 exec_prefix="$acl_save_exec_prefix"
8082 prefix="$acl_save_prefix"
8084 if test "X$x" = "X-I$additional_includedir"; then
8089 if test -z "$haveit"; then
8090 if test -d "$additional_includedir"; then
8091 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8097 if test -n "$found_la"; then
8098 save_libdir="$libdir"
8100 */* | *\\*) . "$found_la" ;;
8101 *) . "./$found_la" ;;
8103 libdir="$save_libdir"
8104 for dep in $dependency_libs; do
8107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8108 if test "X$additional_libdir" != "X/usr/lib"; then
8110 if test "X$additional_libdir" = "X/usr/local/lib"; then
8111 if test -n "$GCC"; then
8113 linux*) haveit=yes;;
8117 if test -z "$haveit"; then
8119 for x in $LDFLAGS $LIBICONV; do
8121 acl_save_prefix="$prefix"
8122 prefix="$acl_final_prefix"
8123 acl_save_exec_prefix="$exec_prefix"
8124 exec_prefix="$acl_final_exec_prefix"
8126 exec_prefix="$acl_save_exec_prefix"
8127 prefix="$acl_save_prefix"
8129 if test "X$x" = "X-L$additional_libdir"; then
8134 if test -z "$haveit"; then
8135 if test -d "$additional_libdir"; then
8136 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8140 for x in $LDFLAGS $LTLIBICONV; do
8142 acl_save_prefix="$prefix"
8143 prefix="$acl_final_prefix"
8144 acl_save_exec_prefix="$exec_prefix"
8145 exec_prefix="$acl_final_exec_prefix"
8147 exec_prefix="$acl_save_exec_prefix"
8148 prefix="$acl_save_prefix"
8150 if test "X$x" = "X-L$additional_libdir"; then
8155 if test -z "$haveit"; then
8156 if test -d "$additional_libdir"; then
8157 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8164 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8165 if test "$enable_rpath" != no; then
8167 for x in $rpathdirs; do
8168 if test "X$x" = "X$dir"; then
8173 if test -z "$haveit"; then
8174 rpathdirs="$rpathdirs $dir"
8177 for x in $ltrpathdirs; do
8178 if test "X$x" = "X$dir"; then
8183 if test -z "$haveit"; then
8184 ltrpathdirs="$ltrpathdirs $dir"
8189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8195 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8196 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8202 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8203 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8209 if test "X$rpathdirs" != "X"; then
8210 if test -n "$hardcode_libdir_separator"; then
8212 for found_dir in $rpathdirs; do
8213 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8215 acl_save_libdir="$libdir"
8217 eval flag=\"$hardcode_libdir_flag_spec\"
8218 libdir="$acl_save_libdir"
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8221 for found_dir in $rpathdirs; do
8222 acl_save_libdir="$libdir"
8224 eval flag=\"$hardcode_libdir_flag_spec\"
8225 libdir="$acl_save_libdir"
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8230 if test "X$ltrpathdirs" != "X"; then
8231 for found_dir in $ltrpathdirs; do
8232 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8243 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8244 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8248 $as_echo "#define ptrdiff_t long" >>confdefs.h
8253 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8254 stdlib.h string.h unistd.h sys/param.h
8256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8259 cat >>confdefs.h <<_ACEOF
8260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8268 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8269 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8285 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8286 if ${ac_cv_have_decl__snprintf+:} false; then :
8287 $as_echo_n "(cached) " >&6
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8297 char *p = (char *) _snprintf;
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 ac_cv_have_decl__snprintf=yes
8307 ac_cv_have_decl__snprintf=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8312 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8313 if test $ac_cv_have_decl__snprintf = yes; then
8319 cat >>confdefs.h <<_ACEOF
8320 #define HAVE_DECL__SNPRINTF $gt_value
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8326 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8327 if ${ac_cv_have_decl__snwprintf+:} false; then :
8328 $as_echo_n "(cached) " >&6
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8338 char *p = (char *) _snwprintf;
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346 ac_cv_have_decl__snwprintf=yes
8348 ac_cv_have_decl__snwprintf=no
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8353 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8354 if test $ac_cv_have_decl__snwprintf = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361 #define HAVE_DECL__SNWPRINTF $gt_value
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8368 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8369 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8379 #ifndef feof_unlocked
8380 char *p = (char *) feof_unlocked;
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 ac_cv_have_decl_feof_unlocked=yes
8390 ac_cv_have_decl_feof_unlocked=no
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8395 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8396 if test $ac_cv_have_decl_feof_unlocked = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8409 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8410 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8411 $as_echo_n "(cached) " >&6
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8420 #ifndef fgets_unlocked
8421 char *p = (char *) fgets_unlocked;
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 ac_cv_have_decl_fgets_unlocked=yes
8431 ac_cv_have_decl_fgets_unlocked=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8436 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8437 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8443 cat >>confdefs.h <<_ACEOF
8444 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8450 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8451 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8461 #ifndef getc_unlocked
8462 char *p = (char *) getc_unlocked;
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 ac_cv_have_decl_getc_unlocked=yes
8472 ac_cv_have_decl_getc_unlocked=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8477 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8478 if test $ac_cv_have_decl_getc_unlocked = yes; then
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8490 case $gt_cv_func_printf_posix in
8491 *yes) HAVE_POSIX_PRINTF=1 ;;
8492 *) HAVE_POSIX_PRINTF=0 ;;
8495 if test "$ac_cv_func_asprintf" = yes; then
8501 if test "$ac_cv_func_snprintf" = yes; then
8507 if test "$ac_cv_func_wprintf" = yes; then
8519 am_save_CPPFLAGS="$CPPFLAGS"
8521 for element in $INCICONV; do
8523 for x in $CPPFLAGS; do
8525 acl_save_prefix="$prefix"
8526 prefix="$acl_final_prefix"
8527 acl_save_exec_prefix="$exec_prefix"
8528 exec_prefix="$acl_final_exec_prefix"
8530 exec_prefix="$acl_save_exec_prefix"
8531 prefix="$acl_save_prefix"
8533 if test "X$x" = "X$element"; then
8538 if test -z "$haveit"; then
8539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8545 $as_echo_n "checking for iconv... " >&6; }
8546 if ${am_cv_func_iconv+:} false; then :
8547 $as_echo_n "(cached) " >&6
8550 am_cv_func_iconv="no, consider installing GNU libiconv"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8559 iconv_t cd = iconv_open("","");
8560 iconv(cd,NULL,NULL,NULL,NULL);
8566 if ac_fn_c_try_link "$LINENO"; then :
8567 am_cv_func_iconv=yes
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 if test "$am_cv_func_iconv" != yes; then
8572 am_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBICONV"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8581 iconv_t cd = iconv_open("","");
8582 iconv(cd,NULL,NULL,NULL,NULL);
8588 if ac_fn_c_try_link "$LINENO"; then :
8590 am_cv_func_iconv=yes
8592 rm -f core conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 LIBS="$am_save_LIBS"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8599 $as_echo "$am_cv_func_iconv" >&6; }
8600 if test "$am_cv_func_iconv" = yes; then
8602 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8605 if test "$am_cv_lib_iconv" = yes; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8607 $as_echo_n "checking how to link with libiconv... " >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8609 $as_echo "$LIBICONV" >&6; }
8611 CPPFLAGS="$am_save_CPPFLAGS"
8618 if test "$am_cv_func_iconv" = yes; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8620 $as_echo_n "checking for iconv declaration... " >&6; }
8621 if ${am_cv_proto_iconv+:} false; then :
8622 $as_echo_n "(cached) " >&6
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8634 #if defined(__STDC__) || defined(__cplusplus)
8635 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8648 if ac_fn_c_try_compile "$LINENO"; then :
8649 am_cv_proto_iconv_arg1=""
8651 am_cv_proto_iconv_arg1="const"
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 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);"
8657 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8659 }$am_cv_proto_iconv" >&5
8661 }$am_cv_proto_iconv" >&6; }
8663 cat >>confdefs.h <<_ACEOF
8664 #define ICONV_CONST $am_cv_proto_iconv_arg1
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8671 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8672 if ${am_cv_langinfo_codeset+:} false; then :
8673 $as_echo_n "(cached) " >&6
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <langinfo.h>
8681 char* cs = nl_langinfo(CODESET);
8686 if ac_fn_c_try_link "$LINENO"; then :
8687 am_cv_langinfo_codeset=yes
8689 am_cv_langinfo_codeset=no
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8696 $as_echo "$am_cv_langinfo_codeset" >&6; }
8697 if test $am_cv_langinfo_codeset = yes; then
8699 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8703 if test $ac_cv_header_locale_h = yes; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8706 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8707 if ${am_cv_val_LC_MESSAGES+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 am_cv_val_LC_MESSAGES=yes
8724 am_cv_val_LC_MESSAGES=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8730 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8731 if test $am_cv_val_LC_MESSAGES = yes; then
8733 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8739 for ac_prog in bison
8741 # Extract the first word of "$ac_prog", so it can be a program name with args.
8742 set dummy $ac_prog; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_INTLBISON+:} false; then :
8746 $as_echo_n "(cached) " >&6
8748 if test -n "$INTLBISON"; then
8749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_INTLBISON="$ac_prog"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 INTLBISON=$ac_cv_prog_INTLBISON
8769 if test -n "$INTLBISON"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8771 $as_echo "$INTLBISON" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8778 test -n "$INTLBISON" && break
8781 if test -z "$INTLBISON"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8785 $as_echo_n "checking version of bison... " >&6; }
8786 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8787 case $ac_prog_version in
8788 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8789 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8790 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8791 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8794 $as_echo "$ac_prog_version" >&6; }
8796 if test $ac_verc_fail = yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8816 $as_echo_n "checking whether NLS is requested... " >&6; }
8817 # Check whether --enable-nls was given.
8818 if test "${enable_nls+set}" = set; then :
8819 enableval=$enable_nls; USE_NLS=$enableval
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8825 $as_echo "$USE_NLS" >&6; }
8830 BUILD_INCLUDED_LIBINTL=no
8831 USE_INCLUDED_LIBINTL=no
8837 if test "$USE_NLS" = "yes"; then
8838 gt_use_preinstalled_gnugettext=no
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8841 $as_echo_n "checking whether included gettext is requested... " >&6; }
8843 # Check whether --with-included-gettext was given.
8844 if test "${with_included_gettext+set}" = set; then :
8845 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8847 nls_cv_force_use_gnu_gettext=no
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8851 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8853 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8854 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8862 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8863 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <libintl.h>
8869 extern int _nl_msg_cat_cntr;
8870 extern int *_nl_domain_bindings;
8874 bindtextdomain ("", "");
8875 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8880 if ac_fn_c_try_link "$LINENO"; then :
8881 gt_cv_func_gnugettext1_libc=yes
8883 gt_cv_func_gnugettext1_libc=no
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8889 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8891 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
8902 eval additional_includedir=\"$includedir\"
8903 eval additional_libdir=\"$libdir\"
8905 exec_prefix="$acl_save_exec_prefix"
8906 prefix="$acl_save_prefix"
8909 # Check whether --with-libintl-prefix was given.
8910 if test "${with_libintl_prefix+set}" = set; then :
8911 withval=$with_libintl_prefix;
8912 if test "X$withval" = "Xno"; then
8915 if test "X$withval" = "X"; then
8917 acl_save_prefix="$prefix"
8918 prefix="$acl_final_prefix"
8919 acl_save_exec_prefix="$exec_prefix"
8920 exec_prefix="$acl_final_exec_prefix"
8922 eval additional_includedir=\"$includedir\"
8923 eval additional_libdir=\"$libdir\"
8925 exec_prefix="$acl_save_exec_prefix"
8926 prefix="$acl_save_prefix"
8929 additional_includedir="$withval/include"
8930 additional_libdir="$withval/lib"
8941 names_already_handled=
8942 names_next_round='intl '
8943 while test -n "$names_next_round"; do
8944 names_this_round="$names_next_round"
8946 for name in $names_this_round; do
8948 for n in $names_already_handled; do
8949 if test "$n" = "$name"; then
8954 if test -z "$already_handled"; then
8955 names_already_handled="$names_already_handled $name"
8956 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8957 eval value=\"\$HAVE_LIB$uppername\"
8958 if test -n "$value"; then
8959 if test "$value" = yes; then
8960 eval value=\"\$LIB$uppername\"
8961 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8962 eval value=\"\$LTLIB$uppername\"
8963 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8972 if test $use_additional = yes; then
8973 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8974 found_dir="$additional_libdir"
8975 found_so="$additional_libdir/lib$name.$shlibext"
8976 if test -f "$additional_libdir/lib$name.la"; then
8977 found_la="$additional_libdir/lib$name.la"
8980 if test -f "$additional_libdir/lib$name.$libext"; then
8981 found_dir="$additional_libdir"
8982 found_a="$additional_libdir/lib$name.$libext"
8983 if test -f "$additional_libdir/lib$name.la"; then
8984 found_la="$additional_libdir/lib$name.la"
8989 if test "X$found_dir" = "X"; then
8990 for x in $LDFLAGS $LTLIBINTL; do
8992 acl_save_prefix="$prefix"
8993 prefix="$acl_final_prefix"
8994 acl_save_exec_prefix="$exec_prefix"
8995 exec_prefix="$acl_final_exec_prefix"
8997 exec_prefix="$acl_save_exec_prefix"
8998 prefix="$acl_save_prefix"
9002 dir=`echo "X$x" | sed -e 's/^X-L//'`
9003 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9005 found_so="$dir/lib$name.$shlibext"
9006 if test -f "$dir/lib$name.la"; then
9007 found_la="$dir/lib$name.la"
9010 if test -f "$dir/lib$name.$libext"; then
9012 found_a="$dir/lib$name.$libext"
9013 if test -f "$dir/lib$name.la"; then
9014 found_la="$dir/lib$name.la"
9020 if test "X$found_dir" != "X"; then
9025 if test "X$found_dir" != "X"; then
9026 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9027 if test "X$found_so" != "X"; then
9028 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9032 for x in $ltrpathdirs; do
9033 if test "X$x" = "X$found_dir"; then
9038 if test -z "$haveit"; then
9039 ltrpathdirs="$ltrpathdirs $found_dir"
9041 if test "$hardcode_direct" = yes; then
9042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9044 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9047 for x in $rpathdirs; do
9048 if test "X$x" = "X$found_dir"; then
9053 if test -z "$haveit"; then
9054 rpathdirs="$rpathdirs $found_dir"
9058 for x in $LDFLAGS $LIBINTL; do
9060 acl_save_prefix="$prefix"
9061 prefix="$acl_final_prefix"
9062 acl_save_exec_prefix="$exec_prefix"
9063 exec_prefix="$acl_final_exec_prefix"
9065 exec_prefix="$acl_save_exec_prefix"
9066 prefix="$acl_save_prefix"
9068 if test "X$x" = "X-L$found_dir"; then
9073 if test -z "$haveit"; then
9074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9076 if test "$hardcode_minus_L" != no; then
9077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9079 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9085 if test "X$found_a" != "X"; then
9086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9091 additional_includedir=
9092 case "$found_dir" in
9094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9095 additional_includedir="$basedir/include"
9098 if test "X$additional_includedir" != "X"; then
9099 if test "X$additional_includedir" != "X/usr/include"; then
9101 if test "X$additional_includedir" = "X/usr/local/include"; then
9102 if test -n "$GCC"; then
9104 linux*) haveit=yes;;
9108 if test -z "$haveit"; then
9109 for x in $CPPFLAGS $INCINTL; do
9111 acl_save_prefix="$prefix"
9112 prefix="$acl_final_prefix"
9113 acl_save_exec_prefix="$exec_prefix"
9114 exec_prefix="$acl_final_exec_prefix"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9119 if test "X$x" = "X-I$additional_includedir"; then
9124 if test -z "$haveit"; then
9125 if test -d "$additional_includedir"; then
9126 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9132 if test -n "$found_la"; then
9133 save_libdir="$libdir"
9135 */* | *\\*) . "$found_la" ;;
9136 *) . "./$found_la" ;;
9138 libdir="$save_libdir"
9139 for dep in $dependency_libs; do
9142 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9143 if test "X$additional_libdir" != "X/usr/lib"; then
9145 if test "X$additional_libdir" = "X/usr/local/lib"; then
9146 if test -n "$GCC"; then
9148 linux*) haveit=yes;;
9152 if test -z "$haveit"; then
9154 for x in $LDFLAGS $LIBINTL; do
9156 acl_save_prefix="$prefix"
9157 prefix="$acl_final_prefix"
9158 acl_save_exec_prefix="$exec_prefix"
9159 exec_prefix="$acl_final_exec_prefix"
9161 exec_prefix="$acl_save_exec_prefix"
9162 prefix="$acl_save_prefix"
9164 if test "X$x" = "X-L$additional_libdir"; then
9169 if test -z "$haveit"; then
9170 if test -d "$additional_libdir"; then
9171 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9175 for x in $LDFLAGS $LTLIBINTL; do
9177 acl_save_prefix="$prefix"
9178 prefix="$acl_final_prefix"
9179 acl_save_exec_prefix="$exec_prefix"
9180 exec_prefix="$acl_final_exec_prefix"
9182 exec_prefix="$acl_save_exec_prefix"
9183 prefix="$acl_save_prefix"
9185 if test "X$x" = "X-L$additional_libdir"; then
9190 if test -z "$haveit"; then
9191 if test -d "$additional_libdir"; then
9192 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9199 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9200 if test "$enable_rpath" != no; then
9202 for x in $rpathdirs; do
9203 if test "X$x" = "X$dir"; then
9208 if test -z "$haveit"; then
9209 rpathdirs="$rpathdirs $dir"
9212 for x in $ltrpathdirs; do
9213 if test "X$x" = "X$dir"; then
9218 if test -z "$haveit"; then
9219 ltrpathdirs="$ltrpathdirs $dir"
9224 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9227 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9230 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9237 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9244 if test "X$rpathdirs" != "X"; then
9245 if test -n "$hardcode_libdir_separator"; then
9247 for found_dir in $rpathdirs; do
9248 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9250 acl_save_libdir="$libdir"
9252 eval flag=\"$hardcode_libdir_flag_spec\"
9253 libdir="$acl_save_libdir"
9254 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9256 for found_dir in $rpathdirs; do
9257 acl_save_libdir="$libdir"
9259 eval flag=\"$hardcode_libdir_flag_spec\"
9260 libdir="$acl_save_libdir"
9261 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9265 if test "X$ltrpathdirs" != "X"; then
9266 for found_dir in $ltrpathdirs; do
9267 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9272 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9273 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9274 $as_echo_n "(cached) " >&6
9276 gt_save_CPPFLAGS="$CPPFLAGS"
9277 CPPFLAGS="$CPPFLAGS $INCINTL"
9278 gt_save_LIBS="$LIBS"
9279 LIBS="$LIBS $LIBINTL"
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 gt_cv_func_gnugettext1_libintl=yes
9301 gt_cv_func_gnugettext1_libintl=no
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9306 LIBS="$LIBS $LIBICONV"
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <libintl.h>
9310 extern int _nl_msg_cat_cntr;
9315 const char *_nl_expand_alias ();
9319 bindtextdomain ("", "");
9320 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9325 if ac_fn_c_try_link "$LINENO"; then :
9326 LIBINTL="$LIBINTL $LIBICONV"
9327 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9328 gt_cv_func_gnugettext1_libintl=yes
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9334 CPPFLAGS="$gt_save_CPPFLAGS"
9335 LIBS="$gt_save_LIBS"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9338 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9341 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9342 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9343 && test "$PACKAGE" != gettext-runtime \
9344 && test "$PACKAGE" != gettext-tools; }; then
9345 gt_use_preinstalled_gnugettext=yes
9353 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9354 nls_cv_use_gnu_gettext=yes
9358 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9359 BUILD_INCLUDED_LIBINTL=yes
9360 USE_INCLUDED_LIBINTL=yes
9361 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9362 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9363 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9366 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9367 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9372 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9373 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9375 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9383 $as_echo_n "checking whether to use NLS... " >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9385 $as_echo "$USE_NLS" >&6; }
9386 if test "$USE_NLS" = "yes"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9388 $as_echo_n "checking where the gettext function comes from... " >&6; }
9389 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9390 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9391 gt_source="external libintl"
9396 gt_source="included intl directory"
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9399 $as_echo "$gt_source" >&6; }
9402 if test "$USE_NLS" = "yes"; then
9404 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9405 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9407 $as_echo_n "checking how to link with libintl... " >&6; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9409 $as_echo "$LIBINTL" >&6; }
9411 for element in $INCINTL; do
9413 for x in $CPPFLAGS; do
9415 acl_save_prefix="$prefix"
9416 prefix="$acl_final_prefix"
9417 acl_save_exec_prefix="$exec_prefix"
9418 exec_prefix="$acl_final_exec_prefix"
9420 exec_prefix="$acl_save_exec_prefix"
9421 prefix="$acl_save_prefix"
9423 if test "X$x" = "X$element"; then
9428 if test -z "$haveit"; then
9429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9436 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9439 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9447 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9448 BUILD_INCLUDED_LIBINTL=yes
9456 nls_cv_header_libgt=
9467 if test "$USE_INCLUDED_LIBINTL" = yes; then
9468 INTLOBJS="\$(GETTOBJS)"
9472 INTL_LIBTOOL_SUFFIX_PREFIX=
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9485 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9487 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9488 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9489 $as_echo_n "(cached) " >&6
9491 cat >conftest.make <<\_ACEOF
9494 @echo '@@@%%%=$(MAKE)=@@@%%%'
9496 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9497 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9499 eval ac_cv_prog_make_${ac_make}_set=yes;;
9501 eval ac_cv_prog_make_${ac_make}_set=no;;
9505 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9507 $as_echo "yes" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9512 SET_MAKE="MAKE=${MAKE-make}"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9516 $as_echo_n "checking for GNU make... " >&6; }
9517 if ${_cv_gnu_make_command+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 _cv_gnu_make_command='' ;
9521 for a in "$MAKE" make gmake gnumake ; do
9522 if test -z "$a" ; then continue ; fi ;
9523 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9524 _cv_gnu_make_command=$a ;
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9531 $as_echo "$_cv_gnu_make_command" >&6; } ;
9532 if test "x$_cv_gnu_make_command" != "x" ; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9539 $as_echo "\"Not found\"" >&6; };
9544 # Extract the first word of "ln", so it can be a program name with args.
9545 set dummy ln; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_LN+:} false; then :
9549 $as_echo_n "(cached) " >&6
9553 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9576 if test -n "$LN"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9578 $as_echo "$LN" >&6; }
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9586 $as_echo_n "checking whether ln -s works... " >&6; }
9588 if test "$LN_S" = "ln -s"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590 $as_echo "yes" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9593 $as_echo "no, using $LN_S" >&6; }
9596 # Extract the first word of "mv", so it can be a program name with args.
9597 set dummy mv; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_path_MV+:} false; then :
9601 $as_echo_n "(cached) " >&6
9605 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9628 if test -n "$MV"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9630 $as_echo "$MV" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9637 # Extract the first word of "cp", so it can be a program name with args.
9638 set dummy cp; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_CP+:} false; then :
9642 $as_echo_n "(cached) " >&6
9646 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9669 if test -n "$CP"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9671 $as_echo "$CP" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9678 # Extract the first word of "rm", so it can be a program name with args.
9679 set dummy rm; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_path_RM+:} false; then :
9683 $as_echo_n "(cached) " >&6
9687 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9697 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9710 if test -n "$RM"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9712 $as_echo "$RM" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9719 # Extract the first word of "chmod", so it can be a program name with args.
9720 set dummy chmod; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_CHMOD+:} false; then :
9724 $as_echo_n "(cached) " >&6
9728 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9750 CHMOD=$ac_cv_path_CHMOD
9751 if test -n "$CHMOD"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9753 $as_echo "$CHMOD" >&6; }
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9760 for ac_prog in gawk mawk nawk awk
9762 # Extract the first word of "$ac_prog", so it can be a program name with args.
9763 set dummy $ac_prog; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if ${ac_cv_prog_AWK+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 if test -n "$AWK"; then
9770 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779 ac_cv_prog_AWK="$ac_prog"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 if test -n "$AWK"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9792 $as_echo "$AWK" >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9799 test -n "$AWK" && break
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9803 $as_echo_n "checking for egrep... " >&6; }
9804 if ${ac_cv_path_EGREP+:} false; then :
9805 $as_echo_n "(cached) " >&6
9807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9808 then ac_cv_path_EGREP="$GREP -E"
9810 if test -z "$EGREP"; then
9811 ac_path_EGREP_found=false
9812 # Loop through the user's path and test for each of PROGNAME-LIST
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9817 test -z "$as_dir" && as_dir=.
9818 for ac_prog in egrep; do
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9821 as_fn_executable_p "$ac_path_EGREP" || continue
9822 # Check for GNU ac_path_EGREP and select it if it is found.
9823 # Check for GNU $ac_path_EGREP
9824 case `"$ac_path_EGREP" --version 2>&1` in
9826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9829 $as_echo_n 0123456789 >"conftest.in"
9832 cat "conftest.in" "conftest.in" >"conftest.tmp"
9833 mv "conftest.tmp" "conftest.in"
9834 cp "conftest.in" "conftest.nl"
9835 $as_echo 'EGREP' >> "conftest.nl"
9836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9838 as_fn_arith $ac_count + 1 && ac_count=$as_val
9839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9840 # Best one so far, save it but keep looking for a better one
9841 ac_cv_path_EGREP="$ac_path_EGREP"
9842 ac_path_EGREP_max=$ac_count
9844 # 10*(2^10) chars as input seems more than enough
9845 test $ac_count -gt 10 && break
9847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9850 $ac_path_EGREP_found && break 3
9855 if test -z "$ac_cv_path_EGREP"; then
9856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9859 ac_cv_path_EGREP=$EGREP
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9865 $as_echo "$ac_cv_path_EGREP" >&6; }
9866 EGREP="$ac_cv_path_EGREP"
9869 # Extract the first word of "sed", so it can be a program name with args.
9870 set dummy sed; ac_word=$2
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 $as_echo_n "checking for $ac_word... " >&6; }
9873 if ${ac_cv_path_SED+:} false; then :
9874 $as_echo_n "(cached) " >&6
9878 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9901 if test -n "$SED"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9903 $as_echo "$SED" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9910 # Extract the first word of "perl", so it can be a program name with args.
9911 set dummy perl; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_path_PERL+:} false; then :
9915 $as_echo_n "(cached) " >&6
9919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9941 PERL=$ac_cv_path_PERL
9942 if test -n "$PERL"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9944 $as_echo "$PERL" >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9951 # Extract the first word of "ldconfig", so it can be a program name with args.
9952 set dummy ldconfig; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_path_LDCONFIG+:} false; then :
9956 $as_echo_n "(cached) " >&6
9960 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9982 LDCONFIG=$ac_cv_path_LDCONFIG
9983 if test -n "$LDCONFIG"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9985 $as_echo "$LDCONFIG" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9992 if test -n "$ac_tool_prefix"; then
9993 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9994 set dummy ${ac_tool_prefix}ar; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_prog_AR+:} false; then :
9998 $as_echo_n "(cached) " >&6
10000 if test -n "$AR"; then
10001 ac_cv_prog_AR="$AR" # Let the user override the test.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_AR="${ac_tool_prefix}ar"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 if test -n "$AR"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10023 $as_echo "$AR" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10031 if test -z "$ac_cv_prog_AR"; then
10033 # Extract the first word of "ar", so it can be a program name with args.
10034 set dummy ar; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10038 $as_echo_n "(cached) " >&6
10040 if test -n "$ac_ct_AR"; then
10041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_ac_ct_AR="ar"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10061 if test -n "$ac_ct_AR"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10063 $as_echo "$ac_ct_AR" >&6; }
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10069 if test "x$ac_ct_AR" = x; then
10072 case $cross_compiling:$ac_tool_warned in
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10076 ac_tool_warned=yes ;;
10081 AR="$ac_cv_prog_AR"
10084 if test -n "$ac_tool_prefix"; then
10085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_prog_RANLIB+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 if test -n "$RANLIB"; then
10093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 RANLIB=$ac_cv_prog_RANLIB
10113 if test -n "$RANLIB"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10115 $as_echo "$RANLIB" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10123 if test -z "$ac_cv_prog_RANLIB"; then
10124 ac_ct_RANLIB=$RANLIB
10125 # Extract the first word of "ranlib", so it can be a program name with args.
10126 set dummy ranlib; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 if test -n "$ac_ct_RANLIB"; then
10133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_ac_ct_RANLIB="ranlib"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10153 if test -n "$ac_ct_RANLIB"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10155 $as_echo "$ac_ct_RANLIB" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10161 if test "x$ac_ct_RANLIB" = x; then
10164 case $cross_compiling:$ac_tool_warned in
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10168 ac_tool_warned=yes ;;
10170 RANLIB=$ac_ct_RANLIB
10173 RANLIB="$ac_cv_prog_RANLIB"
10176 if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10178 set dummy ${ac_tool_prefix}strip; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_prog_STRIP+:} false; then :
10182 $as_echo_n "(cached) " >&6
10184 if test -n "$STRIP"; then
10185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 STRIP=$ac_cv_prog_STRIP
10205 if test -n "$STRIP"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10207 $as_echo "$STRIP" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10215 if test -z "$ac_cv_prog_STRIP"; then
10217 # Extract the first word of "strip", so it can be a program name with args.
10218 set dummy strip; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 if test -n "$ac_ct_STRIP"; then
10225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_ac_ct_STRIP="strip"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10245 if test -n "$ac_ct_STRIP"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10247 $as_echo "$ac_ct_STRIP" >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10253 if test "x$ac_ct_STRIP" = x; then
10256 case $cross_compiling:$ac_tool_warned in
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260 ac_tool_warned=yes ;;
10265 STRIP="$ac_cv_prog_STRIP"
10268 # Extract the first word of "makeinfo", so it can be a program name with args.
10269 set dummy makeinfo; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_MAKEINFO+:} false; then :
10273 $as_echo_n "(cached) " >&6
10275 if test -n "$MAKEINFO"; then
10276 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_MAKEINFO="makeinfo"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 MAKEINFO=$ac_cv_prog_MAKEINFO
10296 if test -n "$MAKEINFO"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10298 $as_echo "$MAKEINFO" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10305 if test "_$MAKEINFO" = "_"; then
10306 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10308 case "$MAKEINFO" in
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10311 *** Makeinfo is missing. Info documentation will not be built." >&5
10312 $as_echo "$as_me: WARNING:
10313 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10321 # See if we need a separate native compiler.
10322 if test $cross_compiling = no; then
10326 for ac_prog in gcc cc
10328 # Extract the first word of "$ac_prog", so it can be a program name with args.
10329 set dummy $ac_prog; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_prog_BUILD_CC+:} false; then :
10333 $as_echo_n "(cached) " >&6
10335 if test -n "$BUILD_CC"; then
10336 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10345 ac_cv_prog_BUILD_CC="$ac_prog"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 BUILD_CC=$ac_cv_prog_BUILD_CC
10356 if test -n "$BUILD_CC"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10358 $as_echo "$BUILD_CC" >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10365 test -n "$BUILD_CC" && break
10369 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
10371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10374 cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 for ac_header in sys/disk.h sys/mount.h
10384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10386 #if HAVE_SYS_QUEUE_H
10387 #include <sys/queue.h>
10391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10392 cat >>confdefs.h <<_ACEOF
10393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400 for ac_header in net/if.h
10402 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10403 #if HAVE_SYS_TYPES_H
10404 #include <sys/types.h>
10406 #if HAVE_SYS_SOCKET
10407 #include <sys/socket.h>
10411 if test "x$ac_cv_header_net_if_h" = xyes; then :
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_NET_IF_H 1
10420 for ac_func in vprintf
10422 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10423 if test "x$ac_cv_func_vprintf" = xyes; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_VPRINTF 1
10428 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10429 if test "x$ac_cv_func__doprnt" = xyes; then :
10431 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10439 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10441 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10443 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10447 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10449 if test "x$ac_cv_type_ssize_t" = xyes; then :
10451 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10455 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10457 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10459 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10463 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10464 #define _LARGEFILE64_SOURCE
10465 #include <unistd.h>
10467 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10469 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10473 # The cast to long int works around a bug in the HP C Compiler
10474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10476 # This bug is HP SR number 8606223364.
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10478 $as_echo_n "checking size of short... " >&6; }
10479 if ${ac_cv_sizeof_short+:} false; then :
10480 $as_echo_n "(cached) " >&6
10482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10485 if test "$ac_cv_type_short" = yes; then
10486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10488 as_fn_error 77 "cannot compute sizeof (short)
10489 See \`config.log' for more details" "$LINENO" 5; }
10491 ac_cv_sizeof_short=0
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10497 $as_echo "$ac_cv_sizeof_short" >&6; }
10501 cat >>confdefs.h <<_ACEOF
10502 #define SIZEOF_SHORT $ac_cv_sizeof_short
10506 # The cast to long int works around a bug in the HP C Compiler
10507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10509 # This bug is HP SR number 8606223364.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10511 $as_echo_n "checking size of int... " >&6; }
10512 if ${ac_cv_sizeof_int+:} false; then :
10513 $as_echo_n "(cached) " >&6
10515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10518 if test "$ac_cv_type_int" = yes; then
10519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10521 as_fn_error 77 "cannot compute sizeof (int)
10522 See \`config.log' for more details" "$LINENO" 5; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10530 $as_echo "$ac_cv_sizeof_int" >&6; }
10534 cat >>confdefs.h <<_ACEOF
10535 #define SIZEOF_INT $ac_cv_sizeof_int
10539 # The cast to long int works around a bug in the HP C Compiler
10540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10542 # This bug is HP SR number 8606223364.
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10544 $as_echo_n "checking size of long... " >&6; }
10545 if ${ac_cv_sizeof_long+:} false; then :
10546 $as_echo_n "(cached) " >&6
10548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10551 if test "$ac_cv_type_long" = yes; then
10552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10554 as_fn_error 77 "cannot compute sizeof (long)
10555 See \`config.log' for more details" "$LINENO" 5; }
10557 ac_cv_sizeof_long=0
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10563 $as_echo "$ac_cv_sizeof_long" >&6; }
10567 cat >>confdefs.h <<_ACEOF
10568 #define SIZEOF_LONG $ac_cv_sizeof_long
10572 # The cast to long int works around a bug in the HP C Compiler
10573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10575 # This bug is HP SR number 8606223364.
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10577 $as_echo_n "checking size of long long... " >&6; }
10578 if ${ac_cv_sizeof_long_long+:} false; then :
10579 $as_echo_n "(cached) " >&6
10581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10584 if test "$ac_cv_type_long_long" = yes; then
10585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10587 as_fn_error 77 "cannot compute sizeof (long long)
10588 See \`config.log' for more details" "$LINENO" 5; }
10590 ac_cv_sizeof_long_long=0
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10596 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10600 cat >>confdefs.h <<_ACEOF
10601 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10605 # The cast to long int works around a bug in the HP C Compiler
10606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10608 # This bug is HP SR number 8606223364.
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10610 $as_echo_n "checking size of off_t... " >&6; }
10611 if ${ac_cv_sizeof_off_t+:} false; then :
10612 $as_echo_n "(cached) " >&6
10614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10617 if test "$ac_cv_type_off_t" = yes; then
10618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10620 as_fn_error 77 "cannot compute sizeof (off_t)
10621 See \`config.log' for more details" "$LINENO" 5; }
10623 ac_cv_sizeof_off_t=0
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10629 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10633 cat >>confdefs.h <<_ACEOF
10634 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10638 SIZEOF_SHORT=$ac_cv_sizeof_short
10639 SIZEOF_INT=$ac_cv_sizeof_int
10640 SIZEOF_LONG=$ac_cv_sizeof_long
10641 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10642 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10649 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10650 if ${ac_cv_c_bigendian+:} false; then :
10651 $as_echo_n "(cached) " >&6
10653 ac_cv_c_bigendian=unknown
10654 # See if we're dealing with a universal compiler.
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #ifndef __APPLE_CC__
10658 not a universal capable compiler
10663 if ac_fn_c_try_compile "$LINENO"; then :
10665 # Check for potential -arch flags. It is not universal unless
10666 # there are at least two -arch flags with different values.
10669 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10670 if test -n "$ac_prev"; then
10672 i?86 | x86_64 | ppc | ppc64)
10673 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10676 ac_cv_c_bigendian=universal
10682 elif test "x$ac_word" = "x-arch"; then
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 if test $ac_cv_c_bigendian = unknown; then
10689 # See if sys/param.h defines the BYTE_ORDER macro.
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <sys/types.h>
10693 #include <sys/param.h>
10698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10699 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10701 bogus endian macros
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709 # It does; now see whether it defined to BIG_ENDIAN or not.
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <sys/types.h>
10713 #include <sys/param.h>
10718 #if BYTE_ORDER != BIG_ENDIAN
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727 ac_cv_c_bigendian=yes
10729 ac_cv_c_bigendian=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 if test $ac_cv_c_bigendian = unknown; then
10736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <limits.h>
10744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10745 bogus endian macros
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753 # It does; now see whether it defined to _BIG_ENDIAN or not.
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <limits.h>
10761 #ifndef _BIG_ENDIAN
10769 if ac_fn_c_try_compile "$LINENO"; then :
10770 ac_cv_c_bigendian=yes
10772 ac_cv_c_bigendian=no
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 if test $ac_cv_c_bigendian = unknown; then
10779 # Compile a test program.
10780 if test "$cross_compiling" = yes; then :
10781 # Try to guess by grepping values from an object file.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 short int ascii_mm[] =
10785 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10786 short int ascii_ii[] =
10787 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10788 int use_ascii (int i) {
10789 return ascii_mm[i] + ascii_ii[i];
10791 short int ebcdic_ii[] =
10792 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10793 short int ebcdic_mm[] =
10794 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10795 int use_ebcdic (int i) {
10796 return ebcdic_mm[i] + ebcdic_ii[i];
10803 return use_ascii (foo) == use_ebcdic (foo);
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10810 ac_cv_c_bigendian=yes
10812 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10813 if test "$ac_cv_c_bigendian" = unknown; then
10814 ac_cv_c_bigendian=no
10816 # finding both strings is unlikely to happen, but who knows?
10817 ac_cv_c_bigendian=unknown
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 $ac_includes_default
10830 /* Are we little or big endian? From Harbison&Steele. */
10834 char c[sizeof (long int)];
10837 return u.c[sizeof (long int) - 1] == 1;
10843 if ac_fn_c_try_run "$LINENO"; then :
10844 ac_cv_c_bigendian=no
10846 ac_cv_c_bigendian=yes
10848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10849 conftest.$ac_objext conftest.beam conftest.$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10855 $as_echo "$ac_cv_c_bigendian" >&6; }
10856 case $ac_cv_c_bigendian in #(
10858 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10864 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10868 as_fn_error $? "unknown endianness
10869 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10872 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10873 ASM_TYPES_HEADER=./asm_types.h
10875 echo "/* These defines are needed for the public ext2fs.h header file */" \
10877 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10878 uniq tmp_config.$$ >> public_config.h
10880 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10882 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10883 uniq tmp_config.$$ >> public_config.h
10885 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10887 rm -f tmp_config.$$
10888 PUBLIC_CONFIG_HEADER=./public_config.h
10890 for ac_header in inttypes.h
10892 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10893 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_INTTYPES_H 1
10902 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10903 if test "x$ac_cv_type_intptr_t" = xyes; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_INTPTR_T 1
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10913 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10914 if ${e2fsprogs_cv_struct_st_flags+:} 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 = 0;
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 e2fsprogs_cv_struct_st_flags=yes
10931 e2fsprogs_cv_struct_st_flags=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" >&5
10937 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10938 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10940 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10941 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10942 $as_echo_n "(cached) " >&6
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <sys/stat.h>
10950 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 e2fsprogs_cv_struct_st_flags_immut=yes
10958 e2fsprogs_cv_struct_st_flags_immut=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10964 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10965 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10967 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10971 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10972 #include <sys/socket.h>
10974 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_SA_LEN 1
10982 if test -n "$BLKID_CMT"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10984 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10985 if ${ac_cv_search_blkid_probe_all+:} false; then :
10986 $as_echo_n "(cached) " >&6
10988 ac_func_search_save_LIBS=$LIBS
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10998 char blkid_probe_all ();
11002 return blkid_probe_all ();
11007 for ac_lib in '' blkid; do
11008 if test -z "$ac_lib"; then
11009 ac_res="none required"
11012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_search_blkid_probe_all=$ac_res
11017 rm -f core conftest.err conftest.$ac_objext \
11019 if ${ac_cv_search_blkid_probe_all+:} false; then :
11023 if ${ac_cv_search_blkid_probe_all+:} false; then :
11026 ac_cv_search_blkid_probe_all=no
11028 rm conftest.$ac_ext
11029 LIBS=$ac_func_search_save_LIBS
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11032 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11033 ac_res=$ac_cv_search_blkid_probe_all
11034 if test "$ac_res" != no; then :
11035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11040 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 secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11045 cat >>confdefs.h <<_ACEOF
11046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11054 $as_echo_n "checking for socket in -lsocket... " >&6; }
11055 if ${ac_cv_lib_socket_socket+:} false; then :
11056 $as_echo_n "(cached) " >&6
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-lsocket $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_socket_socket=yes
11081 ac_cv_lib_socket_socket=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11088 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11089 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11090 SOCKET_LIB=-lsocket
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11095 $as_echo_n "checking for optreset... " >&6; }
11096 if ${ac_cv_have_optreset+:} false; then :
11097 $as_echo_n "(cached) " >&6
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101 #include <unistd.h>
11104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11105 $EGREP "optreset" >/dev/null 2>&1; then :
11106 ac_cv_have_optreset=yes
11108 ac_cv_have_optreset=no
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11114 $as_echo "$ac_cv_have_optreset" >&6; }
11115 if test $ac_cv_have_optreset = yes; then
11117 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11122 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11123 if test "x$ac_cv_func_sem_init" = xyes; then :
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11127 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11128 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11129 $as_echo_n "(cached) " >&6
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lpthread $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11146 return sem_init ();
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_pthread_sem_init=yes
11154 ac_cv_lib_pthread_sem_init=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11161 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11162 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11163 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11165 SEM_INIT_LIB=-lpthread
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11168 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11169 if ${ac_cv_lib_rt_sem_init+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 ac_check_lib_save_LIBS=$LIBS
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11187 return sem_init ();
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 ac_cv_lib_rt_sem_init=yes
11195 ac_cv_lib_rt_sem_init=no
11197 rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11202 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11203 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11204 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11209 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11210 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11211 $as_echo_n "(cached) " >&6
11213 ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-lposix4 $LIBS"
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11228 return sem_init ();
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 ac_cv_lib_posix4_sem_init=yes
11236 ac_cv_lib_posix4_sem_init=no
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11243 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11244 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11245 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11247 SEM_INIT_LIB=-lposix4
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11257 $as_echo_n "checking for unified diff option... " >&6; }
11258 if diff -u $0 $0 > /dev/null 2>&1 ; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11264 $as_echo "$UNI_DIFF_OPTS" >&6; }
11269 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11289 linux* | gnu* | k*bsd*-gnu)
11290 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11293 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11298 linux* | gnu* | k*bsd*-gnu)
11299 if test "$prefix" = NONE ; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11302 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11303 if test "$mandir" = '${prefix}/man' ; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11305 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11306 mandir=/usr/share/man
11311 if test "$root_prefix" = NONE ; then
11312 if test "$prefix" = NONE ; then
11313 root_prefix="$ac_default_prefix"
11315 root_prefix="$prefix"
11317 root_bindir=$bindir
11318 root_sbindir=$sbindir
11319 root_libdir=$libdir
11320 root_sysconfdir=$sysconfdir
11322 root_bindir='${root_prefix}/bin'
11323 root_sbindir='${root_prefix}/sbin'
11324 root_libdir='${root_prefix}/lib'
11325 root_sysconfdir='${root_prefix}/etc'
11327 if test "$bindir" != '${exec_prefix}/bin'; then
11328 root_bindir=$bindir
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11330 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11332 if test "$sbindir" != '${exec_prefix}/sbin'; then
11333 root_sbindir=$sbindir
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11335 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11337 if test "$libdir" != '${exec_prefix}/lib'; then
11338 root_libdir=$libdir
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11340 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11342 if test "$sysconfdir" != '${prefix}/etc'; then
11343 root_sysconfdir=$sysconfdir
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11345 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11353 # Check whether --with-multiarch was given.
11354 if test "${with_multiarch+set}" = set; then :
11355 withval=$with_multiarch; libdir=$libdir/$withval
11356 root_libdir=$root_libdir/$withval
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11360 $as_echo_n "checking whether we can link with -static... " >&6; }
11361 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11362 $as_echo_n "(cached) " >&6
11364 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_e2fsprogs_use_static=yes
11379 ac_cv_e2fsprogs_use_static=no
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LDFLAGS=$SAVE_LDFLAGS
11388 ac_cv_e2fsprogs_use_static=no
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11392 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11394 if test $ac_cv_e2fsprogs_use_static = yes; then
11395 LDFLAG_STATIC=-static
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11401 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11403 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11407 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11408 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11411 if test "$cross_compiling" = yes ; then
11414 DO_TEST_SUITE=check
11417 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11418 if test -n "$CPPFLAGS" ; then
11419 INCLUDES="$INCLUDES $CPPFLAGS"
11421 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11422 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11425 if test $cross_compiling = no; then
11426 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11427 BUILD_LDFLAGS="$LDFLAGS"
11434 test -d lib || mkdir lib
11435 test -d include || mkdir include
11436 test -d include/linux || mkdir include/linux
11437 test -d include/asm || mkdir include/asm
11438 for i in MCONFIG Makefile e2fsprogs.spec \
11439 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11440 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11441 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11442 lib/uuid/Makefile lib/uuid/uuid_types.h \
11443 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11444 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11445 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11446 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11447 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11448 resize/Makefile doc/Makefile intl/Makefile \
11449 intl/libgnuintl.h po/Makefile.in ; do
11450 if test -d `dirname ${srcdir}/$i` ; then
11451 outlist="$outlist $i"
11454 ac_config_files="$ac_config_files $outlist"
11456 cat >confcache <<\_ACEOF
11457 # This file is a shell script that caches the results of configure
11458 # tests run on this system so they can be shared between configure
11459 # scripts and configure runs, see configure's option --config-cache.
11460 # It is not useful on other systems. If it contains results you don't
11461 # want to keep, you may remove or edit it.
11463 # config.status only pays attention to the cache file if you give it
11464 # the --recheck option to rerun configure.
11466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11468 # following values.
11472 # The following way of writing the cache mishandles newlines in values,
11473 # but we know of no workaround that is simple, portable, and efficient.
11474 # So, we kill variables containing newlines.
11475 # Ultrix sh set writes to stderr and can't be redirected directly,
11476 # and sets the high bit in the cache file unless we assign to the vars.
11478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11479 eval ac_val=\$$ac_var
11483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11487 _ | IFS | as_nl) ;; #(
11488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11489 *) { eval $ac_var=; unset $ac_var;} ;;
11495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11496 *${as_nl}ac_space=\ *)
11497 # `set' does not quote correctly, so add quotes: double-quote
11498 # substitution turns \\\\ into \\, and sed turns \\ into \.
11501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11504 # `set' quotes correctly as required by POSIX, so do not add quotes.
11505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11519 if test -w "$cache_file"; then
11520 if test "x$cache_file" != "x/dev/null"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11522 $as_echo "$as_me: updating cache $cache_file" >&6;}
11523 if test ! -f "$cache_file" || test -h "$cache_file"; then
11524 cat confcache >"$cache_file"
11526 case $cache_file in #(
11528 mv -f confcache "$cache_file"$$ &&
11529 mv -f "$cache_file"$$ "$cache_file" ;; #(
11531 mv -f confcache "$cache_file" ;;
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11537 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11543 # Let make expand exec_prefix.
11544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11546 DEFS=-DHAVE_CONFIG_H
11551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11552 # 1. Remove the extension, and $U if already installed.
11553 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11554 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11555 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11556 # will be set to the directory where LIBOBJS objects are built.
11557 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11558 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11560 LIBOBJS=$ac_libobjs
11562 LTLIBOBJS=$ac_ltlibobjs
11567 : "${CONFIG_STATUS=./config.status}"
11569 ac_clean_files_save=$ac_clean_files
11570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11572 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11574 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11576 # Generated by $as_me.
11577 # Run this file to recreate the current configuration.
11578 # Compiler output produced by configure, useful for debugging
11579 # configure, is in config.log if it exists.
11582 ac_cs_recheck=false
11585 SHELL=\${CONFIG_SHELL-$SHELL}
11588 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11589 ## -------------------- ##
11590 ## M4sh Initialization. ##
11591 ## -------------------- ##
11593 # Be more Bourne compatible
11594 DUALCASE=1; export DUALCASE # for MKS sh
11595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11598 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11599 # is contrary to our usage. Disable this feature.
11600 alias -g '${1+"$@"}'='"$@"'
11601 setopt NO_GLOB_SUBST
11603 case `(set -o) 2>/dev/null` in #(
11615 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11616 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11618 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11619 # Prefer a ksh shell builtin over an external printf program on Solaris,
11620 # but without wasting forks for bash or zsh.
11621 if test -z "$BASH_VERSION$ZSH_VERSION" \
11622 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11623 as_echo='print -r --'
11624 as_echo_n='print -rn --'
11625 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11626 as_echo='printf %s\n'
11627 as_echo_n='printf %s'
11629 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11630 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11631 as_echo_n='/usr/ucb/echo -n'
11633 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11634 as_echo_n_body='eval
11638 expr "X$arg" : "X\\(.*\\)$as_nl";
11639 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11641 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11643 export as_echo_n_body
11644 as_echo_n='sh -c $as_echo_n_body as_echo'
11646 export as_echo_body
11647 as_echo='sh -c $as_echo_body as_echo'
11650 # The user is always right.
11651 if test "${PATH_SEPARATOR+set}" != set; then
11653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11654 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11661 # We need space, tab and new line, in precisely that order. Quoting is
11662 # there to prevent editors from complaining about space-tab.
11663 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11664 # splitting by setting IFS to empty value.)
11667 # Find who we are. Look in the path if we contain no directory separator.
11670 *[\\/]* ) as_myself=$0 ;;
11671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11682 # We did not find ourselves, most probably we were run as `sh COMMAND'
11683 # in which case we are not to be found in the path.
11684 if test "x$as_myself" = x; then
11687 if test ! -f "$as_myself"; then
11688 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11692 # Unset variables that we do not need and which cause bugs (e.g. in
11693 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11694 # suppresses any "Segmentation fault" message there. '((' could
11695 # trigger a bug in pdksh 5.2.14.
11696 for as_var in BASH_ENV ENV MAIL MAILPATH
11697 do eval test x\${$as_var+set} = xset \
11698 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11714 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11715 # ----------------------------------------
11716 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11717 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11718 # script with STATUS, using 1 if that was 0.
11721 as_status=$1; test $as_status -eq 0 && as_status=1
11723 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11724 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11726 $as_echo "$as_me: error: $2" >&2
11727 as_fn_exit $as_status
11731 # as_fn_set_status STATUS
11732 # -----------------------
11733 # Set $? to STATUS, without forking.
11734 as_fn_set_status ()
11737 } # as_fn_set_status
11739 # as_fn_exit STATUS
11740 # -----------------
11741 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11745 as_fn_set_status $1
11751 # Portably unset VAR.
11754 { eval $1=; unset $1;}
11756 as_unset=as_fn_unset
11757 # as_fn_append VAR VALUE
11758 # ----------------------
11759 # Append the text in VALUE to the end of the definition contained in VAR. Take
11760 # advantage of any shell optimizations that allow amortized linear growth over
11761 # repeated appends, instead of the typical quadratic growth present in naive
11763 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11764 eval 'as_fn_append ()
11775 # as_fn_arith ARG...
11776 # ------------------
11777 # Perform arithmetic evaluation on the ARGs, and store the result in the
11778 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11779 # must be portable across $(()) and expr.
11780 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11781 eval 'as_fn_arith ()
11788 as_val=`expr "$@" || test $? -eq 1`
11793 if expr a : '\(a\)' >/dev/null 2>&1 &&
11794 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11800 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11801 as_basename=basename
11806 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11812 as_me=`$as_basename -- "$0" ||
11813 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11814 X"$0" : 'X\(//\)$' \| \
11815 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11817 sed '/^.*\/\([^/][^/]*\)\/*$/{
11831 # Avoid depending upon Character Ranges.
11832 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11833 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11834 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11835 as_cr_digits='0123456789'
11836 as_cr_alnum=$as_cr_Letters$as_cr_digits
11838 ECHO_C= ECHO_N= ECHO_T=
11839 case `echo -n x` in #(((((
11841 case `echo 'xy\c'` in
11842 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11844 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11851 rm -f conf$$ conf$$.exe conf$$.file
11852 if test -d conf$$.dir; then
11853 rm -f conf$$.dir/conf$$.file
11856 mkdir conf$$.dir 2>/dev/null
11858 if (echo >conf$$.file) 2>/dev/null; then
11859 if ln -s conf$$.file conf$$ 2>/dev/null; then
11861 # ... but there are two gotchas:
11862 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11863 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11864 # In both cases, we have to default to `cp -pR'.
11865 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11867 elif ln conf$$.file conf$$ 2>/dev/null; then
11875 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11876 rmdir conf$$.dir 2>/dev/null
11881 # Create "$as_dir" as a directory, including parents if necessary.
11886 -*) as_dir=./$as_dir;;
11888 test -d "$as_dir" || eval $as_mkdir_p || {
11892 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11893 *) as_qdir=$as_dir;;
11895 as_dirs="'$as_qdir' $as_dirs"
11896 as_dir=`$as_dirname -- "$as_dir" ||
11897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11898 X"$as_dir" : 'X\(//\)[^/]' \| \
11899 X"$as_dir" : 'X\(//\)$' \| \
11900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11901 $as_echo X"$as_dir" |
11902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11906 /^X\(\/\/\)[^/].*/{
11919 test -d "$as_dir" && break
11921 test -z "$as_dirs" || eval "mkdir $as_dirs"
11922 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11926 if mkdir -p . 2>/dev/null; then
11927 as_mkdir_p='mkdir -p "$as_dir"'
11929 test -d ./-p && rmdir ./-p
11934 # as_fn_executable_p FILE
11935 # -----------------------
11936 # Test if FILE is an executable regular file.
11937 as_fn_executable_p ()
11939 test -f "$1" && test -x "$1"
11940 } # as_fn_executable_p
11941 as_test_x='test -x'
11942 as_executable_p=as_fn_executable_p
11944 # Sed expression to map a string onto a valid CPP name.
11945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11947 # Sed expression to map a string onto a valid variable name.
11948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11952 ## ----------------------------------- ##
11953 ## Main body of $CONFIG_STATUS script. ##
11954 ## ----------------------------------- ##
11956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959 # Save the log message, to keep $0 and so on meaningful, and to
11960 # report actual input values of CONFIG_FILES etc. instead of their
11961 # values after options handling.
11963 This file was extended by $as_me, which was
11964 generated by GNU Autoconf 2.69. Invocation command line was
11966 CONFIG_FILES = $CONFIG_FILES
11967 CONFIG_HEADERS = $CONFIG_HEADERS
11968 CONFIG_LINKS = $CONFIG_LINKS
11969 CONFIG_COMMANDS = $CONFIG_COMMANDS
11972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11977 case $ac_config_files in *"
11978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11981 case $ac_config_headers in *"
11982 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11987 # Files that config.status was made for.
11988 config_files="$ac_config_files"
11989 config_headers="$ac_config_headers"
11990 config_commands="$ac_config_commands"
11994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11996 \`$as_me' instantiates files and other configuration actions
11997 from templates according to the current configuration. Unless the files
11998 and actions are specified as TAGs, all are instantiated by default.
12000 Usage: $0 [OPTION]... [TAG]...
12002 -h, --help print this help, then exit
12003 -V, --version print version number and configuration settings, then exit
12004 --config print configuration, then exit
12005 -q, --quiet, --silent
12006 do not print progress messages
12007 -d, --debug don't remove temporary files
12008 --recheck update $as_me by reconfiguring in the same conditions
12009 --file=FILE[:TEMPLATE]
12010 instantiate the configuration file FILE
12011 --header=FILE[:TEMPLATE]
12012 instantiate the configuration header FILE
12014 Configuration files:
12017 Configuration headers:
12020 Configuration commands:
12023 Report bugs to the package provider."
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12030 configured by $0, generated by GNU Autoconf 2.69,
12031 with options \\"\$ac_cs_config\\"
12033 Copyright (C) 2012 Free Software Foundation, Inc.
12034 This config.status script is free software; the Free Software Foundation
12035 gives unlimited permission to copy, distribute and modify it."
12041 test -n "\$AWK" || AWK=awk
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 # The default lists apply if the user does not specify any file.
12051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12068 # Handling of the options.
12069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12072 $as_echo "$ac_cs_version"; exit ;;
12073 --config | --confi | --conf | --con | --co | --c )
12074 $as_echo "$ac_cs_config"; exit ;;
12075 --debug | --debu | --deb | --de | --d | -d )
12077 --file | --fil | --fi | --f )
12080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12081 '') as_fn_error $? "missing file argument" ;;
12083 as_fn_append CONFIG_FILES " '$ac_optarg'"
12084 ac_need_defaults=false;;
12085 --header | --heade | --head | --hea )
12088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12090 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12091 ac_need_defaults=false;;
12093 # Conflict between --help and --header
12094 as_fn_error $? "ambiguous option: \`$1'
12095 Try \`$0 --help' for more information.";;
12096 --help | --hel | -h )
12097 $as_echo "$ac_cs_usage"; exit ;;
12098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12102 # This is an error.
12103 -*) as_fn_error $? "unrecognized option: \`$1'
12104 Try \`$0 --help' for more information." ;;
12106 *) as_fn_append ac_config_targets " $1"
12107 ac_need_defaults=false ;;
12113 ac_configure_extra_args=
12115 if $ac_cs_silent; then
12117 ac_configure_extra_args="$ac_configure_extra_args --silent"
12121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122 if \$ac_cs_recheck; then
12123 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12126 CONFIG_SHELL='$SHELL'
12127 export CONFIG_SHELL
12132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12137 ## Running $as_me. ##
12143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12148 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12150 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12151 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12152 LINGUAS="${LINGUAS-%UNSET%}"
12157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12159 # Handling of arguments.
12160 for ac_config_target in $ac_config_targets
12162 case $ac_config_target in
12163 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12164 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12165 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12167 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12172 # If the user did not use the arguments to specify the items to instantiate,
12173 # then the envvar interface is used. Set only those that are not.
12174 # We use the long form for the default assignment because of an extremely
12175 # bizarre bug on SunOS 4.1.3.
12176 if $ac_need_defaults; then
12177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12182 # Have a temporary directory for convenience. Make it in the build tree
12183 # simply because there is no reason against having it here, and in addition,
12184 # creating and moving files from /tmp can sometimes cause problems.
12185 # Hook for its removal unless debugging.
12186 # Note that there is a small window in which the directory will not be cleaned:
12187 # after its creation but before its name has been assigned to `$tmp'.
12191 trap 'exit_status=$?
12192 : "${ac_tmp:=$tmp}"
12193 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12195 trap 'as_fn_exit 1' 1 2 13 15
12197 # Create a (secure) tmp directory for tmp files.
12200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12204 tmp=./conf$$-$RANDOM
12205 (umask 077 && mkdir "$tmp")
12206 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12209 # Set up the scripts for CONFIG_FILES section.
12210 # No need to generate them if there are no CONFIG_FILES.
12211 # This happens for instance with `./config.status config.h'.
12212 if test -n "$CONFIG_FILES"; then
12214 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12215 ac_cs_awk_getline=:
12216 ac_cs_awk_pipe_init=
12217 ac_cs_awk_read_file='
12218 while ((getline aline < (F[key])) > 0)
12221 ac_cs_awk_pipe_fini=
12223 ac_cs_awk_getline=false
12224 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12225 ac_cs_awk_read_file='
12227 print "cat " F[key] " &&"
12228 '$ac_cs_awk_pipe_init
12229 # The final `:' finishes the AND list.
12230 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12232 ac_cr=`echo X | tr X '\015'`
12233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12234 # But we know of no other shell where ac_cr would be empty at this
12235 # point, so we can use a bashism as a fallback.
12236 if test "x$ac_cr" = x; then
12237 eval ac_cr=\$\'\\r\'
12239 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12243 ac_cs_awk_cr=$ac_cr
12246 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12249 # Create commands to substitute file output variables.
12251 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12252 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12253 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12256 } >conf$$files.sh &&
12257 . ./conf$$files.sh ||
12258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12259 rm -f conf$$files.sh
12262 echo "cat >conf$$subs.awk <<_ACEOF" &&
12263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12265 } >conf$$subs.sh ||
12266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12267 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12269 for ac_last_try in false false false false false :; do
12270 . ./conf$$subs.sh ||
12271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12273 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12274 if test $ac_delim_n = $ac_delim_num; then
12276 elif $ac_last_try; then
12277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12282 rm -f conf$$subs.sh
12284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12285 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12289 s/^/S["/; s/!.*/"]=/
12299 s/\(.\{148\}\)..*/\1/
12301 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12313 s/\(.\{148\}\)..*/\1/
12315 s/["\\]/\\&/g; s/^/"/; s/$/"/
12319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12324 ' <conf$$subs.awk | sed '
12329 ' >>$CONFIG_STATUS || ac_write_fail=1
12330 rm -f conf$$subs.awk
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12333 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12334 for (key in S) S_is_set[key] = 1
12336 \$ac_cs_awk_pipe_init
12340 nfields = split(line, field, "@")
12342 len = length(field[1])
12343 for (i = 2; i < nfields; i++) {
12345 keylen = length(key)
12346 if (S_is_set[key]) {
12348 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12349 len += length(value) + length(field[++i])
12354 if (nfields == 3 && !substed) {
12356 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12357 \$ac_cs_awk_read_file
12363 \$ac_cs_awk_pipe_fini
12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12371 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12375 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12376 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12377 # trailing colons and then remove the whole line if VPATH becomes empty
12378 # (actually we leave an empty line to preserve line numbers).
12379 if test "x$srcdir" = x.; then
12380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12399 fi # test -n "$CONFIG_FILES"
12401 # Set up the scripts for CONFIG_HEADERS section.
12402 # No need to generate them if there are no CONFIG_HEADERS.
12403 # This happens for instance with `./config.status Makefile'.
12404 if test -n "$CONFIG_HEADERS"; then
12405 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12409 # Transform confdefs.h into an awk script `defines.awk', embedded as
12410 # here-document in config.status, that substitutes the proper values into
12411 # config.h.in to produce config.h.
12413 # Create a delimiter string that does not exist in confdefs.h, to ease
12414 # handling of long lines.
12416 for ac_last_try in false false :; do
12417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12418 if test -z "$ac_tt"; then
12420 elif $ac_last_try; then
12421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12427 # For the awk script, D is an array of macro values keyed by name,
12428 # likewise P contains macro parameters if any. Preserve backslash
12429 # newline sequences.
12431 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12433 s/.\{148\}/&'"$ac_delim"'/g
12436 s/^[ ]*#[ ]*define[ ][ ]*/ /
12443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12450 D["\1"]=" \3\\\\\\n"\\/p
12452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12457 s/.\{148\}/&'"$ac_delim"'/g
12462 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12465 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12467 ' <confdefs.h | sed '
12468 s/'"$ac_delim"'/"\\\
12469 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12472 for (key in D) D_is_set[key] = 1
12475 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12477 split(line, arg, " ")
12478 if (arg[1] == "#") {
12482 defundef = substr(arg[1], 2)
12485 split(mac1, mac2, "(") #)
12487 prefix = substr(line, 1, index(line, defundef) - 1)
12488 if (D_is_set[macro]) {
12489 # Preserve the white space surrounding the "#".
12490 print prefix "define", macro P[macro] D[macro]
12493 # Replace #undef with comments. This is necessary, for example,
12494 # in the case of _POSIX_SOURCE, which is predefined and required
12495 # on some systems where configure will not decide to define it.
12496 if (defundef == "undef") {
12497 print "/*", prefix defundef, macro, "*/"
12505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12507 fi # test -n "$CONFIG_HEADERS"
12510 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12515 :[FHLC]) ac_mode=$ac_tag; continue;;
12517 case $ac_mode$ac_tag in
12519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12520 :[FH]-) ac_tag=-:-;;
12521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12538 -) ac_f="$ac_tmp/stdin";;
12539 *) # Look for the file first in the build tree, then in the source tree
12540 # (if the path is not absolute). The absolute path cannot be DOS-style,
12541 # because $ac_f cannot contain `:'.
12545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12549 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12550 as_fn_append ac_file_inputs " '$ac_f'"
12553 # Let's still pretend it is `configure' which instantiates (i.e., don't
12554 # use $as_me), people would be surprised to read:
12555 # /* config.h. Generated by config.status. */
12556 configure_input='Generated from '`
12557 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12559 if test x"$ac_file" != x-; then
12560 configure_input="$ac_file. $configure_input"
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12562 $as_echo "$as_me: creating $ac_file" >&6;}
12564 # Neutralize special characters interpreted by sed in replacement strings.
12565 case $configure_input in #(
12566 *\&* | *\|* | *\\* )
12567 ac_sed_conf_input=`$as_echo "$configure_input" |
12568 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12569 *) ac_sed_conf_input=$configure_input;;
12573 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12579 ac_dir=`$as_dirname -- "$ac_file" ||
12580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581 X"$ac_file" : 'X\(//\)[^/]' \| \
12582 X"$ac_file" : 'X\(//\)$' \| \
12583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12584 $as_echo X"$ac_file" |
12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12589 /^X\(\/\/\)[^/].*/{
12602 as_dir="$ac_dir"; as_fn_mkdir_p
12606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12609 # A ".." for each directory in $ac_dir_suffix.
12610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12611 case $ac_top_builddir_sub in
12612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12616 ac_abs_top_builddir=$ac_pwd
12617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12618 # for backward compatibility:
12619 ac_top_builddir=$ac_top_build_prefix
12622 .) # We are building in place.
12624 ac_top_srcdir=$ac_top_builddir_sub
12625 ac_abs_top_srcdir=$ac_pwd ;;
12626 [\\/]* | ?:[\\/]* ) # Absolute name.
12627 ac_srcdir=$srcdir$ac_dir_suffix;
12628 ac_top_srcdir=$srcdir
12629 ac_abs_top_srcdir=$srcdir ;;
12630 *) # Relative name.
12631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12632 ac_top_srcdir=$ac_top_build_prefix$srcdir
12633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12651 # If the template does not know about datarootdir, expand it.
12652 # FIXME: This hack should be removed a few years after 2.60.
12653 ac_datarootdir_hack=; ac_datarootdir_seen=
12664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12665 *datarootdir*) ac_datarootdir_seen=yes;;
12666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12671 ac_datarootdir_hack='
12672 s&@datadir@&$datadir&g
12673 s&@docdir@&$docdir&g
12674 s&@infodir@&$infodir&g
12675 s&@localedir@&$localedir&g
12676 s&@mandir@&$mandir&g
12677 s&\\\${datarootdir}&$datarootdir&g' ;;
12681 # Neutralize VPATH when `$srcdir' = `.'.
12682 # Shell code in configure.ac might set extrasub.
12683 # FIXME: do we really want to maintain this feature?
12684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685 ac_sed_extra="$ac_vpsub
12688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12691 s|@configure_input@|$ac_sed_conf_input|;t t
12692 s&@top_builddir@&$ac_top_builddir_sub&;t t
12693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12694 s&@srcdir@&$ac_srcdir&;t t
12695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12696 s&@top_srcdir@&$ac_top_srcdir&;t t
12697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12698 s&@builddir@&$ac_builddir&;t t
12699 s&@abs_builddir@&$ac_abs_builddir&;t t
12700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12701 s&@INSTALL@&$ac_INSTALL&;t t
12702 $ac_datarootdir_hack
12704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12705 if $ac_cs_awk_getline; then
12706 $AWK -f "$ac_tmp/subs.awk"
12708 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12710 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12713 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12715 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12717 which seems to be undefined. Please make sure it is defined" >&5
12718 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12719 which seems to be undefined. Please make sure it is defined" >&2;}
12721 rm -f "$ac_tmp/stdin"
12723 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12724 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12732 if test x"$ac_file" != x-; then
12734 $as_echo "/* $configure_input */" \
12735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12736 } >"$ac_tmp/config.h" \
12737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12738 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12740 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12743 mv "$ac_tmp/config.h" "$ac_file" \
12744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12747 $as_echo "/* $configure_input */" \
12748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12749 || as_fn_error $? "could not create -" "$LINENO" 5
12753 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12754 $as_echo "$as_me: executing $ac_file commands" >&6;}
12759 case $ac_file$ac_mode in
12761 for ac_file in $CONFIG_FILES; do
12762 # Support "outfile[:infile[:infile...]]"
12764 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12766 # PO directories have a Makefile.in generated from Makefile.in.in.
12767 case "$ac_file" in */Makefile.in)
12768 # Adjust a relative srcdir.
12769 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12770 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12771 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12772 # In autoconf-2.13 it is called $ac_given_srcdir.
12773 # In autoconf-2.50 it is called $srcdir.
12774 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12775 case "$ac_given_srcdir" in
12776 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12777 /*) top_srcdir="$ac_given_srcdir" ;;
12778 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12780 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12781 rm -f "$ac_dir/POTFILES"
12782 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12783 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12784 POMAKEFILEDEPS="POTFILES.in"
12785 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12786 # on $ac_dir but don't depend on user-specified configuration
12788 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12789 # The LINGUAS file contains the set of available languages.
12790 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12791 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12793 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12794 # Hide the ALL_LINGUAS assigment from automake.
12795 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12796 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12798 # The set of available languages was given in configure.in.
12799 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12802 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12803 # Compute UPDATEPOFILES
12804 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12805 # Compute DUMMYPOFILES
12806 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12808 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12809 case "$ac_given_srcdir" in
12811 *) srcdirpre='$(srcdir)/' ;;
12817 for lang in $ALL_LINGUAS; do
12818 POFILES="$POFILES $srcdirpre$lang.po"
12819 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12820 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12821 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12823 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12824 # environment variable.
12826 if test -n "$ALL_LINGUAS"; then
12827 for presentlang in $ALL_LINGUAS; do
12829 if test "%UNSET%" != "$LINGUAS"; then
12830 desiredlanguages="$LINGUAS"
12832 desiredlanguages="$ALL_LINGUAS"
12834 for desiredlang in $desiredlanguages; do
12835 # Use the presentlang catalog if desiredlang is
12836 # a. equal to presentlang, or
12837 # b. a variant of presentlang (because in this case,
12838 # presentlang can be used as a fallback for messages
12839 # which are not translated in the desiredlang catalog).
12840 case "$desiredlang" in
12841 "$presentlang"*) useit=yes;;
12844 if test $useit = yes; then
12845 INST_LINGUAS="$INST_LINGUAS $presentlang"
12850 if test -n "$INST_LINGUAS"; then
12851 for lang in $INST_LINGUAS; do
12852 CATALOGS="$CATALOGS $lang.gmo"
12855 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12856 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"
12857 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12858 if test -f "$f"; then
12860 *.orig | *.bak | *~) ;;
12861 *) cat "$f" >> "$ac_dir/Makefile" ;;
12876 ac_clean_files=$ac_clean_files_save
12878 test $ac_write_fail = 0 ||
12879 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12882 # configure is writing to config.log, and then calls config.status.
12883 # config.status does its own redirection, appending to config.log.
12884 # Unfortunately, on DOS this fails, as config.log is still kept open
12885 # by configure, so config.status won't be able to write to it; its
12886 # output is simply discarded. So we exec the FD to /dev/null,
12887 # effectively closing config.log, so it can be properly (re)opened and
12888 # appended to by config.status. When coming back to configure, we
12889 # need to make the FD available again.
12890 if test "$no_create" != yes; then
12892 ac_config_status_args=
12893 test "$silent" = yes &&
12894 ac_config_status_args="$ac_config_status_args --quiet"
12896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12899 # would make configure fail if this is the last instruction.
12900 $ac_cs_success || as_fn_exit 1
12902 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12904 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12907 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi