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; }
2758 # Check whether --with-diet-libc was given.
2759 if test "${with_diet_libc+set}" = set; then :
2760 withval=$with_diet_libc; CC="diet cc -nostdinc"
2766 LIBS="$LIBS -lcompat"
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2769 $as_echo "CC=$CC" >&6; }
2771 # Make sure we can run config.sub.
2772 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2773 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2776 $as_echo_n "checking build system type... " >&6; }
2777 if ${ac_cv_build+:} false; then :
2778 $as_echo_n "(cached) " >&6
2780 ac_build_alias=$build_alias
2781 test "x$ac_build_alias" = x &&
2782 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783 test "x$ac_build_alias" = x &&
2784 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2790 $as_echo "$ac_cv_build" >&6; }
2791 case $ac_cv_build in
2793 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 ac_save_IFS=$IFS; IFS='-'
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2806 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2810 $as_echo_n "checking host system type... " >&6; }
2811 if ${ac_cv_host+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if test "x$host_alias" = x; then
2815 ac_cv_host=$ac_cv_build
2817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2823 $as_echo "$ac_cv_host" >&6; }
2826 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829 ac_save_IFS=$IFS; IFS='-'
2835 # Remember, the first character of IFS is used to create $*,
2836 # except with old shells:
2839 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_CC"; then
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_CC" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3016 if test $# != 0; then
3017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3078 test -n "$CC" && break
3081 if test -z "$CC"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$ac_ct_CC" && break
3125 if test "x$ac_ct_CC" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details" "$LINENO" 5; }
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 if test -s conftest.err; then
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3166 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3188 $as_echo_n "checking whether the C compiler works... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195 for ac_file in $ac_files
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 if { { ac_try="$ac_link_default"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3220 for ac_file in $ac_files ''
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227 # We found the default executable, but exeext='' is most
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error 77 "C compiler cannot create executables
3259 See \`config.log' for more details" "$LINENO" 5; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3317 FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3354 if test "$cross_compiling" = maybe; then
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details" "$LINENO" 5; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details" "$LINENO" 5; }
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if ${ac_cv_c_compiler_gnu+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3440 if ac_fn_c_try_compile "$LINENO"; then :
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 if ac_fn_c_try_compile "$LINENO"; then :
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3530 if test "$GCC" = yes; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if ${ac_cv_prog_cc_c89+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 ac_cv_prog_cc_c89=no
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3562 s = g (p, va_arg (v,int));
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 CC="$ac_save_CC $ac_arg"
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_c89=$ac_arg
3602 rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 rm -f conftest.$ac_ext
3610 case "x$ac_cv_prog_cc_c89" in
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613 $as_echo "none needed" >&6; } ;;
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3616 $as_echo "unsupported" >&6; } ;;
3618 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 if test "x$ac_cv_prog_cc_c89" != xno; then :
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3635 if ${ac_cv_lib_dl_dlopen+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 ac_check_lib_save_LIBS=$LIBS
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3643 /* Override any GCC internal prototype to avoid an error.
3644 Use char because int might match the return type of a GCC
3645 builtin and then its argument prototype would still apply. */
3658 if ac_fn_c_try_link "$LINENO"; then :
3659 ac_cv_lib_dl_dlopen=yes
3661 ac_cv_lib_dl_dlopen=no
3663 rm -f core conftest.err conftest.$ac_objext \
3664 conftest$ac_exeext conftest.$ac_ext
3665 LIBS=$ac_check_lib_save_LIBS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3672 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3678 # Check whether --with-cc was given.
3679 if test "${with_cc+set}" = set; then :
3680 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3684 # Check whether --with-ccopts was given.
3685 if test "${with_ccopts+set}" = set; then :
3686 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3690 # Check whether --with-ldopts was given.
3691 if test "${with_ldopts+set}" = set; then :
3692 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$ac_cv_prog_CC"; then
3741 # Extract the first word of "gcc", so it can be a program name with args.
3742 set dummy gcc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC="gcc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 $as_echo "$ac_ct_CC" >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3777 if test "x$ac_ct_CC" = x; then
3780 case $cross_compiling:$ac_tool_warned in
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3792 if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC="${ac_tool_prefix}cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3833 if test -z "$CC"; then
3834 # Extract the first word of "cc", so it can be a program name with args.
3835 set dummy cc; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3889 if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 for ac_prog in cl.exe
3893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_CC+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$CC" && break
3933 if test -z "$CC"; then
3935 for ac_prog in cl.exe
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC="$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 test -n "$ac_ct_CC" && break
3977 if test "x$ac_ct_CC" = x; then
3980 case $cross_compiling:$ac_tool_warned in
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $? "no acceptable C compiler found in \$PATH
3996 See \`config.log' for more details" "$LINENO" 5; }
3998 # Provide some information about the compiler.
3999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002 for ac_option in --version -v -V -qversion; do
4003 { { ac_try="$ac_compiler $ac_option >&5"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4012 if test -s conftest.err; then
4014 ... rest of stderr output deleted ...
4015 10q' conftest.err >conftest.er1
4016 cat conftest.er1 >&5
4018 rm -f conftest.er1 conftest.err
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4025 if ${ac_cv_c_compiler_gnu+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4042 if ac_fn_c_try_compile "$LINENO"; then :
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053 if test $ac_compiler_gnu = yes; then
4058 ac_test_CFLAGS=${CFLAGS+set}
4059 ac_save_CFLAGS=$CFLAGS
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4062 if ${ac_cv_prog_cc_g+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 ac_save_c_werror_flag=$ac_c_werror_flag
4066 ac_c_werror_flag=yes
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122 $as_echo "$ac_cv_prog_cc_g" >&6; }
4123 if test "$ac_test_CFLAGS" = set; then
4124 CFLAGS=$ac_save_CFLAGS
4125 elif test $ac_cv_prog_cc_g = yes; then
4126 if test "$GCC" = yes; then
4132 if test "$GCC" = yes; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4140 if ${ac_cv_prog_cc_c89+:} false; then :
4141 $as_echo_n "(cached) " >&6
4143 ac_cv_prog_cc_c89=no
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151 struct buf { int x; };
4152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153 static char *e (p, i)
4159 static char *f (char * (*g) (char **, int), char **p, ...)
4164 s = g (p, va_arg (v,int));
4169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170 function prototypes and stuff, but not '\xHH' hex character constants.
4171 These don't provoke an error unfortunately, instead are silently treated
4172 as 'x'. The following induces an error, until -std is added to get
4173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174 array size at least. It's necessary to write '\x00'==0 to get something
4175 that's true only with -std. */
4176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179 inside strings and character constants. */
4181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4183 int test (int i, double x);
4184 struct s1 {int (*f) (int a);};
4185 struct s2 {int (*f) (double a);};
4186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4200 CC="$ac_save_CC $ac_arg"
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_c89=$ac_arg
4204 rm -f core conftest.err conftest.$ac_objext
4205 test "x$ac_cv_prog_cc_c89" != "xno" && break
4207 rm -f conftest.$ac_ext
4212 case "x$ac_cv_prog_cc_c89" in
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215 $as_echo "none needed" >&6; } ;;
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 $as_echo "unsupported" >&6; } ;;
4220 CC="$CC $ac_cv_prog_cc_c89"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4224 if test "x$ac_cv_prog_cc_c89" != xno; then :
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 if test "$GCC" = yes; then
4235 RDYNAMIC="-rdynamic"
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4245 # On Suns, sometimes $CPP names a directory.
4246 if test -n "$CPP" && test -d "$CPP"; then
4249 if test -z "$CPP"; then
4250 if ${ac_cv_prog_CPP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 # Double quotes because CPP needs to be expanded
4254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4292 # Passes both tests.
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4314 $as_echo "$CPP" >&6; }
4316 for ac_c_preproc_warn_flag in '' yes
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 # include <limits.h>
4329 # include <assert.h>
4333 if ac_fn_c_try_cpp "$LINENO"; then :
4336 # Broken: fails on valid input.
4339 rm -f conftest.err conftest.i conftest.$ac_ext
4341 # OK, works on sane cases. Now check whether nonexistent headers
4342 # can be detected and how.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ac_nonexistent.h>
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4348 # Broken: success on invalid input.
4351 # Passes both tests.
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359 rm -f conftest.i conftest.err conftest.$ac_ext
4360 if $ac_preproc_ok; then :
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4366 See \`config.log' for more details" "$LINENO" 5; }
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4376 $as_echo_n "checking for additional special compiler flags... " >&6; }
4377 if test "$GCC" = yes
4380 alpha) addcflags="-mieee" ;;
4383 if test "x$addcflags" != x
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4386 $as_echo "$addcflags" >&6; }
4387 CFLAGS="$addcflags $CFLAGS"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4390 $as_echo "(none)" >&6; }
4396 # Check whether --with-root-prefix was given.
4397 if test "${with_root_prefix+set}" = set; then :
4398 withval=$with_root_prefix; root_prefix=$withval
4402 # Check whether --enable-maintainer-mode was given.
4403 if test "${enable_maintainer_mode+set}" = set; then :
4404 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4408 $as_echo "Disabling maintainer mode" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4412 $as_echo "Enabling maintainer mode" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4418 $as_echo "Disabling maintainer mode by default" >&6; }
4423 # Check whether --enable-symlink-install was given.
4424 if test "${enable_symlink_install+set}" = set; then :
4425 enableval=$enable_symlink_install; if test "$enableval" = "no"
4427 LINK_INSTALL_FLAGS=-f
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4429 $as_echo "Disabling symlinks for install" >&6; }
4431 LINK_INSTALL_FLAGS=-sf
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4433 $as_echo "Enabling symlinks for install" >&6; }
4437 LINK_INSTALL_FLAGS=-f
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4439 $as_echo "Disabling symlinks for install by default" >&6; }
4444 relative_symlink_defined=
4445 # Check whether --enable-relative-symlinks was given.
4446 if test "${enable_relative_symlinks+set}" = set; then :
4447 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4450 relative_symlink_defined=yes
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4452 $as_echo "Disabling relative symlinks for install" >&6; }
4454 SYMLINK_RELATIVE=--relative
4455 relative_symlink_defined=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4457 $as_echo "Enabling relative symlinks for install" >&6; }
4461 # Check whether --enable-symlink-relative-symlinks was given.
4462 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4463 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4465 SYMLINK_RELATIVE=yes
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4467 $as_echo "Disabling relative symlinks for install" >&6; }
4469 SYMLINK_RELATIVE=--relative
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4471 $as_echo "Enabling relative symlinks for install" >&6; }
4475 if test -z "$relative_symlink_defined"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4479 $as_echo "Disabling relative symlinks for install by default" >&6; }
4485 # Check whether --enable-symlink-build was given.
4486 if test "${enable_symlink_build+set}" = set; then :
4487 enableval=$enable_symlink_build; if test "$enableval" = "no"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4491 $as_echo "Disabling symlinks for build" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4495 $as_echo "Enabling symlinks for build" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4501 $as_echo "Disabling symlinks for build by default" >&6; }
4506 # Check whether --enable-verbose-makecmds was given.
4507 if test "${enable_verbose_makecmds+set}" = set; then :
4508 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4511 $as_echo "Disabling verbose make commands" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4517 $as_echo "Enabling verbose make commands" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4525 $as_echo "Disabling verbose make commands" >&6; }
4535 # Check whether --enable-compression was given.
4536 if test "${enable_compression+set}" = set; then :
4537 enableval=$enable_compression; if test "$enableval" = "no"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4540 $as_echo "Disabling compression support" >&6; }
4543 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4546 $as_echo "Enabling compression support" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4548 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4553 $as_echo "Disabling compression support by default" >&6; }
4558 # Check whether --enable-htree was given.
4559 if test "${enable_htree+set}" = set; then :
4560 enableval=$enable_htree; if test "$enableval" = "no"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4564 $as_echo "Disabling htree directory support" >&6; }
4567 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4570 $as_echo "Enabling htree directory support" >&6; }
4575 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4578 $as_echo "Enabling htree directory support by default" >&6; }
4583 E2_PKG_CONFIG_STATIC=--static
4586 # Check whether --enable-elf-shlibs was given.
4587 if test "${enable_elf_shlibs+set}" = set; then :
4588 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4591 MAKEFILE_ELF=/dev/null
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4593 $as_echo "Disabling ELF shared libraries" >&6; }
4595 E2_PKG_CONFIG_STATIC=
4597 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4600 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4606 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4608 $as_echo "Enabling ELF shared libraries" >&6; }
4612 MAKEFILE_ELF=/dev/null
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4615 $as_echo "Disabling ELF shared libraries by default" >&6; }
4621 # Check whether --enable-bsd-shlibs was given.
4622 if test "${enable_bsd_shlibs+set}" = set; then :
4623 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4626 MAKEFILE_BSDLIB=/dev/null
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4628 $as_echo "Disabling BSD shared libraries" >&6; }
4630 E2_PKG_CONFIG_STATIC=
4632 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4636 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4641 $as_echo "Enabling BSD shared libraries" >&6; }
4645 MAKEFILE_BSDLIB=/dev/null
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4648 $as_echo "Disabling BSD shared libraries by default" >&6; }
4654 # Check whether --enable-profile was given.
4655 if test "${enable_profile+set}" = set; then :
4656 enableval=$enable_profile; if test "$enableval" = "no"
4659 MAKEFILE_PROFILE=/dev/null
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4661 $as_echo "Disabling profiling libraries" >&6; }
4664 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4665 PROFILED_LIB_EXT=_p.a
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4667 $as_echo "Building profiling libraries" >&6; }
4672 MAKEFILE_PROFILE=/dev/null
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4674 $as_echo "Disabling profiling libraries by default" >&6; }
4680 # Check whether --enable-checker was given.
4681 if test "${enable_checker+set}" = set; then :
4682 enableval=$enable_checker; if test "$enableval" = "no"
4685 MAKEFILE_CHECKER=/dev/null
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4687 $as_echo "Disabling checker libraries" >&6; }
4690 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4692 $as_echo "Building checker libraries" >&6; }
4697 MAKEFILE_CHECKER=/dev/null
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4699 $as_echo "Disabling checker libraries by default" >&6; }
4710 # Check whether --enable-jbd-debug was given.
4711 if test "${enable_jbd_debug+set}" = set; then :
4712 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4715 $as_echo "Disabling journal debugging" >&6; }
4718 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4721 $as_echo "Enabling journal debugging" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4726 $as_echo "Disabling journal debugging by default" >&6; }
4730 # Check whether --enable-blkid-debug was given.
4731 if test "${enable_blkid_debug+set}" = set; then :
4732 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4735 $as_echo "Disabling blkid debugging" >&6; }
4738 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4741 $as_echo "Enabling blkid debugging" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4746 $as_echo "Disabling blkid debugging by default" >&6; }
4750 # Check whether --enable-testio-debug was given.
4751 if test "${enable_testio_debug+set}" = set; then :
4752 enableval=$enable_testio_debug;
4753 if test "$enableval" = "no"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4756 $as_echo "Disabling testio debugging" >&6; }
4760 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4763 $as_echo "Enabling testio debugging" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4768 $as_echo "Enabling testio debugging by default" >&6; }
4769 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4785 $as_echo_n "(cached) " >&6
4789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4811 if test -n "$PKG_CONFIG"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4813 $as_echo "$PKG_CONFIG" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4821 if test -z "$ac_cv_path_PKG_CONFIG"; then
4822 ac_pt_PKG_CONFIG=$PKG_CONFIG
4823 # Extract the first word of "pkg-config", so it can be a program name with args.
4824 set dummy pkg-config; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 case $ac_pt_PKG_CONFIG in
4832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4854 if test -n "$ac_pt_PKG_CONFIG"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4862 if test "x$ac_pt_PKG_CONFIG" = x; then
4865 case $cross_compiling:$ac_tool_warned in
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned=yes ;;
4871 PKG_CONFIG=$ac_pt_PKG_CONFIG
4874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4878 if test -n "$PKG_CONFIG"; then
4879 _pkg_min_version=0.9.0
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4897 DEPPROFILED_LIBUUID=
4899 # Check whether --enable-libuuid was given.
4900 if test "${enable_libuuid+set}" = set; then :
4901 enableval=$enable_libuuid; if test "$enableval" = "no"
4903 if test -z "$PKG_CONFIG"; then
4904 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4908 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4909 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-luuid $LIBUUID $LIBS"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4923 char uuid_generate ();
4927 return uuid_generate ();
4932 if ac_fn_c_try_link "$LINENO"; then :
4933 ac_cv_lib_uuid_uuid_generate=yes
4935 ac_cv_lib_uuid_uuid_generate=no
4937 rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939 LIBS=$ac_check_lib_save_LIBS
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4942 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4943 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4944 LIBUUID=`$PKG_CONFIG --libs uuid`;
4945 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4947 as_fn_error $? "external uuid library not found" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4952 $as_echo "Disabling private uuid library" >&6; }
4954 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4956 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4957 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4958 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4959 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4961 $as_echo "Enabling private uuid library" >&6; }
4965 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4967 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4968 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4969 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4970 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4972 $as_echo "Enabling private uuid library by default" >&6; }
4985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4992 $as_echo_n "(cached) " >&6
4996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5018 if test -n "$PKG_CONFIG"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5020 $as_echo "$PKG_CONFIG" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5028 if test -z "$ac_cv_path_PKG_CONFIG"; then
5029 ac_pt_PKG_CONFIG=$PKG_CONFIG
5030 # Extract the first word of "pkg-config", so it can be a program name with args.
5031 set dummy pkg-config; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5035 $as_echo_n "(cached) " >&6
5037 case $ac_pt_PKG_CONFIG in
5039 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5061 if test -n "$ac_pt_PKG_CONFIG"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5063 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5069 if test "x$ac_pt_PKG_CONFIG" = x; then
5072 case $cross_compiling:$ac_tool_warned in
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5078 PKG_CONFIG=$ac_pt_PKG_CONFIG
5081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5085 if test -n "$PKG_CONFIG"; then
5086 _pkg_min_version=0.9.0
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5088 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5104 DEPPROFILED_LIBBLKID=
5107 # Check whether --enable-libblkid was given.
5108 if test "${enable_libblkid+set}" = set; then :
5109 enableval=$enable_libblkid; if test "$enableval" = "no"
5111 if test -z "$PKG_CONFIG"; then
5112 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5116 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5117 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 ac_check_lib_save_LIBS=$LIBS
5121 LIBS="-lblkid $LIBBLKID $LIBS"
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5131 char blkid_get_cache ();
5135 return blkid_get_cache ();
5140 if ac_fn_c_try_link "$LINENO"; then :
5141 ac_cv_lib_blkid_blkid_get_cache=yes
5143 ac_cv_lib_blkid_blkid_get_cache=no
5145 rm -f core conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5150 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5151 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5152 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5153 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5155 as_fn_error $? "external blkid library not found" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5160 $as_echo "Disabling private blkid library" >&6; }
5162 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5163 DEPLIBBLKID=$LIBBLKID
5164 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5165 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5166 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5167 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5168 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5171 $as_echo "Enabling private blkid library" >&6; }
5175 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5176 DEPLIBBLKID=$LIBBLKID
5177 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5178 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5179 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5180 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5181 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5184 $as_echo "Enabling private blkid library by default" >&6; }
5195 QUOTA_MAN_COMMENT='.\"'
5200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5207 $as_echo_n "(cached) " >&6
5211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5233 if test -n "$PKG_CONFIG"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235 $as_echo "$PKG_CONFIG" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5243 if test -z "$ac_cv_path_PKG_CONFIG"; then
5244 ac_pt_PKG_CONFIG=$PKG_CONFIG
5245 # Extract the first word of "pkg-config", so it can be a program name with args.
5246 set dummy pkg-config; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 case $ac_pt_PKG_CONFIG in
5254 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5276 if test -n "$ac_pt_PKG_CONFIG"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5284 if test "x$ac_pt_PKG_CONFIG" = x; then
5287 case $cross_compiling:$ac_tool_warned in
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5293 PKG_CONFIG=$ac_pt_PKG_CONFIG
5296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5300 if test -n "$PKG_CONFIG"; then
5301 _pkg_min_version=0.9.0
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5303 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5304 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5315 # Check whether --enable-quota was given.
5316 if test "${enable_quota+set}" = set; then :
5317 enableval=$enable_quota; if test "$enableval" = "no"
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5321 $as_echo "Disabling quota support" >&6; }
5324 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5327 $as_echo "Enabling quota support" >&6; }
5328 QUOTA_MAN_COMMENT=""
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5335 $as_echo "Disabling quota support by default" >&6; }
5339 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5340 DEPLIBQUOTA=$LIBQUOTA
5341 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5343 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5353 # Check whether --enable-backtrace was given.
5354 if test "${enable_backtrace+set}" = set; then :
5355 enableval=$enable_backtrace; if test "$enableval" = "no"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5358 $as_echo "Disabling use of backtrace" >&6; }
5359 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5363 $as_echo "Enabling use of backtrace" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5368 $as_echo "Enabling use of backtrace by default" >&6; }
5372 # Check whether --enable-debugfs was given.
5373 if test "${enable_debugfs+set}" = set; then :
5374 enableval=$enable_debugfs; if test "$enableval" = "no"
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5377 $as_echo "Disabling debugfs support" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5382 $as_echo "Enabling debugfs support" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5387 $as_echo "Enabling debugfs support by default" >&6; }
5393 # Check whether --enable-imager was given.
5394 if test "${enable_imager+set}" = set; then :
5395 enableval=$enable_imager; if test "$enableval" = "no"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5398 $as_echo "Disabling e2image support" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5403 $as_echo "Enabling e2image support" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5408 $as_echo "Enabling e2image support by default" >&6; }
5414 # Check whether --enable-resizer was given.
5415 if test "${enable_resizer+set}" = set; then :
5416 enableval=$enable_resizer; if test "$enableval" = "no"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5419 $as_echo "Disabling e2resize support" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5424 $as_echo "Enabling e2resize support" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5429 $as_echo "Enabling e2resize support by default" >&6; }
5435 # Check whether --enable-defrag was given.
5436 if test "${enable_defrag+set}" = set; then :
5437 enableval=$enable_defrag; if test "$enableval" = "no"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440 $as_echo "Disabling e4defrag support" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445 $as_echo "Enabling e4defrag support" >&6; }
5449 if test -z "$WITH_DIET_LIBC"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5452 $as_echo "Enabling e4defrag support by default" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5456 $as_echo "Disabling e4defrag support by default" >&6; }
5463 # Check whether --enable-fsck was given.
5464 if test "${enable_fsck+set}" = set; then :
5465 enableval=$enable_fsck; if test "$enableval" = "no"
5467 FSCK_PROG='' FSCK_MAN=''
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5469 $as_echo "Not building fsck wrapper" >&6; }
5471 FSCK_PROG=fsck FSCK_MAN=fsck.8
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5473 $as_echo "Building fsck wrapper" >&6; }
5479 FSCK_PROG='' FSCK_MAN=''
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5481 $as_echo "Not building fsck wrapper by default" >&6; }
5484 FSCK_PROG=fsck FSCK_MAN=fsck.8
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5486 $as_echo "Building fsck wrapper by default" >&6; }
5493 # Check whether --enable-e2initrd-helper was given.
5494 if test "${enable_e2initrd_helper+set}" = set; then :
5495 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5497 E2INITRD_PROG='' E2INITRD_MAN=''
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5499 $as_echo "Not building e2initrd helper" >&6; }
5501 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5503 $as_echo "Building e2initrd helper" >&6; }
5507 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5509 $as_echo "Building e2initrd helper by default" >&6; }
5515 # Check whether --enable-tls was given.
5516 if test "${enable_tls+set}" = set; then :
5517 enableval=$enable_tls; if test "$enableval" = "no"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5521 $as_echo "Disabling thread local support" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5525 $as_echo "Enabling thread local support" >&6; }
5529 if test -n "$WITH_DIET_LIBC"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5533 $as_echo "Diet libc does not support thread local support" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5537 $as_echo "Try using thread local support by default" >&6; }
5542 if test "$try_tls" = "yes"
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5546 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5547 if ${ac_cv_tls+:} false; then :
5548 $as_echo_n "(cached) " >&6
5551 ax_tls_keywords="__thread __declspec(thread) none"
5552 for ax_tls_keyword in $ax_tls_keywords; do
5553 case $ax_tls_keyword in
5554 none) ac_cv_tls=none ; break ;;
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5561 static $ax_tls_keyword int bar;
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_tls=$ax_tls_keyword ; break
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 if test "$ac_cv_tls" != "none"; then
5587 cat >>confdefs.h <<_ACEOF
5588 #define TLS $ac_cv_tls
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5593 $as_echo "$ac_cv_tls" >&6; }
5597 # Check whether --enable-uuidd was given.
5598 if test "${enable_uuidd+set}" = set; then :
5599 enableval=$enable_uuidd; if test "$enableval" = "no"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5602 $as_echo "Not building uuidd" >&6; }
5605 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5609 $as_echo "Building uuidd" >&6; }
5613 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5617 $as_echo "Building uuidd by default" >&6; }
5622 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5624 GETTEXT_PACKAGE=e2fsprogs
5626 VERSION="$E2FSPROGS_VERSION"
5629 cat >>confdefs.h <<_ACEOF
5630 #define PACKAGE "$PACKAGE"
5634 cat >>confdefs.h <<_ACEOF
5635 #define VERSION "$VERSION"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 cat >conftest.make <<\_ACEOF
5652 @echo '@@@%%%=$(MAKE)=@@@%%%'
5654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5657 eval ac_cv_prog_make_${ac_make}_set=yes;;
5659 eval ac_cv_prog_make_${ac_make}_set=no;;
5663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 SET_MAKE="MAKE=${MAKE-make}"
5673 # Find a good install program. We prefer a C program (faster),
5674 # so one script is as good as another. But avoid the broken or
5675 # incompatible versions:
5676 # SysV /etc/install, /usr/sbin/install
5677 # SunOS /usr/etc/install
5678 # IRIX /sbin/install
5680 # AmigaOS /C/install, which installs bootblocks on floppy discs
5681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5684 # OS/2's system install, which has a completely different semantic
5685 # ./install, which can be erroneously created by make from ./install.sh.
5686 # Reject install programs that cannot install multiple files.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5688 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5689 if test -z "$INSTALL"; then
5690 if ${ac_cv_path_install+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 # Account for people who put trailing slashes in PATH elements.
5699 case $as_dir/ in #((
5700 ./ | .// | /[cC]/* | \
5701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5702 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5705 # OSF1 and SCO ODT 3.0 have their own names for install.
5706 # Don't use installbsd from OSF since it installs stuff as root
5708 for ac_prog in ginstall scoinst install; do
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5711 if test $ac_prog = install &&
5712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713 # AIX install. It has an incompatible calling convention.
5715 elif test $ac_prog = install &&
5716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5717 # program-specific install script used by HP pwplus--don't use.
5720 rm -rf conftest.one conftest.two conftest.dir
5721 echo one > conftest.one
5722 echo two > conftest.two
5724 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5725 test -s conftest.one && test -s conftest.two &&
5726 test -s conftest.dir/conftest.one &&
5727 test -s conftest.dir/conftest.two
5729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5742 rm -rf conftest.one conftest.two conftest.dir
5745 if test "${ac_cv_path_install+set}" = set; then
5746 INSTALL=$ac_cv_path_install
5748 # As a last resort, use the slow shell script. Don't cache a
5749 # value for INSTALL within a source directory, because that will
5750 # break other packages using the cache if that directory is
5751 # removed, or if the value is a relative name.
5752 INSTALL=$ac_install_sh
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5756 $as_echo "$INSTALL" >&6; }
5758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5759 # It thinks the first close brace ends the variable substitution.
5760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5768 if test -n "$ac_aux_dir"; then
5769 case "$ac_aux_dir" in
5770 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5771 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5774 if test -z "$MKINSTALLDIRS"; then
5775 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5781 $as_echo_n "checking whether NLS is requested... " >&6; }
5782 # Check whether --enable-nls was given.
5783 if test "${enable_nls+set}" = set; then :
5784 enableval=$enable_nls; USE_NLS=$enableval
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5790 $as_echo "$USE_NLS" >&6; }
5797 # Prepare PATH_SEPARATOR.
5798 # The user is always right.
5799 if test "${PATH_SEPARATOR+set}" != set; then
5800 echo "#! /bin/sh" >conf$$.sh
5801 echo "exit 0" >>conf$$.sh
5803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5811 # Find out how to test for executable files. Don't use a zero-byte file,
5812 # as systems may use methods other than mode bits to determine executability.
5813 cat >conf$$.file <<_ASEOF
5817 chmod +x conf$$.file
5818 if test -x conf$$.file >/dev/null 2>&1; then
5819 ac_executable_p="test -x"
5821 ac_executable_p="test -f"
5825 # Extract the first word of "msgfmt", so it can be a program name with args.
5826 set dummy msgfmt; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_path_MSGFMT+:} false; then :
5830 $as_echo_n "(cached) " >&6
5834 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5837 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH; do
5840 test -z "$ac_dir" && ac_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5843 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5844 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5845 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5852 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5856 MSGFMT="$ac_cv_path_MSGFMT"
5857 if test "$MSGFMT" != ":"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5859 $as_echo "$MSGFMT" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5866 set dummy gmsgfmt; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_GMSGFMT+:} false; then :
5870 $as_echo_n "(cached) " >&6
5874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5896 GMSGFMT=$ac_cv_path_GMSGFMT
5897 if test -n "$GMSGFMT"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5899 $as_echo "$GMSGFMT" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5908 # Prepare PATH_SEPARATOR.
5909 # The user is always right.
5910 if test "${PATH_SEPARATOR+set}" != set; then
5911 echo "#! /bin/sh" >conf$$.sh
5912 echo "exit 0" >>conf$$.sh
5914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5922 # Find out how to test for executable files. Don't use a zero-byte file,
5923 # as systems may use methods other than mode bits to determine executability.
5924 cat >conf$$.file <<_ASEOF
5928 chmod +x conf$$.file
5929 if test -x conf$$.file >/dev/null 2>&1; then
5930 ac_executable_p="test -x"
5932 ac_executable_p="test -f"
5936 # Extract the first word of "xgettext", so it can be a program name with args.
5937 set dummy xgettext; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if ${ac_cv_path_XGETTEXT+:} false; then :
5941 $as_echo_n "(cached) " >&6
5945 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5948 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5949 for ac_dir in $PATH; do
5951 test -z "$ac_dir" && ac_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5954 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5955 (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
5956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5963 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5967 XGETTEXT="$ac_cv_path_XGETTEXT"
5968 if test "$XGETTEXT" != ":"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5970 $as_echo "$XGETTEXT" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5979 # Prepare PATH_SEPARATOR.
5980 # The user is always right.
5981 if test "${PATH_SEPARATOR+set}" != set; then
5982 echo "#! /bin/sh" >conf$$.sh
5983 echo "exit 0" >>conf$$.sh
5985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5993 # Find out how to test for executable files. Don't use a zero-byte file,
5994 # as systems may use methods other than mode bits to determine executability.
5995 cat >conf$$.file <<_ASEOF
5999 chmod +x conf$$.file
6000 if test -x conf$$.file >/dev/null 2>&1; then
6001 ac_executable_p="test -x"
6003 ac_executable_p="test -f"
6007 # Extract the first word of "msgmerge", so it can be a program name with args.
6008 set dummy msgmerge; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if ${ac_cv_path_MSGMERGE+:} false; then :
6012 $as_echo_n "(cached) " >&6
6016 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6019 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6020 for ac_dir in $PATH; do
6022 test -z "$ac_dir" && ac_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6025 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6026 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6033 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6037 MSGMERGE="$ac_cv_path_MSGMERGE"
6038 if test "$MSGMERGE" != ":"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6040 $as_echo "$MSGMERGE" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6047 if test "$GMSGFMT" != ":"; then
6048 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6049 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6052 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6054 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6059 if test "$XGETTEXT" != ":"; then
6060 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6061 (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
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6065 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6071 ac_config_commands="$ac_config_commands default-1"
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_RANLIB+:} false; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6105 $as_echo "$RANLIB" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6120 $as_echo_n "(cached) " >&6
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_ac_ct_RANLIB="ranlib"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6145 $as_echo "$ac_ct_RANLIB" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6151 if test "x$ac_ct_RANLIB" = x; then
6154 case $cross_compiling:$ac_tool_warned in
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6160 RANLIB=$ac_ct_RANLIB
6163 RANLIB="$ac_cv_prog_RANLIB"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6168 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6169 if ${ac_cv_lib_cposix_strerror+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 ac_check_lib_save_LIBS=$LIBS
6173 LIBS="-lcposix $LIBS"
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6192 if ac_fn_c_try_link "$LINENO"; then :
6193 ac_cv_lib_cposix_strerror=yes
6195 ac_cv_lib_cposix_strerror=no
6197 rm -f core conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6202 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6203 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6204 LIBS="$LIBS -lcposix"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6212 if ${ac_cv_path_GREP+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -z "$GREP"; then
6216 ac_path_GREP_found=false
6217 # Loop through the user's path and test for each of PROGNAME-LIST
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6222 test -z "$as_dir" && as_dir=.
6223 for ac_prog in grep ggrep; do
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6226 as_fn_executable_p "$ac_path_GREP" || continue
6227 # Check for GNU ac_path_GREP and select it if it is found.
6228 # Check for GNU $ac_path_GREP
6229 case `"$ac_path_GREP" --version 2>&1` in
6231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6234 $as_echo_n 0123456789 >"conftest.in"
6237 cat "conftest.in" "conftest.in" >"conftest.tmp"
6238 mv "conftest.tmp" "conftest.in"
6239 cp "conftest.in" "conftest.nl"
6240 $as_echo 'GREP' >> "conftest.nl"
6241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6243 as_fn_arith $ac_count + 1 && ac_count=$as_val
6244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6245 # Best one so far, save it but keep looking for a better one
6246 ac_cv_path_GREP="$ac_path_GREP"
6247 ac_path_GREP_max=$ac_count
6249 # 10*(2^10) chars as input seems more than enough
6250 test $ac_count -gt 10 && break
6252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6255 $ac_path_GREP_found && break 3
6260 if test -z "$ac_cv_path_GREP"; then
6261 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6264 ac_cv_path_GREP=$GREP
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6269 $as_echo "$ac_cv_path_GREP" >&6; }
6270 GREP="$ac_cv_path_GREP"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6274 $as_echo_n "checking for egrep... " >&6; }
6275 if ${ac_cv_path_EGREP+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6279 then ac_cv_path_EGREP="$GREP -E"
6281 if test -z "$EGREP"; then
6282 ac_path_EGREP_found=false
6283 # Loop through the user's path and test for each of PROGNAME-LIST
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6288 test -z "$as_dir" && as_dir=.
6289 for ac_prog in egrep; do
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6292 as_fn_executable_p "$ac_path_EGREP" || continue
6293 # Check for GNU ac_path_EGREP and select it if it is found.
6294 # Check for GNU $ac_path_EGREP
6295 case `"$ac_path_EGREP" --version 2>&1` in
6297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6300 $as_echo_n 0123456789 >"conftest.in"
6303 cat "conftest.in" "conftest.in" >"conftest.tmp"
6304 mv "conftest.tmp" "conftest.in"
6305 cp "conftest.in" "conftest.nl"
6306 $as_echo 'EGREP' >> "conftest.nl"
6307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6309 as_fn_arith $ac_count + 1 && ac_count=$as_val
6310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6311 # Best one so far, save it but keep looking for a better one
6312 ac_cv_path_EGREP="$ac_path_EGREP"
6313 ac_path_EGREP_max=$ac_count
6315 # 10*(2^10) chars as input seems more than enough
6316 test $ac_count -gt 10 && break
6318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6321 $ac_path_EGREP_found && break 3
6326 if test -z "$ac_cv_path_EGREP"; then
6327 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6330 ac_cv_path_EGREP=$EGREP
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6336 $as_echo "$ac_cv_path_EGREP" >&6; }
6337 EGREP="$ac_cv_path_EGREP"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6341 $as_echo_n "checking for ANSI C header files... " >&6; }
6342 if ${ac_cv_header_stdc+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361 ac_cv_header_stdc=yes
6363 ac_cv_header_stdc=no
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 if test $ac_cv_header_stdc = yes; then
6368 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then :
6378 ac_cv_header_stdc=no
6384 if test $ac_cv_header_stdc = yes; then
6385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "free" >/dev/null 2>&1; then :
6395 ac_cv_header_stdc=no
6401 if test $ac_cv_header_stdc = yes; then
6402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403 if test "$cross_compiling" = yes; then :
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6410 #if ((' ' & 0x0FF) == 0x020)
6411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6414 # define ISLOWER(c) \
6415 (('a' <= (c) && (c) <= 'i') \
6416 || ('j' <= (c) && (c) <= 'r') \
6417 || ('s' <= (c) && (c) <= 'z'))
6418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6426 for (i = 0; i < 256; i++)
6427 if (XOR (islower (i), ISLOWER (i))
6428 || toupper (i) != TOUPPER (i))
6433 if ac_fn_c_try_run "$LINENO"; then :
6436 ac_cv_header_stdc=no
6438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6439 conftest.$ac_objext conftest.beam conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6445 $as_echo "$ac_cv_header_stdc" >&6; }
6446 if test $ac_cv_header_stdc = yes; then
6448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6453 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6454 if ${ac_cv_c_const+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6465 /* Ultrix mips cc rejects this sort of thing. */
6466 typedef int charset[2];
6467 const charset cs = { 0, 0 };
6468 /* SunOS 4.1.1 cc rejects this. */
6469 char const *const *pcpcc;
6471 /* NEC SVR4.0.2 mips cc rejects this. */
6472 struct point {int x, y;};
6473 static struct point const zero = {0,0};
6474 /* AIX XL C 1.02.0.0 rejects this.
6475 It does not let you subtract one const X* pointer from another in
6476 an arm of an if-expression whose if-part is not a constant
6478 const char *g = "string";
6479 pcpcc = &g + (g ? g-g : 0);
6480 /* HPUX 7.0 cc rejects these. */
6482 ppc = (char**) pcpcc;
6483 pcpcc = (char const *const *) ppc;
6484 { /* SCO 3.2v4 cc rejects this sort of thing. */
6487 char const *s = 0 ? (char *) 0 : (char const *) 0;
6492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6494 const int *foo = &x[0];
6497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6498 typedef const int *iptr;
6502 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6504 struct s { int j; const int *ap[3]; } bx;
6505 struct s *b = &bx; b->j = 5;
6507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6511 return !cs[0] && !zero.x;
6518 if ac_fn_c_try_compile "$LINENO"; then :
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6526 $as_echo "$ac_cv_c_const" >&6; }
6527 if test $ac_cv_c_const = no; then
6529 $as_echo "#define const /**/" >>confdefs.h
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6535 $as_echo_n "checking for signed... " >&6; }
6536 if ${bh_cv_c_signed+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6550 if ac_fn_c_try_compile "$LINENO"; then :
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6558 $as_echo "$bh_cv_c_signed" >&6; }
6559 if test $bh_cv_c_signed = no; then
6561 $as_echo "#define signed /**/" >>confdefs.h
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6566 $as_echo_n "checking for inline... " >&6; }
6567 if ${ac_cv_c_inline+:} false; then :
6568 $as_echo_n "(cached) " >&6
6571 for ac_kw in inline __inline__ __inline; do
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6576 static $ac_kw foo_t static_foo () {return 0; }
6577 $ac_kw foo_t foo () {return 0; }
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 ac_cv_c_inline=$ac_kw
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 test "$ac_cv_c_inline" != no && break
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6590 $as_echo "$ac_cv_c_inline" >&6; }
6592 case $ac_cv_c_inline in
6595 case $ac_cv_c_inline in
6597 *) ac_val=$ac_cv_c_inline;;
6599 cat >>confdefs.h <<_ACEOF
6601 #define inline $ac_val
6607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6609 inttypes.h stdint.h unistd.h
6611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6615 cat >>confdefs.h <<_ACEOF
6616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6625 if test "x$ac_cv_type_off_t" = xyes; then :
6629 cat >>confdefs.h <<_ACEOF
6630 #define off_t long int
6635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6636 if test "x$ac_cv_type_size_t" = xyes; then :
6640 cat >>confdefs.h <<_ACEOF
6641 #define size_t unsigned int
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6648 $as_echo_n "checking for long long... " >&6; }
6649 if ${ac_cv_type_long_long+:} false; then :
6650 $as_echo_n "(cached) " >&6
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 long long ll = 1LL; int i = 63;
6658 long long llmax = (long long) -1;
6659 return ll << i | ll >> i | llmax / ll | llmax % ll;
6664 if ac_fn_c_try_link "$LINENO"; then :
6665 ac_cv_type_long_long=yes
6667 ac_cv_type_long_long=no
6669 rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6673 $as_echo "$ac_cv_type_long_long" >&6; }
6674 if test $ac_cv_type_long_long = yes; then
6676 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6682 $as_echo_n "checking for long double... " >&6; }
6683 if ${gt_cv_c_long_double+:} false; then :
6684 $as_echo_n "(cached) " >&6
6686 if test "$GCC" = yes; then
6687 gt_cv_c_long_double=yes
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6692 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6693 long double foo = 0.0;
6694 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6695 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 gt_cv_c_long_double=yes
6708 gt_cv_c_long_double=no
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6714 $as_echo "$gt_cv_c_long_double" >&6; }
6715 if test $gt_cv_c_long_double = yes; then
6717 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6723 $as_echo_n "checking for wchar_t... " >&6; }
6724 if ${gt_cv_c_wchar_t+:} false; then :
6725 $as_echo_n "(cached) " >&6
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6730 wchar_t foo = (wchar_t)'\0';
6739 if ac_fn_c_try_compile "$LINENO"; then :
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6747 $as_echo "$gt_cv_c_wchar_t" >&6; }
6748 if test $gt_cv_c_wchar_t = yes; then
6750 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6756 $as_echo_n "checking for wint_t... " >&6; }
6757 if ${gt_cv_c_wint_t+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 wint_t foo = (wchar_t)'\0';
6772 if ac_fn_c_try_compile "$LINENO"; then :
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6780 $as_echo "$gt_cv_c_wint_t" >&6; }
6781 if test $gt_cv_c_wint_t = yes; then
6783 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6789 $as_echo_n "checking for inttypes.h... " >&6; }
6790 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 #include <sys/types.h>
6796 #include <inttypes.h>
6800 uintmax_t i = (uintmax_t) -1;
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 jm_ac_cv_header_inttypes_h=yes
6808 jm_ac_cv_header_inttypes_h=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6813 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6814 if test $jm_ac_cv_header_inttypes_h = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6824 $as_echo_n "checking for stdint.h... " >&6; }
6825 if ${jm_ac_cv_header_stdint_h+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6835 uintmax_t i = (uintmax_t) -1;
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 jm_ac_cv_header_stdint_h=yes
6843 jm_ac_cv_header_stdint_h=no
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6848 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6849 if test $jm_ac_cv_header_stdint_h = yes; then
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STDINT_H_WITH_UINTMAX 1
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6861 $as_echo_n "checking for intmax_t... " >&6; }
6862 if ${gt_cv_c_intmax_t+:} false; then :
6863 $as_echo_n "(cached) " >&6
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6870 #if HAVE_STDINT_H_WITH_UINTMAX
6873 #if HAVE_INTTYPES_H_WITH_UINTMAX
6874 #include <inttypes.h>
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 gt_cv_c_intmax_t=yes
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6893 $as_echo "$gt_cv_c_intmax_t" >&6; }
6894 if test $gt_cv_c_intmax_t = yes; then
6896 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6903 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6904 if ${gt_cv_func_printf_posix+:} false; then :
6905 $as_echo_n "(cached) " >&6
6908 if test "$cross_compiling" = yes; then :
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6913 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6919 $EGREP "notposix" >/dev/null 2>&1; then :
6920 gt_cv_func_printf_posix="guessing no"
6922 gt_cv_func_printf_posix="guessing yes"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6933 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6934 dollar expansion (possibly an autoconf bug). */
6935 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6936 static char buf[100];
6939 sprintf (buf, format, 33, 55);
6940 return (strcmp (buf, "55 33") != 0);
6943 if ac_fn_c_try_run "$LINENO"; then :
6944 gt_cv_func_printf_posix=yes
6946 gt_cv_func_printf_posix=no
6948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6949 conftest.$ac_objext conftest.beam conftest.$ac_ext
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6955 $as_echo "$gt_cv_func_printf_posix" >&6; }
6956 case $gt_cv_func_printf_posix in
6959 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6964 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6965 # for constant arguments. Useless!
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6967 $as_echo_n "checking for working alloca.h... " >&6; }
6968 if ${ac_cv_working_alloca_h+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6977 char *p = (char *) alloca (2 * sizeof (int));
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 ac_cv_working_alloca_h=yes
6986 ac_cv_working_alloca_h=no
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6992 $as_echo "$ac_cv_working_alloca_h" >&6; }
6993 if test $ac_cv_working_alloca_h = yes; then
6995 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7000 $as_echo_n "checking for alloca... " >&6; }
7001 if ${ac_cv_func_alloca_works+:} false; then :
7002 $as_echo_n "(cached) " >&6
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 # define alloca __builtin_alloca
7010 # include <malloc.h>
7011 # define alloca _alloca
7013 # ifdef HAVE_ALLOCA_H
7014 # include <alloca.h>
7019 # ifndef alloca /* predefined by HP cc +Olibcalls */
7020 void *alloca (size_t);
7030 char *p = (char *) alloca (1);
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 ac_cv_func_alloca_works=yes
7039 ac_cv_func_alloca_works=no
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7045 $as_echo "$ac_cv_func_alloca_works" >&6; }
7047 if test $ac_cv_func_alloca_works = yes; then
7049 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7053 # that cause trouble. Some versions do not even contain alloca or
7054 # contain a buggy version. If you still want to use their alloca,
7055 # use ar to extract alloca.o from them instead of compiling alloca.c.
7057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7064 if ${ac_cv_os_cray+:} false; then :
7065 $as_echo_n "(cached) " >&6
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 #if defined CRAY && ! defined CRAY2
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077 $EGREP "webecray" >/dev/null 2>&1; then :
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7086 $as_echo "$ac_cv_os_cray" >&6; }
7087 if test $ac_cv_os_cray = yes; then
7088 for ac_func in _getb67 GETB67 getb67; do
7089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7093 cat >>confdefs.h <<_ACEOF
7094 #define CRAY_STACKSEG_END $ac_func
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7104 $as_echo_n "checking stack direction for C alloca... " >&6; }
7105 if ${ac_cv_c_stack_direction+:} false; then :
7106 $as_echo_n "(cached) " >&6
7108 if test "$cross_compiling" = yes; then :
7109 ac_cv_c_stack_direction=0
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 $ac_includes_default
7115 find_stack_direction (int *addr, int depth)
7120 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7121 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7126 main (int argc, char **argv)
7128 return find_stack_direction (0, argc + !argv + 20) < 0;
7131 if ac_fn_c_try_run "$LINENO"; then :
7132 ac_cv_c_stack_direction=1
7134 ac_cv_c_stack_direction=-1
7136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7137 conftest.$ac_objext conftest.beam conftest.$ac_ext
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7142 $as_echo "$ac_cv_c_stack_direction" >&6; }
7143 cat >>confdefs.h <<_ACEOF
7144 #define STACK_DIRECTION $ac_cv_c_stack_direction
7153 for ac_header in $ac_header_list
7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7159 cat >>confdefs.h <<_ACEOF
7160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 for ac_func in getpagesize
7176 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7177 if test "x$ac_cv_func_getpagesize" = xyes; then :
7178 cat >>confdefs.h <<_ACEOF
7179 #define HAVE_GETPAGESIZE 1
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7186 $as_echo_n "checking for working mmap... " >&6; }
7187 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 if test "$cross_compiling" = yes; then :
7191 ac_cv_func_mmap_fixed_mapped=no
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 $ac_includes_default
7196 /* malloc might have been renamed as rpl_malloc. */
7199 /* Thanks to Mike Haertel and Jim Avera for this test.
7200 Here is a matrix of mmap possibilities:
7201 mmap private not fixed
7202 mmap private fixed at somewhere currently unmapped
7203 mmap private fixed at somewhere already mapped
7204 mmap shared not fixed
7205 mmap shared fixed at somewhere currently unmapped
7206 mmap shared fixed at somewhere already mapped
7207 For private mappings, we should verify that changes cannot be read()
7208 back from the file, nor mmap's back from the file at a different
7209 address. (There have been systems where private was not correctly
7210 implemented like the infamous i386 svr4.0, and systems where the
7211 VM page cache was not coherent with the file system buffer cache
7212 like early versions of FreeBSD and possibly contemporary NetBSD.)
7213 For shared mappings, we should conversely verify that changes get
7214 propagated back to all the places they're supposed to be.
7216 Grep wants private fixed already mapped.
7217 The main things grep needs to know about mmap are:
7218 * does it exist and is it safe to write into the mmap'd area
7219 * how to use it (BSD variants) */
7222 #include <sys/mman.h>
7224 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7228 /* This mess was copied from the GNU getpagesize.h. */
7229 #ifndef HAVE_GETPAGESIZE
7230 # ifdef _SC_PAGESIZE
7231 # define getpagesize() sysconf(_SC_PAGESIZE)
7232 # else /* no _SC_PAGESIZE */
7233 # ifdef HAVE_SYS_PARAM_H
7234 # include <sys/param.h>
7235 # ifdef EXEC_PAGESIZE
7236 # define getpagesize() EXEC_PAGESIZE
7237 # else /* no EXEC_PAGESIZE */
7239 # define getpagesize() NBPG * CLSIZE
7242 # endif /* no CLSIZE */
7243 # else /* no NBPG */
7245 # define getpagesize() NBPC
7246 # else /* no NBPC */
7248 # define getpagesize() PAGESIZE
7249 # endif /* PAGESIZE */
7250 # endif /* no NBPC */
7251 # endif /* no NBPG */
7252 # endif /* no EXEC_PAGESIZE */
7253 # else /* no HAVE_SYS_PARAM_H */
7254 # define getpagesize() 8192 /* punt totally */
7255 # endif /* no HAVE_SYS_PARAM_H */
7256 # endif /* no _SC_PAGESIZE */
7258 #endif /* no HAVE_GETPAGESIZE */
7263 char *data, *data2, *data3;
7268 pagesize = getpagesize ();
7270 /* First, make a file with some known garbage in it. */
7271 data = (char *) malloc (pagesize);
7274 for (i = 0; i < pagesize; ++i)
7275 *(data + i) = rand ();
7277 fd = creat ("conftest.mmap", 0600);
7280 if (write (fd, data, pagesize) != pagesize)
7284 /* Next, check that the tail of a page is zero-filled. File must have
7285 non-zero length, otherwise we risk SIGBUS for entire page. */
7286 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7290 if (write (fd2, cdata2, 1) != 1)
7292 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7293 if (data2 == MAP_FAILED)
7295 for (i = 0; i < pagesize; ++i)
7299 if (munmap (data2, pagesize))
7302 /* Next, try to mmap the file at a fixed address which already has
7303 something else allocated at it. If we can, also make sure that
7304 we see the same garbage. */
7305 fd = open ("conftest.mmap", O_RDWR);
7308 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7311 for (i = 0; i < pagesize; ++i)
7312 if (*(data + i) != *(data2 + i))
7315 /* Finally, make sure that changes to the mapped area do not
7316 percolate back to the file as seen by read(). (This is a bug on
7317 some variants of i386 svr4.0.) */
7318 for (i = 0; i < pagesize; ++i)
7319 *(data2 + i) = *(data2 + i) + 1;
7320 data3 = (char *) malloc (pagesize);
7323 if (read (fd, data3, pagesize) != pagesize)
7325 for (i = 0; i < pagesize; ++i)
7326 if (*(data + i) != *(data3 + i))
7332 if ac_fn_c_try_run "$LINENO"; then :
7333 ac_cv_func_mmap_fixed_mapped=yes
7335 ac_cv_func_mmap_fixed_mapped=no
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7343 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7344 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7346 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7349 rm -f conftest.mmap conftest.txt
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7353 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7354 if ${ac_cv_gnu_library_2_1+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7360 #include <features.h>
7361 #ifdef __GNU_LIBRARY__
7362 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7370 ac_cv_gnu_library_2_1=yes
7372 ac_cv_gnu_library_2_1=no
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7380 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7382 GLIBC21="$ac_cv_gnu_library_2_1"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7388 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7389 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7390 $as_echo_n "(cached) " >&6
7393 if test "$cross_compiling" = yes; then :
7395 # Guess based on the CPU.
7397 alpha* | i3456786 | m68k | s390*)
7398 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7400 gt_cv_int_divbyzero_sigfpe="guessing no";;
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7412 sigfpe_handler (int sig)
7414 sigfpe_handler (sig) int sig;
7417 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7418 exit (sig != SIGFPE);
7428 signal (SIGFPE, sigfpe_handler);
7429 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7430 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7431 signal (SIGTRAP, sigfpe_handler);
7433 /* Linux/SPARC yields signal SIGILL. */
7434 #if defined (__sparc__) && defined (__linux__)
7435 signal (SIGILL, sigfpe_handler);
7444 if ac_fn_c_try_run "$LINENO"; then :
7445 gt_cv_int_divbyzero_sigfpe=yes
7447 gt_cv_int_divbyzero_sigfpe=no
7449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7450 conftest.$ac_objext conftest.beam conftest.$ac_ext
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7456 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7457 case "$gt_cv_int_divbyzero_sigfpe" in
7462 cat >>confdefs.h <<_ACEOF
7463 #define INTDIV0_RAISES_SIGFPE $value
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7469 $as_echo_n "checking for unsigned long long... " >&6; }
7470 if ${ac_cv_type_unsigned_long_long+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 unsigned long long ull = 1ULL; int i = 63;
7479 unsigned long long ullmax = (unsigned long long) -1;
7480 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 ac_cv_type_unsigned_long_long=yes
7488 ac_cv_type_unsigned_long_long=no
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7494 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7495 if test $ac_cv_type_unsigned_long_long = yes; then
7497 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7504 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7506 test $ac_cv_type_unsigned_long_long = yes \
7507 && ac_type='unsigned long long' \
7508 || ac_type='unsigned long'
7510 cat >>confdefs.h <<_ACEOF
7511 #define uintmax_t $ac_type
7516 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7522 $as_echo_n "checking for inttypes.h... " >&6; }
7523 if ${gt_cv_header_inttypes_h+:} false; then :
7524 $as_echo_n "(cached) " >&6
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <sys/types.h>
7530 #include <inttypes.h>
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 gt_cv_header_inttypes_h=yes
7542 gt_cv_header_inttypes_h=no
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7548 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7549 if test $gt_cv_header_inttypes_h = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define HAVE_INTTYPES_H 1
7559 if test $gt_cv_header_inttypes_h = yes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7561 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7562 if ${gt_cv_inttypes_pri_broken+:} false; then :
7563 $as_echo_n "(cached) " >&6
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <inttypes.h>
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 gt_cv_inttypes_pri_broken=no
7584 gt_cv_inttypes_pri_broken=yes
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7590 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7592 if test "$gt_cv_inttypes_pri_broken" = yes; then
7594 cat >>confdefs.h <<_ACEOF
7595 #define PRI_MACROS_BROKEN 1
7601 for ac_header in stdint.h
7603 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7604 if test "x$ac_cv_header_stdint_h" = xyes; then :
7605 cat >>confdefs.h <<_ACEOF
7606 #define HAVE_STDINT_H 1
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7614 $as_echo_n "checking for SIZE_MAX... " >&6; }
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7629 $EGREP "Found it" >/dev/null 2>&1; then :
7634 if test -z "$result"; then
7635 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7642 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7649 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7656 if test "$fits_in_uint" = 1; then
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7661 extern unsigned long foo;
7671 if ac_fn_c_try_compile "$LINENO"; then :
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 if test -z "$result"; then
7677 if test "$fits_in_uint" = 1; then
7678 result="$res_hi$res_lo"U
7680 result="$res_hi$res_lo"UL
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7687 $as_echo "$result" >&6; }
7688 if test "$result" != yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define SIZE_MAX $result
7698 for ac_header in stdint.h
7700 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7701 if test "x$ac_cv_header_stdint_h" = xyes; then :
7702 cat >>confdefs.h <<_ACEOF
7703 #define HAVE_STDINT_H 1
7712 if test "X$prefix" = "XNONE"; then
7713 acl_final_prefix="$ac_default_prefix"
7715 acl_final_prefix="$prefix"
7717 if test "X$exec_prefix" = "XNONE"; then
7718 acl_final_exec_prefix='${prefix}'
7720 acl_final_exec_prefix="$exec_prefix"
7722 acl_save_prefix="$prefix"
7723 prefix="$acl_final_prefix"
7724 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7725 prefix="$acl_save_prefix"
7728 # Check whether --with-gnu-ld was given.
7729 if test "${with_gnu_ld+set}" = set; then :
7730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7735 # Prepare PATH_SEPARATOR.
7736 # The user is always right.
7737 if test "${PATH_SEPARATOR+set}" != set; then
7738 echo "#! /bin/sh" >conf$$.sh
7739 echo "exit 0" >>conf$$.sh
7741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7749 if test "$GCC" = yes; then
7750 # Check if gcc -print-prog-name=ld gives a path.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7752 $as_echo_n "checking for ld used by GCC... " >&6; }
7755 # gcc leaves a trailing carriage return which upsets mingw
7756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7761 # Accept absolute paths.
7762 [\\/]* | [A-Za-z]:[\\/]*)
7763 re_direlt='/[^/][^/]*/\.\./'
7764 # Canonicalize the path of ld
7765 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7767 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7769 test -z "$LD" && LD="$ac_prog"
7772 # If it fails, then pretend we aren't using GCC.
7776 # If it is relative, then search for the first ld in PATH.
7780 elif test "$with_gnu_ld" = yes; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7782 $as_echo_n "checking for GNU ld... " >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7785 $as_echo_n "checking for non-GNU ld... " >&6; }
7787 if ${acl_cv_path_LD+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 if test -z "$LD"; then
7791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7792 for ac_dir in $PATH; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795 acl_cv_path_LD="$ac_dir/$ac_prog"
7796 # Check to see if the program is GNU ld. I'd rather use --version,
7797 # but apparently some GNU ld's only accept -v.
7798 # Break only if it was the GNU/non-GNU ld that we prefer.
7799 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7800 *GNU* | *'with BFD'*)
7801 test "$with_gnu_ld" != no && break ;;
7803 test "$with_gnu_ld" != yes && break ;;
7809 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7813 LD="$acl_cv_path_LD"
7814 if test -n "$LD"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7816 $as_echo "$LD" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7821 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7824 if ${acl_cv_prog_gnu_ld+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7828 case `$LD -v 2>&1 </dev/null` in
7829 *GNU* | *'with BFD'*)
7830 acl_cv_prog_gnu_ld=yes ;;
7832 acl_cv_prog_gnu_ld=no ;;
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7836 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7837 with_gnu_ld=$acl_cv_prog_gnu_ld
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7842 $as_echo_n "checking for shared library run path origin... " >&6; }
7843 if ${acl_cv_rpath+:} false; then :
7844 $as_echo_n "(cached) " >&6
7847 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7848 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7855 $as_echo "$acl_cv_rpath" >&6; }
7857 libext="$acl_cv_libext"
7858 shlibext="$acl_cv_shlibext"
7859 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7860 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7861 hardcode_direct="$acl_cv_hardcode_direct"
7862 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7863 # Check whether --enable-rpath was given.
7864 if test "${enable_rpath+set}" = set; then :
7865 enableval=$enable_rpath; :
7879 acl_save_prefix="$prefix"
7880 prefix="$acl_final_prefix"
7881 acl_save_exec_prefix="$exec_prefix"
7882 exec_prefix="$acl_final_exec_prefix"
7884 eval additional_includedir=\"$includedir\"
7885 eval additional_libdir=\"$libdir\"
7887 exec_prefix="$acl_save_exec_prefix"
7888 prefix="$acl_save_prefix"
7891 # Check whether --with-libiconv-prefix was given.
7892 if test "${with_libiconv_prefix+set}" = set; then :
7893 withval=$with_libiconv_prefix;
7894 if test "X$withval" = "Xno"; then
7897 if test "X$withval" = "X"; then
7899 acl_save_prefix="$prefix"
7900 prefix="$acl_final_prefix"
7901 acl_save_exec_prefix="$exec_prefix"
7902 exec_prefix="$acl_final_exec_prefix"
7904 eval additional_includedir=\"$includedir\"
7905 eval additional_libdir=\"$libdir\"
7907 exec_prefix="$acl_save_exec_prefix"
7908 prefix="$acl_save_prefix"
7911 additional_includedir="$withval/include"
7912 additional_libdir="$withval/lib"
7923 names_already_handled=
7924 names_next_round='iconv '
7925 while test -n "$names_next_round"; do
7926 names_this_round="$names_next_round"
7928 for name in $names_this_round; do
7930 for n in $names_already_handled; do
7931 if test "$n" = "$name"; then
7936 if test -z "$already_handled"; then
7937 names_already_handled="$names_already_handled $name"
7938 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7939 eval value=\"\$HAVE_LIB$uppername\"
7940 if test -n "$value"; then
7941 if test "$value" = yes; then
7942 eval value=\"\$LIB$uppername\"
7943 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7944 eval value=\"\$LTLIB$uppername\"
7945 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7954 if test $use_additional = yes; then
7955 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7956 found_dir="$additional_libdir"
7957 found_so="$additional_libdir/lib$name.$shlibext"
7958 if test -f "$additional_libdir/lib$name.la"; then
7959 found_la="$additional_libdir/lib$name.la"
7962 if test -f "$additional_libdir/lib$name.$libext"; then
7963 found_dir="$additional_libdir"
7964 found_a="$additional_libdir/lib$name.$libext"
7965 if test -f "$additional_libdir/lib$name.la"; then
7966 found_la="$additional_libdir/lib$name.la"
7971 if test "X$found_dir" = "X"; then
7972 for x in $LDFLAGS $LTLIBICONV; do
7974 acl_save_prefix="$prefix"
7975 prefix="$acl_final_prefix"
7976 acl_save_exec_prefix="$exec_prefix"
7977 exec_prefix="$acl_final_exec_prefix"
7979 exec_prefix="$acl_save_exec_prefix"
7980 prefix="$acl_save_prefix"
7984 dir=`echo "X$x" | sed -e 's/^X-L//'`
7985 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7987 found_so="$dir/lib$name.$shlibext"
7988 if test -f "$dir/lib$name.la"; then
7989 found_la="$dir/lib$name.la"
7992 if test -f "$dir/lib$name.$libext"; then
7994 found_a="$dir/lib$name.$libext"
7995 if test -f "$dir/lib$name.la"; then
7996 found_la="$dir/lib$name.la"
8002 if test "X$found_dir" != "X"; then
8007 if test "X$found_dir" != "X"; then
8008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8009 if test "X$found_so" != "X"; then
8010 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8014 for x in $ltrpathdirs; do
8015 if test "X$x" = "X$found_dir"; then
8020 if test -z "$haveit"; then
8021 ltrpathdirs="$ltrpathdirs $found_dir"
8023 if test "$hardcode_direct" = yes; then
8024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8026 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8029 for x in $rpathdirs; do
8030 if test "X$x" = "X$found_dir"; then
8035 if test -z "$haveit"; then
8036 rpathdirs="$rpathdirs $found_dir"
8040 for x in $LDFLAGS $LIBICONV; do
8042 acl_save_prefix="$prefix"
8043 prefix="$acl_final_prefix"
8044 acl_save_exec_prefix="$exec_prefix"
8045 exec_prefix="$acl_final_exec_prefix"
8047 exec_prefix="$acl_save_exec_prefix"
8048 prefix="$acl_save_prefix"
8050 if test "X$x" = "X-L$found_dir"; then
8055 if test -z "$haveit"; then
8056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8058 if test "$hardcode_minus_L" != no; then
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8061 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8067 if test "X$found_a" != "X"; then
8068 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8073 additional_includedir=
8074 case "$found_dir" in
8076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8077 additional_includedir="$basedir/include"
8080 if test "X$additional_includedir" != "X"; then
8081 if test "X$additional_includedir" != "X/usr/include"; then
8083 if test "X$additional_includedir" = "X/usr/local/include"; then
8084 if test -n "$GCC"; then
8086 linux*) haveit=yes;;
8090 if test -z "$haveit"; then
8091 for x in $CPPFLAGS $INCICONV; do
8093 acl_save_prefix="$prefix"
8094 prefix="$acl_final_prefix"
8095 acl_save_exec_prefix="$exec_prefix"
8096 exec_prefix="$acl_final_exec_prefix"
8098 exec_prefix="$acl_save_exec_prefix"
8099 prefix="$acl_save_prefix"
8101 if test "X$x" = "X-I$additional_includedir"; then
8106 if test -z "$haveit"; then
8107 if test -d "$additional_includedir"; then
8108 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8114 if test -n "$found_la"; then
8115 save_libdir="$libdir"
8117 */* | *\\*) . "$found_la" ;;
8118 *) . "./$found_la" ;;
8120 libdir="$save_libdir"
8121 for dep in $dependency_libs; do
8124 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8125 if test "X$additional_libdir" != "X/usr/lib"; then
8127 if test "X$additional_libdir" = "X/usr/local/lib"; then
8128 if test -n "$GCC"; then
8130 linux*) haveit=yes;;
8134 if test -z "$haveit"; then
8136 for x in $LDFLAGS $LIBICONV; do
8138 acl_save_prefix="$prefix"
8139 prefix="$acl_final_prefix"
8140 acl_save_exec_prefix="$exec_prefix"
8141 exec_prefix="$acl_final_exec_prefix"
8143 exec_prefix="$acl_save_exec_prefix"
8144 prefix="$acl_save_prefix"
8146 if test "X$x" = "X-L$additional_libdir"; then
8151 if test -z "$haveit"; then
8152 if test -d "$additional_libdir"; then
8153 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8157 for x in $LDFLAGS $LTLIBICONV; do
8159 acl_save_prefix="$prefix"
8160 prefix="$acl_final_prefix"
8161 acl_save_exec_prefix="$exec_prefix"
8162 exec_prefix="$acl_final_exec_prefix"
8164 exec_prefix="$acl_save_exec_prefix"
8165 prefix="$acl_save_prefix"
8167 if test "X$x" = "X-L$additional_libdir"; then
8172 if test -z "$haveit"; then
8173 if test -d "$additional_libdir"; then
8174 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8181 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8182 if test "$enable_rpath" != no; then
8184 for x in $rpathdirs; do
8185 if test "X$x" = "X$dir"; then
8190 if test -z "$haveit"; then
8191 rpathdirs="$rpathdirs $dir"
8194 for x in $ltrpathdirs; do
8195 if test "X$x" = "X$dir"; then
8200 if test -z "$haveit"; then
8201 ltrpathdirs="$ltrpathdirs $dir"
8206 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8209 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8212 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8219 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8220 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8226 if test "X$rpathdirs" != "X"; then
8227 if test -n "$hardcode_libdir_separator"; then
8229 for found_dir in $rpathdirs; do
8230 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8232 acl_save_libdir="$libdir"
8234 eval flag=\"$hardcode_libdir_flag_spec\"
8235 libdir="$acl_save_libdir"
8236 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8238 for found_dir in $rpathdirs; do
8239 acl_save_libdir="$libdir"
8241 eval flag=\"$hardcode_libdir_flag_spec\"
8242 libdir="$acl_save_libdir"
8243 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8247 if test "X$ltrpathdirs" != "X"; then
8248 for found_dir in $ltrpathdirs; do
8249 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8260 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8261 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8265 $as_echo "#define ptrdiff_t long" >>confdefs.h
8270 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8271 stdlib.h string.h unistd.h sys/param.h
8273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8276 cat >>confdefs.h <<_ACEOF
8277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8284 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8285 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8286 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8291 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8292 cat >>confdefs.h <<_ACEOF
8293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8302 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8303 if ${ac_cv_have_decl__snprintf+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8314 char *p = (char *) _snprintf;
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322 ac_cv_have_decl__snprintf=yes
8324 ac_cv_have_decl__snprintf=no
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8330 if test $ac_cv_have_decl__snprintf = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNPRINTF $gt_value
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8343 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8344 if ${ac_cv_have_decl__snwprintf+:} false; then :
8345 $as_echo_n "(cached) " >&6
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8355 char *p = (char *) _snwprintf;
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363 ac_cv_have_decl__snwprintf=yes
8365 ac_cv_have_decl__snwprintf=no
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8370 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8371 if test $ac_cv_have_decl__snwprintf = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL__SNWPRINTF $gt_value
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8385 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8386 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8396 #ifndef feof_unlocked
8397 char *p = (char *) feof_unlocked;
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 ac_cv_have_decl_feof_unlocked=yes
8407 ac_cv_have_decl_feof_unlocked=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8413 if test $ac_cv_have_decl_feof_unlocked = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8426 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8427 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8437 #ifndef fgets_unlocked
8438 char *p = (char *) fgets_unlocked;
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_have_decl_fgets_unlocked=yes
8448 ac_cv_have_decl_fgets_unlocked=no
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8454 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8467 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8468 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8478 #ifndef getc_unlocked
8479 char *p = (char *) getc_unlocked;
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 ac_cv_have_decl_getc_unlocked=yes
8489 ac_cv_have_decl_getc_unlocked=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8494 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8495 if test $ac_cv_have_decl_getc_unlocked = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8507 case $gt_cv_func_printf_posix in
8508 *yes) HAVE_POSIX_PRINTF=1 ;;
8509 *) HAVE_POSIX_PRINTF=0 ;;
8512 if test "$ac_cv_func_asprintf" = yes; then
8518 if test "$ac_cv_func_snprintf" = yes; then
8524 if test "$ac_cv_func_wprintf" = yes; then
8536 am_save_CPPFLAGS="$CPPFLAGS"
8538 for element in $INCICONV; do
8540 for x in $CPPFLAGS; do
8542 acl_save_prefix="$prefix"
8543 prefix="$acl_final_prefix"
8544 acl_save_exec_prefix="$exec_prefix"
8545 exec_prefix="$acl_final_exec_prefix"
8547 exec_prefix="$acl_save_exec_prefix"
8548 prefix="$acl_save_prefix"
8550 if test "X$x" = "X$element"; then
8555 if test -z "$haveit"; then
8556 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8562 $as_echo_n "checking for iconv... " >&6; }
8563 if ${am_cv_func_iconv+:} false; then :
8564 $as_echo_n "(cached) " >&6
8567 am_cv_func_iconv="no, consider installing GNU libiconv"
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8576 iconv_t cd = iconv_open("","");
8577 iconv(cd,NULL,NULL,NULL,NULL);
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 am_cv_func_iconv=yes
8586 rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588 if test "$am_cv_func_iconv" != yes; then
8589 am_save_LIBS="$LIBS"
8590 LIBS="$LIBS $LIBICONV"
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8598 iconv_t cd = iconv_open("","");
8599 iconv(cd,NULL,NULL,NULL,NULL);
8605 if ac_fn_c_try_link "$LINENO"; then :
8607 am_cv_func_iconv=yes
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LIBS="$am_save_LIBS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8616 $as_echo "$am_cv_func_iconv" >&6; }
8617 if test "$am_cv_func_iconv" = yes; then
8619 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8622 if test "$am_cv_lib_iconv" = yes; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8624 $as_echo_n "checking how to link with libiconv... " >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8626 $as_echo "$LIBICONV" >&6; }
8628 CPPFLAGS="$am_save_CPPFLAGS"
8635 if test "$am_cv_func_iconv" = yes; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8637 $as_echo_n "checking for iconv declaration... " >&6; }
8638 if ${am_cv_proto_iconv+:} false; then :
8639 $as_echo_n "(cached) " >&6
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8651 #if defined(__STDC__) || defined(__cplusplus)
8652 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666 am_cv_proto_iconv_arg1=""
8668 am_cv_proto_iconv_arg1="const"
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 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);"
8674 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8676 }$am_cv_proto_iconv" >&5
8678 }$am_cv_proto_iconv" >&6; }
8680 cat >>confdefs.h <<_ACEOF
8681 #define ICONV_CONST $am_cv_proto_iconv_arg1
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8689 if ${am_cv_langinfo_codeset+:} false; then :
8690 $as_echo_n "(cached) " >&6
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 #include <langinfo.h>
8698 char* cs = nl_langinfo(CODESET);
8703 if ac_fn_c_try_link "$LINENO"; then :
8704 am_cv_langinfo_codeset=yes
8706 am_cv_langinfo_codeset=no
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8713 $as_echo "$am_cv_langinfo_codeset" >&6; }
8714 if test $am_cv_langinfo_codeset = yes; then
8716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8720 if test $ac_cv_header_locale_h = yes; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8723 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8724 if ${am_cv_val_LC_MESSAGES+:} false; then :
8725 $as_echo_n "(cached) " >&6
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 am_cv_val_LC_MESSAGES=yes
8741 am_cv_val_LC_MESSAGES=no
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8747 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8748 if test $am_cv_val_LC_MESSAGES = yes; then
8750 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8756 for ac_prog in bison
8758 # Extract the first word of "$ac_prog", so it can be a program name with args.
8759 set dummy $ac_prog; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_INTLBISON+:} false; then :
8763 $as_echo_n "(cached) " >&6
8765 if test -n "$INTLBISON"; then
8766 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_INTLBISON="$ac_prog"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 INTLBISON=$ac_cv_prog_INTLBISON
8786 if test -n "$INTLBISON"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8788 $as_echo "$INTLBISON" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8795 test -n "$INTLBISON" && break
8798 if test -z "$INTLBISON"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8802 $as_echo_n "checking version of bison... " >&6; }
8803 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8804 case $ac_prog_version in
8805 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8806 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8807 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8808 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8811 $as_echo "$ac_prog_version" >&6; }
8813 if test $ac_verc_fail = yes; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8833 $as_echo_n "checking whether NLS is requested... " >&6; }
8834 # Check whether --enable-nls was given.
8835 if test "${enable_nls+set}" = set; then :
8836 enableval=$enable_nls; USE_NLS=$enableval
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8842 $as_echo "$USE_NLS" >&6; }
8847 BUILD_INCLUDED_LIBINTL=no
8848 USE_INCLUDED_LIBINTL=no
8854 if test "$USE_NLS" = "yes"; then
8855 gt_use_preinstalled_gnugettext=no
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8858 $as_echo_n "checking whether included gettext is requested... " >&6; }
8860 # Check whether --with-included-gettext was given.
8861 if test "${with_included_gettext+set}" = set; then :
8862 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8864 nls_cv_force_use_gnu_gettext=no
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8868 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8870 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8871 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8879 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8880 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #include <libintl.h>
8886 extern int _nl_msg_cat_cntr;
8887 extern int *_nl_domain_bindings;
8891 bindtextdomain ("", "");
8892 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 gt_cv_func_gnugettext1_libc=yes
8900 gt_cv_func_gnugettext1_libc=no
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8906 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8908 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8914 acl_save_prefix="$prefix"
8915 prefix="$acl_final_prefix"
8916 acl_save_exec_prefix="$exec_prefix"
8917 exec_prefix="$acl_final_exec_prefix"
8919 eval additional_includedir=\"$includedir\"
8920 eval additional_libdir=\"$libdir\"
8922 exec_prefix="$acl_save_exec_prefix"
8923 prefix="$acl_save_prefix"
8926 # Check whether --with-libintl-prefix was given.
8927 if test "${with_libintl_prefix+set}" = set; then :
8928 withval=$with_libintl_prefix;
8929 if test "X$withval" = "Xno"; then
8932 if test "X$withval" = "X"; then
8934 acl_save_prefix="$prefix"
8935 prefix="$acl_final_prefix"
8936 acl_save_exec_prefix="$exec_prefix"
8937 exec_prefix="$acl_final_exec_prefix"
8939 eval additional_includedir=\"$includedir\"
8940 eval additional_libdir=\"$libdir\"
8942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8946 additional_includedir="$withval/include"
8947 additional_libdir="$withval/lib"
8958 names_already_handled=
8959 names_next_round='intl '
8960 while test -n "$names_next_round"; do
8961 names_this_round="$names_next_round"
8963 for name in $names_this_round; do
8965 for n in $names_already_handled; do
8966 if test "$n" = "$name"; then
8971 if test -z "$already_handled"; then
8972 names_already_handled="$names_already_handled $name"
8973 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8974 eval value=\"\$HAVE_LIB$uppername\"
8975 if test -n "$value"; then
8976 if test "$value" = yes; then
8977 eval value=\"\$LIB$uppername\"
8978 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8979 eval value=\"\$LTLIB$uppername\"
8980 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8989 if test $use_additional = yes; then
8990 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8991 found_dir="$additional_libdir"
8992 found_so="$additional_libdir/lib$name.$shlibext"
8993 if test -f "$additional_libdir/lib$name.la"; then
8994 found_la="$additional_libdir/lib$name.la"
8997 if test -f "$additional_libdir/lib$name.$libext"; then
8998 found_dir="$additional_libdir"
8999 found_a="$additional_libdir/lib$name.$libext"
9000 if test -f "$additional_libdir/lib$name.la"; then
9001 found_la="$additional_libdir/lib$name.la"
9006 if test "X$found_dir" = "X"; then
9007 for x in $LDFLAGS $LTLIBINTL; do
9009 acl_save_prefix="$prefix"
9010 prefix="$acl_final_prefix"
9011 acl_save_exec_prefix="$exec_prefix"
9012 exec_prefix="$acl_final_exec_prefix"
9014 exec_prefix="$acl_save_exec_prefix"
9015 prefix="$acl_save_prefix"
9019 dir=`echo "X$x" | sed -e 's/^X-L//'`
9020 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9022 found_so="$dir/lib$name.$shlibext"
9023 if test -f "$dir/lib$name.la"; then
9024 found_la="$dir/lib$name.la"
9027 if test -f "$dir/lib$name.$libext"; then
9029 found_a="$dir/lib$name.$libext"
9030 if test -f "$dir/lib$name.la"; then
9031 found_la="$dir/lib$name.la"
9037 if test "X$found_dir" != "X"; then
9042 if test "X$found_dir" != "X"; then
9043 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9044 if test "X$found_so" != "X"; then
9045 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9049 for x in $ltrpathdirs; do
9050 if test "X$x" = "X$found_dir"; then
9055 if test -z "$haveit"; then
9056 ltrpathdirs="$ltrpathdirs $found_dir"
9058 if test "$hardcode_direct" = yes; then
9059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9061 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9064 for x in $rpathdirs; do
9065 if test "X$x" = "X$found_dir"; then
9070 if test -z "$haveit"; then
9071 rpathdirs="$rpathdirs $found_dir"
9075 for x in $LDFLAGS $LIBINTL; do
9077 acl_save_prefix="$prefix"
9078 prefix="$acl_final_prefix"
9079 acl_save_exec_prefix="$exec_prefix"
9080 exec_prefix="$acl_final_exec_prefix"
9082 exec_prefix="$acl_save_exec_prefix"
9083 prefix="$acl_save_prefix"
9085 if test "X$x" = "X-L$found_dir"; then
9090 if test -z "$haveit"; then
9091 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9093 if test "$hardcode_minus_L" != no; then
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9096 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9102 if test "X$found_a" != "X"; then
9103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9108 additional_includedir=
9109 case "$found_dir" in
9111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9112 additional_includedir="$basedir/include"
9115 if test "X$additional_includedir" != "X"; then
9116 if test "X$additional_includedir" != "X/usr/include"; then
9118 if test "X$additional_includedir" = "X/usr/local/include"; then
9119 if test -n "$GCC"; then
9121 linux*) haveit=yes;;
9125 if test -z "$haveit"; then
9126 for x in $CPPFLAGS $INCINTL; do
9128 acl_save_prefix="$prefix"
9129 prefix="$acl_final_prefix"
9130 acl_save_exec_prefix="$exec_prefix"
9131 exec_prefix="$acl_final_exec_prefix"
9133 exec_prefix="$acl_save_exec_prefix"
9134 prefix="$acl_save_prefix"
9136 if test "X$x" = "X-I$additional_includedir"; then
9141 if test -z "$haveit"; then
9142 if test -d "$additional_includedir"; then
9143 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9149 if test -n "$found_la"; then
9150 save_libdir="$libdir"
9152 */* | *\\*) . "$found_la" ;;
9153 *) . "./$found_la" ;;
9155 libdir="$save_libdir"
9156 for dep in $dependency_libs; do
9159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9160 if test "X$additional_libdir" != "X/usr/lib"; then
9162 if test "X$additional_libdir" = "X/usr/local/lib"; then
9163 if test -n "$GCC"; then
9165 linux*) haveit=yes;;
9169 if test -z "$haveit"; then
9171 for x in $LDFLAGS $LIBINTL; do
9173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9178 exec_prefix="$acl_save_exec_prefix"
9179 prefix="$acl_save_prefix"
9181 if test "X$x" = "X-L$additional_libdir"; then
9186 if test -z "$haveit"; then
9187 if test -d "$additional_libdir"; then
9188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9192 for x in $LDFLAGS $LTLIBINTL; do
9194 acl_save_prefix="$prefix"
9195 prefix="$acl_final_prefix"
9196 acl_save_exec_prefix="$exec_prefix"
9197 exec_prefix="$acl_final_exec_prefix"
9199 exec_prefix="$acl_save_exec_prefix"
9200 prefix="$acl_save_prefix"
9202 if test "X$x" = "X-L$additional_libdir"; then
9207 if test -z "$haveit"; then
9208 if test -d "$additional_libdir"; then
9209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9217 if test "$enable_rpath" != no; then
9219 for x in $rpathdirs; do
9220 if test "X$x" = "X$dir"; then
9225 if test -z "$haveit"; then
9226 rpathdirs="$rpathdirs $dir"
9229 for x in $ltrpathdirs; do
9230 if test "X$x" = "X$dir"; then
9235 if test -z "$haveit"; then
9236 ltrpathdirs="$ltrpathdirs $dir"
9241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9247 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9261 if test "X$rpathdirs" != "X"; then
9262 if test -n "$hardcode_libdir_separator"; then
9264 for found_dir in $rpathdirs; do
9265 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9267 acl_save_libdir="$libdir"
9269 eval flag=\"$hardcode_libdir_flag_spec\"
9270 libdir="$acl_save_libdir"
9271 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9273 for found_dir in $rpathdirs; do
9274 acl_save_libdir="$libdir"
9276 eval flag=\"$hardcode_libdir_flag_spec\"
9277 libdir="$acl_save_libdir"
9278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282 if test "X$ltrpathdirs" != "X"; then
9283 for found_dir in $ltrpathdirs; do
9284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9290 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9291 $as_echo_n "(cached) " >&6
9293 gt_save_CPPFLAGS="$CPPFLAGS"
9294 CPPFLAGS="$CPPFLAGS $INCINTL"
9295 gt_save_LIBS="$LIBS"
9296 LIBS="$LIBS $LIBINTL"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <libintl.h>
9300 extern int _nl_msg_cat_cntr;
9305 const char *_nl_expand_alias ();
9309 bindtextdomain ("", "");
9310 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 gt_cv_func_gnugettext1_libintl=yes
9318 gt_cv_func_gnugettext1_libintl=no
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9323 LIBS="$LIBS $LIBICONV"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <libintl.h>
9327 extern int _nl_msg_cat_cntr;
9332 const char *_nl_expand_alias ();
9336 bindtextdomain ("", "");
9337 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 LIBINTL="$LIBINTL $LIBICONV"
9344 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9345 gt_cv_func_gnugettext1_libintl=yes
9348 rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9351 CPPFLAGS="$gt_save_CPPFLAGS"
9352 LIBS="$gt_save_LIBS"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9355 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9358 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9359 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9360 && test "$PACKAGE" != gettext-runtime \
9361 && test "$PACKAGE" != gettext-tools; }; then
9362 gt_use_preinstalled_gnugettext=yes
9370 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9371 nls_cv_use_gnu_gettext=yes
9375 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9376 BUILD_INCLUDED_LIBINTL=yes
9377 USE_INCLUDED_LIBINTL=yes
9378 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9379 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9380 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9383 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9384 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9390 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9400 $as_echo_n "checking whether to use NLS... " >&6; }
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9402 $as_echo "$USE_NLS" >&6; }
9403 if test "$USE_NLS" = "yes"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9405 $as_echo_n "checking where the gettext function comes from... " >&6; }
9406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9407 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9408 gt_source="external libintl"
9413 gt_source="included intl directory"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9416 $as_echo "$gt_source" >&6; }
9419 if test "$USE_NLS" = "yes"; then
9421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9422 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9424 $as_echo_n "checking how to link with libintl... " >&6; }
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9426 $as_echo "$LIBINTL" >&6; }
9428 for element in $INCINTL; do
9430 for x in $CPPFLAGS; do
9432 acl_save_prefix="$prefix"
9433 prefix="$acl_final_prefix"
9434 acl_save_exec_prefix="$exec_prefix"
9435 exec_prefix="$acl_final_exec_prefix"
9437 exec_prefix="$acl_save_exec_prefix"
9438 prefix="$acl_save_prefix"
9440 if test "X$x" = "X$element"; then
9445 if test -z "$haveit"; then
9446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9464 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9465 BUILD_INCLUDED_LIBINTL=yes
9473 nls_cv_header_libgt=
9484 if test "$USE_INCLUDED_LIBINTL" = yes; then
9485 INTLOBJS="\$(GETTOBJS)"
9489 INTL_LIBTOOL_SUFFIX_PREFIX=
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9504 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9505 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9506 $as_echo_n "(cached) " >&6
9508 cat >conftest.make <<\_ACEOF
9511 @echo '@@@%%%=$(MAKE)=@@@%%%'
9513 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9516 eval ac_cv_prog_make_${ac_make}_set=yes;;
9518 eval ac_cv_prog_make_${ac_make}_set=no;;
9522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9524 $as_echo "yes" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 SET_MAKE="MAKE=${MAKE-make}"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9533 $as_echo_n "checking for GNU make... " >&6; }
9534 if ${_cv_gnu_make_command+:} false; then :
9535 $as_echo_n "(cached) " >&6
9537 _cv_gnu_make_command='' ;
9538 for a in "$MAKE" make gmake gnumake ; do
9539 if test -z "$a" ; then continue ; fi ;
9540 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9541 _cv_gnu_make_command=$a ;
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9548 $as_echo "$_cv_gnu_make_command" >&6; } ;
9549 if test "x$_cv_gnu_make_command" != "x" ; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9556 $as_echo "\"Not found\"" >&6; };
9561 # Extract the first word of "ln", so it can be a program name with args.
9562 set dummy ln; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_path_LN+:} false; then :
9566 $as_echo_n "(cached) " >&6
9570 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9593 if test -n "$LN"; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9595 $as_echo "$LN" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9603 $as_echo_n "checking whether ln -s works... " >&6; }
9605 if test "$LN_S" = "ln -s"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9610 $as_echo "no, using $LN_S" >&6; }
9613 # Extract the first word of "mv", so it can be a program name with args.
9614 set dummy mv; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_MV+:} false; then :
9618 $as_echo_n "(cached) " >&6
9622 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9645 if test -n "$MV"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9647 $as_echo "$MV" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 # Extract the first word of "cp", so it can be a program name with args.
9655 set dummy cp; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_CP+:} false; then :
9659 $as_echo_n "(cached) " >&6
9663 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9686 if test -n "$CP"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9688 $as_echo "$CP" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 # Extract the first word of "rm", so it can be a program name with args.
9696 set dummy rm; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_path_RM+:} false; then :
9700 $as_echo_n "(cached) " >&6
9704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 test -z "$as_dir" && as_dir=.
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9714 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9727 if test -n "$RM"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9729 $as_echo "$RM" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9736 # Extract the first word of "chmod", so it can be a program name with args.
9737 set dummy chmod; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if ${ac_cv_path_CHMOD+:} false; then :
9741 $as_echo_n "(cached) " >&6
9745 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9763 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9767 CHMOD=$ac_cv_path_CHMOD
9768 if test -n "$CHMOD"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9770 $as_echo "$CHMOD" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9777 for ac_prog in gawk mawk nawk awk
9779 # Extract the first word of "$ac_prog", so it can be a program name with args.
9780 set dummy $ac_prog; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_prog_AWK+:} false; then :
9784 $as_echo_n "(cached) " >&6
9786 if test -n "$AWK"; then
9787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_prog_AWK="$ac_prog"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 if test -n "$AWK"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9809 $as_echo "$AWK" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9816 test -n "$AWK" && break
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9820 $as_echo_n "checking for egrep... " >&6; }
9821 if ${ac_cv_path_EGREP+:} false; then :
9822 $as_echo_n "(cached) " >&6
9824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9825 then ac_cv_path_EGREP="$GREP -E"
9827 if test -z "$EGREP"; then
9828 ac_path_EGREP_found=false
9829 # Loop through the user's path and test for each of PROGNAME-LIST
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9834 test -z "$as_dir" && as_dir=.
9835 for ac_prog in egrep; do
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9838 as_fn_executable_p "$ac_path_EGREP" || continue
9839 # Check for GNU ac_path_EGREP and select it if it is found.
9840 # Check for GNU $ac_path_EGREP
9841 case `"$ac_path_EGREP" --version 2>&1` in
9843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9846 $as_echo_n 0123456789 >"conftest.in"
9849 cat "conftest.in" "conftest.in" >"conftest.tmp"
9850 mv "conftest.tmp" "conftest.in"
9851 cp "conftest.in" "conftest.nl"
9852 $as_echo 'EGREP' >> "conftest.nl"
9853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9855 as_fn_arith $ac_count + 1 && ac_count=$as_val
9856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9857 # Best one so far, save it but keep looking for a better one
9858 ac_cv_path_EGREP="$ac_path_EGREP"
9859 ac_path_EGREP_max=$ac_count
9861 # 10*(2^10) chars as input seems more than enough
9862 test $ac_count -gt 10 && break
9864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9867 $ac_path_EGREP_found && break 3
9872 if test -z "$ac_cv_path_EGREP"; then
9873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9876 ac_cv_path_EGREP=$EGREP
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9882 $as_echo "$ac_cv_path_EGREP" >&6; }
9883 EGREP="$ac_cv_path_EGREP"
9886 # Extract the first word of "sed", so it can be a program name with args.
9887 set dummy sed; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_path_SED+:} false; then :
9891 $as_echo_n "(cached) " >&6
9895 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9918 if test -n "$SED"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9920 $as_echo "$SED" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 # Extract the first word of "perl", so it can be a program name with args.
9928 set dummy perl; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if ${ac_cv_path_PERL+:} false; then :
9932 $as_echo_n "(cached) " >&6
9936 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9958 PERL=$ac_cv_path_PERL
9959 if test -n "$PERL"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9961 $as_echo "$PERL" >&6; }
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9968 # Extract the first word of "ldconfig", so it can be a program name with args.
9969 set dummy ldconfig; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_LDCONFIG+:} false; then :
9973 $as_echo_n "(cached) " >&6
9977 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9999 LDCONFIG=$ac_cv_path_LDCONFIG
10000 if test -n "$LDCONFIG"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10002 $as_echo "$LDCONFIG" >&6; }
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10009 if test -n "$ac_tool_prefix"; then
10010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10011 set dummy ${ac_tool_prefix}ar; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_prog_AR+:} false; then :
10015 $as_echo_n "(cached) " >&6
10017 if test -n "$AR"; then
10018 ac_cv_prog_AR="$AR" # Let the user override the test.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027 ac_cv_prog_AR="${ac_tool_prefix}ar"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 if test -n "$AR"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10040 $as_echo "$AR" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10048 if test -z "$ac_cv_prog_AR"; then
10050 # Extract the first word of "ar", so it can be a program name with args.
10051 set dummy ar; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10055 $as_echo_n "(cached) " >&6
10057 if test -n "$ac_ct_AR"; then
10058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_ac_ct_AR="ar"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10078 if test -n "$ac_ct_AR"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10080 $as_echo "$ac_ct_AR" >&6; }
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10086 if test "x$ac_ct_AR" = x; then
10089 case $cross_compiling:$ac_tool_warned in
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093 ac_tool_warned=yes ;;
10098 AR="$ac_cv_prog_AR"
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_prog_RANLIB+:} false; then :
10107 $as_echo_n "(cached) " >&6
10109 if test -n "$RANLIB"; then
10110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 RANLIB=$ac_cv_prog_RANLIB
10130 if test -n "$RANLIB"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10132 $as_echo "$RANLIB" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10140 if test -z "$ac_cv_prog_RANLIB"; then
10141 ac_ct_RANLIB=$RANLIB
10142 # Extract the first word of "ranlib", so it can be a program name with args.
10143 set dummy ranlib; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10147 $as_echo_n "(cached) " >&6
10149 if test -n "$ac_ct_RANLIB"; then
10150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_ac_ct_RANLIB="ranlib"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10170 if test -n "$ac_ct_RANLIB"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10172 $as_echo "$ac_ct_RANLIB" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10178 if test "x$ac_ct_RANLIB" = x; then
10181 case $cross_compiling:$ac_tool_warned in
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10185 ac_tool_warned=yes ;;
10187 RANLIB=$ac_ct_RANLIB
10190 RANLIB="$ac_cv_prog_RANLIB"
10193 if test -n "$ac_tool_prefix"; then
10194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10195 set dummy ${ac_tool_prefix}strip; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if ${ac_cv_prog_STRIP+:} false; then :
10199 $as_echo_n "(cached) " >&6
10201 if test -n "$STRIP"; then
10202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 STRIP=$ac_cv_prog_STRIP
10222 if test -n "$STRIP"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10224 $as_echo "$STRIP" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test -z "$ac_cv_prog_STRIP"; then
10234 # Extract the first word of "strip", so it can be a program name with args.
10235 set dummy strip; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10239 $as_echo_n "(cached) " >&6
10241 if test -n "$ac_ct_STRIP"; then
10242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_ac_ct_STRIP="strip"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10262 if test -n "$ac_ct_STRIP"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10264 $as_echo "$ac_ct_STRIP" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10270 if test "x$ac_ct_STRIP" = x; then
10273 case $cross_compiling:$ac_tool_warned in
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10277 ac_tool_warned=yes ;;
10282 STRIP="$ac_cv_prog_STRIP"
10285 # Extract the first word of "makeinfo", so it can be a program name with args.
10286 set dummy makeinfo; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_MAKEINFO+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$MAKEINFO"; then
10293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_MAKEINFO="makeinfo"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 MAKEINFO=$ac_cv_prog_MAKEINFO
10313 if test -n "$MAKEINFO"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10315 $as_echo "$MAKEINFO" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10322 if test "_$MAKEINFO" = "_"; then
10323 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10325 case "$MAKEINFO" in
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10328 *** Makeinfo is missing. Info documentation will not be built." >&5
10329 $as_echo "$as_me: WARNING:
10330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10338 # See if we need a separate native compiler.
10339 if test $cross_compiling = no; then
10343 for ac_prog in gcc cc
10345 # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_prog_BUILD_CC+:} false; then :
10350 $as_echo_n "(cached) " >&6
10352 if test -n "$BUILD_CC"; then
10353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_prog_BUILD_CC="$ac_prog"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 BUILD_CC=$ac_cv_prog_BUILD_CC
10373 if test -n "$BUILD_CC"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10375 $as_echo "$BUILD_CC" >&6; }
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10382 test -n "$BUILD_CC" && break
10386 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/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
10388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10391 cat >>confdefs.h <<_ACEOF
10392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399 for ac_header in sys/disk.h sys/mount.h
10401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10403 #if HAVE_SYS_QUEUE_H
10404 #include <sys/queue.h>
10408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10409 cat >>confdefs.h <<_ACEOF
10410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10417 for ac_header in net/if.h
10419 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10420 #if HAVE_SYS_TYPES_H
10421 #include <sys/types.h>
10423 #if HAVE_SYS_SOCKET
10424 #include <sys/socket.h>
10428 if test "x$ac_cv_header_net_if_h" = xyes; then :
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_NET_IF_H 1
10437 for ac_func in vprintf
10439 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10440 if test "x$ac_cv_func_vprintf" = xyes; then :
10441 cat >>confdefs.h <<_ACEOF
10442 #define HAVE_VPRINTF 1
10445 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10446 if test "x$ac_cv_func__doprnt" = xyes; then :
10448 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10456 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10458 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10460 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10464 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10465 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_STRUCT_STAT_ST_ATIM 1
10474 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10476 if test "x$ac_cv_type_ssize_t" = xyes; then :
10478 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10482 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10484 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10486 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10490 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10491 #define _LARGEFILE64_SOURCE
10492 #include <unistd.h>
10494 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10496 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10500 # The cast to long int works around a bug in the HP C Compiler
10501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10503 # This bug is HP SR number 8606223364.
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10505 $as_echo_n "checking size of short... " >&6; }
10506 if ${ac_cv_sizeof_short+:} false; then :
10507 $as_echo_n "(cached) " >&6
10509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10512 if test "$ac_cv_type_short" = yes; then
10513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10515 as_fn_error 77 "cannot compute sizeof (short)
10516 See \`config.log' for more details" "$LINENO" 5; }
10518 ac_cv_sizeof_short=0
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10524 $as_echo "$ac_cv_sizeof_short" >&6; }
10528 cat >>confdefs.h <<_ACEOF
10529 #define SIZEOF_SHORT $ac_cv_sizeof_short
10533 # The cast to long int works around a bug in the HP C Compiler
10534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10536 # This bug is HP SR number 8606223364.
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10538 $as_echo_n "checking size of int... " >&6; }
10539 if ${ac_cv_sizeof_int+:} false; then :
10540 $as_echo_n "(cached) " >&6
10542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10545 if test "$ac_cv_type_int" = yes; then
10546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10548 as_fn_error 77 "cannot compute sizeof (int)
10549 See \`config.log' for more details" "$LINENO" 5; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10557 $as_echo "$ac_cv_sizeof_int" >&6; }
10561 cat >>confdefs.h <<_ACEOF
10562 #define SIZEOF_INT $ac_cv_sizeof_int
10566 # The cast to long int works around a bug in the HP C Compiler
10567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10569 # This bug is HP SR number 8606223364.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10571 $as_echo_n "checking size of long... " >&6; }
10572 if ${ac_cv_sizeof_long+:} false; then :
10573 $as_echo_n "(cached) " >&6
10575 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10578 if test "$ac_cv_type_long" = yes; then
10579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10581 as_fn_error 77 "cannot compute sizeof (long)
10582 See \`config.log' for more details" "$LINENO" 5; }
10584 ac_cv_sizeof_long=0
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10590 $as_echo "$ac_cv_sizeof_long" >&6; }
10594 cat >>confdefs.h <<_ACEOF
10595 #define SIZEOF_LONG $ac_cv_sizeof_long
10599 # The cast to long int works around a bug in the HP C Compiler
10600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10602 # This bug is HP SR number 8606223364.
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10604 $as_echo_n "checking size of long long... " >&6; }
10605 if ${ac_cv_sizeof_long_long+:} false; then :
10606 $as_echo_n "(cached) " >&6
10608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10611 if test "$ac_cv_type_long_long" = yes; then
10612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10614 as_fn_error 77 "cannot compute sizeof (long long)
10615 See \`config.log' for more details" "$LINENO" 5; }
10617 ac_cv_sizeof_long_long=0
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10623 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10627 cat >>confdefs.h <<_ACEOF
10628 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10632 # The cast to long int works around a bug in the HP C Compiler
10633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10635 # This bug is HP SR number 8606223364.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10637 $as_echo_n "checking size of off_t... " >&6; }
10638 if ${ac_cv_sizeof_off_t+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10644 if test "$ac_cv_type_off_t" = yes; then
10645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647 as_fn_error 77 "cannot compute sizeof (off_t)
10648 See \`config.log' for more details" "$LINENO" 5; }
10650 ac_cv_sizeof_off_t=0
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10656 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10660 cat >>confdefs.h <<_ACEOF
10661 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10665 SIZEOF_SHORT=$ac_cv_sizeof_short
10666 SIZEOF_INT=$ac_cv_sizeof_int
10667 SIZEOF_LONG=$ac_cv_sizeof_long
10668 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10669 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10677 if ${ac_cv_c_bigendian+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 ac_cv_c_bigendian=unknown
10681 # See if we're dealing with a universal compiler.
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #ifndef __APPLE_CC__
10685 not a universal capable compiler
10690 if ac_fn_c_try_compile "$LINENO"; then :
10692 # Check for potential -arch flags. It is not universal unless
10693 # there are at least two -arch flags with different values.
10696 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10697 if test -n "$ac_prev"; then
10699 i?86 | x86_64 | ppc | ppc64)
10700 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10703 ac_cv_c_bigendian=universal
10709 elif test "x$ac_word" = "x-arch"; then
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 if test $ac_cv_c_bigendian = unknown; then
10716 # See if sys/param.h defines the BYTE_ORDER macro.
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 #include <sys/types.h>
10720 #include <sys/param.h>
10725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10726 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10728 bogus endian macros
10735 if ac_fn_c_try_compile "$LINENO"; then :
10736 # It does; now see whether it defined to BIG_ENDIAN or not.
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <sys/types.h>
10740 #include <sys/param.h>
10745 #if BYTE_ORDER != BIG_ENDIAN
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 ac_cv_c_bigendian=yes
10756 ac_cv_c_bigendian=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 if test $ac_cv_c_bigendian = unknown; then
10763 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <limits.h>
10771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10772 bogus endian macros
10779 if ac_fn_c_try_compile "$LINENO"; then :
10780 # It does; now see whether it defined to _BIG_ENDIAN or not.
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <limits.h>
10788 #ifndef _BIG_ENDIAN
10796 if ac_fn_c_try_compile "$LINENO"; then :
10797 ac_cv_c_bigendian=yes
10799 ac_cv_c_bigendian=no
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 if test $ac_cv_c_bigendian = unknown; then
10806 # Compile a test program.
10807 if test "$cross_compiling" = yes; then :
10808 # Try to guess by grepping values from an object file.
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 short int ascii_mm[] =
10812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10813 short int ascii_ii[] =
10814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10815 int use_ascii (int i) {
10816 return ascii_mm[i] + ascii_ii[i];
10818 short int ebcdic_ii[] =
10819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10820 short int ebcdic_mm[] =
10821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10822 int use_ebcdic (int i) {
10823 return ebcdic_mm[i] + ebcdic_ii[i];
10830 return use_ascii (foo) == use_ebcdic (foo);
10835 if ac_fn_c_try_compile "$LINENO"; then :
10836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10837 ac_cv_c_bigendian=yes
10839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10840 if test "$ac_cv_c_bigendian" = unknown; then
10841 ac_cv_c_bigendian=no
10843 # finding both strings is unlikely to happen, but who knows?
10844 ac_cv_c_bigendian=unknown
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852 $ac_includes_default
10857 /* Are we little or big endian? From Harbison&Steele. */
10861 char c[sizeof (long int)];
10864 return u.c[sizeof (long int) - 1] == 1;
10870 if ac_fn_c_try_run "$LINENO"; then :
10871 ac_cv_c_bigendian=no
10873 ac_cv_c_bigendian=yes
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10876 conftest.$ac_objext conftest.beam conftest.$ac_ext
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10882 $as_echo "$ac_cv_c_bigendian" >&6; }
10883 case $ac_cv_c_bigendian in #(
10885 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10891 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10895 as_fn_error $? "unknown endianness
10896 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10899 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10900 ASM_TYPES_HEADER=./asm_types.h
10902 echo "/* These defines are needed for the public ext2fs.h header file */" \
10904 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10905 uniq tmp_config.$$ >> public_config.h
10907 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10909 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10910 uniq tmp_config.$$ >> public_config.h
10912 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10914 rm -f tmp_config.$$
10915 PUBLIC_CONFIG_HEADER=./public_config.h
10917 for ac_header in inttypes.h
10919 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10920 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_INTTYPES_H 1
10929 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10930 if test "x$ac_cv_type_intptr_t" = xyes; then :
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_INTPTR_T 1
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10940 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10941 if ${e2fsprogs_cv_struct_st_flags+:} 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 = 0;
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 e2fsprogs_cv_struct_st_flags=yes
10958 e2fsprogs_cv_struct_st_flags=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" >&5
10964 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10965 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10967 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10968 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10969 $as_echo_n "(cached) " >&6
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #include <sys/stat.h>
10977 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10982 if ac_fn_c_try_compile "$LINENO"; then :
10983 e2fsprogs_cv_struct_st_flags_immut=yes
10985 e2fsprogs_cv_struct_st_flags_immut=no
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10991 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10992 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10994 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10998 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10999 #include <sys/socket.h>
11001 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_SA_LEN 1
11009 if test -n "$BLKID_CMT"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11011 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11012 if ${ac_cv_search_blkid_probe_all+:} false; then :
11013 $as_echo_n "(cached) " >&6
11015 ac_func_search_save_LIBS=$LIBS
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11025 char blkid_probe_all ();
11029 return blkid_probe_all ();
11034 for ac_lib in '' blkid; do
11035 if test -z "$ac_lib"; then
11036 ac_res="none required"
11039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_search_blkid_probe_all=$ac_res
11044 rm -f core conftest.err conftest.$ac_objext \
11046 if ${ac_cv_search_blkid_probe_all+:} false; then :
11050 if ${ac_cv_search_blkid_probe_all+:} false; then :
11053 ac_cv_search_blkid_probe_all=no
11055 rm conftest.$ac_ext
11056 LIBS=$ac_func_search_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11059 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11060 ac_res=$ac_cv_search_blkid_probe_all
11061 if test "$ac_res" != no; then :
11062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11067 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11071 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11072 cat >>confdefs.h <<_ACEOF
11073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11081 $as_echo_n "checking for socket in -lsocket... " >&6; }
11082 if ${ac_cv_lib_socket_socket+:} false; then :
11083 $as_echo_n "(cached) " >&6
11085 ac_check_lib_save_LIBS=$LIBS
11086 LIBS="-lsocket $LIBS"
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11105 if ac_fn_c_try_link "$LINENO"; then :
11106 ac_cv_lib_socket_socket=yes
11108 ac_cv_lib_socket_socket=no
11110 rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112 LIBS=$ac_check_lib_save_LIBS
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11115 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11116 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11117 SOCKET_LIB=-lsocket
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11122 $as_echo_n "checking for optreset... " >&6; }
11123 if ${ac_cv_have_optreset+:} false; then :
11124 $as_echo_n "(cached) " >&6
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128 #include <unistd.h>
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132 $EGREP "optreset" >/dev/null 2>&1; then :
11133 ac_cv_have_optreset=yes
11135 ac_cv_have_optreset=no
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11141 $as_echo "$ac_cv_have_optreset" >&6; }
11142 if test $ac_cv_have_optreset = yes; then
11144 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11149 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11150 if test "x$ac_cv_func_sem_init" = xyes; then :
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11154 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11155 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11156 $as_echo_n "(cached) " >&6
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-lpthread $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11173 return sem_init ();
11178 if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_pthread_sem_init=yes
11181 ac_cv_lib_pthread_sem_init=no
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11188 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11189 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11190 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11192 SEM_INIT_LIB=-lpthread
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11195 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11196 if ${ac_cv_lib_rt_sem_init+:} false; then :
11197 $as_echo_n "(cached) " >&6
11199 ac_check_lib_save_LIBS=$LIBS
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11214 return sem_init ();
11219 if ac_fn_c_try_link "$LINENO"; then :
11220 ac_cv_lib_rt_sem_init=yes
11222 ac_cv_lib_rt_sem_init=no
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11229 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11230 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11231 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11236 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11237 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11238 $as_echo_n "(cached) " >&6
11240 ac_check_lib_save_LIBS=$LIBS
11241 LIBS="-lposix4 $LIBS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 /* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11255 return sem_init ();
11260 if ac_fn_c_try_link "$LINENO"; then :
11261 ac_cv_lib_posix4_sem_init=yes
11263 ac_cv_lib_posix4_sem_init=no
11265 rm -f core conftest.err conftest.$ac_objext \
11266 conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11270 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11271 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11272 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11274 SEM_INIT_LIB=-lposix4
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11284 $as_echo_n "checking for unified diff option... " >&6; }
11285 if diff -u $0 $0 > /dev/null 2>&1 ; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11291 $as_echo "$UNI_DIFF_OPTS" >&6; }
11296 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11316 linux* | gnu* | k*bsd*-gnu)
11317 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11320 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11325 linux* | gnu* | k*bsd*-gnu)
11326 if test "$prefix" = NONE ; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11329 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11330 if test "$mandir" = '${prefix}/man' ; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11332 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11333 mandir=/usr/share/man
11338 if test "$root_prefix" = NONE ; then
11339 if test "$prefix" = NONE ; then
11340 root_prefix="$ac_default_prefix"
11342 root_prefix="$prefix"
11344 root_bindir=$bindir
11345 root_sbindir=$sbindir
11346 root_libdir=$libdir
11347 root_sysconfdir=$sysconfdir
11349 root_bindir='${root_prefix}/bin'
11350 root_sbindir='${root_prefix}/sbin'
11351 root_libdir='${root_prefix}/lib'
11352 root_sysconfdir='${root_prefix}/etc'
11354 if test "$bindir" != '${exec_prefix}/bin'; then
11355 root_bindir=$bindir
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11357 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11359 if test "$sbindir" != '${exec_prefix}/sbin'; then
11360 root_sbindir=$sbindir
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11362 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11364 if test "$libdir" != '${exec_prefix}/lib'; then
11365 root_libdir=$libdir
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11367 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11369 if test "$sysconfdir" != '${prefix}/etc'; then
11370 root_sysconfdir=$sysconfdir
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11372 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11380 # Check whether --with-multiarch was given.
11381 if test "${with_multiarch+set}" = set; then :
11382 withval=$with_multiarch; libdir=$libdir/$withval
11383 root_libdir=$root_libdir/$withval
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11387 $as_echo_n "checking whether we can link with -static... " >&6; }
11388 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_e2fsprogs_use_static=yes
11406 ac_cv_e2fsprogs_use_static=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LDFLAGS=$SAVE_LDFLAGS
11415 ac_cv_e2fsprogs_use_static=no
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11419 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11421 if test $ac_cv_e2fsprogs_use_static = yes; then
11422 LDFLAG_STATIC=-static
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11428 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11430 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11434 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11435 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11438 if test "$cross_compiling" = yes ; then
11441 DO_TEST_SUITE=check
11444 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11445 if test -n "$CPPFLAGS" ; then
11446 INCLUDES="$INCLUDES $CPPFLAGS"
11448 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11449 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11451 if test -n "$WITH_DIET_LIBC" ; then
11452 INCLUDES="$INCLUDES -D_REENTRANT"
11455 if test $cross_compiling = no; then
11456 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11457 BUILD_LDFLAGS="$LDFLAGS"
11464 test -d lib || mkdir lib
11465 test -d include || mkdir include
11466 test -d include/linux || mkdir include/linux
11467 test -d include/asm || mkdir include/asm
11468 for i in MCONFIG Makefile e2fsprogs.spec \
11469 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11470 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11471 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11472 lib/uuid/Makefile lib/uuid/uuid_types.h \
11473 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11474 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11475 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11476 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11477 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11478 resize/Makefile doc/Makefile intl/Makefile \
11479 intl/libgnuintl.h po/Makefile.in ; do
11480 if test -d `dirname ${srcdir}/$i` ; then
11481 outlist="$outlist $i"
11484 ac_config_files="$ac_config_files $outlist"
11486 cat >confcache <<\_ACEOF
11487 # This file is a shell script that caches the results of configure
11488 # tests run on this system so they can be shared between configure
11489 # scripts and configure runs, see configure's option --config-cache.
11490 # It is not useful on other systems. If it contains results you don't
11491 # want to keep, you may remove or edit it.
11493 # config.status only pays attention to the cache file if you give it
11494 # the --recheck option to rerun configure.
11496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11498 # following values.
11502 # The following way of writing the cache mishandles newlines in values,
11503 # but we know of no workaround that is simple, portable, and efficient.
11504 # So, we kill variables containing newlines.
11505 # Ultrix sh set writes to stderr and can't be redirected directly,
11506 # and sets the high bit in the cache file unless we assign to the vars.
11508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11509 eval ac_val=\$$ac_var
11513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11517 _ | IFS | as_nl) ;; #(
11518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11519 *) { eval $ac_var=; unset $ac_var;} ;;
11525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11526 *${as_nl}ac_space=\ *)
11527 # `set' does not quote correctly, so add quotes: double-quote
11528 # substitution turns \\\\ into \\, and sed turns \\ into \.
11531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11534 # `set' quotes correctly as required by POSIX, so do not add quotes.
11535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11548 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11549 if test -w "$cache_file"; then
11550 if test "x$cache_file" != "x/dev/null"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11552 $as_echo "$as_me: updating cache $cache_file" >&6;}
11553 if test ! -f "$cache_file" || test -h "$cache_file"; then
11554 cat confcache >"$cache_file"
11556 case $cache_file in #(
11558 mv -f confcache "$cache_file"$$ &&
11559 mv -f "$cache_file"$$ "$cache_file" ;; #(
11561 mv -f confcache "$cache_file" ;;
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11573 # Let make expand exec_prefix.
11574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11576 DEFS=-DHAVE_CONFIG_H
11581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11582 # 1. Remove the extension, and $U if already installed.
11583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11586 # will be set to the directory where LIBOBJS objects are built.
11587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11590 LIBOBJS=$ac_libobjs
11592 LTLIBOBJS=$ac_ltlibobjs
11597 : "${CONFIG_STATUS=./config.status}"
11599 ac_clean_files_save=$ac_clean_files
11600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11606 # Generated by $as_me.
11607 # Run this file to recreate the current configuration.
11608 # Compiler output produced by configure, useful for debugging
11609 # configure, is in config.log if it exists.
11612 ac_cs_recheck=false
11615 SHELL=\${CONFIG_SHELL-$SHELL}
11618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11619 ## -------------------- ##
11620 ## M4sh Initialization. ##
11621 ## -------------------- ##
11623 # Be more Bourne compatible
11624 DUALCASE=1; export DUALCASE # for MKS sh
11625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11629 # is contrary to our usage. Disable this feature.
11630 alias -g '${1+"$@"}'='"$@"'
11631 setopt NO_GLOB_SUBST
11633 case `(set -o) 2>/dev/null` in #(
11645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11649 # Prefer a ksh shell builtin over an external printf program on Solaris,
11650 # but without wasting forks for bash or zsh.
11651 if test -z "$BASH_VERSION$ZSH_VERSION" \
11652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11653 as_echo='print -r --'
11654 as_echo_n='print -rn --'
11655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11656 as_echo='printf %s\n'
11657 as_echo_n='printf %s'
11659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11661 as_echo_n='/usr/ucb/echo -n'
11663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11664 as_echo_n_body='eval
11668 expr "X$arg" : "X\\(.*\\)$as_nl";
11669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11673 export as_echo_n_body
11674 as_echo_n='sh -c $as_echo_n_body as_echo'
11676 export as_echo_body
11677 as_echo='sh -c $as_echo_body as_echo'
11680 # The user is always right.
11681 if test "${PATH_SEPARATOR+set}" != set; then
11683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11691 # We need space, tab and new line, in precisely that order. Quoting is
11692 # there to prevent editors from complaining about space-tab.
11693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11694 # splitting by setting IFS to empty value.)
11697 # Find who we are. Look in the path if we contain no directory separator.
11700 *[\\/]* ) as_myself=$0 ;;
11701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11705 test -z "$as_dir" && as_dir=.
11706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11712 # We did not find ourselves, most probably we were run as `sh COMMAND'
11713 # in which case we are not to be found in the path.
11714 if test "x$as_myself" = x; then
11717 if test ! -f "$as_myself"; then
11718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11722 # Unset variables that we do not need and which cause bugs (e.g. in
11723 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11724 # suppresses any "Segmentation fault" message there. '((' could
11725 # trigger a bug in pdksh 5.2.14.
11726 for as_var in BASH_ENV ENV MAIL MAILPATH
11727 do eval test x\${$as_var+set} = xset \
11728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11744 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11745 # ----------------------------------------
11746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11748 # script with STATUS, using 1 if that was 0.
11751 as_status=$1; test $as_status -eq 0 && as_status=1
11753 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11756 $as_echo "$as_me: error: $2" >&2
11757 as_fn_exit $as_status
11761 # as_fn_set_status STATUS
11762 # -----------------------
11763 # Set $? to STATUS, without forking.
11764 as_fn_set_status ()
11767 } # as_fn_set_status
11769 # as_fn_exit STATUS
11770 # -----------------
11771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11775 as_fn_set_status $1
11781 # Portably unset VAR.
11784 { eval $1=; unset $1;}
11786 as_unset=as_fn_unset
11787 # as_fn_append VAR VALUE
11788 # ----------------------
11789 # Append the text in VALUE to the end of the definition contained in VAR. Take
11790 # advantage of any shell optimizations that allow amortized linear growth over
11791 # repeated appends, instead of the typical quadratic growth present in naive
11793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11794 eval 'as_fn_append ()
11805 # as_fn_arith ARG...
11806 # ------------------
11807 # Perform arithmetic evaluation on the ARGs, and store the result in the
11808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11809 # must be portable across $(()) and expr.
11810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11811 eval 'as_fn_arith ()
11818 as_val=`expr "$@" || test $? -eq 1`
11823 if expr a : '\(a\)' >/dev/null 2>&1 &&
11824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11831 as_basename=basename
11836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11842 as_me=`$as_basename -- "$0" ||
11843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11844 X"$0" : 'X\(//\)$' \| \
11845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11847 sed '/^.*\/\([^/][^/]*\)\/*$/{
11861 # Avoid depending upon Character Ranges.
11862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11865 as_cr_digits='0123456789'
11866 as_cr_alnum=$as_cr_Letters$as_cr_digits
11868 ECHO_C= ECHO_N= ECHO_T=
11869 case `echo -n x` in #(((((
11871 case `echo 'xy\c'` in
11872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11881 rm -f conf$$ conf$$.exe conf$$.file
11882 if test -d conf$$.dir; then
11883 rm -f conf$$.dir/conf$$.file
11886 mkdir conf$$.dir 2>/dev/null
11888 if (echo >conf$$.file) 2>/dev/null; then
11889 if ln -s conf$$.file conf$$ 2>/dev/null; then
11891 # ... but there are two gotchas:
11892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11894 # In both cases, we have to default to `cp -pR'.
11895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11897 elif ln conf$$.file conf$$ 2>/dev/null; then
11905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11906 rmdir conf$$.dir 2>/dev/null
11911 # Create "$as_dir" as a directory, including parents if necessary.
11916 -*) as_dir=./$as_dir;;
11918 test -d "$as_dir" || eval $as_mkdir_p || {
11922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11923 *) as_qdir=$as_dir;;
11925 as_dirs="'$as_qdir' $as_dirs"
11926 as_dir=`$as_dirname -- "$as_dir" ||
11927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928 X"$as_dir" : 'X\(//\)[^/]' \| \
11929 X"$as_dir" : 'X\(//\)$' \| \
11930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11931 $as_echo X"$as_dir" |
11932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11936 /^X\(\/\/\)[^/].*/{
11949 test -d "$as_dir" && break
11951 test -z "$as_dirs" || eval "mkdir $as_dirs"
11952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11956 if mkdir -p . 2>/dev/null; then
11957 as_mkdir_p='mkdir -p "$as_dir"'
11959 test -d ./-p && rmdir ./-p
11964 # as_fn_executable_p FILE
11965 # -----------------------
11966 # Test if FILE is an executable regular file.
11967 as_fn_executable_p ()
11969 test -f "$1" && test -x "$1"
11970 } # as_fn_executable_p
11971 as_test_x='test -x'
11972 as_executable_p=as_fn_executable_p
11974 # Sed expression to map a string onto a valid CPP name.
11975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11977 # Sed expression to map a string onto a valid variable name.
11978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11982 ## ----------------------------------- ##
11983 ## Main body of $CONFIG_STATUS script. ##
11984 ## ----------------------------------- ##
11986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11989 # Save the log message, to keep $0 and so on meaningful, and to
11990 # report actual input values of CONFIG_FILES etc. instead of their
11991 # values after options handling.
11993 This file was extended by $as_me, which was
11994 generated by GNU Autoconf 2.69. Invocation command line was
11996 CONFIG_FILES = $CONFIG_FILES
11997 CONFIG_HEADERS = $CONFIG_HEADERS
11998 CONFIG_LINKS = $CONFIG_LINKS
11999 CONFIG_COMMANDS = $CONFIG_COMMANDS
12002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12007 case $ac_config_files in *"
12008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12011 case $ac_config_headers in *"
12012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12017 # Files that config.status was made for.
12018 config_files="$ac_config_files"
12019 config_headers="$ac_config_headers"
12020 config_commands="$ac_config_commands"
12024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12026 \`$as_me' instantiates files and other configuration actions
12027 from templates according to the current configuration. Unless the files
12028 and actions are specified as TAGs, all are instantiated by default.
12030 Usage: $0 [OPTION]... [TAG]...
12032 -h, --help print this help, then exit
12033 -V, --version print version number and configuration settings, then exit
12034 --config print configuration, then exit
12035 -q, --quiet, --silent
12036 do not print progress messages
12037 -d, --debug don't remove temporary files
12038 --recheck update $as_me by reconfiguring in the same conditions
12039 --file=FILE[:TEMPLATE]
12040 instantiate the configuration file FILE
12041 --header=FILE[:TEMPLATE]
12042 instantiate the configuration header FILE
12044 Configuration files:
12047 Configuration headers:
12050 Configuration commands:
12053 Report bugs to the package provider."
12056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12057 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12060 configured by $0, generated by GNU Autoconf 2.69,
12061 with options \\"\$ac_cs_config\\"
12063 Copyright (C) 2012 Free Software Foundation, Inc.
12064 This config.status script is free software; the Free Software Foundation
12065 gives unlimited permission to copy, distribute and modify it."
12071 test -n "\$AWK" || AWK=awk
12074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12075 # The default lists apply if the user does not specify any file.
12081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12098 # Handling of the options.
12099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12102 $as_echo "$ac_cs_version"; exit ;;
12103 --config | --confi | --conf | --con | --co | --c )
12104 $as_echo "$ac_cs_config"; exit ;;
12105 --debug | --debu | --deb | --de | --d | -d )
12107 --file | --fil | --fi | --f )
12110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12111 '') as_fn_error $? "missing file argument" ;;
12113 as_fn_append CONFIG_FILES " '$ac_optarg'"
12114 ac_need_defaults=false;;
12115 --header | --heade | --head | --hea )
12118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12120 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12121 ac_need_defaults=false;;
12123 # Conflict between --help and --header
12124 as_fn_error $? "ambiguous option: \`$1'
12125 Try \`$0 --help' for more information.";;
12126 --help | --hel | -h )
12127 $as_echo "$ac_cs_usage"; exit ;;
12128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12132 # This is an error.
12133 -*) as_fn_error $? "unrecognized option: \`$1'
12134 Try \`$0 --help' for more information." ;;
12136 *) as_fn_append ac_config_targets " $1"
12137 ac_need_defaults=false ;;
12143 ac_configure_extra_args=
12145 if $ac_cs_silent; then
12147 ac_configure_extra_args="$ac_configure_extra_args --silent"
12151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12152 if \$ac_cs_recheck; then
12153 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12156 CONFIG_SHELL='$SHELL'
12157 export CONFIG_SHELL
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12167 ## Running $as_me. ##
12173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12177 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12178 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12180 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12181 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12182 LINGUAS="${LINGUAS-%UNSET%}"
12187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189 # Handling of arguments.
12190 for ac_config_target in $ac_config_targets
12192 case $ac_config_target in
12193 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12194 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12195 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12202 # If the user did not use the arguments to specify the items to instantiate,
12203 # then the envvar interface is used. Set only those that are not.
12204 # We use the long form for the default assignment because of an extremely
12205 # bizarre bug on SunOS 4.1.3.
12206 if $ac_need_defaults; then
12207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12212 # Have a temporary directory for convenience. Make it in the build tree
12213 # simply because there is no reason against having it here, and in addition,
12214 # creating and moving files from /tmp can sometimes cause problems.
12215 # Hook for its removal unless debugging.
12216 # Note that there is a small window in which the directory will not be cleaned:
12217 # after its creation but before its name has been assigned to `$tmp'.
12221 trap 'exit_status=$?
12222 : "${ac_tmp:=$tmp}"
12223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12225 trap 'as_fn_exit 1' 1 2 13 15
12227 # Create a (secure) tmp directory for tmp files.
12230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12234 tmp=./conf$$-$RANDOM
12235 (umask 077 && mkdir "$tmp")
12236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12239 # Set up the scripts for CONFIG_FILES section.
12240 # No need to generate them if there are no CONFIG_FILES.
12241 # This happens for instance with `./config.status config.h'.
12242 if test -n "$CONFIG_FILES"; then
12244 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12245 ac_cs_awk_getline=:
12246 ac_cs_awk_pipe_init=
12247 ac_cs_awk_read_file='
12248 while ((getline aline < (F[key])) > 0)
12251 ac_cs_awk_pipe_fini=
12253 ac_cs_awk_getline=false
12254 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12255 ac_cs_awk_read_file='
12257 print "cat " F[key] " &&"
12258 '$ac_cs_awk_pipe_init
12259 # The final `:' finishes the AND list.
12260 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12262 ac_cr=`echo X | tr X '\015'`
12263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12264 # But we know of no other shell where ac_cr would be empty at this
12265 # point, so we can use a bashism as a fallback.
12266 if test "x$ac_cr" = x; then
12267 eval ac_cr=\$\'\\r\'
12269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12273 ac_cs_awk_cr=$ac_cr
12276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12279 # Create commands to substitute file output variables.
12281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12282 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12286 } >conf$$files.sh &&
12287 . ./conf$$files.sh ||
12288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12289 rm -f conf$$files.sh
12292 echo "cat >conf$$subs.awk <<_ACEOF" &&
12293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12295 } >conf$$subs.sh ||
12296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12299 for ac_last_try in false false false false false :; do
12300 . ./conf$$subs.sh ||
12301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12304 if test $ac_delim_n = $ac_delim_num; then
12306 elif $ac_last_try; then
12307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12312 rm -f conf$$subs.sh
12314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12319 s/^/S["/; s/!.*/"]=/
12329 s/\(.\{148\}\)..*/\1/
12331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12343 s/\(.\{148\}\)..*/\1/
12345 s/["\\]/\\&/g; s/^/"/; s/$/"/
12349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12354 ' <conf$$subs.awk | sed '
12359 ' >>$CONFIG_STATUS || ac_write_fail=1
12360 rm -f conf$$subs.awk
12361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12364 for (key in S) S_is_set[key] = 1
12366 \$ac_cs_awk_pipe_init
12370 nfields = split(line, field, "@")
12372 len = length(field[1])
12373 for (i = 2; i < nfields; i++) {
12375 keylen = length(key)
12376 if (S_is_set[key]) {
12378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12379 len += length(value) + length(field[++i])
12384 if (nfields == 3 && !substed) {
12386 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12387 \$ac_cs_awk_read_file
12393 \$ac_cs_awk_pipe_fini
12396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12397 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12401 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12405 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12406 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12407 # trailing colons and then remove the whole line if VPATH becomes empty
12408 # (actually we leave an empty line to preserve line numbers).
12409 if test "x$srcdir" = x.; then
12410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 fi # test -n "$CONFIG_FILES"
12431 # Set up the scripts for CONFIG_HEADERS section.
12432 # No need to generate them if there are no CONFIG_HEADERS.
12433 # This happens for instance with `./config.status Makefile'.
12434 if test -n "$CONFIG_HEADERS"; then
12435 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12439 # Transform confdefs.h into an awk script `defines.awk', embedded as
12440 # here-document in config.status, that substitutes the proper values into
12441 # config.h.in to produce config.h.
12443 # Create a delimiter string that does not exist in confdefs.h, to ease
12444 # handling of long lines.
12446 for ac_last_try in false false :; do
12447 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12448 if test -z "$ac_tt"; then
12450 elif $ac_last_try; then
12451 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12457 # For the awk script, D is an array of macro values keyed by name,
12458 # likewise P contains macro parameters if any. Preserve backslash
12459 # newline sequences.
12461 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12463 s/.\{148\}/&'"$ac_delim"'/g
12466 s/^[ ]*#[ ]*define[ ][ ]*/ /
12473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12475 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12480 D["\1"]=" \3\\\\\\n"\\/p
12482 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12487 s/.\{148\}/&'"$ac_delim"'/g
12492 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12495 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12497 ' <confdefs.h | sed '
12498 s/'"$ac_delim"'/"\\\
12499 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12502 for (key in D) D_is_set[key] = 1
12505 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12507 split(line, arg, " ")
12508 if (arg[1] == "#") {
12512 defundef = substr(arg[1], 2)
12515 split(mac1, mac2, "(") #)
12517 prefix = substr(line, 1, index(line, defundef) - 1)
12518 if (D_is_set[macro]) {
12519 # Preserve the white space surrounding the "#".
12520 print prefix "define", macro P[macro] D[macro]
12523 # Replace #undef with comments. This is necessary, for example,
12524 # in the case of _POSIX_SOURCE, which is predefined and required
12525 # on some systems where configure will not decide to define it.
12526 if (defundef == "undef") {
12527 print "/*", prefix defundef, macro, "*/"
12535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12536 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12537 fi # test -n "$CONFIG_HEADERS"
12540 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12545 :[FHLC]) ac_mode=$ac_tag; continue;;
12547 case $ac_mode$ac_tag in
12549 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12550 :[FH]-) ac_tag=-:-;;
12551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12568 -) ac_f="$ac_tmp/stdin";;
12569 *) # Look for the file first in the build tree, then in the source tree
12570 # (if the path is not absolute). The absolute path cannot be DOS-style,
12571 # because $ac_f cannot contain `:'.
12575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12577 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12580 as_fn_append ac_file_inputs " '$ac_f'"
12583 # Let's still pretend it is `configure' which instantiates (i.e., don't
12584 # use $as_me), people would be surprised to read:
12585 # /* config.h. Generated by config.status. */
12586 configure_input='Generated from '`
12587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12589 if test x"$ac_file" != x-; then
12590 configure_input="$ac_file. $configure_input"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12592 $as_echo "$as_me: creating $ac_file" >&6;}
12594 # Neutralize special characters interpreted by sed in replacement strings.
12595 case $configure_input in #(
12596 *\&* | *\|* | *\\* )
12597 ac_sed_conf_input=`$as_echo "$configure_input" |
12598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12599 *) ac_sed_conf_input=$configure_input;;
12603 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12609 ac_dir=`$as_dirname -- "$ac_file" ||
12610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12611 X"$ac_file" : 'X\(//\)[^/]' \| \
12612 X"$ac_file" : 'X\(//\)$' \| \
12613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12614 $as_echo X"$ac_file" |
12615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12619 /^X\(\/\/\)[^/].*/{
12632 as_dir="$ac_dir"; as_fn_mkdir_p
12636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12639 # A ".." for each directory in $ac_dir_suffix.
12640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12641 case $ac_top_builddir_sub in
12642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12646 ac_abs_top_builddir=$ac_pwd
12647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12648 # for backward compatibility:
12649 ac_top_builddir=$ac_top_build_prefix
12652 .) # We are building in place.
12654 ac_top_srcdir=$ac_top_builddir_sub
12655 ac_abs_top_srcdir=$ac_pwd ;;
12656 [\\/]* | ?:[\\/]* ) # Absolute name.
12657 ac_srcdir=$srcdir$ac_dir_suffix;
12658 ac_top_srcdir=$srcdir
12659 ac_abs_top_srcdir=$srcdir ;;
12660 *) # Relative name.
12661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12662 ac_top_srcdir=$ac_top_build_prefix$srcdir
12663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12681 # If the template does not know about datarootdir, expand it.
12682 # FIXME: This hack should be removed a few years after 2.60.
12683 ac_datarootdir_hack=; ac_datarootdir_seen=
12694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12695 *datarootdir*) ac_datarootdir_seen=yes;;
12696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 ac_datarootdir_hack='
12702 s&@datadir@&$datadir&g
12703 s&@docdir@&$docdir&g
12704 s&@infodir@&$infodir&g
12705 s&@localedir@&$localedir&g
12706 s&@mandir@&$mandir&g
12707 s&\\\${datarootdir}&$datarootdir&g' ;;
12711 # Neutralize VPATH when `$srcdir' = `.'.
12712 # Shell code in configure.ac might set extrasub.
12713 # FIXME: do we really want to maintain this feature?
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 ac_sed_extra="$ac_vpsub
12718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12721 s|@configure_input@|$ac_sed_conf_input|;t t
12722 s&@top_builddir@&$ac_top_builddir_sub&;t t
12723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12724 s&@srcdir@&$ac_srcdir&;t t
12725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12726 s&@top_srcdir@&$ac_top_srcdir&;t t
12727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12728 s&@builddir@&$ac_builddir&;t t
12729 s&@abs_builddir@&$ac_abs_builddir&;t t
12730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12731 s&@INSTALL@&$ac_INSTALL&;t t
12732 $ac_datarootdir_hack
12734 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12735 if $ac_cs_awk_getline; then
12736 $AWK -f "$ac_tmp/subs.awk"
12738 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12747 which seems to be undefined. Please make sure it is defined" >&5
12748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12749 which seems to be undefined. Please make sure it is defined" >&2;}
12751 rm -f "$ac_tmp/stdin"
12753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12762 if test x"$ac_file" != x-; then
12764 $as_echo "/* $configure_input */" \
12765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12766 } >"$ac_tmp/config.h" \
12767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12773 mv "$ac_tmp/config.h" "$ac_file" \
12774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12777 $as_echo "/* $configure_input */" \
12778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12779 || as_fn_error $? "could not create -" "$LINENO" 5
12783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12784 $as_echo "$as_me: executing $ac_file commands" >&6;}
12789 case $ac_file$ac_mode in
12791 for ac_file in $CONFIG_FILES; do
12792 # Support "outfile[:infile[:infile...]]"
12794 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12796 # PO directories have a Makefile.in generated from Makefile.in.in.
12797 case "$ac_file" in */Makefile.in)
12798 # Adjust a relative srcdir.
12799 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12800 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12801 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12802 # In autoconf-2.13 it is called $ac_given_srcdir.
12803 # In autoconf-2.50 it is called $srcdir.
12804 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12805 case "$ac_given_srcdir" in
12806 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12807 /*) top_srcdir="$ac_given_srcdir" ;;
12808 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12810 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12811 rm -f "$ac_dir/POTFILES"
12812 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12813 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12814 POMAKEFILEDEPS="POTFILES.in"
12815 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12816 # on $ac_dir but don't depend on user-specified configuration
12818 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12819 # The LINGUAS file contains the set of available languages.
12820 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12821 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12823 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12824 # Hide the ALL_LINGUAS assigment from automake.
12825 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12826 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12828 # The set of available languages was given in configure.in.
12829 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12832 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12833 # Compute UPDATEPOFILES
12834 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12835 # Compute DUMMYPOFILES
12836 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12838 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12839 case "$ac_given_srcdir" in
12841 *) srcdirpre='$(srcdir)/' ;;
12847 for lang in $ALL_LINGUAS; do
12848 POFILES="$POFILES $srcdirpre$lang.po"
12849 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12850 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12851 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12853 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12854 # environment variable.
12856 if test -n "$ALL_LINGUAS"; then
12857 for presentlang in $ALL_LINGUAS; do
12859 if test "%UNSET%" != "$LINGUAS"; then
12860 desiredlanguages="$LINGUAS"
12862 desiredlanguages="$ALL_LINGUAS"
12864 for desiredlang in $desiredlanguages; do
12865 # Use the presentlang catalog if desiredlang is
12866 # a. equal to presentlang, or
12867 # b. a variant of presentlang (because in this case,
12868 # presentlang can be used as a fallback for messages
12869 # which are not translated in the desiredlang catalog).
12870 case "$desiredlang" in
12871 "$presentlang"*) useit=yes;;
12874 if test $useit = yes; then
12875 INST_LINGUAS="$INST_LINGUAS $presentlang"
12880 if test -n "$INST_LINGUAS"; then
12881 for lang in $INST_LINGUAS; do
12882 CATALOGS="$CATALOGS $lang.gmo"
12885 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12886 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"
12887 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12888 if test -f "$f"; then
12890 *.orig | *.bak | *~) ;;
12891 *) cat "$f" >> "$ac_dir/Makefile" ;;
12906 ac_clean_files=$ac_clean_files_save
12908 test $ac_write_fail = 0 ||
12909 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12912 # configure is writing to config.log, and then calls config.status.
12913 # config.status does its own redirection, appending to config.log.
12914 # Unfortunately, on DOS this fails, as config.log is still kept open
12915 # by configure, so config.status won't be able to write to it; its
12916 # output is simply discarded. So we exec the FD to /dev/null,
12917 # effectively closing config.log, so it can be properly (re)opened and
12918 # appended to by config.status. When coming back to configure, we
12919 # need to make the FD available again.
12920 if test "$no_create" != yes; then
12922 ac_config_status_args=
12923 test "$silent" = yes &&
12924 ac_config_status_args="$ac_config_status_args --quiet"
12926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12929 # would make configure fail if this is the last instruction.
12930 $ac_cs_success || as_fn_exit 1
12932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12937 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi