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
668 INTL_LIBTOOL_SUFFIX_PREFIX
675 BUILD_INCLUDED_LIBINTL
800 program_transform_name
811 ac_subst_files='MCONFIG
818 PUBLIC_CONFIG_HEADER'
820 enable_option_checking
826 enable_maintainer_mode
827 enable_symlink_install
828 enable_relative_symlinks
829 enable_symlink_relative_symlinks
831 enable_verbose_makecmds
849 enable_e2initrd_helper
854 enable_bmap_stats_ops
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-debugfs disable support of debugfs program
1503 --disable-imager disable support of e2image program
1504 --disable-resizer disable support of e2resize program
1505 --disable-defrag disable support of e4defrag program
1506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
1508 --disable-tls disable use of thread local support
1509 --disable-uuidd disable building the uuid daemon
1510 --disable-mmp disable support mmp, Multi Mount Protection
1511 --disable-bmap-stats disable collection of bitmap stats.
1512 --enable-bmap-stats-ops enable collection of additional bitmap stats
1513 --disable-nls do not use Native Language Support
1514 --disable-rpath do not hardcode runtime library paths
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-diet-libc use diet libc
1520 --with-cc no longer supported, use CC= instead
1521 --with-ccopts no longer supported, use CFLAGS= instead
1522 --with-ldopts no longer supported, use LDFLAGS= instead
1523 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-included-gettext use the GNU gettext library included here
1528 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1529 --without-libintl-prefix don't search for libintl in includedir and libdir
1530 --with-multiarch=ARCH specify the multiarch triplet
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1541 PKG_CONFIG path to pkg-config utility
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1546 Report bugs to the package provider.
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1576 .) # We are building in place.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1610 generated by GNU Autoconf 2.69
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=$ac_status
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_type
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1894 # include <limits.h>
1896 # include <assert.h>
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1923 if ac_fn_c_try_link "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1943 ac_fn_c_check_header_mongrel ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if eval \${$3+:} false; then :
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1967 ac_header_compiler=no
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1983 ac_header_preproc=no
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1989 # So? What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2015 eval "$3=\$ac_header_compiler"
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_header_mongrel
2025 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2026 # --------------------------------------------
2027 # Tries to find the compile-time value of EXPR in a program that includes
2028 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2030 ac_fn_c_compute_int ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if test "$cross_compiling" = yes; then
2034 # Depending upon the size, compute the lo and hi bounds.
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2041 static int test_array [1 - 2 * !(($2) >= 0)];
2043 return test_array [0];
2049 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 return test_array [0];
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid; break
2069 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070 if test $ac_lo -le $ac_mid; then
2074 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) < 0)];
2087 return test_array [0];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2104 return test_array [0];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_lo=$ac_mid; break
2113 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2114 if test $ac_mid -le $ac_hi; then
2118 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 # Binary search between lo and hi bounds.
2129 while test "x$ac_lo" != "x$ac_hi"; do
2130 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 return test_array [0];
2145 if ac_fn_c_try_compile "$LINENO"; then :
2148 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2160 static long int longval () { return $2; }
2161 static unsigned long int ulongval () { return $2; }
2168 FILE *f = fopen ("conftest.val", "w");
2173 long int i = longval ();
2176 fprintf (f, "%ld", i);
2180 unsigned long int i = ulongval ();
2183 fprintf (f, "%lu", i);
2185 /* Do not output a trailing newline, as this causes \r\n confusion
2186 on some platforms. */
2187 return ferror (f) || fclose (f) != 0;
2193 if ac_fn_c_try_run "$LINENO"; then :
2194 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_c_compute_int
2208 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209 # ----------------------------------------------------
2210 # Tries to find if the field MEMBER exists in type AGGR, after including
2211 # INCLUDES, setting cache variable VAR accordingly.
2212 ac_fn_c_check_member ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216 $as_echo_n "checking for $2.$3... " >&6; }
2217 if eval \${$4+:} false; then :
2218 $as_echo_n "(cached) " >&6
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2233 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2243 if (sizeof ac_aggr.$3)
2249 if ac_fn_c_try_compile "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 } # ac_fn_c_check_member
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266 # ---------------------------------------------
2267 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2269 ac_fn_c_check_decl ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 as_decl_name=`echo $2|sed 's/ *(.*//'`
2273 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 #ifndef $as_decl_name
2287 (void) $as_decl_use;
2289 (void) $as_decl_name;
2297 if ac_fn_c_try_compile "$LINENO"; then :
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_decl
2310 cat >config.log <<_ACEOF
2311 This file contains any messages produced by compilers while
2312 running configure, to aid debugging if configure makes a mistake.
2314 It was created by $as_me, which was
2315 generated by GNU Autoconf 2.69. Invocation command line was
2327 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2337 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2338 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2340 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2341 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2342 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 $as_echo "PATH: $as_dir"
2367 # Keep a trace of the command line.
2368 # Strip out --no-create and --no-recursion so they do not pile up.
2369 # Strip out --silent because we don't want to record it for future runs.
2370 # Also quote any args containing shell meta-characters.
2371 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_must_keep_next=false
2381 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383 | -silent | --silent | --silen | --sile | --sil)
2386 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 as_fn_append ac_configure_args1 " '$ac_arg'"
2392 if test $ac_must_keep_next = true; then
2393 ac_must_keep_next=false # Got value, back to normal.
2396 *=* | --config-cache | -C | -disable-* | --disable-* \
2397 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399 | -with-* | --with-* | -without-* | --without-* | --x)
2400 case "$ac_configure_args0 " in
2401 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404 -* ) ac_must_keep_next=true ;;
2407 as_fn_append ac_configure_args " '$ac_arg'"
2412 { ac_configure_args0=; unset ac_configure_args0;}
2413 { ac_configure_args1=; unset ac_configure_args1;}
2415 # When interrupted or exit'd, cleanup temporary files, and complete
2416 # config.log. We remove comments because anyway the quotes in there
2417 # would cause problems or look ugly.
2418 # WARNING: Use '\'' to represent an apostrophe within the trap.
2419 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420 trap 'exit_status=$?
2421 # Save into config.log some information that might help in debugging.
2425 $as_echo "## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##"
2429 # The following way of writing the cache mishandles newlines in values,
2431 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432 eval ac_val=\$$ac_var
2436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2440 _ | IFS | as_nl) ;; #(
2441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442 *) { eval $ac_var=; unset $ac_var;} ;;
2447 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
2450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 $as_echo "## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##"
2465 for ac_var in $ac_subst_vars
2467 eval ac_val=\$$ac_var
2469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 $as_echo "$ac_var='\''$ac_val'\''"
2475 if test -n "$ac_subst_files"; then
2476 $as_echo "## ------------------- ##
2477 ## File substitutions. ##
2478 ## ------------------- ##"
2480 for ac_var in $ac_subst_files
2482 eval ac_val=\$$ac_var
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 $as_echo "$ac_var='\''$ac_val'\''"
2491 if test -s confdefs.h; then
2492 $as_echo "## ----------- ##
2499 test "$ac_signal" != 0 &&
2500 $as_echo "$as_me: caught signal $ac_signal"
2501 $as_echo "$as_me: exit $exit_status"
2503 rm -f core *.core core.conftest.* &&
2504 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2507 for ac_signal in 1 2 13 15; do
2508 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2515 $as_echo "/* confdefs.h */" > confdefs.h
2517 # Predefined preprocessor variables.
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2548 if test -n "$CONFIG_SITE"; then
2549 # We do not want a PATH search for config.site.
2550 case $CONFIG_SITE in #((
2551 -*) ac_site_file1=./$CONFIG_SITE;;
2552 */*) ac_site_file1=$CONFIG_SITE;;
2553 *) ac_site_file1=./$CONFIG_SITE;;
2555 elif test "x$prefix" != xNONE; then
2556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
2559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 test "x$ac_site_file" = xNONE && continue
2565 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568 sed 's/^/| /' "$ac_site_file" >&5
2570 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error $? "failed to load site script $ac_site_file
2573 See \`config.log' for more details" "$LINENO" 5; }
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special files
2579 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2580 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 as_fn_append ac_header_list " stdlib.h"
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/param.h"
2597 # Check that the precious variables saved in the cache have kept the same
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
2605 case $ac_old_set,$ac_new_set in
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
2617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2630 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2638 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 *) ac_arg=$ac_var=$ac_new_val ;;
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 if $ac_cache_corrupted; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 for ac_dir in config "$srcdir"/config; do
2668 if test -f "$ac_dir/install-sh"; then
2670 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 elif test -f "$ac_dir/install.sh"; then
2674 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 elif test -f "$ac_dir/shtool"; then
2678 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 if test -z "$ac_aux_dir"; then
2683 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2695 ac_config_headers="$ac_config_headers lib/config.h"
2701 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2702 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2703 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2705 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2706 MONTH=`echo $DATE | awk -F- '{print $2}'`
2707 YEAR=`echo $DATE | awk -F- '{print $3}'`
2709 if expr $YEAR ">" 1900 > /dev/null ; then
2710 E2FSPROGS_YEAR=$YEAR
2711 elif expr $YEAR ">" 90 >/dev/null ; then
2712 E2FSPROGS_YEAR=19$YEAR
2714 E2FSPROGS_YEAR=20$YEAR
2718 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2719 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2720 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2721 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2722 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2723 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2724 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2725 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2726 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2727 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2728 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2729 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2731 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2734 base_ver=`echo $E2FSPROGS_VERSION | \
2735 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2737 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2739 case $E2FSPROGS_VERSION in
2741 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2744 E2FSPROGS_PKGVER="$base_ver"
2748 unset DATE MONTH YEAR base_ver pre_vers date_spec
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2750 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2752 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2758 # Make sure we can run config.sub.
2759 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2760 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2763 $as_echo_n "checking build system type... " >&6; }
2764 if ${ac_cv_build+:} false; then :
2765 $as_echo_n "(cached) " >&6
2767 ac_build_alias=$build_alias
2768 test "x$ac_build_alias" = x &&
2769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2770 test "x$ac_build_alias" = x &&
2771 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2777 $as_echo "$ac_cv_build" >&6; }
2778 case $ac_cv_build in
2780 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2783 ac_save_IFS=$IFS; IFS='-'
2789 # Remember, the first character of IFS is used to create $*,
2790 # except with old shells:
2793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2797 $as_echo_n "checking host system type... " >&6; }
2798 if ${ac_cv_host+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test "x$host_alias" = x; then
2802 ac_cv_host=$ac_cv_build
2804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 $as_echo "$ac_cv_host" >&6; }
2813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2816 ac_save_IFS=$IFS; IFS='-'
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2874 if test -z "$ac_cv_prog_CC"; then
2876 # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$ac_ct_CC"; then
2884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_CC="gcc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2912 if test "x$ac_ct_CC" = x; then
2915 case $cross_compiling:$ac_tool_warned in
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2927 if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="${ac_tool_prefix}cc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2968 if test -z "$CC"; then
2969 # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988 ac_prog_rejected=yes
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test $ac_prog_rejected = yes; then
3000 # We found a bogon in the path, so make sure we never use it.
3001 set dummy $ac_cv_prog_CC
3003 if test $# != 0; then
3004 # We chose a different compiler from the bogus one.
3005 # However, it has the same basename, so the bogon will be chosen
3006 # first if we set CC to just the basename; use the full file name.
3008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 for ac_prog in cl.exe
3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3065 test -n "$CC" && break
3068 if test -z "$CC"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_CC="$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3109 test -n "$ac_ct_CC" && break
3112 if test "x$ac_ct_CC" = x; then
3115 case $cross_compiling:$ac_tool_warned in
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3128 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "no acceptable C compiler found in \$PATH
3131 See \`config.log' for more details" "$LINENO" 5; }
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3137 for ac_option in --version -v -V -qversion; do
3138 { { ac_try="$ac_compiler $ac_option >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 if test -s conftest.err; then
3149 ... rest of stderr output deleted ...
3150 10q' conftest.err >conftest.er1
3151 cat conftest.er1 >&5
3153 rm -f conftest.er1 conftest.err
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3175 $as_echo_n "checking whether the C compiler works... " >&6; }
3176 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # The possible output files:
3179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182 for ac_file in $ac_files
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 if { { ac_try="$ac_link_default"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link_default") 2>&5
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3207 for ac_file in $ac_files ''
3209 test -f "$ac_file" || continue
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 # We found the default executable, but exeext='' is most
3218 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # We set ac_cv_exeext here because the later test for it is not
3223 # safe: cross compilers may not add the suffix if given an `-o'
3224 # argument, so we may need to know it at that point already.
3225 # Even if this section looks crufty: it has the advantage of
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237 if test -z "$ac_file"; then :
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error 77 "C compiler cannot create executables
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3252 $as_echo_n "checking for C compiler default output file name... " >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3254 $as_echo "$ac_file" >&6; }
3255 ac_exeext=$ac_cv_exeext
3257 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3260 $as_echo_n "checking for suffix of executables... " >&6; }
3261 if { { ac_try="$ac_link"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link") 2>&5
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3274 # work properly (i.e., refer to `conftest.exe'), while it won't with
3276 for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289 See \`config.log' for more details" "$LINENO" 5; }
3291 rm -f conftest conftest$ac_cv_exeext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3293 $as_echo "$ac_cv_exeext" >&6; }
3295 rm -f conftest.$ac_ext
3296 EXEEXT=$ac_cv_exeext
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3304 FILE *f = fopen ("conftest.out", "w");
3305 return ferror (f) || fclose (f) != 0;
3311 ac_clean_files="$ac_clean_files conftest.out"
3312 # Check that the compiler produces executables we can run. If not, either
3313 # the compiler is broken, or we cross compile.
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3315 $as_echo_n "checking whether we are cross compiling... " >&6; }
3316 if test "$cross_compiling" != yes; then
3317 { { ac_try="$ac_link"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328 if { ac_try='./conftest$ac_cv_exeext'
3329 { { case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_try") 2>&5
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; }; then
3341 if test "$cross_compiling" = maybe; then
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details" "$LINENO" 5; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3353 $as_echo "$cross_compiling" >&6; }
3355 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3356 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3358 $as_echo_n "checking for suffix of object files... " >&6; }
3359 if ${ac_cv_objext+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 rm -f conftest.o conftest.obj
3374 if { { ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_compile") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 for ac_file in conftest.o conftest.obj conftest.*; do
3386 test -f "$ac_file" || continue;
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3389 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of object files: cannot compile
3400 See \`config.log' for more details" "$LINENO" 5; }
3402 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3405 $as_echo "$ac_cv_objext" >&6; }
3406 OBJEXT=$ac_cv_objext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3409 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3410 if ${ac_cv_c_compiler_gnu+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3427 if ac_fn_c_try_compile "$LINENO"; then :
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3437 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3438 if test $ac_compiler_gnu = yes; then
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3446 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3447 if ${ac_cv_prog_cc_g+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 ac_save_c_werror_flag=$ac_c_werror_flag
3451 ac_c_werror_flag=yes
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3465 if ac_fn_c_try_compile "$LINENO"; then :
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3480 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 if ac_fn_c_try_compile "$LINENO"; then :
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3507 $as_echo "$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3517 if test "$GCC" = yes; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3524 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3525 if ${ac_cv_prog_cc_c89+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 ac_cv_prog_cc_c89=no
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3536 struct buf { int x; };
3537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3538 static char *e (p, i)
3544 static char *f (char * (*g) (char **, int), char **p, ...)
3549 s = g (p, va_arg (v,int));
3554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3555 function prototypes and stuff, but not '\xHH' hex character constants.
3556 These don't provoke an error unfortunately, instead are silently treated
3557 as 'x'. The following induces an error, until -std is added to get
3558 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3559 array size at least. It's necessary to write '\x00'==0 to get something
3560 that's true only with -std. */
3561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3564 inside strings and character constants. */
3566 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 CC="$ac_save_CC $ac_arg"
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_c89=$ac_arg
3589 rm -f core conftest.err conftest.$ac_objext
3590 test "x$ac_cv_prog_cc_c89" != "xno" && break
3592 rm -f conftest.$ac_ext
3597 case "x$ac_cv_prog_cc_c89" in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3600 $as_echo "none needed" >&6; } ;;
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3603 $as_echo "unsupported" >&6; } ;;
3605 CC="$CC $ac_cv_prog_cc_c89"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3607 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3609 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3622 if ${ac_cv_lib_dl_dlopen+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 ac_check_lib_save_LIBS=$LIBS
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3630 /* Override any GCC internal prototype to avoid an error.
3631 Use char because int might match the return type of a GCC
3632 builtin and then its argument prototype would still apply. */
3645 if ac_fn_c_try_link "$LINENO"; then :
3646 ac_cv_lib_dl_dlopen=yes
3648 ac_cv_lib_dl_dlopen=no
3650 rm -f core conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652 LIBS=$ac_check_lib_save_LIBS
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3659 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3666 # Check whether --with-diet-libc was given.
3667 if test "${with_diet_libc+set}" = set; then :
3668 withval=$with_diet_libc; CC="diet cc -nostdinc"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3671 $as_echo "CC=$CC" >&6; }
3674 # Check whether --with-cc was given.
3675 if test "${with_cc+set}" = set; then :
3676 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3680 # Check whether --with-ccopts was given.
3681 if test "${with_ccopts+set}" = set; then :
3682 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3686 # Check whether --with-ldopts was given.
3687 if test "${with_ldopts+set}" = set; then :
3688 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3735 if test -z "$ac_cv_prog_CC"; then
3737 # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_ac_ct_CC="gcc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3773 if test "x$ac_ct_CC" = x; then
3776 case $cross_compiling:$ac_tool_warned in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3788 if test -z "$CC"; then
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_CC="${ac_tool_prefix}cc"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3829 if test -z "$CC"; then
3830 # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849 ac_prog_rejected=yes
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test $ac_prog_rejected = yes; then
3861 # We found a bogon in the path, so make sure we never use it.
3862 set dummy $ac_cv_prog_CC
3864 if test $# != 0; then
3865 # We chose a different compiler from the bogus one.
3866 # However, it has the same basename, so the bogon will be chosen
3867 # first if we set CC to just the basename; use the full file name.
3869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3885 if test -z "$CC"; then
3886 if test -n "$ac_tool_prefix"; then
3887 for ac_prog in cl.exe
3889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$CC" && break
3929 if test -z "$CC"; then
3931 for ac_prog in cl.exe
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_ac_ct_CC="$ac_prog"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 test -n "$ac_ct_CC" && break
3973 if test "x$ac_ct_CC" = x; then
3976 case $cross_compiling:$ac_tool_warned in
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3998 for ac_option in --version -v -V -qversion; do
3999 { { ac_try="$ac_compiler $ac_option >&5"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4008 if test -s conftest.err; then
4010 ... rest of stderr output deleted ...
4011 10q' conftest.err >conftest.er1
4012 cat conftest.er1 >&5
4014 rm -f conftest.er1 conftest.err
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4021 if ${ac_cv_c_compiler_gnu+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4049 if test $ac_compiler_gnu = yes; then
4054 ac_test_CFLAGS=${CFLAGS+set}
4055 ac_save_CFLAGS=$CFLAGS
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4058 if ${ac_cv_prog_cc_g+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 ac_save_c_werror_flag=$ac_c_werror_flag
4062 ac_c_werror_flag=yes
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_c_werror_flag=$ac_save_c_werror_flag
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4118 $as_echo "$ac_cv_prog_cc_g" >&6; }
4119 if test "$ac_test_CFLAGS" = set; then
4120 CFLAGS=$ac_save_CFLAGS
4121 elif test $ac_cv_prog_cc_g = yes; then
4122 if test "$GCC" = yes; then
4128 if test "$GCC" = yes; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4136 if ${ac_cv_prog_cc_c89+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 ac_cv_prog_cc_c89=no
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4147 struct buf { int x; };
4148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4149 static char *e (p, i)
4155 static char *f (char * (*g) (char **, int), char **p, ...)
4160 s = g (p, va_arg (v,int));
4165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4166 function prototypes and stuff, but not '\xHH' hex character constants.
4167 These don't provoke an error unfortunately, instead are silently treated
4168 as 'x'. The following induces an error, until -std is added to get
4169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4170 array size at least. It's necessary to write '\x00'==0 to get something
4171 that's true only with -std. */
4172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4175 inside strings and character constants. */
4177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4179 int test (int i, double x);
4180 struct s1 {int (*f) (int a);};
4181 struct s2 {int (*f) (double a);};
4182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4196 CC="$ac_save_CC $ac_arg"
4197 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_cv_prog_cc_c89=$ac_arg
4200 rm -f core conftest.err conftest.$ac_objext
4201 test "x$ac_cv_prog_cc_c89" != "xno" && break
4203 rm -f conftest.$ac_ext
4208 case "x$ac_cv_prog_cc_c89" in
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 $as_echo "none needed" >&6; } ;;
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 $as_echo "unsupported" >&6; } ;;
4216 CC="$CC $ac_cv_prog_cc_c89"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4220 if test "x$ac_cv_prog_cc_c89" != xno; then :
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 if test "$GCC" = yes; then
4231 RDYNAMIC="-rdynamic"
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4240 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4245 if test -z "$CPP"; then
4246 if ${ac_cv_prog_CPP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 # Double quotes because CPP needs to be expanded
4250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4264 # include <limits.h>
4266 # include <assert.h>
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4288 # Passes both tests.
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4310 $as_echo "$CPP" >&6; }
4312 for ac_c_preproc_warn_flag in '' yes
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
4318 # On the NeXT, cc -E runs the code through the compiler's parser,
4319 # not just through cpp. "Syntax error" is here to catch this case.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4323 # include <limits.h>
4325 # include <assert.h>
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4332 # Broken: fails on valid input.
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4337 # OK, works on sane cases. Now check whether nonexistent headers
4338 # can be detected and how.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ac_nonexistent.h>
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344 # Broken: success on invalid input.
4347 # Passes both tests.
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.i conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then :
4359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details" "$LINENO" 5; }
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4372 $as_echo_n "checking for additional special compiler flags... " >&6; }
4373 if test "$GCC" = yes
4376 alpha) addcflags="-mieee" ;;
4379 if test "x$addcflags" != x
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4382 $as_echo "$addcflags" >&6; }
4383 CFLAGS="$addcflags $CFLAGS"
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4386 $as_echo "(none)" >&6; }
4392 # Check whether --with-root-prefix was given.
4393 if test "${with_root_prefix+set}" = set; then :
4394 withval=$with_root_prefix; root_prefix=$withval
4398 # Check whether --enable-maintainer-mode was given.
4399 if test "${enable_maintainer_mode+set}" = set; then :
4400 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4404 $as_echo "Disabling maintainer mode" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4408 $as_echo "Enabling maintainer mode" >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4414 $as_echo "Disabling maintainer mode by default" >&6; }
4419 # Check whether --enable-symlink-install was given.
4420 if test "${enable_symlink_install+set}" = set; then :
4421 enableval=$enable_symlink_install; if test "$enableval" = "no"
4423 LINK_INSTALL_FLAGS=-f
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4425 $as_echo "Disabling symlinks for install" >&6; }
4427 LINK_INSTALL_FLAGS=-sf
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4429 $as_echo "Enabling symlinks for install" >&6; }
4433 LINK_INSTALL_FLAGS=-f
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4435 $as_echo "Disabling symlinks for install by default" >&6; }
4440 relative_symlink_defined=
4441 # Check whether --enable-relative-symlinks was given.
4442 if test "${enable_relative_symlinks+set}" = set; then :
4443 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4446 relative_symlink_defined=yes
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4448 $as_echo "Disabling relative symlinks for install" >&6; }
4450 SYMLINK_RELATIVE=--relative
4451 relative_symlink_defined=yes
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4453 $as_echo "Enabling relative symlinks for install" >&6; }
4457 # Check whether --enable-symlink-relative-symlinks was given.
4458 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4459 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4461 SYMLINK_RELATIVE=yes
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4463 $as_echo "Disabling relative symlinks for install" >&6; }
4465 SYMLINK_RELATIVE=--relative
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4467 $as_echo "Enabling relative symlinks for install" >&6; }
4471 if test -z "$relative_symlink_defined"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4475 $as_echo "Disabling relative symlinks for install by default" >&6; }
4481 # Check whether --enable-symlink-build was given.
4482 if test "${enable_symlink_build+set}" = set; then :
4483 enableval=$enable_symlink_build; if test "$enableval" = "no"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4487 $as_echo "Disabling symlinks for build" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4491 $as_echo "Enabling symlinks for build" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4497 $as_echo "Disabling symlinks for build by default" >&6; }
4502 # Check whether --enable-verbose-makecmds was given.
4503 if test "${enable_verbose_makecmds+set}" = set; then :
4504 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4507 $as_echo "Disabling verbose make commands" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4513 $as_echo "Enabling verbose make commands" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4521 $as_echo "Disabling verbose make commands" >&6; }
4531 # Check whether --enable-compression was given.
4532 if test "${enable_compression+set}" = set; then :
4533 enableval=$enable_compression; if test "$enableval" = "no"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4536 $as_echo "Disabling compression support" >&6; }
4539 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4542 $as_echo "Enabling compression support" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4544 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4549 $as_echo "Disabling compression support by default" >&6; }
4554 # Check whether --enable-htree was given.
4555 if test "${enable_htree+set}" = set; then :
4556 enableval=$enable_htree; if test "$enableval" = "no"
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4560 $as_echo "Disabling htree directory support" >&6; }
4563 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4566 $as_echo "Enabling htree directory support" >&6; }
4571 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4574 $as_echo "Enabling htree directory support by default" >&6; }
4579 E2_PKG_CONFIG_STATIC=--static
4582 # Check whether --enable-elf-shlibs was given.
4583 if test "${enable_elf_shlibs+set}" = set; then :
4584 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4587 MAKEFILE_ELF=/dev/null
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4589 $as_echo "Disabling ELF shared libraries" >&6; }
4591 E2_PKG_CONFIG_STATIC=
4593 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4596 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4602 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4604 $as_echo "Enabling ELF shared libraries" >&6; }
4608 MAKEFILE_ELF=/dev/null
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4611 $as_echo "Disabling ELF shared libraries by default" >&6; }
4617 # Check whether --enable-bsd-shlibs was given.
4618 if test "${enable_bsd_shlibs+set}" = set; then :
4619 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4622 MAKEFILE_BSDLIB=/dev/null
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4624 $as_echo "Disabling BSD shared libraries" >&6; }
4626 E2_PKG_CONFIG_STATIC=
4628 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4632 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4637 $as_echo "Enabling BSD shared libraries" >&6; }
4641 MAKEFILE_BSDLIB=/dev/null
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4644 $as_echo "Disabling BSD shared libraries by default" >&6; }
4650 # Check whether --enable-profile was given.
4651 if test "${enable_profile+set}" = set; then :
4652 enableval=$enable_profile; if test "$enableval" = "no"
4655 MAKEFILE_PROFILE=/dev/null
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4657 $as_echo "Disabling profiling libraries" >&6; }
4660 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4661 PROFILED_LIB_EXT=_p.a
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4663 $as_echo "Building profiling libraries" >&6; }
4668 MAKEFILE_PROFILE=/dev/null
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4670 $as_echo "Disabling profiling libraries by default" >&6; }
4676 # Check whether --enable-checker was given.
4677 if test "${enable_checker+set}" = set; then :
4678 enableval=$enable_checker; if test "$enableval" = "no"
4681 MAKEFILE_CHECKER=/dev/null
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4683 $as_echo "Disabling checker libraries" >&6; }
4686 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4688 $as_echo "Building checker libraries" >&6; }
4693 MAKEFILE_CHECKER=/dev/null
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4695 $as_echo "Disabling checker libraries by default" >&6; }
4706 # Check whether --enable-jbd-debug was given.
4707 if test "${enable_jbd_debug+set}" = set; then :
4708 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4711 $as_echo "Disabling journal debugging" >&6; }
4714 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4717 $as_echo "Enabling journal debugging" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4722 $as_echo "Disabling journal debugging by default" >&6; }
4726 # Check whether --enable-blkid-debug was given.
4727 if test "${enable_blkid_debug+set}" = set; then :
4728 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4731 $as_echo "Disabling blkid debugging" >&6; }
4734 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4737 $as_echo "Enabling blkid debugging" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4742 $as_echo "Disabling blkid debugging by default" >&6; }
4746 # Check whether --enable-testio-debug was given.
4747 if test "${enable_testio_debug+set}" = set; then :
4748 enableval=$enable_testio_debug;
4749 if test "$enableval" = "no"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4752 $as_echo "Disabling testio debugging" >&6; }
4756 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4759 $as_echo "Enabling testio debugging" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4764 $as_echo "Enabling testio debugging by default" >&6; }
4765 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4774 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4781 $as_echo_n "(cached) " >&6
4785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4807 if test -n "$PKG_CONFIG"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4809 $as_echo "$PKG_CONFIG" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4817 if test -z "$ac_cv_path_PKG_CONFIG"; then
4818 ac_pt_PKG_CONFIG=$PKG_CONFIG
4819 # Extract the first word of "pkg-config", so it can be a program name with args.
4820 set dummy pkg-config; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 case $ac_pt_PKG_CONFIG in
4828 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4850 if test -n "$ac_pt_PKG_CONFIG"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4852 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_pt_PKG_CONFIG" = x; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4867 PKG_CONFIG=$ac_pt_PKG_CONFIG
4870 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4874 if test -n "$PKG_CONFIG"; then
4875 _pkg_min_version=0.9.0
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4877 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4878 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4893 DEPPROFILED_LIBUUID=
4895 # Check whether --enable-libuuid was given.
4896 if test "${enable_libuuid+set}" = set; then :
4897 enableval=$enable_libuuid; if test "$enableval" = "no"
4899 if test -z "$PKG_CONFIG"; then
4900 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4904 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4905 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_check_lib_save_LIBS=$LIBS
4909 LIBS="-luuid $LIBUUID $LIBS"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4913 /* Override any GCC internal prototype to avoid an error.
4914 Use char because int might match the return type of a GCC
4915 builtin and then its argument prototype would still apply. */
4919 char uuid_generate ();
4923 return uuid_generate ();
4928 if ac_fn_c_try_link "$LINENO"; then :
4929 ac_cv_lib_uuid_uuid_generate=yes
4931 ac_cv_lib_uuid_uuid_generate=no
4933 rm -f core conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4938 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4939 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4940 LIBUUID=`$PKG_CONFIG --libs uuid`;
4941 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4943 as_fn_error $? "external uuid library not found" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4948 $as_echo "Disabling private uuid library" >&6; }
4950 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4952 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4953 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4954 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4955 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4957 $as_echo "Enabling private uuid library" >&6; }
4961 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4963 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4964 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4965 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4966 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4968 $as_echo "Enabling private uuid library by default" >&6; }
4981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4982 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4988 $as_echo_n "(cached) " >&6
4992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5014 if test -n "$PKG_CONFIG"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5016 $as_echo "$PKG_CONFIG" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5024 if test -z "$ac_cv_path_PKG_CONFIG"; then
5025 ac_pt_PKG_CONFIG=$PKG_CONFIG
5026 # Extract the first word of "pkg-config", so it can be a program name with args.
5027 set dummy pkg-config; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 case $ac_pt_PKG_CONFIG in
5035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5057 if test -n "$ac_pt_PKG_CONFIG"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5065 if test "x$ac_pt_PKG_CONFIG" = x; then
5068 case $cross_compiling:$ac_tool_warned in
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5074 PKG_CONFIG=$ac_pt_PKG_CONFIG
5077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5081 if test -n "$PKG_CONFIG"; then
5082 _pkg_min_version=0.9.0
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087 $as_echo "yes" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5100 DEPPROFILED_LIBBLKID=
5103 # Check whether --enable-libblkid was given.
5104 if test "${enable_libblkid+set}" = set; then :
5105 enableval=$enable_libblkid; if test "$enableval" = "no"
5107 if test -z "$PKG_CONFIG"; then
5108 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5112 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5113 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lblkid $LIBBLKID $LIBS"
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 /* Override any GCC internal prototype to avoid an error.
5122 Use char because int might match the return type of a GCC
5123 builtin and then its argument prototype would still apply. */
5127 char blkid_get_cache ();
5131 return blkid_get_cache ();
5136 if ac_fn_c_try_link "$LINENO"; then :
5137 ac_cv_lib_blkid_blkid_get_cache=yes
5139 ac_cv_lib_blkid_blkid_get_cache=no
5141 rm -f core conftest.err conftest.$ac_objext \
5142 conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5146 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5147 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5148 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5149 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5151 as_fn_error $? "external blkid library not found" "$LINENO" 5
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5156 $as_echo "Disabling private blkid library" >&6; }
5158 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5159 DEPLIBBLKID=$LIBBLKID
5160 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5161 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5162 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5163 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5164 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5167 $as_echo "Enabling private blkid library" >&6; }
5171 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5172 DEPLIBBLKID=$LIBBLKID
5173 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5174 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5175 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5176 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5177 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5180 $as_echo "Enabling private blkid library by default" >&6; }
5193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5200 $as_echo_n "(cached) " >&6
5204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5226 if test -n "$PKG_CONFIG"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5228 $as_echo "$PKG_CONFIG" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5236 if test -z "$ac_cv_path_PKG_CONFIG"; then
5237 ac_pt_PKG_CONFIG=$PKG_CONFIG
5238 # Extract the first word of "pkg-config", so it can be a program name with args.
5239 set dummy pkg-config; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 case $ac_pt_PKG_CONFIG in
5247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5269 if test -n "$ac_pt_PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5271 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5277 if test "x$ac_pt_PKG_CONFIG" = x; then
5280 case $cross_compiling:$ac_tool_warned in
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284 ac_tool_warned=yes ;;
5286 PKG_CONFIG=$ac_pt_PKG_CONFIG
5289 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5293 if test -n "$PKG_CONFIG"; then
5294 _pkg_min_version=0.9.0
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5296 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5297 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5308 # Check whether --enable-quota was given.
5309 if test "${enable_quota+set}" = set; then :
5310 enableval=$enable_quota; if test "$enableval" = "no"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5313 $as_echo "Disabling quota support" >&6; }
5315 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5318 $as_echo "Enabling quota support" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5323 $as_echo "Disabling quota support by default" >&6; }
5327 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5328 DEPLIBQUOTA=$LIBQUOTA
5329 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5330 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5331 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5332 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5340 # Check whether --enable-debugfs was given.
5341 if test "${enable_debugfs+set}" = set; then :
5342 enableval=$enable_debugfs; if test "$enableval" = "no"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5345 $as_echo "Disabling debugfs support" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5350 $as_echo "Enabling debugfs support" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5355 $as_echo "Enabling debugfs support by default" >&6; }
5361 # Check whether --enable-imager was given.
5362 if test "${enable_imager+set}" = set; then :
5363 enableval=$enable_imager; if test "$enableval" = "no"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5366 $as_echo "Disabling e2image support" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5371 $as_echo "Enabling e2image support" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5376 $as_echo "Enabling e2image support by default" >&6; }
5382 # Check whether --enable-resizer was given.
5383 if test "${enable_resizer+set}" = set; then :
5384 enableval=$enable_resizer; if test "$enableval" = "no"
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5387 $as_echo "Disabling e2resize support" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5392 $as_echo "Enabling e2resize support" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5397 $as_echo "Enabling e2resize support by default" >&6; }
5403 # Check whether --enable-defrag was given.
5404 if test "${enable_defrag+set}" = set; then :
5405 enableval=$enable_defrag; if test "$enableval" = "no"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5408 $as_echo "Disabling e4defrag support" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5413 $as_echo "Enabling e4defrag support" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5418 $as_echo "Enabling e4defrag support by default" >&6; }
5424 # Check whether --enable-fsck was given.
5425 if test "${enable_fsck+set}" = set; then :
5426 enableval=$enable_fsck; if test "$enableval" = "no"
5428 FSCK_PROG='' FSCK_MAN=''
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5430 $as_echo "Not building fsck wrapper" >&6; }
5432 FSCK_PROG=fsck FSCK_MAN=fsck.8
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5434 $as_echo "Building fsck wrapper" >&6; }
5440 FSCK_PROG='' FSCK_MAN=''
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5442 $as_echo "Not building fsck wrapper by default" >&6; }
5445 FSCK_PROG=fsck FSCK_MAN=fsck.8
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5447 $as_echo "Building fsck wrapper by default" >&6; }
5454 # Check whether --enable-e2initrd-helper was given.
5455 if test "${enable_e2initrd_helper+set}" = set; then :
5456 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5458 E2INITRD_PROG='' E2INITRD_MAN=''
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5460 $as_echo "Not building e2initrd helper" >&6; }
5462 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5464 $as_echo "Building e2initrd helper" >&6; }
5468 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5470 $as_echo "Building e2initrd helper by default" >&6; }
5476 # Check whether --enable-tls was given.
5477 if test "${enable_tls+set}" = set; then :
5478 enableval=$enable_tls; if test "$enableval" = "no"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5482 $as_echo "Disabling thread local support" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5486 $as_echo "Enabling thread local support" >&6; }
5490 if test -n "$WITH_DIET_LIBC"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5494 $as_echo "Diet libc does not support thread local support" >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5498 $as_echo "Try using thread local support by default" >&6; }
5503 if test "$try_tls" = "yes"
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5507 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5508 if ${ac_cv_tls+:} false; then :
5509 $as_echo_n "(cached) " >&6
5512 ax_tls_keywords="__thread __declspec(thread) none"
5513 for ax_tls_keyword in $ax_tls_keywords; do
5514 case $ax_tls_keyword in
5515 none) ac_cv_tls=none ; break ;;
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5522 static $ax_tls_keyword int bar;
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 ac_cv_tls=$ax_tls_keyword ; break
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 if test "$ac_cv_tls" != "none"; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define TLS $ac_cv_tls
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5554 $as_echo "$ac_cv_tls" >&6; }
5558 # Check whether --enable-uuidd was given.
5559 if test "${enable_uuidd+set}" = set; then :
5560 enableval=$enable_uuidd; if test "$enableval" = "no"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5563 $as_echo "Not building uuidd" >&6; }
5566 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5570 $as_echo "Building uuidd" >&6; }
5574 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5578 $as_echo "Building uuidd by default" >&6; }
5584 # Check whether --enable-mmp was given.
5585 if test "${enable_mmp+set}" = set; then :
5586 enableval=$enable_mmp; if test "$enableval" = "no"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5589 $as_echo "Disabling mmp support" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5592 $as_echo "Enabling mmp support" >&6; }
5593 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5599 $as_echo "Enabling mmp support by default" >&6; }
5600 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5606 # Check whether --enable-bmap-stats was given.
5607 if test "${enable_bmap_stats+set}" = set; then :
5608 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5611 $as_echo "Disabling bitmap statistics support" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5614 $as_echo "Enabling bitmap statistics support" >&6; }
5615 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5621 $as_echo "Enabling bitmap statistics support by default" >&6; }
5622 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5628 # Check whether --enable-bmap-stats-ops was given.
5629 if test "${enable_bmap_stats_ops+set}" = set; then :
5630 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5633 $as_echo "Disabling additional bitmap statistics" >&6; }
5635 if test "x${enable_bmap_stats}" = "xno"; then :
5636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5639 See \`config.log' for more details" "$LINENO" 5; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5643 $as_echo "Enabling additional bitmap statistics" >&6; }
5644 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5650 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5654 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5656 GETTEXT_PACKAGE=e2fsprogs
5658 VERSION="$E2FSPROGS_VERSION"
5661 cat >>confdefs.h <<_ACEOF
5662 #define PACKAGE "$PACKAGE"
5666 cat >>confdefs.h <<_ACEOF
5667 #define VERSION "$VERSION"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5679 $as_echo_n "(cached) " >&6
5681 cat >conftest.make <<\_ACEOF
5684 @echo '@@@%%%=$(MAKE)=@@@%%%'
5686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5689 eval ac_cv_prog_make_${ac_make}_set=yes;;
5691 eval ac_cv_prog_make_${ac_make}_set=no;;
5695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 SET_MAKE="MAKE=${MAKE-make}"
5705 # Find a good install program. We prefer a C program (faster),
5706 # so one script is as good as another. But avoid the broken or
5707 # incompatible versions:
5708 # SysV /etc/install, /usr/sbin/install
5709 # SunOS /usr/etc/install
5710 # IRIX /sbin/install
5712 # AmigaOS /C/install, which installs bootblocks on floppy discs
5713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5716 # OS/2's system install, which has a completely different semantic
5717 # ./install, which can be erroneously created by make from ./install.sh.
5718 # Reject install programs that cannot install multiple files.
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5720 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5721 if test -z "$INSTALL"; then
5722 if ${ac_cv_path_install+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 # Account for people who put trailing slashes in PATH elements.
5731 case $as_dir/ in #((
5732 ./ | .// | /[cC]/* | \
5733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5734 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5737 # OSF1 and SCO ODT 3.0 have their own names for install.
5738 # Don't use installbsd from OSF since it installs stuff as root
5740 for ac_prog in ginstall scoinst install; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5743 if test $ac_prog = install &&
5744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745 # AIX install. It has an incompatible calling convention.
5747 elif test $ac_prog = install &&
5748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749 # program-specific install script used by HP pwplus--don't use.
5752 rm -rf conftest.one conftest.two conftest.dir
5753 echo one > conftest.one
5754 echo two > conftest.two
5756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5757 test -s conftest.one && test -s conftest.two &&
5758 test -s conftest.dir/conftest.one &&
5759 test -s conftest.dir/conftest.two
5761 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5774 rm -rf conftest.one conftest.two conftest.dir
5777 if test "${ac_cv_path_install+set}" = set; then
5778 INSTALL=$ac_cv_path_install
5780 # As a last resort, use the slow shell script. Don't cache a
5781 # value for INSTALL within a source directory, because that will
5782 # break other packages using the cache if that directory is
5783 # removed, or if the value is a relative name.
5784 INSTALL=$ac_install_sh
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5788 $as_echo "$INSTALL" >&6; }
5790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5791 # It thinks the first close brace ends the variable substitution.
5792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5800 if test -n "$ac_aux_dir"; then
5801 case "$ac_aux_dir" in
5802 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5803 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5806 if test -z "$MKINSTALLDIRS"; then
5807 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5813 $as_echo_n "checking whether NLS is requested... " >&6; }
5814 # Check whether --enable-nls was given.
5815 if test "${enable_nls+set}" = set; then :
5816 enableval=$enable_nls; USE_NLS=$enableval
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5822 $as_echo "$USE_NLS" >&6; }
5829 # Prepare PATH_SEPARATOR.
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832 echo "#! /bin/sh" >conf$$.sh
5833 echo "exit 0" >>conf$$.sh
5835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5843 # Find out how to test for executable files. Don't use a zero-byte file,
5844 # as systems may use methods other than mode bits to determine executability.
5845 cat >conf$$.file <<_ASEOF
5849 chmod +x conf$$.file
5850 if test -x conf$$.file >/dev/null 2>&1; then
5851 ac_executable_p="test -x"
5853 ac_executable_p="test -f"
5857 # Extract the first word of "msgfmt", so it can be a program name with args.
5858 set dummy msgfmt; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_path_MSGFMT+:} false; then :
5862 $as_echo_n "(cached) " >&6
5866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5869 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5870 for ac_dir in $PATH; do
5872 test -z "$ac_dir" && ac_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5875 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5876 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5877 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5884 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5888 MSGFMT="$ac_cv_path_MSGFMT"
5889 if test "$MSGFMT" != ":"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5891 $as_echo "$MSGFMT" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5897 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5898 set dummy gmsgfmt; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_path_GMSGFMT+:} false; then :
5902 $as_echo_n "(cached) " >&6
5906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5928 GMSGFMT=$ac_cv_path_GMSGFMT
5929 if test -n "$GMSGFMT"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5931 $as_echo "$GMSGFMT" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5940 # Prepare PATH_SEPARATOR.
5941 # The user is always right.
5942 if test "${PATH_SEPARATOR+set}" != set; then
5943 echo "#! /bin/sh" >conf$$.sh
5944 echo "exit 0" >>conf$$.sh
5946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5954 # Find out how to test for executable files. Don't use a zero-byte file,
5955 # as systems may use methods other than mode bits to determine executability.
5956 cat >conf$$.file <<_ASEOF
5960 chmod +x conf$$.file
5961 if test -x conf$$.file >/dev/null 2>&1; then
5962 ac_executable_p="test -x"
5964 ac_executable_p="test -f"
5968 # Extract the first word of "xgettext", so it can be a program name with args.
5969 set dummy xgettext; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_path_XGETTEXT+:} false; then :
5973 $as_echo_n "(cached) " >&6
5977 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5980 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5981 for ac_dir in $PATH; do
5983 test -z "$ac_dir" && ac_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5986 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5987 (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
5988 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5995 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5999 XGETTEXT="$ac_cv_path_XGETTEXT"
6000 if test "$XGETTEXT" != ":"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6002 $as_echo "$XGETTEXT" >&6; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6011 # Prepare PATH_SEPARATOR.
6012 # The user is always right.
6013 if test "${PATH_SEPARATOR+set}" != set; then
6014 echo "#! /bin/sh" >conf$$.sh
6015 echo "exit 0" >>conf$$.sh
6017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6025 # Find out how to test for executable files. Don't use a zero-byte file,
6026 # as systems may use methods other than mode bits to determine executability.
6027 cat >conf$$.file <<_ASEOF
6031 chmod +x conf$$.file
6032 if test -x conf$$.file >/dev/null 2>&1; then
6033 ac_executable_p="test -x"
6035 ac_executable_p="test -f"
6039 # Extract the first word of "msgmerge", so it can be a program name with args.
6040 set dummy msgmerge; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_path_MSGMERGE+:} false; then :
6044 $as_echo_n "(cached) " >&6
6048 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6051 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6052 for ac_dir in $PATH; do
6054 test -z "$ac_dir" && ac_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6057 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6058 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6065 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6069 MSGMERGE="$ac_cv_path_MSGMERGE"
6070 if test "$MSGMERGE" != ":"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6072 $as_echo "$MSGMERGE" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6079 if test "$GMSGFMT" != ":"; then
6080 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6081 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6084 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6086 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6091 if test "$XGETTEXT" != ":"; then
6092 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6093 (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
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6097 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6103 ac_config_commands="$ac_config_commands default-1"
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_RANLIB+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$RANLIB"; then
6115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 RANLIB=$ac_cv_prog_RANLIB
6135 if test -n "$RANLIB"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6137 $as_echo "$RANLIB" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test -z "$ac_cv_prog_RANLIB"; then
6146 ac_ct_RANLIB=$RANLIB
6147 # Extract the first word of "ranlib", so it can be a program name with args.
6148 set dummy ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$ac_ct_RANLIB"; then
6155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_ac_ct_RANLIB="ranlib"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6175 if test -n "$ac_ct_RANLIB"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6177 $as_echo "$ac_ct_RANLIB" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6183 if test "x$ac_ct_RANLIB" = x; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6192 RANLIB=$ac_ct_RANLIB
6195 RANLIB="$ac_cv_prog_RANLIB"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6200 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6201 if ${ac_cv_lib_cposix_strerror+:} false; then :
6202 $as_echo_n "(cached) " >&6
6204 ac_check_lib_save_LIBS=$LIBS
6205 LIBS="-lcposix $LIBS"
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6209 /* Override any GCC internal prototype to avoid an error.
6210 Use char because int might match the return type of a GCC
6211 builtin and then its argument prototype would still apply. */
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_lib_cposix_strerror=yes
6227 ac_cv_lib_cposix_strerror=no
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6234 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6235 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6236 LIBS="$LIBS -lcposix"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6244 if ${ac_cv_path_GREP+:} false; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -z "$GREP"; then
6248 ac_path_GREP_found=false
6249 # Loop through the user's path and test for each of PROGNAME-LIST
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6254 test -z "$as_dir" && as_dir=.
6255 for ac_prog in grep ggrep; do
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6258 as_fn_executable_p "$ac_path_GREP" || continue
6259 # Check for GNU ac_path_GREP and select it if it is found.
6260 # Check for GNU $ac_path_GREP
6261 case `"$ac_path_GREP" --version 2>&1` in
6263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6266 $as_echo_n 0123456789 >"conftest.in"
6269 cat "conftest.in" "conftest.in" >"conftest.tmp"
6270 mv "conftest.tmp" "conftest.in"
6271 cp "conftest.in" "conftest.nl"
6272 $as_echo 'GREP' >> "conftest.nl"
6273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6275 as_fn_arith $ac_count + 1 && ac_count=$as_val
6276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6277 # Best one so far, save it but keep looking for a better one
6278 ac_cv_path_GREP="$ac_path_GREP"
6279 ac_path_GREP_max=$ac_count
6281 # 10*(2^10) chars as input seems more than enough
6282 test $ac_count -gt 10 && break
6284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287 $ac_path_GREP_found && break 3
6292 if test -z "$ac_cv_path_GREP"; then
6293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6296 ac_cv_path_GREP=$GREP
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6301 $as_echo "$ac_cv_path_GREP" >&6; }
6302 GREP="$ac_cv_path_GREP"
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6306 $as_echo_n "checking for egrep... " >&6; }
6307 if ${ac_cv_path_EGREP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6311 then ac_cv_path_EGREP="$GREP -E"
6313 if test -z "$EGREP"; then
6314 ac_path_EGREP_found=false
6315 # Loop through the user's path and test for each of PROGNAME-LIST
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6320 test -z "$as_dir" && as_dir=.
6321 for ac_prog in egrep; do
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6324 as_fn_executable_p "$ac_path_EGREP" || continue
6325 # Check for GNU ac_path_EGREP and select it if it is found.
6326 # Check for GNU $ac_path_EGREP
6327 case `"$ac_path_EGREP" --version 2>&1` in
6329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6332 $as_echo_n 0123456789 >"conftest.in"
6335 cat "conftest.in" "conftest.in" >"conftest.tmp"
6336 mv "conftest.tmp" "conftest.in"
6337 cp "conftest.in" "conftest.nl"
6338 $as_echo 'EGREP' >> "conftest.nl"
6339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341 as_fn_arith $ac_count + 1 && ac_count=$as_val
6342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6343 # Best one so far, save it but keep looking for a better one
6344 ac_cv_path_EGREP="$ac_path_EGREP"
6345 ac_path_EGREP_max=$ac_count
6347 # 10*(2^10) chars as input seems more than enough
6348 test $ac_count -gt 10 && break
6350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6353 $ac_path_EGREP_found && break 3
6358 if test -z "$ac_cv_path_EGREP"; then
6359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6362 ac_cv_path_EGREP=$EGREP
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6368 $as_echo "$ac_cv_path_EGREP" >&6; }
6369 EGREP="$ac_cv_path_EGREP"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6373 $as_echo_n "checking for ANSI C header files... " >&6; }
6374 if ${ac_cv_header_stdc+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6392 if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_header_stdc=yes
6395 ac_cv_header_stdc=no
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 if test $ac_cv_header_stdc = yes; then
6400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "memchr" >/dev/null 2>&1; then :
6410 ac_cv_header_stdc=no
6416 if test $ac_cv_header_stdc = yes; then
6417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 $EGREP "free" >/dev/null 2>&1; then :
6427 ac_cv_header_stdc=no
6433 if test $ac_cv_header_stdc = yes; then
6434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435 if test "$cross_compiling" = yes; then :
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6442 #if ((' ' & 0x0FF) == 0x020)
6443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6446 # define ISLOWER(c) \
6447 (('a' <= (c) && (c) <= 'i') \
6448 || ('j' <= (c) && (c) <= 'r') \
6449 || ('s' <= (c) && (c) <= 'z'))
6450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6458 for (i = 0; i < 256; i++)
6459 if (XOR (islower (i), ISLOWER (i))
6460 || toupper (i) != TOUPPER (i))
6465 if ac_fn_c_try_run "$LINENO"; then :
6468 ac_cv_header_stdc=no
6470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6471 conftest.$ac_objext conftest.beam conftest.$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6477 $as_echo "$ac_cv_header_stdc" >&6; }
6478 if test $ac_cv_header_stdc = yes; then
6480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6485 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6486 if ${ac_cv_c_const+:} false; then :
6487 $as_echo_n "(cached) " >&6
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6497 /* Ultrix mips cc rejects this sort of thing. */
6498 typedef int charset[2];
6499 const charset cs = { 0, 0 };
6500 /* SunOS 4.1.1 cc rejects this. */
6501 char const *const *pcpcc;
6503 /* NEC SVR4.0.2 mips cc rejects this. */
6504 struct point {int x, y;};
6505 static struct point const zero = {0,0};
6506 /* AIX XL C 1.02.0.0 rejects this.
6507 It does not let you subtract one const X* pointer from another in
6508 an arm of an if-expression whose if-part is not a constant
6510 const char *g = "string";
6511 pcpcc = &g + (g ? g-g : 0);
6512 /* HPUX 7.0 cc rejects these. */
6514 ppc = (char**) pcpcc;
6515 pcpcc = (char const *const *) ppc;
6516 { /* SCO 3.2v4 cc rejects this sort of thing. */
6519 char const *s = 0 ? (char *) 0 : (char const *) 0;
6524 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6526 const int *foo = &x[0];
6529 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6530 typedef const int *iptr;
6534 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6535 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6536 struct s { int j; const int *ap[3]; } bx;
6537 struct s *b = &bx; b->j = 5;
6539 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6543 return !cs[0] && !zero.x;
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: $ac_cv_c_const" >&5
6558 $as_echo "$ac_cv_c_const" >&6; }
6559 if test $ac_cv_c_const = no; then
6561 $as_echo "#define const /**/" >>confdefs.h
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6567 $as_echo_n "checking for signed... " >&6; }
6568 if ${bh_cv_c_signed+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6582 if ac_fn_c_try_compile "$LINENO"; then :
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6590 $as_echo "$bh_cv_c_signed" >&6; }
6591 if test $bh_cv_c_signed = no; then
6593 $as_echo "#define signed /**/" >>confdefs.h
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6598 $as_echo_n "checking for inline... " >&6; }
6599 if ${ac_cv_c_inline+:} false; then :
6600 $as_echo_n "(cached) " >&6
6603 for ac_kw in inline __inline__ __inline; do
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6608 static $ac_kw foo_t static_foo () {return 0; }
6609 $ac_kw foo_t foo () {return 0; }
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 ac_cv_c_inline=$ac_kw
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 test "$ac_cv_c_inline" != no && break
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6622 $as_echo "$ac_cv_c_inline" >&6; }
6624 case $ac_cv_c_inline in
6627 case $ac_cv_c_inline in
6629 *) ac_val=$ac_cv_c_inline;;
6631 cat >>confdefs.h <<_ACEOF
6633 #define inline $ac_val
6639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6641 inttypes.h stdint.h unistd.h
6643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6646 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6647 cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6656 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6657 if test "x$ac_cv_type_off_t" = xyes; then :
6661 cat >>confdefs.h <<_ACEOF
6662 #define off_t long int
6667 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6668 if test "x$ac_cv_type_size_t" = xyes; then :
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned int
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6680 $as_echo_n "checking for long long... " >&6; }
6681 if ${ac_cv_type_long_long+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 long long ll = 1LL; int i = 63;
6690 long long llmax = (long long) -1;
6691 return ll << i | ll >> i | llmax / ll | llmax % ll;
6696 if ac_fn_c_try_link "$LINENO"; then :
6697 ac_cv_type_long_long=yes
6699 ac_cv_type_long_long=no
6701 rm -f core conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6705 $as_echo "$ac_cv_type_long_long" >&6; }
6706 if test $ac_cv_type_long_long = yes; then
6708 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6714 $as_echo_n "checking for long double... " >&6; }
6715 if ${gt_cv_c_long_double+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 if test "$GCC" = yes; then
6719 gt_cv_c_long_double=yes
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6724 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6725 long double foo = 0.0;
6726 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6727 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 gt_cv_c_long_double=yes
6740 gt_cv_c_long_double=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6746 $as_echo "$gt_cv_c_long_double" >&6; }
6747 if test $gt_cv_c_long_double = yes; then
6749 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6755 $as_echo_n "checking for wchar_t... " >&6; }
6756 if ${gt_cv_c_wchar_t+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6762 wchar_t foo = (wchar_t)'\0';
6771 if ac_fn_c_try_compile "$LINENO"; then :
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6779 $as_echo "$gt_cv_c_wchar_t" >&6; }
6780 if test $gt_cv_c_wchar_t = yes; then
6782 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6788 $as_echo_n "checking for wint_t... " >&6; }
6789 if ${gt_cv_c_wint_t+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6795 wint_t foo = (wchar_t)'\0';
6804 if ac_fn_c_try_compile "$LINENO"; then :
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6812 $as_echo "$gt_cv_c_wint_t" >&6; }
6813 if test $gt_cv_c_wint_t = yes; then
6815 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6821 $as_echo_n "checking for inttypes.h... " >&6; }
6822 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6823 $as_echo_n "(cached) " >&6
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <sys/types.h>
6828 #include <inttypes.h>
6832 uintmax_t i = (uintmax_t) -1;
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 jm_ac_cv_header_inttypes_h=yes
6840 jm_ac_cv_header_inttypes_h=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6845 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6846 if test $jm_ac_cv_header_inttypes_h = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6856 $as_echo_n "checking for stdint.h... " >&6; }
6857 if ${jm_ac_cv_header_stdint_h+:} false; then :
6858 $as_echo_n "(cached) " >&6
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <sys/types.h>
6867 uintmax_t i = (uintmax_t) -1;
6872 if ac_fn_c_try_compile "$LINENO"; then :
6873 jm_ac_cv_header_stdint_h=yes
6875 jm_ac_cv_header_stdint_h=no
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6880 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6881 if test $jm_ac_cv_header_stdint_h = yes; then
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_STDINT_H_WITH_UINTMAX 1
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6893 $as_echo_n "checking for intmax_t... " >&6; }
6894 if ${gt_cv_c_intmax_t+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6902 #if HAVE_STDINT_H_WITH_UINTMAX
6905 #if HAVE_INTTYPES_H_WITH_UINTMAX
6906 #include <inttypes.h>
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 gt_cv_c_intmax_t=yes
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6925 $as_echo "$gt_cv_c_intmax_t" >&6; }
6926 if test $gt_cv_c_intmax_t = yes; then
6928 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6935 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6936 if ${gt_cv_func_printf_posix+:} false; then :
6937 $as_echo_n "(cached) " >&6
6940 if test "$cross_compiling" = yes; then :
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6945 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951 $EGREP "notposix" >/dev/null 2>&1; then :
6952 gt_cv_func_printf_posix="guessing no"
6954 gt_cv_func_printf_posix="guessing yes"
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6965 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6966 dollar expansion (possibly an autoconf bug). */
6967 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6968 static char buf[100];
6971 sprintf (buf, format, 33, 55);
6972 return (strcmp (buf, "55 33") != 0);
6975 if ac_fn_c_try_run "$LINENO"; then :
6976 gt_cv_func_printf_posix=yes
6978 gt_cv_func_printf_posix=no
6980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6981 conftest.$ac_objext conftest.beam conftest.$ac_ext
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6987 $as_echo "$gt_cv_func_printf_posix" >&6; }
6988 case $gt_cv_func_printf_posix in
6991 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6996 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6997 # for constant arguments. Useless!
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6999 $as_echo_n "checking for working alloca.h... " >&6; }
7000 if ${ac_cv_working_alloca_h+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7009 char *p = (char *) alloca (2 * sizeof (int));
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 ac_cv_working_alloca_h=yes
7018 ac_cv_working_alloca_h=no
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7024 $as_echo "$ac_cv_working_alloca_h" >&6; }
7025 if test $ac_cv_working_alloca_h = yes; then
7027 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7032 $as_echo_n "checking for alloca... " >&6; }
7033 if ${ac_cv_func_alloca_works+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7039 # define alloca __builtin_alloca
7042 # include <malloc.h>
7043 # define alloca _alloca
7045 # ifdef HAVE_ALLOCA_H
7046 # include <alloca.h>
7051 # ifndef alloca /* predefined by HP cc +Olibcalls */
7052 void *alloca (size_t);
7062 char *p = (char *) alloca (1);
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 ac_cv_func_alloca_works=yes
7071 ac_cv_func_alloca_works=no
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7077 $as_echo "$ac_cv_func_alloca_works" >&6; }
7079 if test $ac_cv_func_alloca_works = yes; then
7081 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7084 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7085 # that cause trouble. Some versions do not even contain alloca or
7086 # contain a buggy version. If you still want to use their alloca,
7087 # use ar to extract alloca.o from them instead of compiling alloca.c.
7089 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7091 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7095 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7096 if ${ac_cv_os_cray+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 #if defined CRAY && ! defined CRAY2
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "webecray" >/dev/null 2>&1; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7118 $as_echo "$ac_cv_os_cray" >&6; }
7119 if test $ac_cv_os_cray = yes; then
7120 for ac_func in _getb67 GETB67 getb67; do
7121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7125 cat >>confdefs.h <<_ACEOF
7126 #define CRAY_STACKSEG_END $ac_func
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7136 $as_echo_n "checking stack direction for C alloca... " >&6; }
7137 if ${ac_cv_c_stack_direction+:} false; then :
7138 $as_echo_n "(cached) " >&6
7140 if test "$cross_compiling" = yes; then :
7141 ac_cv_c_stack_direction=0
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 $ac_includes_default
7147 find_stack_direction (int *addr, int depth)
7152 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7153 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7158 main (int argc, char **argv)
7160 return find_stack_direction (0, argc + !argv + 20) < 0;
7163 if ac_fn_c_try_run "$LINENO"; then :
7164 ac_cv_c_stack_direction=1
7166 ac_cv_c_stack_direction=-1
7168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7169 conftest.$ac_objext conftest.beam conftest.$ac_ext
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7174 $as_echo "$ac_cv_c_stack_direction" >&6; }
7175 cat >>confdefs.h <<_ACEOF
7176 #define STACK_DIRECTION $ac_cv_c_stack_direction
7185 for ac_header in $ac_header_list
7187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7191 cat >>confdefs.h <<_ACEOF
7192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206 for ac_func in getpagesize
7208 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7209 if test "x$ac_cv_func_getpagesize" = xyes; then :
7210 cat >>confdefs.h <<_ACEOF
7211 #define HAVE_GETPAGESIZE 1
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7218 $as_echo_n "checking for working mmap... " >&6; }
7219 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 if test "$cross_compiling" = yes; then :
7223 ac_cv_func_mmap_fixed_mapped=no
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 $ac_includes_default
7228 /* malloc might have been renamed as rpl_malloc. */
7231 /* Thanks to Mike Haertel and Jim Avera for this test.
7232 Here is a matrix of mmap possibilities:
7233 mmap private not fixed
7234 mmap private fixed at somewhere currently unmapped
7235 mmap private fixed at somewhere already mapped
7236 mmap shared not fixed
7237 mmap shared fixed at somewhere currently unmapped
7238 mmap shared fixed at somewhere already mapped
7239 For private mappings, we should verify that changes cannot be read()
7240 back from the file, nor mmap's back from the file at a different
7241 address. (There have been systems where private was not correctly
7242 implemented like the infamous i386 svr4.0, and systems where the
7243 VM page cache was not coherent with the file system buffer cache
7244 like early versions of FreeBSD and possibly contemporary NetBSD.)
7245 For shared mappings, we should conversely verify that changes get
7246 propagated back to all the places they're supposed to be.
7248 Grep wants private fixed already mapped.
7249 The main things grep needs to know about mmap are:
7250 * does it exist and is it safe to write into the mmap'd area
7251 * how to use it (BSD variants) */
7254 #include <sys/mman.h>
7256 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7260 /* This mess was copied from the GNU getpagesize.h. */
7261 #ifndef HAVE_GETPAGESIZE
7262 # ifdef _SC_PAGESIZE
7263 # define getpagesize() sysconf(_SC_PAGESIZE)
7264 # else /* no _SC_PAGESIZE */
7265 # ifdef HAVE_SYS_PARAM_H
7266 # include <sys/param.h>
7267 # ifdef EXEC_PAGESIZE
7268 # define getpagesize() EXEC_PAGESIZE
7269 # else /* no EXEC_PAGESIZE */
7271 # define getpagesize() NBPG * CLSIZE
7274 # endif /* no CLSIZE */
7275 # else /* no NBPG */
7277 # define getpagesize() NBPC
7278 # else /* no NBPC */
7280 # define getpagesize() PAGESIZE
7281 # endif /* PAGESIZE */
7282 # endif /* no NBPC */
7283 # endif /* no NBPG */
7284 # endif /* no EXEC_PAGESIZE */
7285 # else /* no HAVE_SYS_PARAM_H */
7286 # define getpagesize() 8192 /* punt totally */
7287 # endif /* no HAVE_SYS_PARAM_H */
7288 # endif /* no _SC_PAGESIZE */
7290 #endif /* no HAVE_GETPAGESIZE */
7295 char *data, *data2, *data3;
7300 pagesize = getpagesize ();
7302 /* First, make a file with some known garbage in it. */
7303 data = (char *) malloc (pagesize);
7306 for (i = 0; i < pagesize; ++i)
7307 *(data + i) = rand ();
7309 fd = creat ("conftest.mmap", 0600);
7312 if (write (fd, data, pagesize) != pagesize)
7316 /* Next, check that the tail of a page is zero-filled. File must have
7317 non-zero length, otherwise we risk SIGBUS for entire page. */
7318 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7322 if (write (fd2, cdata2, 1) != 1)
7324 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7325 if (data2 == MAP_FAILED)
7327 for (i = 0; i < pagesize; ++i)
7331 if (munmap (data2, pagesize))
7334 /* Next, try to mmap the file at a fixed address which already has
7335 something else allocated at it. If we can, also make sure that
7336 we see the same garbage. */
7337 fd = open ("conftest.mmap", O_RDWR);
7340 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7341 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7343 for (i = 0; i < pagesize; ++i)
7344 if (*(data + i) != *(data2 + i))
7347 /* Finally, make sure that changes to the mapped area do not
7348 percolate back to the file as seen by read(). (This is a bug on
7349 some variants of i386 svr4.0.) */
7350 for (i = 0; i < pagesize; ++i)
7351 *(data2 + i) = *(data2 + i) + 1;
7352 data3 = (char *) malloc (pagesize);
7355 if (read (fd, data3, pagesize) != pagesize)
7357 for (i = 0; i < pagesize; ++i)
7358 if (*(data + i) != *(data3 + i))
7364 if ac_fn_c_try_run "$LINENO"; then :
7365 ac_cv_func_mmap_fixed_mapped=yes
7367 ac_cv_func_mmap_fixed_mapped=no
7369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7370 conftest.$ac_objext conftest.beam conftest.$ac_ext
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7375 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7378 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7381 rm -f conftest.mmap conftest.txt
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7385 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7386 if ${ac_cv_gnu_library_2_1+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7392 #include <features.h>
7393 #ifdef __GNU_LIBRARY__
7394 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7402 ac_cv_gnu_library_2_1=yes
7404 ac_cv_gnu_library_2_1=no
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7412 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7414 GLIBC21="$ac_cv_gnu_library_2_1"
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7420 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7421 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7422 $as_echo_n "(cached) " >&6
7425 if test "$cross_compiling" = yes; then :
7427 # Guess based on the CPU.
7429 alpha* | i3456786 | m68k | s390*)
7430 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7432 gt_cv_int_divbyzero_sigfpe="guessing no";;
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7444 sigfpe_handler (int sig)
7446 sigfpe_handler (sig) int sig;
7449 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7450 exit (sig != SIGFPE);
7460 signal (SIGFPE, sigfpe_handler);
7461 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7462 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7463 signal (SIGTRAP, sigfpe_handler);
7465 /* Linux/SPARC yields signal SIGILL. */
7466 #if defined (__sparc__) && defined (__linux__)
7467 signal (SIGILL, sigfpe_handler);
7476 if ac_fn_c_try_run "$LINENO"; then :
7477 gt_cv_int_divbyzero_sigfpe=yes
7479 gt_cv_int_divbyzero_sigfpe=no
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7482 conftest.$ac_objext conftest.beam conftest.$ac_ext
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7488 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7489 case "$gt_cv_int_divbyzero_sigfpe" in
7494 cat >>confdefs.h <<_ACEOF
7495 #define INTDIV0_RAISES_SIGFPE $value
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7501 $as_echo_n "checking for unsigned long long... " >&6; }
7502 if ${ac_cv_type_unsigned_long_long+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 unsigned long long ull = 1ULL; int i = 63;
7511 unsigned long long ullmax = (unsigned long long) -1;
7512 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 ac_cv_type_unsigned_long_long=yes
7520 ac_cv_type_unsigned_long_long=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7526 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7527 if test $ac_cv_type_unsigned_long_long = yes; then
7529 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7536 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7538 test $ac_cv_type_unsigned_long_long = yes \
7539 && ac_type='unsigned long long' \
7540 || ac_type='unsigned long'
7542 cat >>confdefs.h <<_ACEOF
7543 #define uintmax_t $ac_type
7548 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7554 $as_echo_n "checking for inttypes.h... " >&6; }
7555 if ${gt_cv_header_inttypes_h+:} false; then :
7556 $as_echo_n "(cached) " >&6
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <sys/types.h>
7562 #include <inttypes.h>
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 gt_cv_header_inttypes_h=yes
7574 gt_cv_header_inttypes_h=no
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7580 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7581 if test $gt_cv_header_inttypes_h = yes; then
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_INTTYPES_H 1
7591 if test $gt_cv_header_inttypes_h = yes; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7593 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7594 if ${gt_cv_inttypes_pri_broken+:} false; then :
7595 $as_echo_n "(cached) " >&6
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 #include <inttypes.h>
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 gt_cv_inttypes_pri_broken=no
7616 gt_cv_inttypes_pri_broken=yes
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7622 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7624 if test "$gt_cv_inttypes_pri_broken" = yes; then
7626 cat >>confdefs.h <<_ACEOF
7627 #define PRI_MACROS_BROKEN 1
7633 for ac_header in stdint.h
7635 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7636 if test "x$ac_cv_header_stdint_h" = xyes; then :
7637 cat >>confdefs.h <<_ACEOF
7638 #define HAVE_STDINT_H 1
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7646 $as_echo_n "checking for SIZE_MAX... " >&6; }
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "Found it" >/dev/null 2>&1; then :
7666 if test -z "$result"; then
7667 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7674 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7681 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7688 if test "$fits_in_uint" = 1; then
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7693 extern unsigned long foo;
7703 if ac_fn_c_try_compile "$LINENO"; then :
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 if test -z "$result"; then
7709 if test "$fits_in_uint" = 1; then
7710 result="$res_hi$res_lo"U
7712 result="$res_hi$res_lo"UL
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7719 $as_echo "$result" >&6; }
7720 if test "$result" != yes; then
7722 cat >>confdefs.h <<_ACEOF
7723 #define SIZE_MAX $result
7730 for ac_header in stdint.h
7732 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7733 if test "x$ac_cv_header_stdint_h" = xyes; then :
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_STDINT_H 1
7744 if test "X$prefix" = "XNONE"; then
7745 acl_final_prefix="$ac_default_prefix"
7747 acl_final_prefix="$prefix"
7749 if test "X$exec_prefix" = "XNONE"; then
7750 acl_final_exec_prefix='${prefix}'
7752 acl_final_exec_prefix="$exec_prefix"
7754 acl_save_prefix="$prefix"
7755 prefix="$acl_final_prefix"
7756 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7757 prefix="$acl_save_prefix"
7760 # Check whether --with-gnu-ld was given.
7761 if test "${with_gnu_ld+set}" = set; then :
7762 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7767 # Prepare PATH_SEPARATOR.
7768 # The user is always right.
7769 if test "${PATH_SEPARATOR+set}" != set; then
7770 echo "#! /bin/sh" >conf$$.sh
7771 echo "exit 0" >>conf$$.sh
7773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7781 if test "$GCC" = yes; then
7782 # Check if gcc -print-prog-name=ld gives a path.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7784 $as_echo_n "checking for ld used by GCC... " >&6; }
7787 # gcc leaves a trailing carriage return which upsets mingw
7788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7793 # Accept absolute paths.
7794 [\\/]* | [A-Za-z]:[\\/]*)
7795 re_direlt='/[^/][^/]*/\.\./'
7796 # Canonicalize the path of ld
7797 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7799 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7801 test -z "$LD" && LD="$ac_prog"
7804 # If it fails, then pretend we aren't using GCC.
7808 # If it is relative, then search for the first ld in PATH.
7812 elif test "$with_gnu_ld" = yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7814 $as_echo_n "checking for GNU ld... " >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7817 $as_echo_n "checking for non-GNU ld... " >&6; }
7819 if ${acl_cv_path_LD+:} false; then :
7820 $as_echo_n "(cached) " >&6
7822 if test -z "$LD"; then
7823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7824 for ac_dir in $PATH; do
7825 test -z "$ac_dir" && ac_dir=.
7826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7827 acl_cv_path_LD="$ac_dir/$ac_prog"
7828 # Check to see if the program is GNU ld. I'd rather use --version,
7829 # but apparently some GNU ld's only accept -v.
7830 # Break only if it was the GNU/non-GNU ld that we prefer.
7831 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7832 *GNU* | *'with BFD'*)
7833 test "$with_gnu_ld" != no && break ;;
7835 test "$with_gnu_ld" != yes && break ;;
7841 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7845 LD="$acl_cv_path_LD"
7846 if test -n "$LD"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7848 $as_echo "$LD" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7856 if ${acl_cv_prog_gnu_ld+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7860 case `$LD -v 2>&1 </dev/null` in
7861 *GNU* | *'with BFD'*)
7862 acl_cv_prog_gnu_ld=yes ;;
7864 acl_cv_prog_gnu_ld=no ;;
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7868 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7869 with_gnu_ld=$acl_cv_prog_gnu_ld
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7874 $as_echo_n "checking for shared library run path origin... " >&6; }
7875 if ${acl_cv_rpath+:} false; then :
7876 $as_echo_n "(cached) " >&6
7879 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7880 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7887 $as_echo "$acl_cv_rpath" >&6; }
7889 libext="$acl_cv_libext"
7890 shlibext="$acl_cv_shlibext"
7891 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7892 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7893 hardcode_direct="$acl_cv_hardcode_direct"
7894 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7895 # Check whether --enable-rpath was given.
7896 if test "${enable_rpath+set}" = set; then :
7897 enableval=$enable_rpath; :
7911 acl_save_prefix="$prefix"
7912 prefix="$acl_final_prefix"
7913 acl_save_exec_prefix="$exec_prefix"
7914 exec_prefix="$acl_final_exec_prefix"
7916 eval additional_includedir=\"$includedir\"
7917 eval additional_libdir=\"$libdir\"
7919 exec_prefix="$acl_save_exec_prefix"
7920 prefix="$acl_save_prefix"
7923 # Check whether --with-libiconv-prefix was given.
7924 if test "${with_libiconv_prefix+set}" = set; then :
7925 withval=$with_libiconv_prefix;
7926 if test "X$withval" = "Xno"; then
7929 if test "X$withval" = "X"; then
7931 acl_save_prefix="$prefix"
7932 prefix="$acl_final_prefix"
7933 acl_save_exec_prefix="$exec_prefix"
7934 exec_prefix="$acl_final_exec_prefix"
7936 eval additional_includedir=\"$includedir\"
7937 eval additional_libdir=\"$libdir\"
7939 exec_prefix="$acl_save_exec_prefix"
7940 prefix="$acl_save_prefix"
7943 additional_includedir="$withval/include"
7944 additional_libdir="$withval/lib"
7955 names_already_handled=
7956 names_next_round='iconv '
7957 while test -n "$names_next_round"; do
7958 names_this_round="$names_next_round"
7960 for name in $names_this_round; do
7962 for n in $names_already_handled; do
7963 if test "$n" = "$name"; then
7968 if test -z "$already_handled"; then
7969 names_already_handled="$names_already_handled $name"
7970 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7971 eval value=\"\$HAVE_LIB$uppername\"
7972 if test -n "$value"; then
7973 if test "$value" = yes; then
7974 eval value=\"\$LIB$uppername\"
7975 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7976 eval value=\"\$LTLIB$uppername\"
7977 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7986 if test $use_additional = yes; then
7987 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7988 found_dir="$additional_libdir"
7989 found_so="$additional_libdir/lib$name.$shlibext"
7990 if test -f "$additional_libdir/lib$name.la"; then
7991 found_la="$additional_libdir/lib$name.la"
7994 if test -f "$additional_libdir/lib$name.$libext"; then
7995 found_dir="$additional_libdir"
7996 found_a="$additional_libdir/lib$name.$libext"
7997 if test -f "$additional_libdir/lib$name.la"; then
7998 found_la="$additional_libdir/lib$name.la"
8003 if test "X$found_dir" = "X"; then
8004 for x in $LDFLAGS $LTLIBICONV; do
8006 acl_save_prefix="$prefix"
8007 prefix="$acl_final_prefix"
8008 acl_save_exec_prefix="$exec_prefix"
8009 exec_prefix="$acl_final_exec_prefix"
8011 exec_prefix="$acl_save_exec_prefix"
8012 prefix="$acl_save_prefix"
8016 dir=`echo "X$x" | sed -e 's/^X-L//'`
8017 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8019 found_so="$dir/lib$name.$shlibext"
8020 if test -f "$dir/lib$name.la"; then
8021 found_la="$dir/lib$name.la"
8024 if test -f "$dir/lib$name.$libext"; then
8026 found_a="$dir/lib$name.$libext"
8027 if test -f "$dir/lib$name.la"; then
8028 found_la="$dir/lib$name.la"
8034 if test "X$found_dir" != "X"; then
8039 if test "X$found_dir" != "X"; then
8040 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8041 if test "X$found_so" != "X"; then
8042 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8043 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8046 for x in $ltrpathdirs; do
8047 if test "X$x" = "X$found_dir"; then
8052 if test -z "$haveit"; then
8053 ltrpathdirs="$ltrpathdirs $found_dir"
8055 if test "$hardcode_direct" = yes; then
8056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8058 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8061 for x in $rpathdirs; do
8062 if test "X$x" = "X$found_dir"; then
8067 if test -z "$haveit"; then
8068 rpathdirs="$rpathdirs $found_dir"
8072 for x in $LDFLAGS $LIBICONV; do
8074 acl_save_prefix="$prefix"
8075 prefix="$acl_final_prefix"
8076 acl_save_exec_prefix="$exec_prefix"
8077 exec_prefix="$acl_final_exec_prefix"
8079 exec_prefix="$acl_save_exec_prefix"
8080 prefix="$acl_save_prefix"
8082 if test "X$x" = "X-L$found_dir"; then
8087 if test -z "$haveit"; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8090 if test "$hardcode_minus_L" != no; then
8091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8093 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8099 if test "X$found_a" != "X"; then
8100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8102 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8105 additional_includedir=
8106 case "$found_dir" in
8108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8109 additional_includedir="$basedir/include"
8112 if test "X$additional_includedir" != "X"; then
8113 if test "X$additional_includedir" != "X/usr/include"; then
8115 if test "X$additional_includedir" = "X/usr/local/include"; then
8116 if test -n "$GCC"; then
8118 linux*) haveit=yes;;
8122 if test -z "$haveit"; then
8123 for x in $CPPFLAGS $INCICONV; do
8125 acl_save_prefix="$prefix"
8126 prefix="$acl_final_prefix"
8127 acl_save_exec_prefix="$exec_prefix"
8128 exec_prefix="$acl_final_exec_prefix"
8130 exec_prefix="$acl_save_exec_prefix"
8131 prefix="$acl_save_prefix"
8133 if test "X$x" = "X-I$additional_includedir"; then
8138 if test -z "$haveit"; then
8139 if test -d "$additional_includedir"; then
8140 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8146 if test -n "$found_la"; then
8147 save_libdir="$libdir"
8149 */* | *\\*) . "$found_la" ;;
8150 *) . "./$found_la" ;;
8152 libdir="$save_libdir"
8153 for dep in $dependency_libs; do
8156 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8157 if test "X$additional_libdir" != "X/usr/lib"; then
8159 if test "X$additional_libdir" = "X/usr/local/lib"; then
8160 if test -n "$GCC"; then
8162 linux*) haveit=yes;;
8166 if test -z "$haveit"; then
8168 for x in $LDFLAGS $LIBICONV; do
8170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8175 exec_prefix="$acl_save_exec_prefix"
8176 prefix="$acl_save_prefix"
8178 if test "X$x" = "X-L$additional_libdir"; then
8183 if test -z "$haveit"; then
8184 if test -d "$additional_libdir"; then
8185 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8189 for x in $LDFLAGS $LTLIBICONV; do
8191 acl_save_prefix="$prefix"
8192 prefix="$acl_final_prefix"
8193 acl_save_exec_prefix="$exec_prefix"
8194 exec_prefix="$acl_final_exec_prefix"
8196 exec_prefix="$acl_save_exec_prefix"
8197 prefix="$acl_save_prefix"
8199 if test "X$x" = "X-L$additional_libdir"; then
8204 if test -z "$haveit"; then
8205 if test -d "$additional_libdir"; then
8206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8213 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8214 if test "$enable_rpath" != no; then
8216 for x in $rpathdirs; do
8217 if test "X$x" = "X$dir"; then
8222 if test -z "$haveit"; then
8223 rpathdirs="$rpathdirs $dir"
8226 for x in $ltrpathdirs; do
8227 if test "X$x" = "X$dir"; then
8232 if test -z "$haveit"; then
8233 ltrpathdirs="$ltrpathdirs $dir"
8238 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8244 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8251 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8258 if test "X$rpathdirs" != "X"; then
8259 if test -n "$hardcode_libdir_separator"; then
8261 for found_dir in $rpathdirs; do
8262 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8264 acl_save_libdir="$libdir"
8266 eval flag=\"$hardcode_libdir_flag_spec\"
8267 libdir="$acl_save_libdir"
8268 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8270 for found_dir in $rpathdirs; do
8271 acl_save_libdir="$libdir"
8273 eval flag=\"$hardcode_libdir_flag_spec\"
8274 libdir="$acl_save_libdir"
8275 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8279 if test "X$ltrpathdirs" != "X"; then
8280 for found_dir in $ltrpathdirs; do
8281 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8292 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8293 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8297 $as_echo "#define ptrdiff_t long" >>confdefs.h
8302 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8303 stdlib.h string.h unistd.h sys/param.h
8305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8308 cat >>confdefs.h <<_ACEOF
8309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8316 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8317 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8318 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8322 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8323 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8334 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8335 if ${ac_cv_have_decl__snprintf+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8346 char *p = (char *) _snprintf;
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 ac_cv_have_decl__snprintf=yes
8356 ac_cv_have_decl__snprintf=no
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8361 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8362 if test $ac_cv_have_decl__snprintf = yes; then
8368 cat >>confdefs.h <<_ACEOF
8369 #define HAVE_DECL__SNPRINTF $gt_value
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8375 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8376 if ${ac_cv_have_decl__snwprintf+:} false; then :
8377 $as_echo_n "(cached) " >&6
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8387 char *p = (char *) _snwprintf;
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 ac_cv_have_decl__snwprintf=yes
8397 ac_cv_have_decl__snwprintf=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8402 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8403 if test $ac_cv_have_decl__snwprintf = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DECL__SNWPRINTF $gt_value
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8417 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8418 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8419 $as_echo_n "(cached) " >&6
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8428 #ifndef feof_unlocked
8429 char *p = (char *) feof_unlocked;
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 ac_cv_have_decl_feof_unlocked=yes
8439 ac_cv_have_decl_feof_unlocked=no
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8444 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8445 if test $ac_cv_have_decl_feof_unlocked = yes; then
8451 cat >>confdefs.h <<_ACEOF
8452 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8458 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8459 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8469 #ifndef fgets_unlocked
8470 char *p = (char *) fgets_unlocked;
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 ac_cv_have_decl_fgets_unlocked=yes
8480 ac_cv_have_decl_fgets_unlocked=no
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8485 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8486 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8499 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8500 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8501 $as_echo_n "(cached) " >&6
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8510 #ifndef getc_unlocked
8511 char *p = (char *) getc_unlocked;
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 ac_cv_have_decl_getc_unlocked=yes
8521 ac_cv_have_decl_getc_unlocked=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8526 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8527 if test $ac_cv_have_decl_getc_unlocked = yes; then
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8539 case $gt_cv_func_printf_posix in
8540 *yes) HAVE_POSIX_PRINTF=1 ;;
8541 *) HAVE_POSIX_PRINTF=0 ;;
8544 if test "$ac_cv_func_asprintf" = yes; then
8550 if test "$ac_cv_func_snprintf" = yes; then
8556 if test "$ac_cv_func_wprintf" = yes; then
8568 am_save_CPPFLAGS="$CPPFLAGS"
8570 for element in $INCICONV; do
8572 for x in $CPPFLAGS; do
8574 acl_save_prefix="$prefix"
8575 prefix="$acl_final_prefix"
8576 acl_save_exec_prefix="$exec_prefix"
8577 exec_prefix="$acl_final_exec_prefix"
8579 exec_prefix="$acl_save_exec_prefix"
8580 prefix="$acl_save_prefix"
8582 if test "X$x" = "X$element"; then
8587 if test -z "$haveit"; then
8588 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8594 $as_echo_n "checking for iconv... " >&6; }
8595 if ${am_cv_func_iconv+:} false; then :
8596 $as_echo_n "(cached) " >&6
8599 am_cv_func_iconv="no, consider installing GNU libiconv"
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8608 iconv_t cd = iconv_open("","");
8609 iconv(cd,NULL,NULL,NULL,NULL);
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 am_cv_func_iconv=yes
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 if test "$am_cv_func_iconv" != yes; then
8621 am_save_LIBS="$LIBS"
8622 LIBS="$LIBS $LIBICONV"
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8630 iconv_t cd = iconv_open("","");
8631 iconv(cd,NULL,NULL,NULL,NULL);
8637 if ac_fn_c_try_link "$LINENO"; then :
8639 am_cv_func_iconv=yes
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 LIBS="$am_save_LIBS"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8648 $as_echo "$am_cv_func_iconv" >&6; }
8649 if test "$am_cv_func_iconv" = yes; then
8651 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8654 if test "$am_cv_lib_iconv" = yes; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8656 $as_echo_n "checking how to link with libiconv... " >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8658 $as_echo "$LIBICONV" >&6; }
8660 CPPFLAGS="$am_save_CPPFLAGS"
8667 if test "$am_cv_func_iconv" = yes; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8669 $as_echo_n "checking for iconv declaration... " >&6; }
8670 if ${am_cv_proto_iconv+:} false; then :
8671 $as_echo_n "(cached) " >&6
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8683 #if defined(__STDC__) || defined(__cplusplus)
8684 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8697 if ac_fn_c_try_compile "$LINENO"; then :
8698 am_cv_proto_iconv_arg1=""
8700 am_cv_proto_iconv_arg1="const"
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 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);"
8706 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8708 }$am_cv_proto_iconv" >&5
8710 }$am_cv_proto_iconv" >&6; }
8712 cat >>confdefs.h <<_ACEOF
8713 #define ICONV_CONST $am_cv_proto_iconv_arg1
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8720 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8721 if ${am_cv_langinfo_codeset+:} false; then :
8722 $as_echo_n "(cached) " >&6
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <langinfo.h>
8730 char* cs = nl_langinfo(CODESET);
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 am_cv_langinfo_codeset=yes
8738 am_cv_langinfo_codeset=no
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8745 $as_echo "$am_cv_langinfo_codeset" >&6; }
8746 if test $am_cv_langinfo_codeset = yes; then
8748 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8752 if test $ac_cv_header_locale_h = yes; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8755 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8756 if ${am_cv_val_LC_MESSAGES+:} false; then :
8757 $as_echo_n "(cached) " >&6
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8770 if ac_fn_c_try_link "$LINENO"; then :
8771 am_cv_val_LC_MESSAGES=yes
8773 am_cv_val_LC_MESSAGES=no
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8779 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8780 if test $am_cv_val_LC_MESSAGES = yes; then
8782 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8788 for ac_prog in bison
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_prog_INTLBISON+:} false; then :
8795 $as_echo_n "(cached) " >&6
8797 if test -n "$INTLBISON"; then
8798 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_prog_INTLBISON="$ac_prog"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 INTLBISON=$ac_cv_prog_INTLBISON
8818 if test -n "$INTLBISON"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8820 $as_echo "$INTLBISON" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8827 test -n "$INTLBISON" && break
8830 if test -z "$INTLBISON"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8834 $as_echo_n "checking version of bison... " >&6; }
8835 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8836 case $ac_prog_version in
8837 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8838 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8839 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8840 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8843 $as_echo "$ac_prog_version" >&6; }
8845 if test $ac_verc_fail = yes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8865 $as_echo_n "checking whether NLS is requested... " >&6; }
8866 # Check whether --enable-nls was given.
8867 if test "${enable_nls+set}" = set; then :
8868 enableval=$enable_nls; USE_NLS=$enableval
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8874 $as_echo "$USE_NLS" >&6; }
8879 BUILD_INCLUDED_LIBINTL=no
8880 USE_INCLUDED_LIBINTL=no
8886 if test "$USE_NLS" = "yes"; then
8887 gt_use_preinstalled_gnugettext=no
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8890 $as_echo_n "checking whether included gettext is requested... " >&6; }
8892 # Check whether --with-included-gettext was given.
8893 if test "${with_included_gettext+set}" = set; then :
8894 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8896 nls_cv_force_use_gnu_gettext=no
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8900 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8902 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8903 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8911 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8912 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <libintl.h>
8918 extern int _nl_msg_cat_cntr;
8919 extern int *_nl_domain_bindings;
8923 bindtextdomain ("", "");
8924 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 gt_cv_func_gnugettext1_libc=yes
8932 gt_cv_func_gnugettext1_libc=no
8934 rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8938 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8940 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8946 acl_save_prefix="$prefix"
8947 prefix="$acl_final_prefix"
8948 acl_save_exec_prefix="$exec_prefix"
8949 exec_prefix="$acl_final_exec_prefix"
8951 eval additional_includedir=\"$includedir\"
8952 eval additional_libdir=\"$libdir\"
8954 exec_prefix="$acl_save_exec_prefix"
8955 prefix="$acl_save_prefix"
8958 # Check whether --with-libintl-prefix was given.
8959 if test "${with_libintl_prefix+set}" = set; then :
8960 withval=$with_libintl_prefix;
8961 if test "X$withval" = "Xno"; then
8964 if test "X$withval" = "X"; then
8966 acl_save_prefix="$prefix"
8967 prefix="$acl_final_prefix"
8968 acl_save_exec_prefix="$exec_prefix"
8969 exec_prefix="$acl_final_exec_prefix"
8971 eval additional_includedir=\"$includedir\"
8972 eval additional_libdir=\"$libdir\"
8974 exec_prefix="$acl_save_exec_prefix"
8975 prefix="$acl_save_prefix"
8978 additional_includedir="$withval/include"
8979 additional_libdir="$withval/lib"
8990 names_already_handled=
8991 names_next_round='intl '
8992 while test -n "$names_next_round"; do
8993 names_this_round="$names_next_round"
8995 for name in $names_this_round; do
8997 for n in $names_already_handled; do
8998 if test "$n" = "$name"; then
9003 if test -z "$already_handled"; then
9004 names_already_handled="$names_already_handled $name"
9005 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9006 eval value=\"\$HAVE_LIB$uppername\"
9007 if test -n "$value"; then
9008 if test "$value" = yes; then
9009 eval value=\"\$LIB$uppername\"
9010 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9011 eval value=\"\$LTLIB$uppername\"
9012 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9021 if test $use_additional = yes; then
9022 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9023 found_dir="$additional_libdir"
9024 found_so="$additional_libdir/lib$name.$shlibext"
9025 if test -f "$additional_libdir/lib$name.la"; then
9026 found_la="$additional_libdir/lib$name.la"
9029 if test -f "$additional_libdir/lib$name.$libext"; then
9030 found_dir="$additional_libdir"
9031 found_a="$additional_libdir/lib$name.$libext"
9032 if test -f "$additional_libdir/lib$name.la"; then
9033 found_la="$additional_libdir/lib$name.la"
9038 if test "X$found_dir" = "X"; then
9039 for x in $LDFLAGS $LTLIBINTL; do
9041 acl_save_prefix="$prefix"
9042 prefix="$acl_final_prefix"
9043 acl_save_exec_prefix="$exec_prefix"
9044 exec_prefix="$acl_final_exec_prefix"
9046 exec_prefix="$acl_save_exec_prefix"
9047 prefix="$acl_save_prefix"
9051 dir=`echo "X$x" | sed -e 's/^X-L//'`
9052 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9054 found_so="$dir/lib$name.$shlibext"
9055 if test -f "$dir/lib$name.la"; then
9056 found_la="$dir/lib$name.la"
9059 if test -f "$dir/lib$name.$libext"; then
9061 found_a="$dir/lib$name.$libext"
9062 if test -f "$dir/lib$name.la"; then
9063 found_la="$dir/lib$name.la"
9069 if test "X$found_dir" != "X"; then
9074 if test "X$found_dir" != "X"; then
9075 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9076 if test "X$found_so" != "X"; then
9077 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9078 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9081 for x in $ltrpathdirs; do
9082 if test "X$x" = "X$found_dir"; then
9087 if test -z "$haveit"; then
9088 ltrpathdirs="$ltrpathdirs $found_dir"
9090 if test "$hardcode_direct" = yes; then
9091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9093 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9096 for x in $rpathdirs; do
9097 if test "X$x" = "X$found_dir"; then
9102 if test -z "$haveit"; then
9103 rpathdirs="$rpathdirs $found_dir"
9107 for x in $LDFLAGS $LIBINTL; do
9109 acl_save_prefix="$prefix"
9110 prefix="$acl_final_prefix"
9111 acl_save_exec_prefix="$exec_prefix"
9112 exec_prefix="$acl_final_exec_prefix"
9114 exec_prefix="$acl_save_exec_prefix"
9115 prefix="$acl_save_prefix"
9117 if test "X$x" = "X-L$found_dir"; then
9122 if test -z "$haveit"; then
9123 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9125 if test "$hardcode_minus_L" != no; then
9126 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9128 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9134 if test "X$found_a" != "X"; then
9135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9137 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9140 additional_includedir=
9141 case "$found_dir" in
9143 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9144 additional_includedir="$basedir/include"
9147 if test "X$additional_includedir" != "X"; then
9148 if test "X$additional_includedir" != "X/usr/include"; then
9150 if test "X$additional_includedir" = "X/usr/local/include"; then
9151 if test -n "$GCC"; then
9153 linux*) haveit=yes;;
9157 if test -z "$haveit"; then
9158 for x in $CPPFLAGS $INCINTL; do
9160 acl_save_prefix="$prefix"
9161 prefix="$acl_final_prefix"
9162 acl_save_exec_prefix="$exec_prefix"
9163 exec_prefix="$acl_final_exec_prefix"
9165 exec_prefix="$acl_save_exec_prefix"
9166 prefix="$acl_save_prefix"
9168 if test "X$x" = "X-I$additional_includedir"; then
9173 if test -z "$haveit"; then
9174 if test -d "$additional_includedir"; then
9175 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9181 if test -n "$found_la"; then
9182 save_libdir="$libdir"
9184 */* | *\\*) . "$found_la" ;;
9185 *) . "./$found_la" ;;
9187 libdir="$save_libdir"
9188 for dep in $dependency_libs; do
9191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9192 if test "X$additional_libdir" != "X/usr/lib"; then
9194 if test "X$additional_libdir" = "X/usr/local/lib"; then
9195 if test -n "$GCC"; then
9197 linux*) haveit=yes;;
9201 if test -z "$haveit"; then
9203 for x in $LDFLAGS $LIBINTL; do
9205 acl_save_prefix="$prefix"
9206 prefix="$acl_final_prefix"
9207 acl_save_exec_prefix="$exec_prefix"
9208 exec_prefix="$acl_final_exec_prefix"
9210 exec_prefix="$acl_save_exec_prefix"
9211 prefix="$acl_save_prefix"
9213 if test "X$x" = "X-L$additional_libdir"; then
9218 if test -z "$haveit"; then
9219 if test -d "$additional_libdir"; then
9220 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9224 for x in $LDFLAGS $LTLIBINTL; do
9226 acl_save_prefix="$prefix"
9227 prefix="$acl_final_prefix"
9228 acl_save_exec_prefix="$exec_prefix"
9229 exec_prefix="$acl_final_exec_prefix"
9231 exec_prefix="$acl_save_exec_prefix"
9232 prefix="$acl_save_prefix"
9234 if test "X$x" = "X-L$additional_libdir"; then
9239 if test -z "$haveit"; then
9240 if test -d "$additional_libdir"; then
9241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9248 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9249 if test "$enable_rpath" != no; then
9251 for x in $rpathdirs; do
9252 if test "X$x" = "X$dir"; then
9257 if test -z "$haveit"; then
9258 rpathdirs="$rpathdirs $dir"
9261 for x in $ltrpathdirs; do
9262 if test "X$x" = "X$dir"; then
9267 if test -z "$haveit"; then
9268 ltrpathdirs="$ltrpathdirs $dir"
9273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9279 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9286 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9293 if test "X$rpathdirs" != "X"; then
9294 if test -n "$hardcode_libdir_separator"; then
9296 for found_dir in $rpathdirs; do
9297 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9299 acl_save_libdir="$libdir"
9301 eval flag=\"$hardcode_libdir_flag_spec\"
9302 libdir="$acl_save_libdir"
9303 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9305 for found_dir in $rpathdirs; do
9306 acl_save_libdir="$libdir"
9308 eval flag=\"$hardcode_libdir_flag_spec\"
9309 libdir="$acl_save_libdir"
9310 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9314 if test "X$ltrpathdirs" != "X"; then
9315 for found_dir in $ltrpathdirs; do
9316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9321 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9322 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 gt_save_CPPFLAGS="$CPPFLAGS"
9326 CPPFLAGS="$CPPFLAGS $INCINTL"
9327 gt_save_LIBS="$LIBS"
9328 LIBS="$LIBS $LIBINTL"
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 #include <libintl.h>
9332 extern int _nl_msg_cat_cntr;
9337 const char *_nl_expand_alias ();
9341 bindtextdomain ("", "");
9342 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9347 if ac_fn_c_try_link "$LINENO"; then :
9348 gt_cv_func_gnugettext1_libintl=yes
9350 gt_cv_func_gnugettext1_libintl=no
9352 rm -f core conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9355 LIBS="$LIBS $LIBICONV"
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #include <libintl.h>
9359 extern int _nl_msg_cat_cntr;
9364 const char *_nl_expand_alias ();
9368 bindtextdomain ("", "");
9369 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 LIBINTL="$LIBINTL $LIBICONV"
9376 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9377 gt_cv_func_gnugettext1_libintl=yes
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9383 CPPFLAGS="$gt_save_CPPFLAGS"
9384 LIBS="$gt_save_LIBS"
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9387 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9390 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9391 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9392 && test "$PACKAGE" != gettext-runtime \
9393 && test "$PACKAGE" != gettext-tools; }; then
9394 gt_use_preinstalled_gnugettext=yes
9402 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9403 nls_cv_use_gnu_gettext=yes
9407 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9408 BUILD_INCLUDED_LIBINTL=yes
9409 USE_INCLUDED_LIBINTL=yes
9410 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9411 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9412 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9415 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9416 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9421 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9422 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9424 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9432 $as_echo_n "checking whether to use NLS... " >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9434 $as_echo "$USE_NLS" >&6; }
9435 if test "$USE_NLS" = "yes"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9437 $as_echo_n "checking where the gettext function comes from... " >&6; }
9438 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9439 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9440 gt_source="external libintl"
9445 gt_source="included intl directory"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9448 $as_echo "$gt_source" >&6; }
9451 if test "$USE_NLS" = "yes"; then
9453 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9454 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9456 $as_echo_n "checking how to link with libintl... " >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9458 $as_echo "$LIBINTL" >&6; }
9460 for element in $INCINTL; do
9462 for x in $CPPFLAGS; do
9464 acl_save_prefix="$prefix"
9465 prefix="$acl_final_prefix"
9466 acl_save_exec_prefix="$exec_prefix"
9467 exec_prefix="$acl_final_exec_prefix"
9469 exec_prefix="$acl_save_exec_prefix"
9470 prefix="$acl_save_prefix"
9472 if test "X$x" = "X$element"; then
9477 if test -z "$haveit"; then
9478 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9485 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9488 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9496 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9497 BUILD_INCLUDED_LIBINTL=yes
9505 nls_cv_header_libgt=
9516 if test "$USE_INCLUDED_LIBINTL" = yes; then
9517 INTLOBJS="\$(GETTOBJS)"
9521 INTL_LIBTOOL_SUFFIX_PREFIX=
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9537 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9538 $as_echo_n "(cached) " >&6
9540 cat >conftest.make <<\_ACEOF
9543 @echo '@@@%%%=$(MAKE)=@@@%%%'
9545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9548 eval ac_cv_prog_make_${ac_make}_set=yes;;
9550 eval ac_cv_prog_make_${ac_make}_set=no;;
9554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9556 $as_echo "yes" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561 SET_MAKE="MAKE=${MAKE-make}"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9565 $as_echo_n "checking for GNU make... " >&6; }
9566 if ${_cv_gnu_make_command+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 _cv_gnu_make_command='' ;
9570 for a in "$MAKE" make gmake gnumake ; do
9571 if test -z "$a" ; then continue ; fi ;
9572 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9573 _cv_gnu_make_command=$a ;
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9580 $as_echo "$_cv_gnu_make_command" >&6; } ;
9581 if test "x$_cv_gnu_make_command" != "x" ; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9588 $as_echo "\"Not found\"" >&6; };
9593 # Extract the first word of "ln", so it can be a program name with args.
9594 set dummy ln; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_LN+:} false; then :
9598 $as_echo_n "(cached) " >&6
9602 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9625 if test -n "$LN"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9627 $as_echo "$LN" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9635 $as_echo_n "checking whether ln -s works... " >&6; }
9637 if test "$LN_S" = "ln -s"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9639 $as_echo "yes" >&6; }
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9642 $as_echo "no, using $LN_S" >&6; }
9645 # Extract the first word of "mv", so it can be a program name with args.
9646 set dummy mv; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_MV+:} false; then :
9650 $as_echo_n "(cached) " >&6
9654 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9677 if test -n "$MV"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9679 $as_echo "$MV" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9686 # Extract the first word of "cp", so it can be a program name with args.
9687 set dummy cp; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if ${ac_cv_path_CP+:} false; then :
9691 $as_echo_n "(cached) " >&6
9695 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9718 if test -n "$CP"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9720 $as_echo "$CP" >&6; }
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9727 # Extract the first word of "rm", so it can be a program name with args.
9728 set dummy rm; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_RM+:} false; then :
9732 $as_echo_n "(cached) " >&6
9736 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9759 if test -n "$RM"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9761 $as_echo "$RM" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9768 # Extract the first word of "chmod", so it can be a program name with args.
9769 set dummy chmod; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_path_CHMOD+:} false; then :
9773 $as_echo_n "(cached) " >&6
9777 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9799 CHMOD=$ac_cv_path_CHMOD
9800 if test -n "$CHMOD"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9802 $as_echo "$CHMOD" >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9809 for ac_prog in gawk mawk nawk awk
9811 # Extract the first word of "$ac_prog", so it can be a program name with args.
9812 set dummy $ac_prog; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_AWK+:} false; then :
9816 $as_echo_n "(cached) " >&6
9818 if test -n "$AWK"; then
9819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 ac_cv_prog_AWK="$ac_prog"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 if test -n "$AWK"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9841 $as_echo "$AWK" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9848 test -n "$AWK" && break
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9852 $as_echo_n "checking for egrep... " >&6; }
9853 if ${ac_cv_path_EGREP+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9857 then ac_cv_path_EGREP="$GREP -E"
9859 if test -z "$EGREP"; then
9860 ac_path_EGREP_found=false
9861 # Loop through the user's path and test for each of PROGNAME-LIST
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9866 test -z "$as_dir" && as_dir=.
9867 for ac_prog in egrep; do
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9870 as_fn_executable_p "$ac_path_EGREP" || continue
9871 # Check for GNU ac_path_EGREP and select it if it is found.
9872 # Check for GNU $ac_path_EGREP
9873 case `"$ac_path_EGREP" --version 2>&1` in
9875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9878 $as_echo_n 0123456789 >"conftest.in"
9881 cat "conftest.in" "conftest.in" >"conftest.tmp"
9882 mv "conftest.tmp" "conftest.in"
9883 cp "conftest.in" "conftest.nl"
9884 $as_echo 'EGREP' >> "conftest.nl"
9885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9887 as_fn_arith $ac_count + 1 && ac_count=$as_val
9888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9889 # Best one so far, save it but keep looking for a better one
9890 ac_cv_path_EGREP="$ac_path_EGREP"
9891 ac_path_EGREP_max=$ac_count
9893 # 10*(2^10) chars as input seems more than enough
9894 test $ac_count -gt 10 && break
9896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9899 $ac_path_EGREP_found && break 3
9904 if test -z "$ac_cv_path_EGREP"; then
9905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9908 ac_cv_path_EGREP=$EGREP
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9914 $as_echo "$ac_cv_path_EGREP" >&6; }
9915 EGREP="$ac_cv_path_EGREP"
9918 # Extract the first word of "sed", so it can be a program name with args.
9919 set dummy sed; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_path_SED+:} false; then :
9923 $as_echo_n "(cached) " >&6
9927 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9950 if test -n "$SED"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9952 $as_echo "$SED" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9959 # Extract the first word of "perl", so it can be a program name with args.
9960 set dummy perl; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_path_PERL+:} false; then :
9964 $as_echo_n "(cached) " >&6
9968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9990 PERL=$ac_cv_path_PERL
9991 if test -n "$PERL"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9993 $as_echo "$PERL" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10000 # Extract the first word of "ldconfig", so it can be a program name with args.
10001 set dummy ldconfig; ac_word=$2
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 $as_echo_n "checking for $ac_word... " >&6; }
10004 if ${ac_cv_path_LDCONFIG+:} false; then :
10005 $as_echo_n "(cached) " >&6
10009 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10016 test -z "$as_dir" && as_dir=.
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10019 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10031 LDCONFIG=$ac_cv_path_LDCONFIG
10032 if test -n "$LDCONFIG"; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10034 $as_echo "$LDCONFIG" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10041 if test -n "$ac_tool_prefix"; then
10042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10043 set dummy ${ac_tool_prefix}ar; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_prog_AR+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 if test -n "$AR"; then
10050 ac_cv_prog_AR="$AR" # Let the user override the test.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_prog_AR="${ac_tool_prefix}ar"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 if test -n "$AR"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10072 $as_echo "$AR" >&6; }
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10080 if test -z "$ac_cv_prog_AR"; then
10082 # Extract the first word of "ar", so it can be a program name with args.
10083 set dummy ar; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10087 $as_echo_n "(cached) " >&6
10089 if test -n "$ac_ct_AR"; then
10090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_prog_ac_ct_AR="ar"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10110 if test -n "$ac_ct_AR"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10112 $as_echo "$ac_ct_AR" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10118 if test "x$ac_ct_AR" = x; then
10121 case $cross_compiling:$ac_tool_warned in
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10125 ac_tool_warned=yes ;;
10130 AR="$ac_cv_prog_AR"
10133 if test -n "$ac_tool_prefix"; then
10134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_prog_RANLIB+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 if test -n "$RANLIB"; then
10142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 RANLIB=$ac_cv_prog_RANLIB
10162 if test -n "$RANLIB"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10164 $as_echo "$RANLIB" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10172 if test -z "$ac_cv_prog_RANLIB"; then
10173 ac_ct_RANLIB=$RANLIB
10174 # Extract the first word of "ranlib", so it can be a program name with args.
10175 set dummy ranlib; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10179 $as_echo_n "(cached) " >&6
10181 if test -n "$ac_ct_RANLIB"; then
10182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_ac_ct_RANLIB="ranlib"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10202 if test -n "$ac_ct_RANLIB"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10204 $as_echo "$ac_ct_RANLIB" >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10210 if test "x$ac_ct_RANLIB" = x; then
10213 case $cross_compiling:$ac_tool_warned in
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10217 ac_tool_warned=yes ;;
10219 RANLIB=$ac_ct_RANLIB
10222 RANLIB="$ac_cv_prog_RANLIB"
10225 if test -n "$ac_tool_prefix"; then
10226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10227 set dummy ${ac_tool_prefix}strip; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_prog_STRIP+:} false; then :
10231 $as_echo_n "(cached) " >&6
10233 if test -n "$STRIP"; then
10234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 STRIP=$ac_cv_prog_STRIP
10254 if test -n "$STRIP"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10256 $as_echo "$STRIP" >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10264 if test -z "$ac_cv_prog_STRIP"; then
10266 # Extract the first word of "strip", so it can be a program name with args.
10267 set dummy strip; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10271 $as_echo_n "(cached) " >&6
10273 if test -n "$ac_ct_STRIP"; then
10274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_ac_ct_STRIP="strip"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10294 if test -n "$ac_ct_STRIP"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10296 $as_echo "$ac_ct_STRIP" >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10302 if test "x$ac_ct_STRIP" = x; then
10305 case $cross_compiling:$ac_tool_warned in
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10309 ac_tool_warned=yes ;;
10314 STRIP="$ac_cv_prog_STRIP"
10317 # Extract the first word of "makeinfo", so it can be a program name with args.
10318 set dummy makeinfo; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_prog_MAKEINFO+:} false; then :
10322 $as_echo_n "(cached) " >&6
10324 if test -n "$MAKEINFO"; then
10325 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10334 ac_cv_prog_MAKEINFO="makeinfo"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 MAKEINFO=$ac_cv_prog_MAKEINFO
10345 if test -n "$MAKEINFO"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10347 $as_echo "$MAKEINFO" >&6; }
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10354 if test "_$MAKEINFO" = "_"; then
10355 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10357 case "$MAKEINFO" in
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10360 *** Makeinfo is missing. Info documentation will not be built." >&5
10361 $as_echo "$as_me: WARNING:
10362 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10370 # See if we need a separate native compiler.
10371 if test $cross_compiling = no; then
10375 for ac_prog in gcc cc
10377 # Extract the first word of "$ac_prog", so it can be a program name with args.
10378 set dummy $ac_prog; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_BUILD_CC+:} false; then :
10382 $as_echo_n "(cached) " >&6
10384 if test -n "$BUILD_CC"; then
10385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_BUILD_CC="$ac_prog"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 BUILD_CC=$ac_cv_prog_BUILD_CC
10405 if test -n "$BUILD_CC"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10407 $as_echo "$BUILD_CC" >&6; }
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10414 test -n "$BUILD_CC" && break
10418 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423 cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10431 for ac_header in sys/disk.h sys/mount.h
10433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10435 #if HAVE_SYS_QUEUE_H
10436 #include <sys/queue.h>
10440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10441 cat >>confdefs.h <<_ACEOF
10442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10449 for ac_header in net/if.h
10451 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10452 #if HAVE_SYS_TYPES_H
10453 #include <sys/types.h>
10455 #if HAVE_SYS_SOCKET
10456 #include <sys/socket.h>
10460 if test "x$ac_cv_header_net_if_h" = xyes; then :
10461 cat >>confdefs.h <<_ACEOF
10462 #define HAVE_NET_IF_H 1
10469 for ac_func in vprintf
10471 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10472 if test "x$ac_cv_func_vprintf" = xyes; then :
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_VPRINTF 1
10477 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10478 if test "x$ac_cv_func__doprnt" = xyes; then :
10480 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10488 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10490 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10492 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10496 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10498 if test "x$ac_cv_type_ssize_t" = xyes; then :
10500 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10504 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10506 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10508 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10512 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10513 #define _LARGEFILE64_SOURCE
10514 #include <unistd.h>
10516 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10518 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10522 # The cast to long int works around a bug in the HP C Compiler
10523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10525 # This bug is HP SR number 8606223364.
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10527 $as_echo_n "checking size of short... " >&6; }
10528 if ${ac_cv_sizeof_short+:} false; then :
10529 $as_echo_n "(cached) " >&6
10531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10534 if test "$ac_cv_type_short" = yes; then
10535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10537 as_fn_error 77 "cannot compute sizeof (short)
10538 See \`config.log' for more details" "$LINENO" 5; }
10540 ac_cv_sizeof_short=0
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10546 $as_echo "$ac_cv_sizeof_short" >&6; }
10550 cat >>confdefs.h <<_ACEOF
10551 #define SIZEOF_SHORT $ac_cv_sizeof_short
10555 # The cast to long int works around a bug in the HP C Compiler
10556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10558 # This bug is HP SR number 8606223364.
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10560 $as_echo_n "checking size of int... " >&6; }
10561 if ${ac_cv_sizeof_int+:} false; then :
10562 $as_echo_n "(cached) " >&6
10564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10567 if test "$ac_cv_type_int" = yes; then
10568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10570 as_fn_error 77 "cannot compute sizeof (int)
10571 See \`config.log' for more details" "$LINENO" 5; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10579 $as_echo "$ac_cv_sizeof_int" >&6; }
10583 cat >>confdefs.h <<_ACEOF
10584 #define SIZEOF_INT $ac_cv_sizeof_int
10588 # The cast to long int works around a bug in the HP C Compiler
10589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10591 # This bug is HP SR number 8606223364.
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10593 $as_echo_n "checking size of long... " >&6; }
10594 if ${ac_cv_sizeof_long+:} false; then :
10595 $as_echo_n "(cached) " >&6
10597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10600 if test "$ac_cv_type_long" = yes; then
10601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10603 as_fn_error 77 "cannot compute sizeof (long)
10604 See \`config.log' for more details" "$LINENO" 5; }
10606 ac_cv_sizeof_long=0
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10612 $as_echo "$ac_cv_sizeof_long" >&6; }
10616 cat >>confdefs.h <<_ACEOF
10617 #define SIZEOF_LONG $ac_cv_sizeof_long
10621 # The cast to long int works around a bug in the HP C Compiler
10622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10624 # This bug is HP SR number 8606223364.
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10626 $as_echo_n "checking size of long long... " >&6; }
10627 if ${ac_cv_sizeof_long_long+:} false; then :
10628 $as_echo_n "(cached) " >&6
10630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10633 if test "$ac_cv_type_long_long" = yes; then
10634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10636 as_fn_error 77 "cannot compute sizeof (long long)
10637 See \`config.log' for more details" "$LINENO" 5; }
10639 ac_cv_sizeof_long_long=0
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10649 cat >>confdefs.h <<_ACEOF
10650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10654 SIZEOF_SHORT=$ac_cv_sizeof_short
10655 SIZEOF_INT=$ac_cv_sizeof_int
10656 SIZEOF_LONG=$ac_cv_sizeof_long
10657 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10663 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10664 if ${ac_cv_c_bigendian+:} false; then :
10665 $as_echo_n "(cached) " >&6
10667 ac_cv_c_bigendian=unknown
10668 # See if we're dealing with a universal compiler.
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #ifndef __APPLE_CC__
10672 not a universal capable compiler
10677 if ac_fn_c_try_compile "$LINENO"; then :
10679 # Check for potential -arch flags. It is not universal unless
10680 # there are at least two -arch flags with different values.
10683 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10684 if test -n "$ac_prev"; then
10686 i?86 | x86_64 | ppc | ppc64)
10687 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10690 ac_cv_c_bigendian=universal
10696 elif test "x$ac_word" = "x-arch"; then
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 if test $ac_cv_c_bigendian = unknown; then
10703 # See if sys/param.h defines the BYTE_ORDER macro.
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706 #include <sys/types.h>
10707 #include <sys/param.h>
10712 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10713 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10715 bogus endian macros
10722 if ac_fn_c_try_compile "$LINENO"; then :
10723 # It does; now see whether it defined to BIG_ENDIAN or not.
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <sys/types.h>
10727 #include <sys/param.h>
10732 #if BYTE_ORDER != BIG_ENDIAN
10740 if ac_fn_c_try_compile "$LINENO"; then :
10741 ac_cv_c_bigendian=yes
10743 ac_cv_c_bigendian=no
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 if test $ac_cv_c_bigendian = unknown; then
10750 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #include <limits.h>
10758 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10759 bogus endian macros
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767 # It does; now see whether it defined to _BIG_ENDIAN or not.
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 #include <limits.h>
10775 #ifndef _BIG_ENDIAN
10783 if ac_fn_c_try_compile "$LINENO"; then :
10784 ac_cv_c_bigendian=yes
10786 ac_cv_c_bigendian=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 if test $ac_cv_c_bigendian = unknown; then
10793 # Compile a test program.
10794 if test "$cross_compiling" = yes; then :
10795 # Try to guess by grepping values from an object file.
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 short int ascii_mm[] =
10799 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10800 short int ascii_ii[] =
10801 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10802 int use_ascii (int i) {
10803 return ascii_mm[i] + ascii_ii[i];
10805 short int ebcdic_ii[] =
10806 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10807 short int ebcdic_mm[] =
10808 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10809 int use_ebcdic (int i) {
10810 return ebcdic_mm[i] + ebcdic_ii[i];
10817 return use_ascii (foo) == use_ebcdic (foo);
10822 if ac_fn_c_try_compile "$LINENO"; then :
10823 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10824 ac_cv_c_bigendian=yes
10826 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10827 if test "$ac_cv_c_bigendian" = unknown; then
10828 ac_cv_c_bigendian=no
10830 # finding both strings is unlikely to happen, but who knows?
10831 ac_cv_c_bigendian=unknown
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 $ac_includes_default
10844 /* Are we little or big endian? From Harbison&Steele. */
10848 char c[sizeof (long int)];
10851 return u.c[sizeof (long int) - 1] == 1;
10857 if ac_fn_c_try_run "$LINENO"; then :
10858 ac_cv_c_bigendian=no
10860 ac_cv_c_bigendian=yes
10862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10863 conftest.$ac_objext conftest.beam conftest.$ac_ext
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10869 $as_echo "$ac_cv_c_bigendian" >&6; }
10870 case $ac_cv_c_bigendian in #(
10872 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10878 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10882 as_fn_error $? "unknown endianness
10883 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10886 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10887 ASM_TYPES_HEADER=./asm_types.h
10889 echo "/* These defines are needed for the public ext2fs.h header file */" \
10891 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10892 uniq tmp_config.$$ >> public_config.h
10894 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10896 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10897 uniq tmp_config.$$ >> public_config.h
10899 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10901 rm -f tmp_config.$$
10902 PUBLIC_CONFIG_HEADER=./public_config.h
10904 for ac_header in inttypes.h
10906 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10908 cat >>confdefs.h <<_ACEOF
10909 #define HAVE_INTTYPES_H 1
10916 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10917 if test "x$ac_cv_type_intptr_t" = xyes; then :
10919 cat >>confdefs.h <<_ACEOF
10920 #define HAVE_INTPTR_T 1
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10927 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10928 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10929 $as_echo_n "(cached) " >&6
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 #include <sys/stat.h>
10937 struct stat stat; stat.st_flags = 0;
10942 if ac_fn_c_try_compile "$LINENO"; then :
10943 e2fsprogs_cv_struct_st_flags=yes
10945 e2fsprogs_cv_struct_st_flags=no
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10951 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10952 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10954 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10955 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960 #include <sys/stat.h>
10964 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970 e2fsprogs_cv_struct_st_flags_immut=yes
10972 e2fsprogs_cv_struct_st_flags_immut=no
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10978 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10979 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10981 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10985 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10986 #include <sys/socket.h>
10988 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_SA_LEN 1
10996 if test -n "$BLKID_CMT"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10998 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10999 if ${ac_cv_search_blkid_probe_all+:} false; then :
11000 $as_echo_n "(cached) " >&6
11002 ac_func_search_save_LIBS=$LIBS
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11012 char blkid_probe_all ();
11016 return blkid_probe_all ();
11021 for ac_lib in '' blkid; do
11022 if test -z "$ac_lib"; then
11023 ac_res="none required"
11026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11028 if ac_fn_c_try_link "$LINENO"; then :
11029 ac_cv_search_blkid_probe_all=$ac_res
11031 rm -f core conftest.err conftest.$ac_objext \
11033 if ${ac_cv_search_blkid_probe_all+:} false; then :
11037 if ${ac_cv_search_blkid_probe_all+:} false; then :
11040 ac_cv_search_blkid_probe_all=no
11042 rm conftest.$ac_ext
11043 LIBS=$ac_func_search_save_LIBS
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11046 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11047 ac_res=$ac_cv_search_blkid_probe_all
11048 if test "$ac_res" != no; then :
11049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11054 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11059 cat >>confdefs.h <<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11068 $as_echo_n "checking for socket in -lsocket... " >&6; }
11069 if ${ac_cv_lib_socket_socket+:} false; then :
11070 $as_echo_n "(cached) " >&6
11072 ac_check_lib_save_LIBS=$LIBS
11073 LIBS="-lsocket $LIBS"
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 /* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
11092 if ac_fn_c_try_link "$LINENO"; then :
11093 ac_cv_lib_socket_socket=yes
11095 ac_cv_lib_socket_socket=no
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11102 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11103 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11104 SOCKET_LIB=-lsocket
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11109 $as_echo_n "checking for optreset... " >&6; }
11110 if ${ac_cv_have_optreset+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115 #include <unistd.h>
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119 $EGREP "optreset" >/dev/null 2>&1; then :
11120 ac_cv_have_optreset=yes
11122 ac_cv_have_optreset=no
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11128 $as_echo "$ac_cv_have_optreset" >&6; }
11129 if test $ac_cv_have_optreset = yes; then
11131 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11136 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11137 if test "x$ac_cv_func_sem_init" = xyes; then :
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11141 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11142 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lpthread $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11160 return sem_init ();
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 ac_cv_lib_pthread_sem_init=yes
11168 ac_cv_lib_pthread_sem_init=no
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11175 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11176 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11177 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11179 SEM_INIT_LIB=-lpthread
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11182 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11183 if ${ac_cv_lib_rt_sem_init+:} false; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_check_lib_save_LIBS=$LIBS
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11201 return sem_init ();
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 ac_cv_lib_rt_sem_init=yes
11209 ac_cv_lib_rt_sem_init=no
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 LIBS=$ac_check_lib_save_LIBS
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11216 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11217 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11218 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11223 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11224 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11225 $as_echo_n "(cached) " >&6
11227 ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lposix4 $LIBS"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11242 return sem_init ();
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 ac_cv_lib_posix4_sem_init=yes
11250 ac_cv_lib_posix4_sem_init=no
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11257 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11258 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11259 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11261 SEM_INIT_LIB=-lposix4
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11271 $as_echo_n "checking for unified diff option... " >&6; }
11272 if diff -u $0 $0 > /dev/null 2>&1 ; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11278 $as_echo "$UNI_DIFF_OPTS" >&6; }
11283 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11303 linux* | gnu* | k*bsd*-gnu)
11304 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11307 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11312 linux* | gnu* | k*bsd*-gnu)
11313 if test "$prefix" = NONE ; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11316 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11317 if test "$mandir" = '${prefix}/man' ; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11319 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11320 mandir=/usr/share/man
11325 if test "$root_prefix" = NONE ; then
11326 if test "$prefix" = NONE ; then
11327 root_prefix="$ac_default_prefix"
11329 root_prefix="$prefix"
11331 root_bindir=$bindir
11332 root_sbindir=$sbindir
11333 root_libdir=$libdir
11334 root_sysconfdir=$sysconfdir
11336 root_bindir='${root_prefix}/bin'
11337 root_sbindir='${root_prefix}/sbin'
11338 root_libdir='${root_prefix}/lib'
11339 root_sysconfdir='${root_prefix}/etc'
11341 if test "$bindir" != '${exec_prefix}/bin'; then
11342 root_bindir=$bindir
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11344 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11346 if test "$sbindir" != '${exec_prefix}/sbin'; then
11347 root_sbindir=$sbindir
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11349 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11351 if test "$libdir" != '${exec_prefix}/lib'; then
11352 root_libdir=$libdir
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11354 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11356 if test "$sysconfdir" != '${prefix}/etc'; then
11357 root_sysconfdir=$sysconfdir
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11359 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11367 # Check whether --with-multiarch was given.
11368 if test "${with_multiarch+set}" = set; then :
11369 withval=$with_multiarch; libdir=$libdir/$withval
11370 root_libdir=$root_libdir/$withval
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11374 $as_echo_n "checking whether we can link with -static... " >&6; }
11375 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11390 if ac_fn_c_try_link "$LINENO"; then :
11391 ac_cv_e2fsprogs_use_static=yes
11393 ac_cv_e2fsprogs_use_static=no
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 LDFLAGS=$SAVE_LDFLAGS
11402 ac_cv_e2fsprogs_use_static=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11406 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11408 if test $ac_cv_e2fsprogs_use_static = yes; then
11409 LDFLAG_STATIC=-static
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11415 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11417 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11421 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11422 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11425 if test "$cross_compiling" = yes ; then
11428 DO_TEST_SUITE=check
11431 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11432 if test -n "$CPPFLAGS" ; then
11433 INCLUDES="$INCLUDES $CPPFLAGS"
11435 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11436 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11439 if test $cross_compiling = no; then
11440 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11441 BUILD_LDFLAGS="$LDFLAGS"
11448 test -d lib || mkdir lib
11449 test -d include || mkdir include
11450 test -d include/linux || mkdir include/linux
11451 test -d include/asm || mkdir include/asm
11452 for i in MCONFIG Makefile e2fsprogs.spec \
11453 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11454 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11455 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11456 lib/uuid/Makefile lib/uuid/uuid_types.h \
11457 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11458 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11459 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11460 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11461 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11462 resize/Makefile doc/Makefile intl/Makefile \
11463 intl/libgnuintl.h po/Makefile.in ; do
11464 if test -d `dirname ${srcdir}/$i` ; then
11465 outlist="$outlist $i"
11468 ac_config_files="$ac_config_files $outlist"
11470 cat >confcache <<\_ACEOF
11471 # This file is a shell script that caches the results of configure
11472 # tests run on this system so they can be shared between configure
11473 # scripts and configure runs, see configure's option --config-cache.
11474 # It is not useful on other systems. If it contains results you don't
11475 # want to keep, you may remove or edit it.
11477 # config.status only pays attention to the cache file if you give it
11478 # the --recheck option to rerun configure.
11480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11482 # following values.
11486 # The following way of writing the cache mishandles newlines in values,
11487 # but we know of no workaround that is simple, portable, and efficient.
11488 # So, we kill variables containing newlines.
11489 # Ultrix sh set writes to stderr and can't be redirected directly,
11490 # and sets the high bit in the cache file unless we assign to the vars.
11492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11493 eval ac_val=\$$ac_var
11497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11501 _ | IFS | as_nl) ;; #(
11502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11503 *) { eval $ac_var=; unset $ac_var;} ;;
11509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11510 *${as_nl}ac_space=\ *)
11511 # `set' does not quote correctly, so add quotes: double-quote
11512 # substitution turns \\\\ into \\, and sed turns \\ into \.
11515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11518 # `set' quotes correctly as required by POSIX, so do not add quotes.
11519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11533 if test -w "$cache_file"; then
11534 if test "x$cache_file" != "x/dev/null"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11536 $as_echo "$as_me: updating cache $cache_file" >&6;}
11537 if test ! -f "$cache_file" || test -h "$cache_file"; then
11538 cat confcache >"$cache_file"
11540 case $cache_file in #(
11542 mv -f confcache "$cache_file"$$ &&
11543 mv -f "$cache_file"$$ "$cache_file" ;; #(
11545 mv -f confcache "$cache_file" ;;
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11557 # Let make expand exec_prefix.
11558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11560 DEFS=-DHAVE_CONFIG_H
11565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11566 # 1. Remove the extension, and $U if already installed.
11567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11570 # will be set to the directory where LIBOBJS objects are built.
11571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11574 LIBOBJS=$ac_libobjs
11576 LTLIBOBJS=$ac_ltlibobjs
11581 : "${CONFIG_STATUS=./config.status}"
11583 ac_clean_files_save=$ac_clean_files
11584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11590 # Generated by $as_me.
11591 # Run this file to recreate the current configuration.
11592 # Compiler output produced by configure, useful for debugging
11593 # configure, is in config.log if it exists.
11596 ac_cs_recheck=false
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11603 ## -------------------- ##
11604 ## M4sh Initialization. ##
11605 ## -------------------- ##
11607 # Be more Bourne compatible
11608 DUALCASE=1; export DUALCASE # for MKS sh
11609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11613 # is contrary to our usage. Disable this feature.
11614 alias -g '${1+"$@"}'='"$@"'
11615 setopt NO_GLOB_SUBST
11617 case `(set -o) 2>/dev/null` in #(
11629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11633 # Prefer a ksh shell builtin over an external printf program on Solaris,
11634 # but without wasting forks for bash or zsh.
11635 if test -z "$BASH_VERSION$ZSH_VERSION" \
11636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11637 as_echo='print -r --'
11638 as_echo_n='print -rn --'
11639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11640 as_echo='printf %s\n'
11641 as_echo_n='printf %s'
11643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11644 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11645 as_echo_n='/usr/ucb/echo -n'
11647 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11648 as_echo_n_body='eval
11652 expr "X$arg" : "X\\(.*\\)$as_nl";
11653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11657 export as_echo_n_body
11658 as_echo_n='sh -c $as_echo_n_body as_echo'
11660 export as_echo_body
11661 as_echo='sh -c $as_echo_body as_echo'
11664 # The user is always right.
11665 if test "${PATH_SEPARATOR+set}" != set; then
11667 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11668 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11675 # We need space, tab and new line, in precisely that order. Quoting is
11676 # there to prevent editors from complaining about space-tab.
11677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11678 # splitting by setting IFS to empty value.)
11681 # Find who we are. Look in the path if we contain no directory separator.
11684 *[\\/]* ) as_myself=$0 ;;
11685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11696 # We did not find ourselves, most probably we were run as `sh COMMAND'
11697 # in which case we are not to be found in the path.
11698 if test "x$as_myself" = x; then
11701 if test ! -f "$as_myself"; then
11702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11706 # Unset variables that we do not need and which cause bugs (e.g. in
11707 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11708 # suppresses any "Segmentation fault" message there. '((' could
11709 # trigger a bug in pdksh 5.2.14.
11710 for as_var in BASH_ENV ENV MAIL MAILPATH
11711 do eval test x\${$as_var+set} = xset \
11712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11729 # ----------------------------------------
11730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11732 # script with STATUS, using 1 if that was 0.
11735 as_status=$1; test $as_status -eq 0 && as_status=1
11737 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11740 $as_echo "$as_me: error: $2" >&2
11741 as_fn_exit $as_status
11745 # as_fn_set_status STATUS
11746 # -----------------------
11747 # Set $? to STATUS, without forking.
11748 as_fn_set_status ()
11751 } # as_fn_set_status
11753 # as_fn_exit STATUS
11754 # -----------------
11755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11759 as_fn_set_status $1
11765 # Portably unset VAR.
11768 { eval $1=; unset $1;}
11770 as_unset=as_fn_unset
11771 # as_fn_append VAR VALUE
11772 # ----------------------
11773 # Append the text in VALUE to the end of the definition contained in VAR. Take
11774 # advantage of any shell optimizations that allow amortized linear growth over
11775 # repeated appends, instead of the typical quadratic growth present in naive
11777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11778 eval 'as_fn_append ()
11789 # as_fn_arith ARG...
11790 # ------------------
11791 # Perform arithmetic evaluation on the ARGs, and store the result in the
11792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11793 # must be portable across $(()) and expr.
11794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11795 eval 'as_fn_arith ()
11802 as_val=`expr "$@" || test $? -eq 1`
11807 if expr a : '\(a\)' >/dev/null 2>&1 &&
11808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11815 as_basename=basename
11820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11826 as_me=`$as_basename -- "$0" ||
11827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11828 X"$0" : 'X\(//\)$' \| \
11829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11831 sed '/^.*\/\([^/][^/]*\)\/*$/{
11845 # Avoid depending upon Character Ranges.
11846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11849 as_cr_digits='0123456789'
11850 as_cr_alnum=$as_cr_Letters$as_cr_digits
11852 ECHO_C= ECHO_N= ECHO_T=
11853 case `echo -n x` in #(((((
11855 case `echo 'xy\c'` in
11856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11865 rm -f conf$$ conf$$.exe conf$$.file
11866 if test -d conf$$.dir; then
11867 rm -f conf$$.dir/conf$$.file
11870 mkdir conf$$.dir 2>/dev/null
11872 if (echo >conf$$.file) 2>/dev/null; then
11873 if ln -s conf$$.file conf$$ 2>/dev/null; then
11875 # ... but there are two gotchas:
11876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11878 # In both cases, we have to default to `cp -pR'.
11879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11881 elif ln conf$$.file conf$$ 2>/dev/null; then
11889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11890 rmdir conf$$.dir 2>/dev/null
11895 # Create "$as_dir" as a directory, including parents if necessary.
11900 -*) as_dir=./$as_dir;;
11902 test -d "$as_dir" || eval $as_mkdir_p || {
11906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11907 *) as_qdir=$as_dir;;
11909 as_dirs="'$as_qdir' $as_dirs"
11910 as_dir=`$as_dirname -- "$as_dir" ||
11911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11912 X"$as_dir" : 'X\(//\)[^/]' \| \
11913 X"$as_dir" : 'X\(//\)$' \| \
11914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11915 $as_echo X"$as_dir" |
11916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11920 /^X\(\/\/\)[^/].*/{
11933 test -d "$as_dir" && break
11935 test -z "$as_dirs" || eval "mkdir $as_dirs"
11936 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11940 if mkdir -p . 2>/dev/null; then
11941 as_mkdir_p='mkdir -p "$as_dir"'
11943 test -d ./-p && rmdir ./-p
11948 # as_fn_executable_p FILE
11949 # -----------------------
11950 # Test if FILE is an executable regular file.
11951 as_fn_executable_p ()
11953 test -f "$1" && test -x "$1"
11954 } # as_fn_executable_p
11955 as_test_x='test -x'
11956 as_executable_p=as_fn_executable_p
11958 # Sed expression to map a string onto a valid CPP name.
11959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11961 # Sed expression to map a string onto a valid variable name.
11962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11966 ## ----------------------------------- ##
11967 ## Main body of $CONFIG_STATUS script. ##
11968 ## ----------------------------------- ##
11970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11973 # Save the log message, to keep $0 and so on meaningful, and to
11974 # report actual input values of CONFIG_FILES etc. instead of their
11975 # values after options handling.
11977 This file was extended by $as_me, which was
11978 generated by GNU Autoconf 2.69. Invocation command line was
11980 CONFIG_FILES = $CONFIG_FILES
11981 CONFIG_HEADERS = $CONFIG_HEADERS
11982 CONFIG_LINKS = $CONFIG_LINKS
11983 CONFIG_COMMANDS = $CONFIG_COMMANDS
11986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11991 case $ac_config_files in *"
11992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11995 case $ac_config_headers in *"
11996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 # Files that config.status was made for.
12002 config_files="$ac_config_files"
12003 config_headers="$ac_config_headers"
12004 config_commands="$ac_config_commands"
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12010 \`$as_me' instantiates files and other configuration actions
12011 from templates according to the current configuration. Unless the files
12012 and actions are specified as TAGs, all are instantiated by default.
12014 Usage: $0 [OPTION]... [TAG]...
12016 -h, --help print this help, then exit
12017 -V, --version print version number and configuration settings, then exit
12018 --config print configuration, then exit
12019 -q, --quiet, --silent
12020 do not print progress messages
12021 -d, --debug don't remove temporary files
12022 --recheck update $as_me by reconfiguring in the same conditions
12023 --file=FILE[:TEMPLATE]
12024 instantiate the configuration file FILE
12025 --header=FILE[:TEMPLATE]
12026 instantiate the configuration header FILE
12028 Configuration files:
12031 Configuration headers:
12034 Configuration commands:
12037 Report bugs to the package provider."
12040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12041 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12044 configured by $0, generated by GNU Autoconf 2.69,
12045 with options \\"\$ac_cs_config\\"
12047 Copyright (C) 2012 Free Software Foundation, Inc.
12048 This config.status script is free software; the Free Software Foundation
12049 gives unlimited permission to copy, distribute and modify it."
12055 test -n "\$AWK" || AWK=awk
12058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059 # The default lists apply if the user does not specify any file.
12065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12070 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12082 # Handling of the options.
12083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12085 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12086 $as_echo "$ac_cs_version"; exit ;;
12087 --config | --confi | --conf | --con | --co | --c )
12088 $as_echo "$ac_cs_config"; exit ;;
12089 --debug | --debu | --deb | --de | --d | -d )
12091 --file | --fil | --fi | --f )
12094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12095 '') as_fn_error $? "missing file argument" ;;
12097 as_fn_append CONFIG_FILES " '$ac_optarg'"
12098 ac_need_defaults=false;;
12099 --header | --heade | --head | --hea )
12102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12104 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12105 ac_need_defaults=false;;
12107 # Conflict between --help and --header
12108 as_fn_error $? "ambiguous option: \`$1'
12109 Try \`$0 --help' for more information.";;
12110 --help | --hel | -h )
12111 $as_echo "$ac_cs_usage"; exit ;;
12112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12116 # This is an error.
12117 -*) as_fn_error $? "unrecognized option: \`$1'
12118 Try \`$0 --help' for more information." ;;
12120 *) as_fn_append ac_config_targets " $1"
12121 ac_need_defaults=false ;;
12127 ac_configure_extra_args=
12129 if $ac_cs_silent; then
12131 ac_configure_extra_args="$ac_configure_extra_args --silent"
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 if \$ac_cs_recheck; then
12137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12140 CONFIG_SHELL='$SHELL'
12141 export CONFIG_SHELL
12146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12151 ## Running $as_me. ##
12157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12161 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12162 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12164 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12165 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12166 LINGUAS="${LINGUAS-%UNSET%}"
12171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12173 # Handling of arguments.
12174 for ac_config_target in $ac_config_targets
12176 case $ac_config_target in
12177 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12178 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12179 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12186 # If the user did not use the arguments to specify the items to instantiate,
12187 # then the envvar interface is used. Set only those that are not.
12188 # We use the long form for the default assignment because of an extremely
12189 # bizarre bug on SunOS 4.1.3.
12190 if $ac_need_defaults; then
12191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12196 # Have a temporary directory for convenience. Make it in the build tree
12197 # simply because there is no reason against having it here, and in addition,
12198 # creating and moving files from /tmp can sometimes cause problems.
12199 # Hook for its removal unless debugging.
12200 # Note that there is a small window in which the directory will not be cleaned:
12201 # after its creation but before its name has been assigned to `$tmp'.
12205 trap 'exit_status=$?
12206 : "${ac_tmp:=$tmp}"
12207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12209 trap 'as_fn_exit 1' 1 2 13 15
12211 # Create a (secure) tmp directory for tmp files.
12214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12218 tmp=./conf$$-$RANDOM
12219 (umask 077 && mkdir "$tmp")
12220 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12223 # Set up the scripts for CONFIG_FILES section.
12224 # No need to generate them if there are no CONFIG_FILES.
12225 # This happens for instance with `./config.status config.h'.
12226 if test -n "$CONFIG_FILES"; then
12228 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12229 ac_cs_awk_getline=:
12230 ac_cs_awk_pipe_init=
12231 ac_cs_awk_read_file='
12232 while ((getline aline < (F[key])) > 0)
12235 ac_cs_awk_pipe_fini=
12237 ac_cs_awk_getline=false
12238 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12239 ac_cs_awk_read_file='
12241 print "cat " F[key] " &&"
12242 '$ac_cs_awk_pipe_init
12243 # The final `:' finishes the AND list.
12244 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12246 ac_cr=`echo X | tr X '\015'`
12247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12248 # But we know of no other shell where ac_cr would be empty at this
12249 # point, so we can use a bashism as a fallback.
12250 if test "x$ac_cr" = x; then
12251 eval ac_cr=\$\'\\r\'
12253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12257 ac_cs_awk_cr=$ac_cr
12260 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12263 # Create commands to substitute file output variables.
12265 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12266 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12267 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12270 } >conf$$files.sh &&
12271 . ./conf$$files.sh ||
12272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12273 rm -f conf$$files.sh
12276 echo "cat >conf$$subs.awk <<_ACEOF" &&
12277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12279 } >conf$$subs.sh ||
12280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12283 for ac_last_try in false false false false false :; do
12284 . ./conf$$subs.sh ||
12285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12288 if test $ac_delim_n = $ac_delim_num; then
12290 elif $ac_last_try; then
12291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12296 rm -f conf$$subs.sh
12298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12303 s/^/S["/; s/!.*/"]=/
12313 s/\(.\{148\}\)..*/\1/
12315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12327 s/\(.\{148\}\)..*/\1/
12329 s/["\\]/\\&/g; s/^/"/; s/$/"/
12333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12338 ' <conf$$subs.awk | sed '
12343 ' >>$CONFIG_STATUS || ac_write_fail=1
12344 rm -f conf$$subs.awk
12345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12348 for (key in S) S_is_set[key] = 1
12350 \$ac_cs_awk_pipe_init
12354 nfields = split(line, field, "@")
12356 len = length(field[1])
12357 for (i = 2; i < nfields; i++) {
12359 keylen = length(key)
12360 if (S_is_set[key]) {
12362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12363 len += length(value) + length(field[++i])
12368 if (nfields == 3 && !substed) {
12370 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12371 \$ac_cs_awk_read_file
12377 \$ac_cs_awk_pipe_fini
12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12391 # trailing colons and then remove the whole line if VPATH becomes empty
12392 # (actually we leave an empty line to preserve line numbers).
12393 if test "x$srcdir" = x.; then
12394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12413 fi # test -n "$CONFIG_FILES"
12415 # Set up the scripts for CONFIG_HEADERS section.
12416 # No need to generate them if there are no CONFIG_HEADERS.
12417 # This happens for instance with `./config.status Makefile'.
12418 if test -n "$CONFIG_HEADERS"; then
12419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12423 # Transform confdefs.h into an awk script `defines.awk', embedded as
12424 # here-document in config.status, that substitutes the proper values into
12425 # config.h.in to produce config.h.
12427 # Create a delimiter string that does not exist in confdefs.h, to ease
12428 # handling of long lines.
12430 for ac_last_try in false false :; do
12431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12432 if test -z "$ac_tt"; then
12434 elif $ac_last_try; then
12435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12441 # For the awk script, D is an array of macro values keyed by name,
12442 # likewise P contains macro parameters if any. Preserve backslash
12443 # newline sequences.
12445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12447 s/.\{148\}/&'"$ac_delim"'/g
12450 s/^[ ]*#[ ]*define[ ][ ]*/ /
12457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12464 D["\1"]=" \3\\\\\\n"\\/p
12466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12471 s/.\{148\}/&'"$ac_delim"'/g
12476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12481 ' <confdefs.h | sed '
12482 s/'"$ac_delim"'/"\\\
12483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12486 for (key in D) D_is_set[key] = 1
12489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12491 split(line, arg, " ")
12492 if (arg[1] == "#") {
12496 defundef = substr(arg[1], 2)
12499 split(mac1, mac2, "(") #)
12501 prefix = substr(line, 1, index(line, defundef) - 1)
12502 if (D_is_set[macro]) {
12503 # Preserve the white space surrounding the "#".
12504 print prefix "define", macro P[macro] D[macro]
12507 # Replace #undef with comments. This is necessary, for example,
12508 # in the case of _POSIX_SOURCE, which is predefined and required
12509 # on some systems where configure will not decide to define it.
12510 if (defundef == "undef") {
12511 print "/*", prefix defundef, macro, "*/"
12519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12521 fi # test -n "$CONFIG_HEADERS"
12524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12529 :[FHLC]) ac_mode=$ac_tag; continue;;
12531 case $ac_mode$ac_tag in
12533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12534 :[FH]-) ac_tag=-:-;;
12535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12552 -) ac_f="$ac_tmp/stdin";;
12553 *) # Look for the file first in the build tree, then in the source tree
12554 # (if the path is not absolute). The absolute path cannot be DOS-style,
12555 # because $ac_f cannot contain `:'.
12559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12564 as_fn_append ac_file_inputs " '$ac_f'"
12567 # Let's still pretend it is `configure' which instantiates (i.e., don't
12568 # use $as_me), people would be surprised to read:
12569 # /* config.h. Generated by config.status. */
12570 configure_input='Generated from '`
12571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12573 if test x"$ac_file" != x-; then
12574 configure_input="$ac_file. $configure_input"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12576 $as_echo "$as_me: creating $ac_file" >&6;}
12578 # Neutralize special characters interpreted by sed in replacement strings.
12579 case $configure_input in #(
12580 *\&* | *\|* | *\\* )
12581 ac_sed_conf_input=`$as_echo "$configure_input" |
12582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12583 *) ac_sed_conf_input=$configure_input;;
12587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12593 ac_dir=`$as_dirname -- "$ac_file" ||
12594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12595 X"$ac_file" : 'X\(//\)[^/]' \| \
12596 X"$ac_file" : 'X\(//\)$' \| \
12597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12598 $as_echo X"$ac_file" |
12599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12603 /^X\(\/\/\)[^/].*/{
12616 as_dir="$ac_dir"; as_fn_mkdir_p
12620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12623 # A ".." for each directory in $ac_dir_suffix.
12624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12625 case $ac_top_builddir_sub in
12626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12630 ac_abs_top_builddir=$ac_pwd
12631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12632 # for backward compatibility:
12633 ac_top_builddir=$ac_top_build_prefix
12636 .) # We are building in place.
12638 ac_top_srcdir=$ac_top_builddir_sub
12639 ac_abs_top_srcdir=$ac_pwd ;;
12640 [\\/]* | ?:[\\/]* ) # Absolute name.
12641 ac_srcdir=$srcdir$ac_dir_suffix;
12642 ac_top_srcdir=$srcdir
12643 ac_abs_top_srcdir=$srcdir ;;
12644 *) # Relative name.
12645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12646 ac_top_srcdir=$ac_top_build_prefix$srcdir
12647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 # If the template does not know about datarootdir, expand it.
12666 # FIXME: This hack should be removed a few years after 2.60.
12667 ac_datarootdir_hack=; ac_datarootdir_seen=
12678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12679 *datarootdir*) ac_datarootdir_seen=yes;;
12680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685 ac_datarootdir_hack='
12686 s&@datadir@&$datadir&g
12687 s&@docdir@&$docdir&g
12688 s&@infodir@&$infodir&g
12689 s&@localedir@&$localedir&g
12690 s&@mandir@&$mandir&g
12691 s&\\\${datarootdir}&$datarootdir&g' ;;
12695 # Neutralize VPATH when `$srcdir' = `.'.
12696 # Shell code in configure.ac might set extrasub.
12697 # FIXME: do we really want to maintain this feature?
12698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699 ac_sed_extra="$ac_vpsub
12702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12705 s|@configure_input@|$ac_sed_conf_input|;t t
12706 s&@top_builddir@&$ac_top_builddir_sub&;t t
12707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12708 s&@srcdir@&$ac_srcdir&;t t
12709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12710 s&@top_srcdir@&$ac_top_srcdir&;t t
12711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12712 s&@builddir@&$ac_builddir&;t t
12713 s&@abs_builddir@&$ac_abs_builddir&;t t
12714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12715 s&@INSTALL@&$ac_INSTALL&;t t
12716 $ac_datarootdir_hack
12718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12719 if $ac_cs_awk_getline; then
12720 $AWK -f "$ac_tmp/subs.awk"
12722 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12731 which seems to be undefined. Please make sure it is defined" >&5
12732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12733 which seems to be undefined. Please make sure it is defined" >&2;}
12735 rm -f "$ac_tmp/stdin"
12737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12746 if test x"$ac_file" != x-; then
12748 $as_echo "/* $configure_input */" \
12749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12750 } >"$ac_tmp/config.h" \
12751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12757 mv "$ac_tmp/config.h" "$ac_file" \
12758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12761 $as_echo "/* $configure_input */" \
12762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12763 || as_fn_error $? "could not create -" "$LINENO" 5
12767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12768 $as_echo "$as_me: executing $ac_file commands" >&6;}
12773 case $ac_file$ac_mode in
12775 for ac_file in $CONFIG_FILES; do
12776 # Support "outfile[:infile[:infile...]]"
12778 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12780 # PO directories have a Makefile.in generated from Makefile.in.in.
12781 case "$ac_file" in */Makefile.in)
12782 # Adjust a relative srcdir.
12783 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12784 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12785 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12786 # In autoconf-2.13 it is called $ac_given_srcdir.
12787 # In autoconf-2.50 it is called $srcdir.
12788 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12789 case "$ac_given_srcdir" in
12790 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12791 /*) top_srcdir="$ac_given_srcdir" ;;
12792 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12794 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12795 rm -f "$ac_dir/POTFILES"
12796 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12797 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12798 POMAKEFILEDEPS="POTFILES.in"
12799 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12800 # on $ac_dir but don't depend on user-specified configuration
12802 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12803 # The LINGUAS file contains the set of available languages.
12804 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12805 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12807 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12808 # Hide the ALL_LINGUAS assigment from automake.
12809 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12810 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12812 # The set of available languages was given in configure.in.
12813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12816 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12817 # Compute UPDATEPOFILES
12818 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12819 # Compute DUMMYPOFILES
12820 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12822 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12823 case "$ac_given_srcdir" in
12825 *) srcdirpre='$(srcdir)/' ;;
12831 for lang in $ALL_LINGUAS; do
12832 POFILES="$POFILES $srcdirpre$lang.po"
12833 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12834 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12835 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12837 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12838 # environment variable.
12840 if test -n "$ALL_LINGUAS"; then
12841 for presentlang in $ALL_LINGUAS; do
12843 if test "%UNSET%" != "$LINGUAS"; then
12844 desiredlanguages="$LINGUAS"
12846 desiredlanguages="$ALL_LINGUAS"
12848 for desiredlang in $desiredlanguages; do
12849 # Use the presentlang catalog if desiredlang is
12850 # a. equal to presentlang, or
12851 # b. a variant of presentlang (because in this case,
12852 # presentlang can be used as a fallback for messages
12853 # which are not translated in the desiredlang catalog).
12854 case "$desiredlang" in
12855 "$presentlang"*) useit=yes;;
12858 if test $useit = yes; then
12859 INST_LINGUAS="$INST_LINGUAS $presentlang"
12864 if test -n "$INST_LINGUAS"; then
12865 for lang in $INST_LINGUAS; do
12866 CATALOGS="$CATALOGS $lang.gmo"
12869 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12870 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"
12871 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12872 if test -f "$f"; then
12874 *.orig | *.bak | *~) ;;
12875 *) cat "$f" >> "$ac_dir/Makefile" ;;
12890 ac_clean_files=$ac_clean_files_save
12892 test $ac_write_fail = 0 ||
12893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12896 # configure is writing to config.log, and then calls config.status.
12897 # config.status does its own redirection, appending to config.log.
12898 # Unfortunately, on DOS this fails, as config.log is still kept open
12899 # by configure, so config.status won't be able to write to it; its
12900 # output is simply discarded. So we exec the FD to /dev/null,
12901 # effectively closing config.log, so it can be properly (re)opened and
12902 # appended to by config.status. When coming back to configure, we
12903 # need to make the FD available again.
12904 if test "$no_create" != yes; then
12906 ac_config_status_args=
12907 test "$silent" = yes &&
12908 ac_config_status_args="$ac_config_status_args --quiet"
12910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12913 # would make configure fail if this is the last instruction.
12914 $ac_cs_success || as_fn_exit 1
12916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12921 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi