2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
642 INTL_LIBTOOL_SUFFIX_PREFIX
649 BUILD_INCLUDED_LIBINTL
780 program_transform_name
791 ac_subst_files='MCONFIG
798 PUBLIC_CONFIG_HEADER'
800 enable_option_checking
806 enable_maintainer_mode
807 enable_symlink_install
808 enable_symlink_relative_symlinks
810 enable_verbose_makecmds
831 enable_e2initrd_helper
838 with_included_gettext
843 ac_precious_vars='build_alias
855 # Initialize some variables set by options.
857 ac_init_version=false
858 ac_unrecognized_opts=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=no ;;
1220 # Obsolete; use --with-x.
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information."
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 if test -n "$ac_init_help"; then
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-maintainer-mode enable makefile rules useful for maintainers
1466 --enable-symlink-install use symlinks when installing instead of hard links
1467 --enable-relative-symlinks use relative symlinks when installing
1468 --enable-symlink-build use symlinks while building instead of hard links
1469 --enable-verbose-makecmds enable verbose make command output
1470 --disable-lfsck disable EXPERIMENTAL Lustre lfsck support
1471 --enable-compression enable EXPERIMENTAL compression support
1472 --enable-htree enable EXPERIMENTAL htree directory support
1473 --enable-elf-shlibs select ELF shared libraries
1474 --enable-bsd-shlibs select BSD shared libraries
1475 --enable-profile build profiling libraries
1476 --enable-checker build checker libraries
1477 --enable-jbd-debug enable journal debugging
1478 --enable-blkid-debug enable blkid debugging
1479 --disable-testio-debug disable the use of the test I/O manager for debugging
1480 --disable-libuuid do not build private uuid library
1481 --disable-libblkid do not build private blkid library
1482 --enable-libquota enable quota support
1483 --disable-debugfs disable support of debugfs program
1484 --disable-e2scan disable support of e2scan program
1485 --disable-imager disable support of e2image program
1486 --disable-resizer disable support of e2resize program
1487 --disable-defrag disable support of e4defrag program
1488 --enable-fsck build fsck wrapper program
1489 --enable-e2initrd-helper build e2initrd-helper program
1490 --disable-tls disable use of thread local support
1491 --disable-uuidd disable building the uuid daemon
1492 --disable-nls do not use Native Language Support
1493 --disable-rpath do not hardcode runtime library paths
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-diet-libc use diet libc
1499 --with-cc no longer supported, use CC= instead
1500 --with-ccopts no longer supported, use CFLAGS= instead
1501 --with-ldopts no longer supported, use LDFLAGS= instead
1502 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1503 --with-lustre=LUSTRE path to Lustre sources for lfsck (default=/usr for RPM)
1504 --with-gnu-ld assume the C compiler uses GNU ld default=no
1505 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1506 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1507 --with-included-gettext use the GNU gettext library included here
1508 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1509 --without-libintl-prefix don't search for libintl in includedir and libdir
1510 --with-sqlite3=DIR location of sqlite3 library (default /usr/lib)
1511 --with-multiarch=ARCH specify the multiarch triplet
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1522 PKG_CONFIG path to pkg-config utility
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to the package provider.
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1557 .) # We are building in place.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1591 generated by GNU Autoconf 2.65
1593 Copyright (C) 2009 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 $as_test_x conftest$ac_exeext
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_link
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 as_fn_set_status $ac_retval
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_type
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1838 if ac_fn_c_try_compile "$LINENO"; then :
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_c_check_header_compile
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1875 # include <limits.h>
1877 # include <assert.h>
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1904 if ac_fn_c_try_link "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_check_func
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 ac_fn_c_compute_int ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2029 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid; break
2048 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2049 if test $ac_lo -le $ac_mid; then
2053 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) < 0)];
2071 if ac_fn_c_try_compile "$LINENO"; then :
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=$ac_mid; break
2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091 if test $ac_mid -le $ac_hi; then
2095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 if ac_fn_c_try_compile "$LINENO"; then :
2124 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2144 FILE *f = fopen ("conftest.val", "w");
2149 long int i = longval ();
2152 fprintf (f, "%ld", i);
2156 unsigned long int i = ulongval ();
2159 fprintf (f, "%lu", i);
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2169 if ac_fn_c_try_run "$LINENO"; then :
2170 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175 conftest.$ac_objext conftest.beam conftest.$ac_ext
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_c_compute_int
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2219 if (sizeof ac_aggr.$3)
2225 if ac_fn_c_try_compile "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239 } # ac_fn_c_check_member
2241 # ac_fn_c_check_decl LINENO SYMBOL VAR
2242 # ------------------------------------
2243 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2244 ac_fn_c_check_decl ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2248 $as_echo_n "checking whether $2 is declared... " >&6; }
2249 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250 $as_echo_n "(cached) " >&6
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2266 if ac_fn_c_try_compile "$LINENO"; then :
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278 } # ac_fn_c_check_decl
2279 cat >config.log <<_ACEOF
2280 This file contains any messages produced by compilers while
2281 running configure, to aid debugging if configure makes a mistake.
2283 It was created by $as_me, which was
2284 generated by GNU Autoconf 2.65. Invocation command line was
2296 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2305 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2306 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2307 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2309 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2310 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2311 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 $as_echo "PATH: $as_dir"
2336 # Keep a trace of the command line.
2337 # Strip out --no-create and --no-recursion so they do not pile up.
2338 # Strip out --silent because we don't want to record it for future runs.
2339 # Also quote any args containing shell meta-characters.
2340 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_must_keep_next=false
2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352 | -silent | --silent | --silen | --sile | --sil)
2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360 as_fn_append ac_configure_args1 " '$ac_arg'"
2361 if test $ac_must_keep_next = true; then
2362 ac_must_keep_next=false # Got value, back to normal.
2365 *=* | --config-cache | -C | -disable-* | --disable-* \
2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368 | -with-* | --with-* | -without-* | --without-* | --x)
2369 case "$ac_configure_args0 " in
2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2373 -* ) ac_must_keep_next=true ;;
2376 as_fn_append ac_configure_args " '$ac_arg'"
2381 { ac_configure_args0=; unset ac_configure_args0;}
2382 { ac_configure_args1=; unset ac_configure_args1;}
2384 # When interrupted or exit'd, cleanup temporary files, and complete
2385 # config.log. We remove comments because anyway the quotes in there
2386 # would cause problems or look ugly.
2387 # WARNING: Use '\'' to represent an apostrophe within the trap.
2388 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389 trap 'exit_status=$?
2390 # Save into config.log some information that might help in debugging.
2395 ## ---------------- ##
2396 ## Cache variables. ##
2397 ## ---------------- ##
2400 # The following way of writing the cache mishandles newlines in values,
2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403 eval ac_val=\$$ac_var
2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411 _ | IFS | as_nl) ;; #(
2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413 *) { eval $ac_var=; unset $ac_var;} ;;
2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419 *${as_nl}ac_space=\ *)
2421 "s/'\''/'\''\\\\'\'''\''/g;
2422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 ## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##
2438 for ac_var in $ac_subst_vars
2440 eval ac_val=\$$ac_var
2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 $as_echo "$ac_var='\''$ac_val'\''"
2448 if test -n "$ac_subst_files"; then
2450 ## ------------------- ##
2451 ## File substitutions. ##
2452 ## ------------------- ##
2455 for ac_var in $ac_subst_files
2457 eval ac_val=\$$ac_var
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 $as_echo "$ac_var='\''$ac_val'\''"
2466 if test -s confdefs.h; then
2476 test "$ac_signal" != 0 &&
2477 $as_echo "$as_me: caught signal $ac_signal"
2478 $as_echo "$as_me: exit $exit_status"
2480 rm -f core *.core core.conftest.* &&
2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 for ac_signal in 1 2 13 15; do
2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2492 $as_echo "/* confdefs.h */" > confdefs.h
2494 # Predefined preprocessor variables.
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2525 if test -n "$CONFIG_SITE"; then
2526 ac_site_file1=$CONFIG_SITE
2527 elif test "x$prefix" != xNONE; then
2528 ac_site_file1=$prefix/share/config.site
2529 ac_site_file2=$prefix/etc/config.site
2531 ac_site_file1=$ac_default_prefix/share/config.site
2532 ac_site_file2=$ac_default_prefix/etc/config.site
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536 test "x$ac_site_file" = xNONE && continue
2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2545 if test -r "$cache_file"; then
2546 # Some versions of bash will fail to source /dev/null (special files
2547 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2548 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2550 $as_echo "$as_me: loading cache $cache_file" >&6;}
2552 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2553 *) . "./$cache_file";;
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2558 $as_echo "$as_me: creating cache $cache_file" >&6;}
2562 as_fn_append ac_header_list " stdlib.h"
2563 as_fn_append ac_header_list " unistd.h"
2564 as_fn_append ac_header_list " sys/param.h"
2565 # Check that the precious variables saved in the cache have kept the same
2567 ac_cache_corrupted=false
2568 for ac_var in $ac_precious_vars; do
2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570 eval ac_new_set=\$ac_env_${ac_var}_set
2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572 eval ac_new_val=\$ac_env_${ac_var}_value
2573 case $ac_old_set,$ac_new_set in
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577 ac_cache_corrupted=: ;;
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x $ac_old_val`
2587 ac_new_val_w=`echo x $ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591 ac_cache_corrupted=:
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615 if $ac_cache_corrupted; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622 ## -------------------- ##
2623 ## Main body of script. ##
2624 ## -------------------- ##
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 for ac_dir in config "$srcdir"/config; do
2636 for ac_t in install-sh install.sh shtool; do
2637 if test -f "$ac_dir/$ac_t"; then
2639 ac_install_sh="$ac_aux_dir/$ac_t -c"
2644 if test -z "$ac_aux_dir"; then
2645 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2648 # These three variables are undocumented and unsupported,
2649 # and are intended to be withdrawn in a future Autoconf release.
2650 # They can cause serious problems if a builder's source tree is in a directory
2651 # whose full name contains unusual characters.
2652 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2653 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2654 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2657 ac_config_headers="$ac_config_headers lib/config.h"
2663 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2664 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2665 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2667 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2668 MONTH=`echo $DATE | awk -F- '{print $2}'`
2669 YEAR=`echo $DATE | awk -F- '{print $3}'`
2671 if expr $YEAR ">" 1900 > /dev/null ; then
2672 E2FSPROGS_YEAR=$YEAR
2673 elif expr $YEAR ">" 90 >/dev/null ; then
2674 E2FSPROGS_YEAR=19$YEAR
2676 E2FSPROGS_YEAR=20$YEAR
2680 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2681 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2682 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2683 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2684 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2685 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2686 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2687 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2688 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2689 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2690 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2691 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2692 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2693 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2696 base_ver=`echo $E2FSPROGS_VERSION | \
2697 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2699 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2701 case $E2FSPROGS_VERSION in
2703 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2706 E2FSPROGS_PKGVER="$base_ver"
2710 unset DATE MONTH YEAR base_ver pre_vers date_spec
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2712 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2714 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2720 # Make sure we can run config.sub.
2721 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2722 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2725 $as_echo_n "checking build system type... " >&6; }
2726 if test "${ac_cv_build+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2729 ac_build_alias=$build_alias
2730 test "x$ac_build_alias" = x &&
2731 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2732 test "x$ac_build_alias" = x &&
2733 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2734 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2735 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2739 $as_echo "$ac_cv_build" >&6; }
2740 case $ac_cv_build in
2742 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2745 ac_save_IFS=$IFS; IFS='-'
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2755 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2759 $as_echo_n "checking host system type... " >&6; }
2760 if test "${ac_cv_host+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2763 if test "x$host_alias" = x; then
2764 ac_cv_host=$ac_cv_build
2766 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2767 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2772 $as_echo "$ac_cv_host" >&6; }
2775 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2778 ac_save_IFS=$IFS; IFS='-'
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2788 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2836 if test -z "$ac_cv_prog_CC"; then
2838 # Extract the first word of "gcc", so it can be a program name with args.
2839 set dummy gcc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_ac_ct_CC="gcc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866 if test -n "$ac_ct_CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868 $as_echo "$ac_ct_CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2874 if test "x$ac_ct_CC" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2889 if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}cc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="${ac_tool_prefix}cc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2930 if test -z "$CC"; then
2931 # Extract the first word of "cc", so it can be a program name with args.
2932 set dummy cc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2950 ac_prog_rejected=yes
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test $ac_prog_rejected = yes; then
2962 # We found a bogon in the path, so make sure we never use it.
2963 set dummy $ac_cv_prog_CC
2965 if test $# != 0; then
2966 # We chose a different compiler from the bogus one.
2967 # However, it has the same basename, so the bogon will be chosen
2968 # first if we set CC to just the basename; use the full file name.
2970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 for ac_prog in cl.exe
2990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3027 test -n "$CC" && break
3030 if test -z "$CC"; then
3032 for ac_prog in cl.exe
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$ac_ct_CC"; then
3042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_CC="$ac_prog"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062 if test -n "$ac_ct_CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3064 $as_echo "$ac_ct_CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3071 test -n "$ac_ct_CC" && break
3074 if test "x$ac_ct_CC" = x; then
3077 case $cross_compiling:$ac_tool_warned in
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081 ac_tool_warned=yes ;;
3090 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error "no acceptable C compiler found in \$PATH
3093 See \`config.log' for more details." "$LINENO" 5; }
3095 # Provide some information about the compiler.
3096 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3099 for ac_option in --version -v -V -qversion; do
3100 { { ac_try="$ac_compiler $ac_option >&5"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109 if test -s conftest.err; then
3111 ... rest of stderr output deleted ...
3112 10q' conftest.err >conftest.er1
3113 cat conftest.er1 >&5
3115 rm -f conftest.er1 conftest.err
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3131 ac_clean_files_save=$ac_clean_files
3132 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3133 # Try to create an executable without -o first, disregard a.out.
3134 # It will help us diagnose broken compilers, and finding out an intuition
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3137 $as_echo_n "checking whether the C compiler works... " >&6; }
3138 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140 # The possible output files:
3141 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3144 for ac_file in $ac_files
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153 if { { ac_try="$ac_link_default"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_link_default") 2>&5
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }; then :
3164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3166 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3167 # so that the user can short-circuit this test for compilers unknown to
3169 for ac_file in $ac_files ''
3171 test -f "$ac_file" || continue
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3176 # We found the default executable, but exeext='' is most
3180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 # We set ac_cv_exeext here because the later test for it is not
3185 # safe: cross compilers may not add the suffix if given an `-o'
3186 # argument, so we may need to know it at that point already.
3187 # Even if this section looks crufty: it has the advantage of
3194 test "$ac_cv_exeext" = no && ac_cv_exeext=
3199 if test -z "$ac_file"; then :
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 { as_fn_set_status 77
3208 as_fn_error "C compiler cannot create executables
3209 See \`config.log' for more details." "$LINENO" 5; }; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215 $as_echo_n "checking for C compiler default output file name... " >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217 $as_echo "$ac_file" >&6; }
3218 ac_exeext=$ac_cv_exeext
3220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223 $as_echo_n "checking for suffix of executables... " >&6; }
3224 if { { ac_try="$ac_link"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3239 for ac_file in conftest.exe conftest conftest.*; do
3240 test -f "$ac_file" || continue
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error "cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." "$LINENO" 5; }
3254 rm -f conftest conftest$ac_cv_exeext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256 $as_echo "$ac_cv_exeext" >&6; }
3258 rm -f conftest.$ac_ext
3259 EXEEXT=$ac_cv_exeext
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3267 FILE *f = fopen ("conftest.out", "w");
3268 return ferror (f) || fclose (f) != 0;
3274 ac_clean_files="$ac_clean_files conftest.out"
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3278 $as_echo_n "checking whether we are cross compiling... " >&6; }
3279 if test "$cross_compiling" != yes; then
3280 { { ac_try="$ac_link"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291 if { ac_try='./conftest$ac_cv_exeext'
3292 { { case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_try") 2>&5
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; }; then
3304 if test "$cross_compiling" = maybe; then
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error "cannot run C compiled programs.
3310 If you meant to cross compile, use \`--host'.
3311 See \`config.log' for more details." "$LINENO" 5; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3316 $as_echo "$cross_compiling" >&6; }
3318 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321 $as_echo_n "checking for suffix of object files... " >&6; }
3322 if test "${ac_cv_objext+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 rm -f conftest.o conftest.obj
3337 if { { ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compile") 2>&5
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 for ac_file in conftest.o conftest.obj conftest.*; do
3349 test -f "$ac_file" || continue;
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error "cannot compute suffix of object files: cannot compile
3363 See \`config.log' for more details." "$LINENO" 5; }
3365 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368 $as_echo "$ac_cv_objext" >&6; }
3369 OBJEXT=$ac_cv_objext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3390 if ac_fn_c_try_compile "$LINENO"; then :
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401 if test $ac_compiler_gnu = yes; then
3406 ac_test_CFLAGS=${CFLAGS+set}
3407 ac_save_CFLAGS=$CFLAGS
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3410 if test "${ac_cv_prog_cc_g+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3413 ac_save_c_werror_flag=$ac_c_werror_flag
3414 ac_c_werror_flag=yes
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470 $as_echo "$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3480 if test "$GCC" = yes; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3491 ac_cv_prog_cc_c89=no
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3513 s = g (p, va_arg (v,int));
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3519 function prototypes and stuff, but not '\xHH' hex character constants.
3520 These don't provoke an error unfortunately, instead are silently treated
3521 as 'x'. The following induces an error, until -std is added to get
3522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3523 array size at least. It's necessary to write '\x00'==0 to get something
3524 that's true only with -std. */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528 inside strings and character constants. */
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549 CC="$ac_save_CC $ac_arg"
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_c89=$ac_arg
3553 rm -f core conftest.err conftest.$ac_objext
3554 test "x$ac_cv_prog_cc_c89" != "xno" && break
3556 rm -f conftest.$ac_ext
3561 case "x$ac_cv_prog_cc_c89" in
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3564 $as_echo "none needed" >&6; } ;;
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 $as_echo "unsupported" >&6; } ;;
3569 CC="$CC $ac_cv_prog_cc_c89"
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3571 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573 if test "x$ac_cv_prog_cc_c89" != xno; then :
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3589 ac_check_lib_save_LIBS=$LIBS
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3609 if ac_fn_c_try_link "$LINENO"; then :
3610 ac_cv_lib_dl_dlopen=yes
3612 ac_cv_lib_dl_dlopen=no
3614 rm -f core conftest.err conftest.$ac_objext \
3615 conftest$ac_exeext conftest.$ac_ext
3616 LIBS=$ac_check_lib_save_LIBS
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3620 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3623 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3630 # Check whether --with-diet-libc was given.
3631 if test "${with_diet_libc+set}" = set; then :
3632 withval=$with_diet_libc; CC="diet cc -nostdinc"
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3635 $as_echo "CC=$CC" >&6; }
3638 # Check whether --with-cc was given.
3639 if test "${with_cc+set}" = set; then :
3640 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3644 # Check whether --with-ccopts was given.
3645 if test "${with_ccopts+set}" = set; then :
3646 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3650 # Check whether --with-ldopts was given.
3651 if test "${with_ldopts+set}" = set; then :
3652 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3699 if test -z "$ac_cv_prog_CC"; then
3701 # Extract the first word of "gcc", so it can be a program name with args.
3702 set dummy gcc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_ac_ct_CC="gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 $as_echo "$ac_ct_CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3737 if test "x$ac_ct_CC" = x; then
3740 case $cross_compiling:$ac_tool_warned in
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3890 test -n "$CC" && break
3893 if test -z "$CC"; then
3895 for ac_prog in cl.exe
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3934 test -n "$ac_ct_CC" && break
3937 if test "x$ac_ct_CC" = x; then
3940 case $cross_compiling:$ac_tool_warned in
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned=yes ;;
3953 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error "no acceptable C compiler found in \$PATH
3956 See \`config.log' for more details." "$LINENO" 5; }
3958 # Provide some information about the compiler.
3959 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3962 for ac_option in --version -v -V -qversion; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3972 if test -s conftest.err; then
3974 ... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3978 rm -f conftest.er1 conftest.err
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3984 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3985 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
4002 if ac_fn_c_try_compile "$LINENO"; then :
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4012 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4013 if test $ac_compiler_gnu = yes; then
4018 ac_test_CFLAGS=${CFLAGS+set}
4019 ac_save_CFLAGS=$CFLAGS
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4021 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4022 if test "${ac_cv_prog_cc_g+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 ac_save_c_werror_flag=$ac_c_werror_flag
4026 ac_c_werror_flag=yes
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_c_werror_flag=$ac_save_c_werror_flag
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4082 $as_echo "$ac_cv_prog_cc_g" >&6; }
4083 if test "$ac_test_CFLAGS" = set; then
4084 CFLAGS=$ac_save_CFLAGS
4085 elif test $ac_cv_prog_cc_g = yes; then
4086 if test "$GCC" = yes; then
4092 if test "$GCC" = yes; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4099 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4100 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_cv_prog_cc_c89=no
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4109 #include <sys/types.h>
4110 #include <sys/stat.h>
4111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4112 struct buf { int x; };
4113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4114 static char *e (p, i)
4120 static char *f (char * (*g) (char **, int), char **p, ...)
4125 s = g (p, va_arg (v,int));
4130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4131 function prototypes and stuff, but not '\xHH' hex character constants.
4132 These don't provoke an error unfortunately, instead are silently treated
4133 as 'x'. The following induces an error, until -std is added to get
4134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4135 array size at least. It's necessary to write '\x00'==0 to get something
4136 that's true only with -std. */
4137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4140 inside strings and character constants. */
4142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4144 int test (int i, double x);
4145 struct s1 {int (*f) (int a);};
4146 struct s2 {int (*f) (double a);};
4147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_c89=$ac_arg
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x$ac_cv_prog_cc_c89" != "xno" && break
4168 rm -f conftest.$ac_ext
4173 case "x$ac_cv_prog_cc_c89" in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4176 $as_echo "none needed" >&6; } ;;
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4179 $as_echo "unsupported" >&6; } ;;
4181 CC="$CC $ac_cv_prog_cc_c89"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4183 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4185 if test "x$ac_cv_prog_cc_c89" != xno; then :
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 if test "$GCC" = yes; then
4196 RDYNAMIC="-rdynamic"
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4205 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4210 if test -z "$CPP"; then
4211 if test "${ac_cv_prog_CPP+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4214 # Double quotes because CPP needs to be expanded
4215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4229 # include <limits.h>
4231 # include <assert.h>
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4253 # Passes both tests.
4257 rm -f conftest.err conftest.$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4275 $as_echo "$CPP" >&6; }
4277 for ac_c_preproc_warn_flag in '' yes
4279 # Use a header file that comes with gcc, so configuring glibc
4280 # with a fresh cross-compiler works.
4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 # <limits.h> exists even on freestanding compilers.
4283 # On the NeXT, cc -E runs the code through the compiler's parser,
4284 # not just through cpp. "Syntax error" is here to catch this case.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4288 # include <limits.h>
4290 # include <assert.h>
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4297 # Broken: fails on valid input.
4300 rm -f conftest.err conftest.$ac_ext
4302 # OK, works on sane cases. Now check whether nonexistent headers
4303 # can be detected and how.
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <ac_nonexistent.h>
4308 if ac_fn_c_try_cpp "$LINENO"; then :
4309 # Broken: success on invalid input.
4312 # Passes both tests.
4316 rm -f conftest.err conftest.$ac_ext
4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4320 rm -f conftest.err conftest.$ac_ext
4321 if $ac_preproc_ok; then :
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4327 See \`config.log' for more details." "$LINENO" 5; }
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4337 $as_echo_n "checking for additional special compiler flags... " >&6; }
4338 if test "$GCC" = yes
4341 alpha) addcflags="-mieee" ;;
4344 if test "x$addcflags" != x
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4347 $as_echo "$addcflags" >&6; }
4348 CFLAGS="$addcflags $CFLAGS"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4351 $as_echo "(none)" >&6; }
4357 # Check whether --with-root-prefix was given.
4358 if test "${with_root_prefix+set}" = set; then :
4359 withval=$with_root_prefix; root_prefix=$withval
4363 # Check whether --enable-maintainer-mode was given.
4364 if test "${enable_maintainer_mode+set}" = set; then :
4365 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4369 $as_echo "Disabling maintainer mode" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4373 $as_echo "Enabling maintainer mode" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4379 $as_echo "Disabling maintainer mode by default" >&6; }
4384 # Check whether --enable-symlink-install was given.
4385 if test "${enable_symlink_install+set}" = set; then :
4386 enableval=$enable_symlink_install; if test "$enableval" = "no"
4388 LINK_INSTALL_FLAGS=-f
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4390 $as_echo "Disabling symlinks for install" >&6; }
4392 LINK_INSTALL_FLAGS=-sf
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4394 $as_echo "Enabling symlinks for install" >&6; }
4398 LINK_INSTALL_FLAGS=-f
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4400 $as_echo "Disabling symlinks for install by default" >&6; }
4405 # Check whether --enable-symlink-relative-symlinks was given.
4406 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4407 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4411 $as_echo "Disabling relative symlinks for install" >&6; }
4413 SYMLINK_RELATIVE=--relative
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4415 $as_echo "Enabling symlinks for install" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4421 $as_echo "Disabling relative symlinks for install by default" >&6; }
4426 # Check whether --enable-symlink-build was given.
4427 if test "${enable_symlink_build+set}" = set; then :
4428 enableval=$enable_symlink_build; if test "$enableval" = "no"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4432 $as_echo "Disabling symlinks for build" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4436 $as_echo "Enabling symlinks for build" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4442 $as_echo "Disabling symlinks for build by default" >&6; }
4447 # Check whether --enable-verbose-makecmds was given.
4448 if test "${enable_verbose_makecmds+set}" = set; then :
4449 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4452 $as_echo "Disabling verbose make commands" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4457 $as_echo "Enabling verbose make commands" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4464 $as_echo "Disabling verbose make commands" >&6; }
4472 # Check whether --enable-lfsck was given.
4473 if test "${enable_lfsck+set}" = set; then :
4474 enableval=$enable_lfsck; if test "$enableval" = "no"
4478 ENABLE_LFSCK="--disable-lfsck"
4479 echo "Disabling Lustre lfsck support"
4483 ENABLE_LFSCK="--enable-lfsck"
4485 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4487 echo "Enabling Lustre lfsck support"
4495 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4497 echo "Enabling Lustre lfsck support by default"
4505 # Check whether --with-lustre was given.
4506 if test "${with_lustre+set}" = set; then :
4507 withval=$with_lustre; { $as_echo "$as_me:${as_lineno-$LINENO}: result: LUSTRE is in $withval" >&5
4508 $as_echo "LUSTRE is in $withval" >&6; }
4510 WITH_LUSTRE="--with-lustre=$withval"
4518 if test "x$enable_lfsck" != "xno"; then :
4520 as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/include/lustre/liblustreapi.h" | $as_tr_sh`
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/include/lustre/liblustreapi.h" >&5
4522 $as_echo_n "checking for $LUSTRE/include/lustre/liblustreapi.h... " >&6; }
4523 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4524 $as_echo_n "(cached) " >&6
4526 test "$cross_compiling" = yes &&
4527 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4528 if test -r "$LUSTRE/include/lustre/liblustreapi.h"; then
4529 eval "$as_ac_File=yes"
4531 eval "$as_ac_File=no"
4534 eval ac_res=\$$as_ac_File
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4536 $as_echo "$ac_res" >&6; }
4537 eval as_val=\$$as_ac_File
4538 if test "x$as_val" = x""yes; then :
4541 as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/lustre/include/lustre/liblustreapi.h" | $as_tr_sh`
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/lustre/include/lustre/liblustreapi.h" >&5
4543 $as_echo_n "checking for $LUSTRE/lustre/include/lustre/liblustreapi.h... " >&6; }
4544 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4545 $as_echo_n "(cached) " >&6
4547 test "$cross_compiling" = yes &&
4548 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4549 if test -r "$LUSTRE/lustre/include/lustre/liblustreapi.h"; then
4550 eval "$as_ac_File=yes"
4552 eval "$as_ac_File=no"
4555 eval ac_res=\$$as_ac_File
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4557 $as_echo "$ac_res" >&6; }
4558 eval as_val=\$$as_ac_File
4559 if test "x$as_val" = x""yes; then :
4562 as_fn_error "No lustre includes found." "$LINENO" 5
4570 # Check whether --enable-compression was given.
4571 if test "${enable_compression+set}" = set; then :
4572 enableval=$enable_compression; if test "$enableval" = "no"
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4575 $as_echo "Disabling compression support" >&6; }
4578 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4581 $as_echo "Enabling compression support" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4583 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4588 $as_echo "Disabling compression support by default" >&6; }
4593 # Check whether --enable-htree was given.
4594 if test "${enable_htree+set}" = set; then :
4595 enableval=$enable_htree; if test "$enableval" = "no"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4599 $as_echo "Disabling htree directory support" >&6; }
4602 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4605 $as_echo "Enabling htree directory support" >&6; }
4610 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4613 $as_echo "Enabling htree directory support by default" >&6; }
4618 E2_PKG_CONFIG_STATIC=--static
4621 # Check whether --enable-elf-shlibs was given.
4622 if test "${enable_elf_shlibs+set}" = set; then :
4623 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4626 MAKEFILE_ELF=/dev/null
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4628 $as_echo "Disabling ELF shared libraries" >&6; }
4630 E2_PKG_CONFIG_STATIC=
4632 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4635 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4641 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4643 $as_echo "Enabling ELF shared libraries" >&6; }
4647 MAKEFILE_ELF=/dev/null
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4650 $as_echo "Disabling ELF shared libraries by default" >&6; }
4656 # Check whether --enable-bsd-shlibs was given.
4657 if test "${enable_bsd_shlibs+set}" = set; then :
4658 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4661 MAKEFILE_BSDLIB=/dev/null
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4663 $as_echo "Disabling BSD shared libraries" >&6; }
4665 E2_PKG_CONFIG_STATIC=
4667 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4671 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4676 $as_echo "Enabling BSD shared libraries" >&6; }
4680 MAKEFILE_BSDLIB=/dev/null
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4683 $as_echo "Disabling BSD shared libraries by default" >&6; }
4689 # Check whether --enable-profile was given.
4690 if test "${enable_profile+set}" = set; then :
4691 enableval=$enable_profile; if test "$enableval" = "no"
4694 MAKEFILE_PROFILE=/dev/null
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4696 $as_echo "Disabling profiling libraries" >&6; }
4699 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4700 PROFILED_LIB_EXT=_p.a
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4702 $as_echo "Building profiling libraries" >&6; }
4707 MAKEFILE_PROFILE=/dev/null
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4709 $as_echo "Disabling profiling libraries by default" >&6; }
4715 # Check whether --enable-checker was given.
4716 if test "${enable_checker+set}" = set; then :
4717 enableval=$enable_checker; if test "$enableval" = "no"
4720 MAKEFILE_CHECKER=/dev/null
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4722 $as_echo "Disabling checker libraries" >&6; }
4725 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4727 $as_echo "Building checker libraries" >&6; }
4732 MAKEFILE_CHECKER=/dev/null
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4734 $as_echo "Disabling checker libraries by default" >&6; }
4745 # Check whether --enable-jbd-debug was given.
4746 if test "${enable_jbd_debug+set}" = set; then :
4747 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4750 $as_echo "Disabling journal debugging" >&6; }
4753 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4756 $as_echo "Enabling journal debugging" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4761 $as_echo "Disabling journal debugging by default" >&6; }
4765 # Check whether --enable-blkid-debug was given.
4766 if test "${enable_blkid_debug+set}" = set; then :
4767 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4770 $as_echo "Disabling blkid debugging" >&6; }
4773 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4776 $as_echo "Enabling blkid debugging" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4781 $as_echo "Disabling blkid debugging by default" >&6; }
4785 # Check whether --enable-testio-debug was given.
4786 if test "${enable_testio_debug+set}" = set; then :
4787 enableval=$enable_testio_debug;
4788 if test "$enableval" = "no"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4791 $as_echo "Disabling testio debugging" >&6; }
4795 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4798 $as_echo "Enabling testio debugging" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4803 $as_echo "Enabling testio debugging by default" >&6; }
4804 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4814 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4846 if test -n "$PKG_CONFIG"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4848 $as_echo "$PKG_CONFIG" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4856 if test -z "$ac_cv_path_PKG_CONFIG"; then
4857 ac_pt_PKG_CONFIG=$PKG_CONFIG
4858 # Extract the first word of "pkg-config", so it can be a program name with args.
4859 set dummy pkg-config; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4865 case $ac_pt_PKG_CONFIG in
4867 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4889 if test -n "$ac_pt_PKG_CONFIG"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4891 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4897 if test "x$ac_pt_PKG_CONFIG" = x; then
4900 case $cross_compiling:$ac_tool_warned in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4906 PKG_CONFIG=$ac_pt_PKG_CONFIG
4909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4913 if test -n "$PKG_CONFIG"; then
4914 _pkg_min_version=0.9.0
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4916 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4932 DEPPROFILED_LIBUUID=
4934 # Check whether --enable-libuuid was given.
4935 if test "${enable_libuuid+set}" = set; then :
4936 enableval=$enable_libuuid; if test "$enableval" = "no"
4938 if test -z "$PKG_CONFIG"; then
4939 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4943 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4944 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-luuid $LIBUUID $LIBS"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4952 /* Override any GCC internal prototype to avoid an error.
4953 Use char because int might match the return type of a GCC
4954 builtin and then its argument prototype would still apply. */
4958 char uuid_generate ();
4962 return uuid_generate ();
4967 if ac_fn_c_try_link "$LINENO"; then :
4968 ac_cv_lib_uuid_uuid_generate=yes
4970 ac_cv_lib_uuid_uuid_generate=no
4972 rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4974 LIBS=$ac_check_lib_save_LIBS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4977 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4978 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4979 LIBUUID=`$PKG_CONFIG --libs uuid`;
4980 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4982 as_fn_error "external uuid library not found" "$LINENO" 5
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4987 $as_echo "Disabling private uuid library" >&6; }
4989 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4991 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4992 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4993 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4994 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4996 $as_echo "Enabling private uuid library" >&6; }
5000 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5002 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5003 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5004 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5005 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5007 $as_echo "Enabling private uuid library by default" >&6; }
5020 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5053 if test -n "$PKG_CONFIG"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5055 $as_echo "$PKG_CONFIG" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5063 if test -z "$ac_cv_path_PKG_CONFIG"; then
5064 ac_pt_PKG_CONFIG=$PKG_CONFIG
5065 # Extract the first word of "pkg-config", so it can be a program name with args.
5066 set dummy pkg-config; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5072 case $ac_pt_PKG_CONFIG in
5074 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5096 if test -n "$ac_pt_PKG_CONFIG"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5098 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5104 if test "x$ac_pt_PKG_CONFIG" = x; then
5107 case $cross_compiling:$ac_tool_warned in
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5111 ac_tool_warned=yes ;;
5113 PKG_CONFIG=$ac_pt_PKG_CONFIG
5116 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5120 if test -n "$PKG_CONFIG"; then
5121 _pkg_min_version=0.9.0
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5123 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5124 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5126 $as_echo "yes" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5139 DEPPROFILED_LIBBLKID=
5142 # Check whether --enable-libblkid was given.
5143 if test "${enable_libblkid+set}" = set; then :
5144 enableval=$enable_libblkid; if test "$enableval" = "no"
5146 if test -z "$PKG_CONFIG"; then
5147 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5151 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5152 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 ac_check_lib_save_LIBS=$LIBS
5156 LIBS="-lblkid $LIBBLKID $LIBS"
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5160 /* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5166 char blkid_get_cache ();
5170 return blkid_get_cache ();
5175 if ac_fn_c_try_link "$LINENO"; then :
5176 ac_cv_lib_blkid_blkid_get_cache=yes
5178 ac_cv_lib_blkid_blkid_get_cache=no
5180 rm -f core conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5185 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5186 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5187 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5188 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5190 as_fn_error "external blkid library not found" "$LINENO" 5
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5195 $as_echo "Disabling private blkid library" >&6; }
5197 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5198 DEPLIBBLKID=$LIBBLKID
5199 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5200 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5201 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5202 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5203 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5206 $as_echo "Enabling private blkid library" >&6; }
5210 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5211 DEPLIBBLKID=$LIBBLKID
5212 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5213 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5214 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5215 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5216 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5219 $as_echo "Enabling private blkid library by default" >&6; }
5232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5265 if test -n "$PKG_CONFIG"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5267 $as_echo "$PKG_CONFIG" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5275 if test -z "$ac_cv_path_PKG_CONFIG"; then
5276 ac_pt_PKG_CONFIG=$PKG_CONFIG
5277 # Extract the first word of "pkg-config", so it can be a program name with args.
5278 set dummy pkg-config; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 case $ac_pt_PKG_CONFIG in
5286 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5308 if test -n "$ac_pt_PKG_CONFIG"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5310 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5316 if test "x$ac_pt_PKG_CONFIG" = x; then
5319 case $cross_compiling:$ac_tool_warned in
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5325 PKG_CONFIG=$ac_pt_PKG_CONFIG
5328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5332 if test -n "$PKG_CONFIG"; then
5333 _pkg_min_version=0.9.0
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5335 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5347 # Check whether --enable-quota was given.
5348 if test "${enable_quota+set}" = set; then :
5349 enableval=$enable_quota; if test "$enableval" = "no"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5352 $as_echo "Disabling quota support" >&6; }
5354 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5357 $as_echo "Enabling quota support" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5362 $as_echo "Disabling quota support by default" >&6; }
5366 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5367 DEPLIBQUOTA=$LIBQUOTA
5368 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5369 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5370 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5371 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5379 # Check whether --enable-debugfs was given.
5380 if test "${enable_debugfs+set}" = set; then :
5381 enableval=$enable_debugfs; if test "$enableval" = "no"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5384 $as_echo "Disabling debugfs support" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5389 $as_echo "Enabling debugfs support" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5394 $as_echo "Enabling debugfs support by default" >&6; }
5400 # Check whether --enable-e2scan was given.
5401 if test "${enable_e2scan+set}" = set; then :
5402 enableval=$enable_e2scan; if test "$enableval" = "no"
5404 echo "Disabling e2scan support"
5410 echo "Enabling e2scan support"
5414 echo "Enabling e2scan support by default"
5422 # Check whether --enable-imager was given.
5423 if test "${enable_imager+set}" = set; then :
5424 enableval=$enable_imager; if test "$enableval" = "no"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5427 $as_echo "Disabling e2image support" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5432 $as_echo "Enabling e2image support" >&6; }
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5437 $as_echo "Enabling e2image support by default" >&6; }
5443 # Check whether --enable-resizer was given.
5444 if test "${enable_resizer+set}" = set; then :
5445 enableval=$enable_resizer; if test "$enableval" = "no"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5448 $as_echo "Disabling e2resize support" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5453 $as_echo "Enabling e2resize support" >&6; }
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5458 $as_echo "Enabling e2resize support by default" >&6; }
5464 # Check whether --enable-defrag was given.
5465 if test "${enable_defrag+set}" = set; then :
5466 enableval=$enable_defrag; if test "$enableval" = "no"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5469 $as_echo "Disabling e4defrag support" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5474 $as_echo "Enabling e4defrag support" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5479 $as_echo "Enabling e4defrag support by default" >&6; }
5485 # Check whether --enable-fsck was given.
5486 if test "${enable_fsck+set}" = set; then :
5487 enableval=$enable_fsck; if test "$enableval" = "no"
5489 FSCK_PROG='' FSCK_MAN=''
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5491 $as_echo "Not building fsck wrapper" >&6; }
5493 FSCK_PROG=fsck FSCK_MAN=fsck.8
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5495 $as_echo "Building fsck wrapper" >&6; }
5501 FSCK_PROG='' FSCK_MAN=''
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5503 $as_echo "Not building fsck wrapper by default" >&6; }
5506 FSCK_PROG=fsck FSCK_MAN=fsck.8
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5508 $as_echo "Building fsck wrapper by default" >&6; }
5515 # Check whether --enable-e2initrd-helper was given.
5516 if test "${enable_e2initrd_helper+set}" = set; then :
5517 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5519 E2INITRD_PROG='' E2INITRD_MAN=''
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5521 $as_echo "Not building e2initrd helper" >&6; }
5523 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5525 $as_echo "Building e2initrd helper" >&6; }
5529 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5531 $as_echo "Building e2initrd helper by default" >&6; }
5537 # Check whether --enable-tls was given.
5538 if test "${enable_tls+set}" = set; then :
5539 enableval=$enable_tls; if test "$enableval" = "no"
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5543 $as_echo "Disabling thread local support" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5547 $as_echo "Enabling thread local support" >&6; }
5551 if test -n "$WITH_DIET_LIBC"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5555 $as_echo "Diet libc does not support thread local support" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5559 $as_echo "Try using thread local support by default" >&6; }
5564 if test "$try_tls" = "yes"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5568 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5569 if test "${ac_cv_tls+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5573 ax_tls_keywords="__thread __declspec(thread) none"
5574 for ax_tls_keyword in $ax_tls_keywords; do
5575 case $ax_tls_keyword in
5576 none) ac_cv_tls=none ; break ;;
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5583 static $ax_tls_keyword int bar;
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595 ac_cv_tls=$ax_tls_keyword ; break
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 if test "$ac_cv_tls" != "none"; then
5609 cat >>confdefs.h <<_ACEOF
5610 #define TLS $ac_cv_tls
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5615 $as_echo "$ac_cv_tls" >&6; }
5619 # Check whether --enable-uuidd was given.
5620 if test "${enable_uuidd+set}" = set; then :
5621 enableval=$enable_uuidd; if test "$enableval" = "no"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5624 $as_echo "Not building uuidd" >&6; }
5627 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5631 $as_echo "Building uuidd" >&6; }
5635 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5639 $as_echo "Building uuidd by default" >&6; }
5644 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5646 GETTEXT_PACKAGE=e2fsprogs
5648 VERSION="$E2FSPROGS_VERSION"
5651 cat >>confdefs.h <<_ACEOF
5652 #define PACKAGE "$PACKAGE"
5656 cat >>confdefs.h <<_ACEOF
5657 #define VERSION "$VERSION"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5668 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5669 $as_echo_n "(cached) " >&6
5671 cat >conftest.make <<\_ACEOF
5674 @echo '@@@%%%=$(MAKE)=@@@%%%'
5676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5679 eval ac_cv_prog_make_${ac_make}_set=yes;;
5681 eval ac_cv_prog_make_${ac_make}_set=no;;
5685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 SET_MAKE="MAKE=${MAKE-make}"
5695 # Find a good install program. We prefer a C program (faster),
5696 # so one script is as good as another. But avoid the broken or
5697 # incompatible versions:
5698 # SysV /etc/install, /usr/sbin/install
5699 # SunOS /usr/etc/install
5700 # IRIX /sbin/install
5702 # AmigaOS /C/install, which installs bootblocks on floppy discs
5703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5706 # OS/2's system install, which has a completely different semantic
5707 # ./install, which can be erroneously created by make from ./install.sh.
5708 # Reject install programs that cannot install multiple files.
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5710 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5711 if test -z "$INSTALL"; then
5712 if test "${ac_cv_path_install+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 # Account for people who put trailing slashes in PATH elements.
5721 case $as_dir/ in #((
5722 ./ | .// | /[cC]/* | \
5723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5727 # OSF1 and SCO ODT 3.0 have their own names for install.
5728 # Don't use installbsd from OSF since it installs stuff as root
5730 for ac_prog in ginstall scoinst install; do
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5733 if test $ac_prog = install &&
5734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5735 # AIX install. It has an incompatible calling convention.
5737 elif test $ac_prog = install &&
5738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5739 # program-specific install script used by HP pwplus--don't use.
5742 rm -rf conftest.one conftest.two conftest.dir
5743 echo one > conftest.one
5744 echo two > conftest.two
5746 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5747 test -s conftest.one && test -s conftest.two &&
5748 test -s conftest.dir/conftest.one &&
5749 test -s conftest.dir/conftest.two
5751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5764 rm -rf conftest.one conftest.two conftest.dir
5767 if test "${ac_cv_path_install+set}" = set; then
5768 INSTALL=$ac_cv_path_install
5770 # As a last resort, use the slow shell script. Don't cache a
5771 # value for INSTALL within a source directory, because that will
5772 # break other packages using the cache if that directory is
5773 # removed, or if the value is a relative name.
5774 INSTALL=$ac_install_sh
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5778 $as_echo "$INSTALL" >&6; }
5780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5781 # It thinks the first close brace ends the variable substitution.
5782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5790 if test -n "$ac_aux_dir"; then
5791 case "$ac_aux_dir" in
5792 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5793 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5796 if test -z "$MKINSTALLDIRS"; then
5797 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5803 $as_echo_n "checking whether NLS is requested... " >&6; }
5804 # Check whether --enable-nls was given.
5805 if test "${enable_nls+set}" = set; then :
5806 enableval=$enable_nls; USE_NLS=$enableval
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5812 $as_echo "$USE_NLS" >&6; }
5819 # Prepare PATH_SEPARATOR.
5820 # The user is always right.
5821 if test "${PATH_SEPARATOR+set}" != set; then
5822 echo "#! /bin/sh" >conf$$.sh
5823 echo "exit 0" >>conf$$.sh
5825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5833 # Find out how to test for executable files. Don't use a zero-byte file,
5834 # as systems may use methods other than mode bits to determine executability.
5835 cat >conf$$.file <<_ASEOF
5839 chmod +x conf$$.file
5840 if test -x conf$$.file >/dev/null 2>&1; then
5841 ac_executable_p="test -x"
5843 ac_executable_p="test -f"
5847 # Extract the first word of "msgfmt", so it can be a program name with args.
5848 set dummy msgfmt; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5860 for ac_dir in $PATH; do
5862 test -z "$ac_dir" && ac_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5865 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5866 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5867 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5874 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5878 MSGFMT="$ac_cv_path_MSGFMT"
5879 if test "$MSGFMT" != ":"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5881 $as_echo "$MSGFMT" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5888 set dummy gmsgfmt; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5918 GMSGFMT=$ac_cv_path_GMSGFMT
5919 if test -n "$GMSGFMT"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5921 $as_echo "$GMSGFMT" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5930 # Prepare PATH_SEPARATOR.
5931 # The user is always right.
5932 if test "${PATH_SEPARATOR+set}" != set; then
5933 echo "#! /bin/sh" >conf$$.sh
5934 echo "exit 0" >>conf$$.sh
5936 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5944 # Find out how to test for executable files. Don't use a zero-byte file,
5945 # as systems may use methods other than mode bits to determine executability.
5946 cat >conf$$.file <<_ASEOF
5950 chmod +x conf$$.file
5951 if test -x conf$$.file >/dev/null 2>&1; then
5952 ac_executable_p="test -x"
5954 ac_executable_p="test -f"
5958 # Extract the first word of "xgettext", so it can be a program name with args.
5959 set dummy xgettext; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5967 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5970 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5971 for ac_dir in $PATH; do
5973 test -z "$ac_dir" && ac_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5976 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5977 (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
5978 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5985 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5989 XGETTEXT="$ac_cv_path_XGETTEXT"
5990 if test "$XGETTEXT" != ":"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5992 $as_echo "$XGETTEXT" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
6001 # Prepare PATH_SEPARATOR.
6002 # The user is always right.
6003 if test "${PATH_SEPARATOR+set}" != set; then
6004 echo "#! /bin/sh" >conf$$.sh
6005 echo "exit 0" >>conf$$.sh
6007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6015 # Find out how to test for executable files. Don't use a zero-byte file,
6016 # as systems may use methods other than mode bits to determine executability.
6017 cat >conf$$.file <<_ASEOF
6021 chmod +x conf$$.file
6022 if test -x conf$$.file >/dev/null 2>&1; then
6023 ac_executable_p="test -x"
6025 ac_executable_p="test -f"
6029 # Extract the first word of "msgmerge", so it can be a program name with args.
6030 set dummy msgmerge; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6038 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6041 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6042 for ac_dir in $PATH; do
6044 test -z "$ac_dir" && ac_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6047 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6048 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6055 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6059 MSGMERGE="$ac_cv_path_MSGMERGE"
6060 if test "$MSGMERGE" != ":"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6062 $as_echo "$MSGMERGE" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6069 if test "$GMSGFMT" != ":"; then
6070 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6071 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6074 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6076 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6081 if test "$XGETTEXT" != ":"; then
6082 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6083 (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
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6087 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6093 ac_config_commands="$ac_config_commands default-1"
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127 $as_echo "$RANLIB" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167 $as_echo "$ac_ct_RANLIB" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6173 if test "x$ac_ct_RANLIB" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6182 RANLIB=$ac_ct_RANLIB
6185 RANLIB="$ac_cv_prog_RANLIB"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6190 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6191 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6194 ac_check_lib_save_LIBS=$LIBS
6195 LIBS="-lcposix $LIBS"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6199 /* Override any GCC internal prototype to avoid an error.
6200 Use char because int might match the return type of a GCC
6201 builtin and then its argument prototype would still apply. */
6214 if ac_fn_c_try_link "$LINENO"; then :
6215 ac_cv_lib_cposix_strerror=yes
6217 ac_cv_lib_cposix_strerror=no
6219 rm -f core conftest.err conftest.$ac_objext \
6220 conftest$ac_exeext conftest.$ac_ext
6221 LIBS=$ac_check_lib_save_LIBS
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6224 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6225 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6226 LIBS="$LIBS -lcposix"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6234 if test "${ac_cv_path_GREP+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6237 if test -z "$GREP"; then
6238 ac_path_GREP_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in grep ggrep; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6248 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6249 # Check for GNU ac_path_GREP and select it if it is found.
6250 # Check for GNU $ac_path_GREP
6251 case `"$ac_path_GREP" --version 2>&1` in
6253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6256 $as_echo_n 0123456789 >"conftest.in"
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo 'GREP' >> "conftest.nl"
6263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_GREP="$ac_path_GREP"
6269 ac_path_GREP_max=$ac_count
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6277 $ac_path_GREP_found && break 3
6282 if test -z "$ac_cv_path_GREP"; then
6283 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6286 ac_cv_path_GREP=$GREP
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6291 $as_echo "$ac_cv_path_GREP" >&6; }
6292 GREP="$ac_cv_path_GREP"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6296 $as_echo_n "checking for egrep... " >&6; }
6297 if test "${ac_cv_path_EGREP+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6300 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6301 then ac_cv_path_EGREP="$GREP -E"
6303 if test -z "$EGREP"; then
6304 ac_path_EGREP_found=false
6305 # Loop through the user's path and test for each of PROGNAME-LIST
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6310 test -z "$as_dir" && as_dir=.
6311 for ac_prog in egrep; do
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6314 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6315 # Check for GNU ac_path_EGREP and select it if it is found.
6316 # Check for GNU $ac_path_EGREP
6317 case `"$ac_path_EGREP" --version 2>&1` in
6319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6322 $as_echo_n 0123456789 >"conftest.in"
6325 cat "conftest.in" "conftest.in" >"conftest.tmp"
6326 mv "conftest.tmp" "conftest.in"
6327 cp "conftest.in" "conftest.nl"
6328 $as_echo 'EGREP' >> "conftest.nl"
6329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6331 as_fn_arith $ac_count + 1 && ac_count=$as_val
6332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6333 # Best one so far, save it but keep looking for a better one
6334 ac_cv_path_EGREP="$ac_path_EGREP"
6335 ac_path_EGREP_max=$ac_count
6337 # 10*(2^10) chars as input seems more than enough
6338 test $ac_count -gt 10 && break
6340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6343 $ac_path_EGREP_found && break 3
6348 if test -z "$ac_cv_path_EGREP"; then
6349 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6352 ac_cv_path_EGREP=$EGREP
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6358 $as_echo "$ac_cv_path_EGREP" >&6; }
6359 EGREP="$ac_cv_path_EGREP"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6363 $as_echo_n "checking for ANSI C header files... " >&6; }
6364 if test "${ac_cv_header_stdc+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383 ac_cv_header_stdc=yes
6385 ac_cv_header_stdc=no
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 if test $ac_cv_header_stdc = yes; then
6390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 $EGREP "memchr" >/dev/null 2>&1; then :
6400 ac_cv_header_stdc=no
6406 if test $ac_cv_header_stdc = yes; then
6407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414 $EGREP "free" >/dev/null 2>&1; then :
6417 ac_cv_header_stdc=no
6423 if test $ac_cv_header_stdc = yes; then
6424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6425 if test "$cross_compiling" = yes; then :
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6432 #if ((' ' & 0x0FF) == 0x020)
6433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6436 # define ISLOWER(c) \
6437 (('a' <= (c) && (c) <= 'i') \
6438 || ('j' <= (c) && (c) <= 'r') \
6439 || ('s' <= (c) && (c) <= 'z'))
6440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6448 for (i = 0; i < 256; i++)
6449 if (XOR (islower (i), ISLOWER (i))
6450 || toupper (i) != TOUPPER (i))
6455 if ac_fn_c_try_run "$LINENO"; then :
6458 ac_cv_header_stdc=no
6460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6461 conftest.$ac_objext conftest.beam conftest.$ac_ext
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6467 $as_echo "$ac_cv_header_stdc" >&6; }
6468 if test $ac_cv_header_stdc = yes; then
6470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6475 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6476 if test "${ac_cv_c_const+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6485 /* FIXME: Include the comments suggested by Paul. */
6487 /* Ultrix mips cc rejects this. */
6488 typedef int charset[2];
6490 /* SunOS 4.1.1 cc rejects this. */
6491 char const *const *pcpcc;
6493 /* NEC SVR4.0.2 mips cc rejects this. */
6494 struct point {int x, y;};
6495 static struct point const zero = {0,0};
6496 /* AIX XL C 1.02.0.0 rejects this.
6497 It does not let you subtract one const X* pointer from another in
6498 an arm of an if-expression whose if-part is not a constant
6500 const char *g = "string";
6501 pcpcc = &g + (g ? g-g : 0);
6502 /* HPUX 7.0 cc rejects these. */
6504 ppc = (char**) pcpcc;
6505 pcpcc = (char const *const *) ppc;
6506 { /* SCO 3.2v4 cc rejects this. */
6508 char const *s = 0 ? (char *) 0 : (char const *) 0;
6513 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6515 const int *foo = &x[0];
6518 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6519 typedef const int *iptr;
6523 { /* AIX XL C 1.02.0.0 rejects this saying
6524 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6525 struct s { int j; const int *ap[3]; };
6526 struct s *b; b->j = 5;
6528 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6532 return !cs[0] && !zero.x;
6539 if ac_fn_c_try_compile "$LINENO"; then :
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6547 $as_echo "$ac_cv_c_const" >&6; }
6548 if test $ac_cv_c_const = no; then
6550 $as_echo "#define const /**/" >>confdefs.h
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6556 $as_echo_n "checking for signed... " >&6; }
6557 if test "${bh_cv_c_signed+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6571 if ac_fn_c_try_compile "$LINENO"; then :
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6579 $as_echo "$bh_cv_c_signed" >&6; }
6580 if test $bh_cv_c_signed = no; then
6582 $as_echo "#define signed /**/" >>confdefs.h
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6587 $as_echo_n "checking for inline... " >&6; }
6588 if test "${ac_cv_c_inline+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6592 for ac_kw in inline __inline__ __inline; do
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6597 static $ac_kw foo_t static_foo () {return 0; }
6598 $ac_kw foo_t foo () {return 0; }
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 ac_cv_c_inline=$ac_kw
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 test "$ac_cv_c_inline" != no && break
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6611 $as_echo "$ac_cv_c_inline" >&6; }
6613 case $ac_cv_c_inline in
6616 case $ac_cv_c_inline in
6618 *) ac_val=$ac_cv_c_inline;;
6620 cat >>confdefs.h <<_ACEOF
6622 #define inline $ac_val
6628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6630 inttypes.h stdint.h unistd.h
6632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6635 eval as_val=\$$as_ac_Header
6636 if test "x$as_val" = x""yes; then :
6637 cat >>confdefs.h <<_ACEOF
6638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6647 if test "x$ac_cv_type_off_t" = x""yes; then :
6651 cat >>confdefs.h <<_ACEOF
6652 #define off_t long int
6657 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6658 if test "x$ac_cv_type_size_t" = x""yes; then :
6662 cat >>confdefs.h <<_ACEOF
6663 #define size_t unsigned int
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6670 $as_echo_n "checking for long long... " >&6; }
6671 if test "${ac_cv_type_long_long+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 long long ll = 1LL; int i = 63;
6680 long long llmax = (long long) -1;
6681 return ll << i | ll >> i | llmax / ll | llmax % ll;
6686 if ac_fn_c_try_link "$LINENO"; then :
6687 ac_cv_type_long_long=yes
6689 ac_cv_type_long_long=no
6691 rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6695 $as_echo "$ac_cv_type_long_long" >&6; }
6696 if test $ac_cv_type_long_long = yes; then
6698 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6704 $as_echo_n "checking for long double... " >&6; }
6705 if test "${gt_cv_c_long_double+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6708 if test "$GCC" = yes; then
6709 gt_cv_c_long_double=yes
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6714 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6715 long double foo = 0.0;
6716 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6717 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 gt_cv_c_long_double=yes
6730 gt_cv_c_long_double=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6736 $as_echo "$gt_cv_c_long_double" >&6; }
6737 if test $gt_cv_c_long_double = yes; then
6739 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6745 $as_echo_n "checking for wchar_t... " >&6; }
6746 if test "${gt_cv_c_wchar_t+set}" = set; then :
6747 $as_echo_n "(cached) " >&6
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6752 wchar_t foo = (wchar_t)'\0';
6761 if ac_fn_c_try_compile "$LINENO"; then :
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6769 $as_echo "$gt_cv_c_wchar_t" >&6; }
6770 if test $gt_cv_c_wchar_t = yes; then
6772 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6778 $as_echo_n "checking for wint_t... " >&6; }
6779 if test "${gt_cv_c_wint_t+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6785 wint_t foo = (wchar_t)'\0';
6794 if ac_fn_c_try_compile "$LINENO"; then :
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6802 $as_echo "$gt_cv_c_wint_t" >&6; }
6803 if test $gt_cv_c_wint_t = yes; then
6805 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6811 $as_echo_n "checking for inttypes.h... " >&6; }
6812 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 #include <sys/types.h>
6818 #include <inttypes.h>
6822 uintmax_t i = (uintmax_t) -1;
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 jm_ac_cv_header_inttypes_h=yes
6830 jm_ac_cv_header_inttypes_h=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6835 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6836 if test $jm_ac_cv_header_inttypes_h = yes; then
6838 cat >>confdefs.h <<_ACEOF
6839 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6846 $as_echo_n "checking for stdint.h... " >&6; }
6847 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <sys/types.h>
6857 uintmax_t i = (uintmax_t) -1;
6862 if ac_fn_c_try_compile "$LINENO"; then :
6863 jm_ac_cv_header_stdint_h=yes
6865 jm_ac_cv_header_stdint_h=no
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6870 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6871 if test $jm_ac_cv_header_stdint_h = yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STDINT_H_WITH_UINTMAX 1
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6883 $as_echo_n "checking for intmax_t... " >&6; }
6884 if test "${gt_cv_c_intmax_t+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6892 #if HAVE_STDINT_H_WITH_UINTMAX
6895 #if HAVE_INTTYPES_H_WITH_UINTMAX
6896 #include <inttypes.h>
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 gt_cv_c_intmax_t=yes
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6915 $as_echo "$gt_cv_c_intmax_t" >&6; }
6916 if test $gt_cv_c_intmax_t = yes; then
6918 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6925 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6926 if test "${gt_cv_func_printf_posix+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6930 if test "$cross_compiling" = yes; then :
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941 $EGREP "notposix" >/dev/null 2>&1; then :
6942 gt_cv_func_printf_posix="guessing no"
6944 gt_cv_func_printf_posix="guessing yes"
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6955 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6956 dollar expansion (possibly an autoconf bug). */
6957 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6958 static char buf[100];
6961 sprintf (buf, format, 33, 55);
6962 return (strcmp (buf, "55 33") != 0);
6965 if ac_fn_c_try_run "$LINENO"; then :
6966 gt_cv_func_printf_posix=yes
6968 gt_cv_func_printf_posix=no
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6971 conftest.$ac_objext conftest.beam conftest.$ac_ext
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6977 $as_echo "$gt_cv_func_printf_posix" >&6; }
6978 case $gt_cv_func_printf_posix in
6981 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6987 # for constant arguments. Useless!
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6989 $as_echo_n "checking for working alloca.h... " >&6; }
6990 if test "${ac_cv_working_alloca_h+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6999 char *p = (char *) alloca (2 * sizeof (int));
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 ac_cv_working_alloca_h=yes
7008 ac_cv_working_alloca_h=no
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7014 $as_echo "$ac_cv_working_alloca_h" >&6; }
7015 if test $ac_cv_working_alloca_h = yes; then
7017 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7022 $as_echo_n "checking for alloca... " >&6; }
7023 if test "${ac_cv_func_alloca_works+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7029 # define alloca __builtin_alloca
7032 # include <malloc.h>
7033 # define alloca _alloca
7035 # ifdef HAVE_ALLOCA_H
7036 # include <alloca.h>
7041 # ifndef alloca /* predefined by HP cc +Olibcalls */
7052 char *p = (char *) alloca (1);
7058 if ac_fn_c_try_link "$LINENO"; then :
7059 ac_cv_func_alloca_works=yes
7061 ac_cv_func_alloca_works=no
7063 rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7067 $as_echo "$ac_cv_func_alloca_works" >&6; }
7069 if test $ac_cv_func_alloca_works = yes; then
7071 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7075 # that cause trouble. Some versions do not even contain alloca or
7076 # contain a buggy version. If you still want to use their alloca,
7077 # use ar to extract alloca.o from them instead of compiling alloca.c.
7079 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7081 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7085 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7086 if test "${ac_cv_os_cray+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 #if defined CRAY && ! defined CRAY2
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "webecray" >/dev/null 2>&1; then :
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7108 $as_echo "$ac_cv_os_cray" >&6; }
7109 if test $ac_cv_os_cray = yes; then
7110 for ac_func in _getb67 GETB67 getb67; do
7111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7113 eval as_val=\$$as_ac_var
7114 if test "x$as_val" = x""yes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define CRAY_STACKSEG_END $ac_func
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7127 $as_echo_n "checking stack direction for C alloca... " >&6; }
7128 if test "${ac_cv_c_stack_direction+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7131 if test "$cross_compiling" = yes; then :
7132 ac_cv_c_stack_direction=0
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 $ac_includes_default
7138 find_stack_direction ()
7140 static char *addr = 0;
7145 return find_stack_direction ();
7148 return (&dummy > addr) ? 1 : -1;
7154 return find_stack_direction () < 0;
7157 if ac_fn_c_try_run "$LINENO"; then :
7158 ac_cv_c_stack_direction=1
7160 ac_cv_c_stack_direction=-1
7162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7163 conftest.$ac_objext conftest.beam conftest.$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7168 $as_echo "$ac_cv_c_stack_direction" >&6; }
7169 cat >>confdefs.h <<_ACEOF
7170 #define STACK_DIRECTION $ac_cv_c_stack_direction
7179 for ac_header in $ac_header_list
7181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7184 eval as_val=\$$as_ac_Header
7185 if test "x$as_val" = x""yes; then :
7186 cat >>confdefs.h <<_ACEOF
7187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7201 for ac_func in getpagesize
7203 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7204 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7205 cat >>confdefs.h <<_ACEOF
7206 #define HAVE_GETPAGESIZE 1
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7213 $as_echo_n "checking for working mmap... " >&6; }
7214 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7217 if test "$cross_compiling" = yes; then :
7218 ac_cv_func_mmap_fixed_mapped=no
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 /* malloc might have been renamed as rpl_malloc. */
7226 /* Thanks to Mike Haertel and Jim Avera for this test.
7227 Here is a matrix of mmap possibilities:
7228 mmap private not fixed
7229 mmap private fixed at somewhere currently unmapped
7230 mmap private fixed at somewhere already mapped
7231 mmap shared not fixed
7232 mmap shared fixed at somewhere currently unmapped
7233 mmap shared fixed at somewhere already mapped
7234 For private mappings, we should verify that changes cannot be read()
7235 back from the file, nor mmap's back from the file at a different
7236 address. (There have been systems where private was not correctly
7237 implemented like the infamous i386 svr4.0, and systems where the
7238 VM page cache was not coherent with the file system buffer cache
7239 like early versions of FreeBSD and possibly contemporary NetBSD.)
7240 For shared mappings, we should conversely verify that changes get
7241 propagated back to all the places they're supposed to be.
7243 Grep wants private fixed already mapped.
7244 The main things grep needs to know about mmap are:
7245 * does it exist and is it safe to write into the mmap'd area
7246 * how to use it (BSD variants) */
7249 #include <sys/mman.h>
7251 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7255 /* This mess was copied from the GNU getpagesize.h. */
7256 #ifndef HAVE_GETPAGESIZE
7257 # ifdef _SC_PAGESIZE
7258 # define getpagesize() sysconf(_SC_PAGESIZE)
7259 # else /* no _SC_PAGESIZE */
7260 # ifdef HAVE_SYS_PARAM_H
7261 # include <sys/param.h>
7262 # ifdef EXEC_PAGESIZE
7263 # define getpagesize() EXEC_PAGESIZE
7264 # else /* no EXEC_PAGESIZE */
7266 # define getpagesize() NBPG * CLSIZE
7269 # endif /* no CLSIZE */
7270 # else /* no NBPG */
7272 # define getpagesize() NBPC
7273 # else /* no NBPC */
7275 # define getpagesize() PAGESIZE
7276 # endif /* PAGESIZE */
7277 # endif /* no NBPC */
7278 # endif /* no NBPG */
7279 # endif /* no EXEC_PAGESIZE */
7280 # else /* no HAVE_SYS_PARAM_H */
7281 # define getpagesize() 8192 /* punt totally */
7282 # endif /* no HAVE_SYS_PARAM_H */
7283 # endif /* no _SC_PAGESIZE */
7285 #endif /* no HAVE_GETPAGESIZE */
7290 char *data, *data2, *data3;
7295 pagesize = getpagesize ();
7297 /* First, make a file with some known garbage in it. */
7298 data = (char *) malloc (pagesize);
7301 for (i = 0; i < pagesize; ++i)
7302 *(data + i) = rand ();
7304 fd = creat ("conftest.mmap", 0600);
7307 if (write (fd, data, pagesize) != pagesize)
7311 /* Next, check that the tail of a page is zero-filled. File must have
7312 non-zero length, otherwise we risk SIGBUS for entire page. */
7313 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7317 if (write (fd2, cdata2, 1) != 1)
7319 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7320 if (data2 == MAP_FAILED)
7322 for (i = 0; i < pagesize; ++i)
7326 if (munmap (data2, pagesize))
7329 /* Next, try to mmap the file at a fixed address which already has
7330 something else allocated at it. If we can, also make sure that
7331 we see the same garbage. */
7332 fd = open ("conftest.mmap", O_RDWR);
7335 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7336 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7338 for (i = 0; i < pagesize; ++i)
7339 if (*(data + i) != *(data2 + i))
7342 /* Finally, make sure that changes to the mapped area do not
7343 percolate back to the file as seen by read(). (This is a bug on
7344 some variants of i386 svr4.0.) */
7345 for (i = 0; i < pagesize; ++i)
7346 *(data2 + i) = *(data2 + i) + 1;
7347 data3 = (char *) malloc (pagesize);
7350 if (read (fd, data3, pagesize) != pagesize)
7352 for (i = 0; i < pagesize; ++i)
7353 if (*(data + i) != *(data3 + i))
7359 if ac_fn_c_try_run "$LINENO"; then :
7360 ac_cv_func_mmap_fixed_mapped=yes
7362 ac_cv_func_mmap_fixed_mapped=no
7364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7365 conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7370 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7373 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7376 rm -f conftest.mmap conftest.txt
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7380 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7381 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7382 $as_echo_n "(cached) " >&6
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7387 #include <features.h>
7388 #ifdef __GNU_LIBRARY__
7389 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7397 ac_cv_gnu_library_2_1=yes
7399 ac_cv_gnu_library_2_1=no
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7407 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7409 GLIBC21="$ac_cv_gnu_library_2_1"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7415 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7416 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7420 if test "$cross_compiling" = yes; then :
7422 # Guess based on the CPU.
7424 alpha* | i3456786 | m68k | s390*)
7425 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7427 gt_cv_int_divbyzero_sigfpe="guessing no";;
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7439 sigfpe_handler (int sig)
7441 sigfpe_handler (sig) int sig;
7444 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7445 exit (sig != SIGFPE);
7455 signal (SIGFPE, sigfpe_handler);
7456 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7457 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7458 signal (SIGTRAP, sigfpe_handler);
7460 /* Linux/SPARC yields signal SIGILL. */
7461 #if defined (__sparc__) && defined (__linux__)
7462 signal (SIGILL, sigfpe_handler);
7471 if ac_fn_c_try_run "$LINENO"; then :
7472 gt_cv_int_divbyzero_sigfpe=yes
7474 gt_cv_int_divbyzero_sigfpe=no
7476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7477 conftest.$ac_objext conftest.beam conftest.$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7483 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7484 case "$gt_cv_int_divbyzero_sigfpe" in
7489 cat >>confdefs.h <<_ACEOF
7490 #define INTDIV0_RAISES_SIGFPE $value
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7496 $as_echo_n "checking for unsigned long long... " >&6; }
7497 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 unsigned long long ull = 1ULL; int i = 63;
7506 unsigned long long ullmax = (unsigned long long) -1;
7507 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7512 if ac_fn_c_try_link "$LINENO"; then :
7513 ac_cv_type_unsigned_long_long=yes
7515 ac_cv_type_unsigned_long_long=no
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7521 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7522 if test $ac_cv_type_unsigned_long_long = yes; then
7524 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7531 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7533 test $ac_cv_type_unsigned_long_long = yes \
7534 && ac_type='unsigned long long' \
7535 || ac_type='unsigned long'
7537 cat >>confdefs.h <<_ACEOF
7538 #define uintmax_t $ac_type
7543 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7549 $as_echo_n "checking for inttypes.h... " >&6; }
7550 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <sys/types.h>
7557 #include <inttypes.h>
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 gt_cv_header_inttypes_h=yes
7569 gt_cv_header_inttypes_h=no
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7575 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7576 if test $gt_cv_header_inttypes_h = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_INTTYPES_H 1
7586 if test $gt_cv_header_inttypes_h = yes; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7588 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7589 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #include <inttypes.h>
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 gt_cv_inttypes_pri_broken=no
7611 gt_cv_inttypes_pri_broken=yes
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7617 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7619 if test "$gt_cv_inttypes_pri_broken" = yes; then
7621 cat >>confdefs.h <<_ACEOF
7622 #define PRI_MACROS_BROKEN 1
7628 for ac_header in stdint.h
7630 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7631 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define HAVE_STDINT_H 1
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7641 $as_echo_n "checking for SIZE_MAX... " >&6; }
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656 $EGREP "Found it" >/dev/null 2>&1; then :
7661 if test -z "$result"; then
7662 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7669 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7676 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7683 if test "$fits_in_uint" = 1; then
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7688 extern unsigned long foo;
7698 if ac_fn_c_try_compile "$LINENO"; then :
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test -z "$result"; then
7704 if test "$fits_in_uint" = 1; then
7705 result="$res_hi$res_lo"U
7707 result="$res_hi$res_lo"UL
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7714 $as_echo "$result" >&6; }
7715 if test "$result" != yes; then
7717 cat >>confdefs.h <<_ACEOF
7718 #define SIZE_MAX $result
7725 for ac_header in stdint.h
7727 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7728 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_STDINT_H 1
7739 if test "X$prefix" = "XNONE"; then
7740 acl_final_prefix="$ac_default_prefix"
7742 acl_final_prefix="$prefix"
7744 if test "X$exec_prefix" = "XNONE"; then
7745 acl_final_exec_prefix='${prefix}'
7747 acl_final_exec_prefix="$exec_prefix"
7749 acl_save_prefix="$prefix"
7750 prefix="$acl_final_prefix"
7751 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7752 prefix="$acl_save_prefix"
7755 # Check whether --with-gnu-ld was given.
7756 if test "${with_gnu_ld+set}" = set; then :
7757 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7762 # Prepare PATH_SEPARATOR.
7763 # The user is always right.
7764 if test "${PATH_SEPARATOR+set}" != set; then
7765 echo "#! /bin/sh" >conf$$.sh
7766 echo "exit 0" >>conf$$.sh
7768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7776 if test "$GCC" = yes; then
7777 # Check if gcc -print-prog-name=ld gives a path.
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7779 $as_echo_n "checking for ld used by GCC... " >&6; }
7782 # gcc leaves a trailing carriage return which upsets mingw
7783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7788 # Accept absolute paths.
7789 [\\/]* | [A-Za-z]:[\\/]*)
7790 re_direlt='/[^/][^/]*/\.\./'
7791 # Canonicalize the path of ld
7792 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7794 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7796 test -z "$LD" && LD="$ac_prog"
7799 # If it fails, then pretend we aren't using GCC.
7803 # If it is relative, then search for the first ld in PATH.
7807 elif test "$with_gnu_ld" = yes; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7809 $as_echo_n "checking for GNU ld... " >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7812 $as_echo_n "checking for non-GNU ld... " >&6; }
7814 if test "${acl_cv_path_LD+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7817 if test -z "$LD"; then
7818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7819 for ac_dir in $PATH; do
7820 test -z "$ac_dir" && ac_dir=.
7821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7822 acl_cv_path_LD="$ac_dir/$ac_prog"
7823 # Check to see if the program is GNU ld. I'd rather use --version,
7824 # but apparently some GNU ld's only accept -v.
7825 # Break only if it was the GNU/non-GNU ld that we prefer.
7826 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7827 *GNU* | *'with BFD'*)
7828 test "$with_gnu_ld" != no && break ;;
7830 test "$with_gnu_ld" != yes && break ;;
7836 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7840 LD="$acl_cv_path_LD"
7841 if test -n "$LD"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7843 $as_echo "$LD" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7848 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7850 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7851 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7855 case `$LD -v 2>&1 </dev/null` in
7856 *GNU* | *'with BFD'*)
7857 acl_cv_prog_gnu_ld=yes ;;
7859 acl_cv_prog_gnu_ld=no ;;
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7863 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7864 with_gnu_ld=$acl_cv_prog_gnu_ld
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7869 $as_echo_n "checking for shared library run path origin... " >&6; }
7870 if test "${acl_cv_rpath+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7874 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7875 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7882 $as_echo "$acl_cv_rpath" >&6; }
7884 libext="$acl_cv_libext"
7885 shlibext="$acl_cv_shlibext"
7886 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7887 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7888 hardcode_direct="$acl_cv_hardcode_direct"
7889 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7890 # Check whether --enable-rpath was given.
7891 if test "${enable_rpath+set}" = set; then :
7892 enableval=$enable_rpath; :
7906 acl_save_prefix="$prefix"
7907 prefix="$acl_final_prefix"
7908 acl_save_exec_prefix="$exec_prefix"
7909 exec_prefix="$acl_final_exec_prefix"
7911 eval additional_includedir=\"$includedir\"
7912 eval additional_libdir=\"$libdir\"
7914 exec_prefix="$acl_save_exec_prefix"
7915 prefix="$acl_save_prefix"
7918 # Check whether --with-libiconv-prefix was given.
7919 if test "${with_libiconv_prefix+set}" = set; then :
7920 withval=$with_libiconv_prefix;
7921 if test "X$withval" = "Xno"; then
7924 if test "X$withval" = "X"; then
7926 acl_save_prefix="$prefix"
7927 prefix="$acl_final_prefix"
7928 acl_save_exec_prefix="$exec_prefix"
7929 exec_prefix="$acl_final_exec_prefix"
7931 eval additional_includedir=\"$includedir\"
7932 eval additional_libdir=\"$libdir\"
7934 exec_prefix="$acl_save_exec_prefix"
7935 prefix="$acl_save_prefix"
7938 additional_includedir="$withval/include"
7939 additional_libdir="$withval/lib"
7950 names_already_handled=
7951 names_next_round='iconv '
7952 while test -n "$names_next_round"; do
7953 names_this_round="$names_next_round"
7955 for name in $names_this_round; do
7957 for n in $names_already_handled; do
7958 if test "$n" = "$name"; then
7963 if test -z "$already_handled"; then
7964 names_already_handled="$names_already_handled $name"
7965 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7966 eval value=\"\$HAVE_LIB$uppername\"
7967 if test -n "$value"; then
7968 if test "$value" = yes; then
7969 eval value=\"\$LIB$uppername\"
7970 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7971 eval value=\"\$LTLIB$uppername\"
7972 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7981 if test $use_additional = yes; then
7982 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7983 found_dir="$additional_libdir"
7984 found_so="$additional_libdir/lib$name.$shlibext"
7985 if test -f "$additional_libdir/lib$name.la"; then
7986 found_la="$additional_libdir/lib$name.la"
7989 if test -f "$additional_libdir/lib$name.$libext"; then
7990 found_dir="$additional_libdir"
7991 found_a="$additional_libdir/lib$name.$libext"
7992 if test -f "$additional_libdir/lib$name.la"; then
7993 found_la="$additional_libdir/lib$name.la"
7998 if test "X$found_dir" = "X"; then
7999 for x in $LDFLAGS $LTLIBICONV; do
8001 acl_save_prefix="$prefix"
8002 prefix="$acl_final_prefix"
8003 acl_save_exec_prefix="$exec_prefix"
8004 exec_prefix="$acl_final_exec_prefix"
8006 exec_prefix="$acl_save_exec_prefix"
8007 prefix="$acl_save_prefix"
8011 dir=`echo "X$x" | sed -e 's/^X-L//'`
8012 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8014 found_so="$dir/lib$name.$shlibext"
8015 if test -f "$dir/lib$name.la"; then
8016 found_la="$dir/lib$name.la"
8019 if test -f "$dir/lib$name.$libext"; then
8021 found_a="$dir/lib$name.$libext"
8022 if test -f "$dir/lib$name.la"; then
8023 found_la="$dir/lib$name.la"
8029 if test "X$found_dir" != "X"; then
8034 if test "X$found_dir" != "X"; then
8035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8036 if test "X$found_so" != "X"; then
8037 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8038 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8041 for x in $ltrpathdirs; do
8042 if test "X$x" = "X$found_dir"; then
8047 if test -z "$haveit"; then
8048 ltrpathdirs="$ltrpathdirs $found_dir"
8050 if test "$hardcode_direct" = yes; then
8051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8053 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8056 for x in $rpathdirs; do
8057 if test "X$x" = "X$found_dir"; then
8062 if test -z "$haveit"; then
8063 rpathdirs="$rpathdirs $found_dir"
8067 for x in $LDFLAGS $LIBICONV; do
8069 acl_save_prefix="$prefix"
8070 prefix="$acl_final_prefix"
8071 acl_save_exec_prefix="$exec_prefix"
8072 exec_prefix="$acl_final_exec_prefix"
8074 exec_prefix="$acl_save_exec_prefix"
8075 prefix="$acl_save_prefix"
8077 if test "X$x" = "X-L$found_dir"; then
8082 if test -z "$haveit"; then
8083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8085 if test "$hardcode_minus_L" != no; then
8086 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8094 if test "X$found_a" != "X"; then
8095 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8097 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8100 additional_includedir=
8101 case "$found_dir" in
8103 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8104 additional_includedir="$basedir/include"
8107 if test "X$additional_includedir" != "X"; then
8108 if test "X$additional_includedir" != "X/usr/include"; then
8110 if test "X$additional_includedir" = "X/usr/local/include"; then
8111 if test -n "$GCC"; then
8113 linux*) haveit=yes;;
8117 if test -z "$haveit"; then
8118 for x in $CPPFLAGS $INCICONV; do
8120 acl_save_prefix="$prefix"
8121 prefix="$acl_final_prefix"
8122 acl_save_exec_prefix="$exec_prefix"
8123 exec_prefix="$acl_final_exec_prefix"
8125 exec_prefix="$acl_save_exec_prefix"
8126 prefix="$acl_save_prefix"
8128 if test "X$x" = "X-I$additional_includedir"; then
8133 if test -z "$haveit"; then
8134 if test -d "$additional_includedir"; then
8135 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8141 if test -n "$found_la"; then
8142 save_libdir="$libdir"
8144 */* | *\\*) . "$found_la" ;;
8145 *) . "./$found_la" ;;
8147 libdir="$save_libdir"
8148 for dep in $dependency_libs; do
8151 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8152 if test "X$additional_libdir" != "X/usr/lib"; then
8154 if test "X$additional_libdir" = "X/usr/local/lib"; then
8155 if test -n "$GCC"; then
8157 linux*) haveit=yes;;
8161 if test -z "$haveit"; then
8163 for x in $LDFLAGS $LIBICONV; do
8165 acl_save_prefix="$prefix"
8166 prefix="$acl_final_prefix"
8167 acl_save_exec_prefix="$exec_prefix"
8168 exec_prefix="$acl_final_exec_prefix"
8170 exec_prefix="$acl_save_exec_prefix"
8171 prefix="$acl_save_prefix"
8173 if test "X$x" = "X-L$additional_libdir"; then
8178 if test -z "$haveit"; then
8179 if test -d "$additional_libdir"; then
8180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8184 for x in $LDFLAGS $LTLIBICONV; do
8186 acl_save_prefix="$prefix"
8187 prefix="$acl_final_prefix"
8188 acl_save_exec_prefix="$exec_prefix"
8189 exec_prefix="$acl_final_exec_prefix"
8191 exec_prefix="$acl_save_exec_prefix"
8192 prefix="$acl_save_prefix"
8194 if test "X$x" = "X-L$additional_libdir"; then
8199 if test -z "$haveit"; then
8200 if test -d "$additional_libdir"; then
8201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8208 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8209 if test "$enable_rpath" != no; then
8211 for x in $rpathdirs; do
8212 if test "X$x" = "X$dir"; then
8217 if test -z "$haveit"; then
8218 rpathdirs="$rpathdirs $dir"
8221 for x in $ltrpathdirs; do
8222 if test "X$x" = "X$dir"; then
8227 if test -z "$haveit"; then
8228 ltrpathdirs="$ltrpathdirs $dir"
8233 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8236 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8239 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8246 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8253 if test "X$rpathdirs" != "X"; then
8254 if test -n "$hardcode_libdir_separator"; then
8256 for found_dir in $rpathdirs; do
8257 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8259 acl_save_libdir="$libdir"
8261 eval flag=\"$hardcode_libdir_flag_spec\"
8262 libdir="$acl_save_libdir"
8263 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8265 for found_dir in $rpathdirs; do
8266 acl_save_libdir="$libdir"
8268 eval flag=\"$hardcode_libdir_flag_spec\"
8269 libdir="$acl_save_libdir"
8270 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8274 if test "X$ltrpathdirs" != "X"; then
8275 for found_dir in $ltrpathdirs; do
8276 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8287 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8288 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8292 $as_echo "#define ptrdiff_t long" >>confdefs.h
8297 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8298 stdlib.h string.h unistd.h sys/param.h
8300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8302 eval as_val=\$$as_ac_Header
8303 if test "x$as_val" = x""yes; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8312 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8313 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8314 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8319 eval as_val=\$$as_ac_var
8320 if test "x$as_val" = x""yes; then :
8321 cat >>confdefs.h <<_ACEOF
8322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8331 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8332 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8343 char *p = (char *) _snprintf;
8350 if ac_fn_c_try_compile "$LINENO"; then :
8351 ac_cv_have_decl__snprintf=yes
8353 ac_cv_have_decl__snprintf=no
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8358 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8359 if test $ac_cv_have_decl__snprintf = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define HAVE_DECL__SNPRINTF $gt_value
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8372 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8373 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8384 char *p = (char *) _snwprintf;
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392 ac_cv_have_decl__snwprintf=yes
8394 ac_cv_have_decl__snwprintf=no
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8399 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8400 if test $ac_cv_have_decl__snwprintf = yes; then
8406 cat >>confdefs.h <<_ACEOF
8407 #define HAVE_DECL__SNWPRINTF $gt_value
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8414 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8415 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8425 #ifndef feof_unlocked
8426 char *p = (char *) feof_unlocked;
8433 if ac_fn_c_try_compile "$LINENO"; then :
8434 ac_cv_have_decl_feof_unlocked=yes
8436 ac_cv_have_decl_feof_unlocked=no
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8441 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8442 if test $ac_cv_have_decl_feof_unlocked = yes; then
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8455 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8456 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8466 #ifndef fgets_unlocked
8467 char *p = (char *) fgets_unlocked;
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 ac_cv_have_decl_fgets_unlocked=yes
8477 ac_cv_have_decl_fgets_unlocked=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8482 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8483 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8489 cat >>confdefs.h <<_ACEOF
8490 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8496 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8497 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8507 #ifndef getc_unlocked
8508 char *p = (char *) getc_unlocked;
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 ac_cv_have_decl_getc_unlocked=yes
8518 ac_cv_have_decl_getc_unlocked=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8523 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8524 if test $ac_cv_have_decl_getc_unlocked = yes; then
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8536 case $gt_cv_func_printf_posix in
8537 *yes) HAVE_POSIX_PRINTF=1 ;;
8538 *) HAVE_POSIX_PRINTF=0 ;;
8541 if test "$ac_cv_func_asprintf" = yes; then
8547 if test "$ac_cv_func_snprintf" = yes; then
8553 if test "$ac_cv_func_wprintf" = yes; then
8565 am_save_CPPFLAGS="$CPPFLAGS"
8567 for element in $INCICONV; do
8569 for x in $CPPFLAGS; do
8571 acl_save_prefix="$prefix"
8572 prefix="$acl_final_prefix"
8573 acl_save_exec_prefix="$exec_prefix"
8574 exec_prefix="$acl_final_exec_prefix"
8576 exec_prefix="$acl_save_exec_prefix"
8577 prefix="$acl_save_prefix"
8579 if test "X$x" = "X$element"; then
8584 if test -z "$haveit"; then
8585 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8591 $as_echo_n "checking for iconv... " >&6; }
8592 if test "${am_cv_func_iconv+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8596 am_cv_func_iconv="no, consider installing GNU libiconv"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8605 iconv_t cd = iconv_open("","");
8606 iconv(cd,NULL,NULL,NULL,NULL);
8612 if ac_fn_c_try_link "$LINENO"; then :
8613 am_cv_func_iconv=yes
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 if test "$am_cv_func_iconv" != yes; then
8618 am_save_LIBS="$LIBS"
8619 LIBS="$LIBS $LIBICONV"
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8627 iconv_t cd = iconv_open("","");
8628 iconv(cd,NULL,NULL,NULL,NULL);
8634 if ac_fn_c_try_link "$LINENO"; then :
8636 am_cv_func_iconv=yes
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS="$am_save_LIBS"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8645 $as_echo "$am_cv_func_iconv" >&6; }
8646 if test "$am_cv_func_iconv" = yes; then
8648 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8651 if test "$am_cv_lib_iconv" = yes; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8653 $as_echo_n "checking how to link with libiconv... " >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8655 $as_echo "$LIBICONV" >&6; }
8657 CPPFLAGS="$am_save_CPPFLAGS"
8664 if test "$am_cv_func_iconv" = yes; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8666 $as_echo_n "checking for iconv declaration... " >&6; }
8667 if test "${am_cv_proto_iconv+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8680 #if defined(__STDC__) || defined(__cplusplus)
8681 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 am_cv_proto_iconv_arg1=""
8697 am_cv_proto_iconv_arg1="const"
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 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);"
8703 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8705 }$am_cv_proto_iconv" >&5
8707 }$am_cv_proto_iconv" >&6; }
8709 cat >>confdefs.h <<_ACEOF
8710 #define ICONV_CONST $am_cv_proto_iconv_arg1
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8717 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8718 if test "${am_cv_langinfo_codeset+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <langinfo.h>
8727 char* cs = nl_langinfo(CODESET);
8732 if ac_fn_c_try_link "$LINENO"; then :
8733 am_cv_langinfo_codeset=yes
8735 am_cv_langinfo_codeset=no
8737 rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8742 $as_echo "$am_cv_langinfo_codeset" >&6; }
8743 if test $am_cv_langinfo_codeset = yes; then
8745 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8749 if test $ac_cv_header_locale_h = yes; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8752 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8753 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 am_cv_val_LC_MESSAGES=yes
8770 am_cv_val_LC_MESSAGES=no
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8776 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8777 if test $am_cv_val_LC_MESSAGES = yes; then
8779 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8785 for ac_prog in bison
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 if test -n "$INTLBISON"; then
8795 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804 ac_cv_prog_INTLBISON="$ac_prog"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 INTLBISON=$ac_cv_prog_INTLBISON
8815 if test -n "$INTLBISON"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8817 $as_echo "$INTLBISON" >&6; }
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8824 test -n "$INTLBISON" && break
8827 if test -z "$INTLBISON"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8831 $as_echo_n "checking version of bison... " >&6; }
8832 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8833 case $ac_prog_version in
8834 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8835 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8836 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8837 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8840 $as_echo "$ac_prog_version" >&6; }
8842 if test $ac_verc_fail = yes; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8862 $as_echo_n "checking whether NLS is requested... " >&6; }
8863 # Check whether --enable-nls was given.
8864 if test "${enable_nls+set}" = set; then :
8865 enableval=$enable_nls; USE_NLS=$enableval
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8871 $as_echo "$USE_NLS" >&6; }
8876 BUILD_INCLUDED_LIBINTL=no
8877 USE_INCLUDED_LIBINTL=no
8883 if test "$USE_NLS" = "yes"; then
8884 gt_use_preinstalled_gnugettext=no
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8887 $as_echo_n "checking whether included gettext is requested... " >&6; }
8889 # Check whether --with-included-gettext was given.
8890 if test "${with_included_gettext+set}" = set; then :
8891 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8893 nls_cv_force_use_gnu_gettext=no
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8897 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8899 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8900 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8908 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8909 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <libintl.h>
8915 extern int _nl_msg_cat_cntr;
8916 extern int *_nl_domain_bindings;
8920 bindtextdomain ("", "");
8921 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 gt_cv_func_gnugettext1_libc=yes
8929 gt_cv_func_gnugettext1_libc=no
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8935 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8937 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8943 acl_save_prefix="$prefix"
8944 prefix="$acl_final_prefix"
8945 acl_save_exec_prefix="$exec_prefix"
8946 exec_prefix="$acl_final_exec_prefix"
8948 eval additional_includedir=\"$includedir\"
8949 eval additional_libdir=\"$libdir\"
8951 exec_prefix="$acl_save_exec_prefix"
8952 prefix="$acl_save_prefix"
8955 # Check whether --with-libintl-prefix was given.
8956 if test "${with_libintl_prefix+set}" = set; then :
8957 withval=$with_libintl_prefix;
8958 if test "X$withval" = "Xno"; then
8961 if test "X$withval" = "X"; then
8963 acl_save_prefix="$prefix"
8964 prefix="$acl_final_prefix"
8965 acl_save_exec_prefix="$exec_prefix"
8966 exec_prefix="$acl_final_exec_prefix"
8968 eval additional_includedir=\"$includedir\"
8969 eval additional_libdir=\"$libdir\"
8971 exec_prefix="$acl_save_exec_prefix"
8972 prefix="$acl_save_prefix"
8975 additional_includedir="$withval/include"
8976 additional_libdir="$withval/lib"
8987 names_already_handled=
8988 names_next_round='intl '
8989 while test -n "$names_next_round"; do
8990 names_this_round="$names_next_round"
8992 for name in $names_this_round; do
8994 for n in $names_already_handled; do
8995 if test "$n" = "$name"; then
9000 if test -z "$already_handled"; then
9001 names_already_handled="$names_already_handled $name"
9002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9003 eval value=\"\$HAVE_LIB$uppername\"
9004 if test -n "$value"; then
9005 if test "$value" = yes; then
9006 eval value=\"\$LIB$uppername\"
9007 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9008 eval value=\"\$LTLIB$uppername\"
9009 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9018 if test $use_additional = yes; then
9019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9020 found_dir="$additional_libdir"
9021 found_so="$additional_libdir/lib$name.$shlibext"
9022 if test -f "$additional_libdir/lib$name.la"; then
9023 found_la="$additional_libdir/lib$name.la"
9026 if test -f "$additional_libdir/lib$name.$libext"; then
9027 found_dir="$additional_libdir"
9028 found_a="$additional_libdir/lib$name.$libext"
9029 if test -f "$additional_libdir/lib$name.la"; then
9030 found_la="$additional_libdir/lib$name.la"
9035 if test "X$found_dir" = "X"; then
9036 for x in $LDFLAGS $LTLIBINTL; do
9038 acl_save_prefix="$prefix"
9039 prefix="$acl_final_prefix"
9040 acl_save_exec_prefix="$exec_prefix"
9041 exec_prefix="$acl_final_exec_prefix"
9043 exec_prefix="$acl_save_exec_prefix"
9044 prefix="$acl_save_prefix"
9048 dir=`echo "X$x" | sed -e 's/^X-L//'`
9049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9051 found_so="$dir/lib$name.$shlibext"
9052 if test -f "$dir/lib$name.la"; then
9053 found_la="$dir/lib$name.la"
9056 if test -f "$dir/lib$name.$libext"; then
9058 found_a="$dir/lib$name.$libext"
9059 if test -f "$dir/lib$name.la"; then
9060 found_la="$dir/lib$name.la"
9066 if test "X$found_dir" != "X"; then
9071 if test "X$found_dir" != "X"; then
9072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9073 if test "X$found_so" != "X"; then
9074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9075 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9078 for x in $ltrpathdirs; do
9079 if test "X$x" = "X$found_dir"; then
9084 if test -z "$haveit"; then
9085 ltrpathdirs="$ltrpathdirs $found_dir"
9087 if test "$hardcode_direct" = yes; then
9088 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9093 for x in $rpathdirs; do
9094 if test "X$x" = "X$found_dir"; then
9099 if test -z "$haveit"; then
9100 rpathdirs="$rpathdirs $found_dir"
9104 for x in $LDFLAGS $LIBINTL; do
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9114 if test "X$x" = "X-L$found_dir"; then
9119 if test -z "$haveit"; then
9120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9122 if test "$hardcode_minus_L" != no; then
9123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9125 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9131 if test "X$found_a" != "X"; then
9132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9134 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9137 additional_includedir=
9138 case "$found_dir" in
9140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9141 additional_includedir="$basedir/include"
9144 if test "X$additional_includedir" != "X"; then
9145 if test "X$additional_includedir" != "X/usr/include"; then
9147 if test "X$additional_includedir" = "X/usr/local/include"; then
9148 if test -n "$GCC"; then
9150 linux*) haveit=yes;;
9154 if test -z "$haveit"; then
9155 for x in $CPPFLAGS $INCINTL; do
9157 acl_save_prefix="$prefix"
9158 prefix="$acl_final_prefix"
9159 acl_save_exec_prefix="$exec_prefix"
9160 exec_prefix="$acl_final_exec_prefix"
9162 exec_prefix="$acl_save_exec_prefix"
9163 prefix="$acl_save_prefix"
9165 if test "X$x" = "X-I$additional_includedir"; then
9170 if test -z "$haveit"; then
9171 if test -d "$additional_includedir"; then
9172 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9178 if test -n "$found_la"; then
9179 save_libdir="$libdir"
9181 */* | *\\*) . "$found_la" ;;
9182 *) . "./$found_la" ;;
9184 libdir="$save_libdir"
9185 for dep in $dependency_libs; do
9188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9189 if test "X$additional_libdir" != "X/usr/lib"; then
9191 if test "X$additional_libdir" = "X/usr/local/lib"; then
9192 if test -n "$GCC"; then
9194 linux*) haveit=yes;;
9198 if test -z "$haveit"; then
9200 for x in $LDFLAGS $LIBINTL; do
9202 acl_save_prefix="$prefix"
9203 prefix="$acl_final_prefix"
9204 acl_save_exec_prefix="$exec_prefix"
9205 exec_prefix="$acl_final_exec_prefix"
9207 exec_prefix="$acl_save_exec_prefix"
9208 prefix="$acl_save_prefix"
9210 if test "X$x" = "X-L$additional_libdir"; then
9215 if test -z "$haveit"; then
9216 if test -d "$additional_libdir"; then
9217 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9221 for x in $LDFLAGS $LTLIBINTL; do
9223 acl_save_prefix="$prefix"
9224 prefix="$acl_final_prefix"
9225 acl_save_exec_prefix="$exec_prefix"
9226 exec_prefix="$acl_final_exec_prefix"
9228 exec_prefix="$acl_save_exec_prefix"
9229 prefix="$acl_save_prefix"
9231 if test "X$x" = "X-L$additional_libdir"; then
9236 if test -z "$haveit"; then
9237 if test -d "$additional_libdir"; then
9238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9246 if test "$enable_rpath" != no; then
9248 for x in $rpathdirs; do
9249 if test "X$x" = "X$dir"; then
9254 if test -z "$haveit"; then
9255 rpathdirs="$rpathdirs $dir"
9258 for x in $ltrpathdirs; do
9259 if test "X$x" = "X$dir"; then
9264 if test -z "$haveit"; then
9265 ltrpathdirs="$ltrpathdirs $dir"
9270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9276 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9290 if test "X$rpathdirs" != "X"; then
9291 if test -n "$hardcode_libdir_separator"; then
9293 for found_dir in $rpathdirs; do
9294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9296 acl_save_libdir="$libdir"
9298 eval flag=\"$hardcode_libdir_flag_spec\"
9299 libdir="$acl_save_libdir"
9300 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9302 for found_dir in $rpathdirs; do
9303 acl_save_libdir="$libdir"
9305 eval flag=\"$hardcode_libdir_flag_spec\"
9306 libdir="$acl_save_libdir"
9307 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9311 if test "X$ltrpathdirs" != "X"; then
9312 for found_dir in $ltrpathdirs; do
9313 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9318 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9319 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9322 gt_save_CPPFLAGS="$CPPFLAGS"
9323 CPPFLAGS="$CPPFLAGS $INCINTL"
9324 gt_save_LIBS="$LIBS"
9325 LIBS="$LIBS $LIBINTL"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 #include <libintl.h>
9329 extern int _nl_msg_cat_cntr;
9334 const char *_nl_expand_alias ();
9338 bindtextdomain ("", "");
9339 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 gt_cv_func_gnugettext1_libintl=yes
9347 gt_cv_func_gnugettext1_libintl=no
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9352 LIBS="$LIBS $LIBICONV"
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 #include <libintl.h>
9356 extern int _nl_msg_cat_cntr;
9361 const char *_nl_expand_alias ();
9365 bindtextdomain ("", "");
9366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 LIBINTL="$LIBINTL $LIBICONV"
9373 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9374 gt_cv_func_gnugettext1_libintl=yes
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9380 CPPFLAGS="$gt_save_CPPFLAGS"
9381 LIBS="$gt_save_LIBS"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9384 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9387 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9388 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9389 && test "$PACKAGE" != gettext-runtime \
9390 && test "$PACKAGE" != gettext-tools; }; then
9391 gt_use_preinstalled_gnugettext=yes
9399 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9400 nls_cv_use_gnu_gettext=yes
9404 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9405 BUILD_INCLUDED_LIBINTL=yes
9406 USE_INCLUDED_LIBINTL=yes
9407 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9408 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9409 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9412 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9413 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9418 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9419 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9421 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9429 $as_echo_n "checking whether to use NLS... " >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9431 $as_echo "$USE_NLS" >&6; }
9432 if test "$USE_NLS" = "yes"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9434 $as_echo_n "checking where the gettext function comes from... " >&6; }
9435 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9436 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9437 gt_source="external libintl"
9442 gt_source="included intl directory"
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9445 $as_echo "$gt_source" >&6; }
9448 if test "$USE_NLS" = "yes"; then
9450 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9451 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9453 $as_echo_n "checking how to link with libintl... " >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9455 $as_echo "$LIBINTL" >&6; }
9457 for element in $INCINTL; do
9459 for x in $CPPFLAGS; do
9461 acl_save_prefix="$prefix"
9462 prefix="$acl_final_prefix"
9463 acl_save_exec_prefix="$exec_prefix"
9464 exec_prefix="$acl_final_exec_prefix"
9466 exec_prefix="$acl_save_exec_prefix"
9467 prefix="$acl_save_prefix"
9469 if test "X$x" = "X$element"; then
9474 if test -z "$haveit"; then
9475 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9482 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9485 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9493 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9494 BUILD_INCLUDED_LIBINTL=yes
9502 nls_cv_header_libgt=
9513 if test "$USE_INCLUDED_LIBINTL" = yes; then
9514 INTLOBJS="\$(GETTOBJS)"
9518 INTL_LIBTOOL_SUFFIX_PREFIX=
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9531 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9533 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9534 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9535 $as_echo_n "(cached) " >&6
9537 cat >conftest.make <<\_ACEOF
9540 @echo '@@@%%%=$(MAKE)=@@@%%%'
9542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9543 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9545 eval ac_cv_prog_make_${ac_make}_set=yes;;
9547 eval ac_cv_prog_make_${ac_make}_set=no;;
9551 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9553 $as_echo "yes" >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9558 SET_MAKE="MAKE=${MAKE-make}"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9562 $as_echo_n "checking for GNU make... " >&6; }
9563 if test "${_cv_gnu_make_command+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 _cv_gnu_make_command='' ;
9567 for a in "$MAKE" make gmake gnumake ; do
9568 if test -z "$a" ; then continue ; fi ;
9569 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9570 _cv_gnu_make_command=$a ;
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9577 $as_echo "$_cv_gnu_make_command" >&6; } ;
9578 if test "x$_cv_gnu_make_command" != "x" ; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9585 $as_echo "\"Not found\"" >&6; };
9590 # Extract the first word of "ln", so it can be a program name with args.
9591 set dummy ln; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_path_LN+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9599 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9622 if test -n "$LN"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9624 $as_echo "$LN" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9632 $as_echo_n "checking whether ln -s works... " >&6; }
9634 if test "$LN_S" = "ln -s"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9636 $as_echo "yes" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9639 $as_echo "no, using $LN_S" >&6; }
9642 # Extract the first word of "mv", so it can be a program name with args.
9643 set dummy mv; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_path_MV+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9651 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9674 if test -n "$MV"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9676 $as_echo "$MV" >&6; }
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9683 # Extract the first word of "cp", so it can be a program name with args.
9684 set dummy cp; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if test "${ac_cv_path_CP+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9692 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9702 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9715 if test -n "$CP"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9717 $as_echo "$CP" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9724 # Extract the first word of "rm", so it can be a program name with args.
9725 set dummy rm; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if test "${ac_cv_path_RM+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9733 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9756 if test -n "$RM"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9758 $as_echo "$RM" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9765 # Extract the first word of "chmod", so it can be a program name with args.
9766 set dummy chmod; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if test "${ac_cv_path_CHMOD+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9774 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9796 CHMOD=$ac_cv_path_CHMOD
9797 if test -n "$CHMOD"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9799 $as_echo "$CHMOD" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9806 for ac_prog in gawk mawk nawk awk
9808 # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if test "${ac_cv_prog_AWK+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9815 if test -n "$AWK"; then
9816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 test -z "$as_dir" && as_dir=.
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9825 ac_cv_prog_AWK="$ac_prog"
9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 if test -n "$AWK"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9838 $as_echo "$AWK" >&6; }
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9845 test -n "$AWK" && break
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9849 $as_echo_n "checking for egrep... " >&6; }
9850 if test "${ac_cv_path_EGREP+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9854 then ac_cv_path_EGREP="$GREP -E"
9856 if test -z "$EGREP"; then
9857 ac_path_EGREP_found=false
9858 # Loop through the user's path and test for each of PROGNAME-LIST
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9863 test -z "$as_dir" && as_dir=.
9864 for ac_prog in egrep; do
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9867 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9868 # Check for GNU ac_path_EGREP and select it if it is found.
9869 # Check for GNU $ac_path_EGREP
9870 case `"$ac_path_EGREP" --version 2>&1` in
9872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9875 $as_echo_n 0123456789 >"conftest.in"
9878 cat "conftest.in" "conftest.in" >"conftest.tmp"
9879 mv "conftest.tmp" "conftest.in"
9880 cp "conftest.in" "conftest.nl"
9881 $as_echo 'EGREP' >> "conftest.nl"
9882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9884 as_fn_arith $ac_count + 1 && ac_count=$as_val
9885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9886 # Best one so far, save it but keep looking for a better one
9887 ac_cv_path_EGREP="$ac_path_EGREP"
9888 ac_path_EGREP_max=$ac_count
9890 # 10*(2^10) chars as input seems more than enough
9891 test $ac_count -gt 10 && break
9893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9896 $ac_path_EGREP_found && break 3
9901 if test -z "$ac_cv_path_EGREP"; then
9902 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9905 ac_cv_path_EGREP=$EGREP
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9911 $as_echo "$ac_cv_path_EGREP" >&6; }
9912 EGREP="$ac_cv_path_EGREP"
9915 # Extract the first word of "sed", so it can be a program name with args.
9916 set dummy sed; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_path_SED+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9924 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9947 if test -n "$SED"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9949 $as_echo "$SED" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9956 # Extract the first word of "perl", so it can be a program name with args.
9957 set dummy perl; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if test "${ac_cv_path_PERL+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9965 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9987 PERL=$ac_cv_path_PERL
9988 if test -n "$PERL"; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9990 $as_echo "$PERL" >&6; }
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9997 # Extract the first word of "ldconfig", so it can be a program name with args.
9998 set dummy ldconfig; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10006 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10028 LDCONFIG=$ac_cv_path_LDCONFIG
10029 if test -n "$LDCONFIG"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10031 $as_echo "$LDCONFIG" >&6; }
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10038 if test -n "$ac_tool_prefix"; then
10039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10040 set dummy ${ac_tool_prefix}ar; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_prog_AR+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10046 if test -n "$AR"; then
10047 ac_cv_prog_AR="$AR" # Let the user override the test.
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_AR="${ac_tool_prefix}ar"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 if test -n "$AR"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10069 $as_echo "$AR" >&6; }
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10077 if test -z "$ac_cv_prog_AR"; then
10079 # Extract the first word of "ar", so it can be a program name with args.
10080 set dummy ar; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10086 if test -n "$ac_ct_AR"; then
10087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096 ac_cv_prog_ac_ct_AR="ar"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10107 if test -n "$ac_ct_AR"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10109 $as_echo "$ac_ct_AR" >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10115 if test "x$ac_ct_AR" = x; then
10118 case $cross_compiling:$ac_tool_warned in
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10122 ac_tool_warned=yes ;;
10127 AR="$ac_cv_prog_AR"
10130 if test -n "$ac_tool_prefix"; then
10131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 if test -n "$RANLIB"; then
10139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 RANLIB=$ac_cv_prog_RANLIB
10159 if test -n "$RANLIB"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10161 $as_echo "$RANLIB" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10169 if test -z "$ac_cv_prog_RANLIB"; then
10170 ac_ct_RANLIB=$RANLIB
10171 # Extract the first word of "ranlib", so it can be a program name with args.
10172 set dummy ranlib; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 if test -n "$ac_ct_RANLIB"; then
10179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_ac_ct_RANLIB="ranlib"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10199 if test -n "$ac_ct_RANLIB"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10201 $as_echo "$ac_ct_RANLIB" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10207 if test "x$ac_ct_RANLIB" = x; then
10210 case $cross_compiling:$ac_tool_warned in
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10214 ac_tool_warned=yes ;;
10216 RANLIB=$ac_ct_RANLIB
10219 RANLIB="$ac_cv_prog_RANLIB"
10222 if test -n "$ac_tool_prefix"; then
10223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10224 set dummy ${ac_tool_prefix}strip; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if test "${ac_cv_prog_STRIP+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10230 if test -n "$STRIP"; then
10231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 STRIP=$ac_cv_prog_STRIP
10251 if test -n "$STRIP"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10253 $as_echo "$STRIP" >&6; }
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10261 if test -z "$ac_cv_prog_STRIP"; then
10263 # Extract the first word of "strip", so it can be a program name with args.
10264 set dummy strip; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10270 if test -n "$ac_ct_STRIP"; then
10271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280 ac_cv_prog_ac_ct_STRIP="strip"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10291 if test -n "$ac_ct_STRIP"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10293 $as_echo "$ac_ct_STRIP" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10299 if test "x$ac_ct_STRIP" = x; then
10302 case $cross_compiling:$ac_tool_warned in
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10306 ac_tool_warned=yes ;;
10311 STRIP="$ac_cv_prog_STRIP"
10314 # Extract the first word of "makeinfo", so it can be a program name with args.
10315 set dummy makeinfo; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10321 if test -n "$MAKEINFO"; then
10322 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_MAKEINFO="makeinfo"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 MAKEINFO=$ac_cv_prog_MAKEINFO
10342 if test -n "$MAKEINFO"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10344 $as_echo "$MAKEINFO" >&6; }
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10351 if test "_$MAKEINFO" = "_"; then
10352 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10354 case "$MAKEINFO" in
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10357 *** Makeinfo is missing. Info documentation will not be built." >&5
10358 $as_echo "$as_me: WARNING:
10359 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10367 # See if we need a separate native compiler.
10368 if test $cross_compiling = no; then
10372 for ac_prog in gcc cc
10374 # Extract the first word of "$ac_prog", so it can be a program name with args.
10375 set dummy $ac_prog; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10381 if test -n "$BUILD_CC"; then
10382 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_prog_BUILD_CC="$ac_prog"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 BUILD_CC=$ac_cv_prog_BUILD_CC
10402 if test -n "$BUILD_CC"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10404 $as_echo "$BUILD_CC" >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10411 test -n "$BUILD_CC" && break
10415 for ac_header in attr/xattr.h 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 sys/xattr.h
10417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10419 eval as_val=\$$as_ac_Header
10420 if test "x$as_val" = x""yes; then :
10421 cat >>confdefs.h <<_ACEOF
10422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429 for ac_header in sys/disk.h sys/mount.h
10431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10433 #if HAVE_SYS_QUEUE_H
10434 #include <sys/queue.h>
10438 eval as_val=\$$as_ac_Header
10439 if test "x$as_val" = x""yes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 for ac_header in net/if.h
10450 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10451 #if HAVE_SYS_TYPES_H
10452 #include <sys/types.h>
10454 #if HAVE_SYS_SOCKET
10455 #include <sys/socket.h>
10459 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10460 cat >>confdefs.h <<_ACEOF
10461 #define HAVE_NET_IF_H 1
10468 for ac_header in db.h
10470 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
10471 if test "x$ac_cv_header_db_h" = x""yes; then :
10472 cat >>confdefs.h <<_ACEOF
10473 #define HAVE_DB_H 1
10480 if test x"$E2SCAN_CMT" == x; then
10481 for ac_header in sqlite3.h
10483 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
10484 if test "x$ac_cv_header_sqlite3_h" = x""yes; then :
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_SQLITE3_H 1
10494 for ac_func in vprintf
10496 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10497 if test "x$ac_cv_func_vprintf" = x""yes; then :
10498 cat >>confdefs.h <<_ACEOF
10499 #define HAVE_VPRINTF 1
10502 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10503 if test "x$ac_cv_func__doprnt" = x""yes; then :
10505 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10513 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10515 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10517 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10521 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10523 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10525 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10529 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10531 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10533 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10537 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10538 #define _LARGEFILE64_SOURCE
10539 #include <unistd.h>
10541 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10543 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10547 # The cast to long int works around a bug in the HP C Compiler
10548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10550 # This bug is HP SR number 8606223364.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10552 $as_echo_n "checking size of short... " >&6; }
10553 if test "${ac_cv_sizeof_short+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10559 if test "$ac_cv_type_short" = yes; then
10560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10562 { as_fn_set_status 77
10563 as_fn_error "cannot compute sizeof (short)
10564 See \`config.log' for more details." "$LINENO" 5; }; }
10566 ac_cv_sizeof_short=0
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10572 $as_echo "$ac_cv_sizeof_short" >&6; }
10576 cat >>confdefs.h <<_ACEOF
10577 #define SIZEOF_SHORT $ac_cv_sizeof_short
10581 # The cast to long int works around a bug in the HP C Compiler
10582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10584 # This bug is HP SR number 8606223364.
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10586 $as_echo_n "checking size of int... " >&6; }
10587 if test "${ac_cv_sizeof_int+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10593 if test "$ac_cv_type_int" = yes; then
10594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10596 { as_fn_set_status 77
10597 as_fn_error "cannot compute sizeof (int)
10598 See \`config.log' for more details." "$LINENO" 5; }; }
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10606 $as_echo "$ac_cv_sizeof_int" >&6; }
10610 cat >>confdefs.h <<_ACEOF
10611 #define SIZEOF_INT $ac_cv_sizeof_int
10615 # The cast to long int works around a bug in the HP C Compiler
10616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10618 # This bug is HP SR number 8606223364.
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10620 $as_echo_n "checking size of long... " >&6; }
10621 if test "${ac_cv_sizeof_long+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10627 if test "$ac_cv_type_long" = yes; then
10628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10630 { as_fn_set_status 77
10631 as_fn_error "cannot compute sizeof (long)
10632 See \`config.log' for more details." "$LINENO" 5; }; }
10634 ac_cv_sizeof_long=0
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10640 $as_echo "$ac_cv_sizeof_long" >&6; }
10644 cat >>confdefs.h <<_ACEOF
10645 #define SIZEOF_LONG $ac_cv_sizeof_long
10649 # The cast to long int works around a bug in the HP C Compiler
10650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10652 # This bug is HP SR number 8606223364.
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10654 $as_echo_n "checking size of long long... " >&6; }
10655 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10661 if test "$ac_cv_type_long_long" = yes; then
10662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10664 { as_fn_set_status 77
10665 as_fn_error "cannot compute sizeof (long long)
10666 See \`config.log' for more details." "$LINENO" 5; }; }
10668 ac_cv_sizeof_long_long=0
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10674 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10678 cat >>confdefs.h <<_ACEOF
10679 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10683 SIZEOF_SHORT=$ac_cv_sizeof_short
10684 SIZEOF_INT=$ac_cv_sizeof_int
10685 SIZEOF_LONG=$ac_cv_sizeof_long
10686 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10692 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10693 if test "${ac_cv_c_bigendian+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10696 ac_cv_c_bigendian=unknown
10697 # See if we're dealing with a universal compiler.
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #ifndef __APPLE_CC__
10701 not a universal capable compiler
10706 if ac_fn_c_try_compile "$LINENO"; then :
10708 # Check for potential -arch flags. It is not universal unless
10709 # there are at least two -arch flags with different values.
10712 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10713 if test -n "$ac_prev"; then
10715 i?86 | x86_64 | ppc | ppc64)
10716 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10719 ac_cv_c_bigendian=universal
10725 elif test "x$ac_word" = "x-arch"; then
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 if test $ac_cv_c_bigendian = unknown; then
10732 # See if sys/param.h defines the BYTE_ORDER macro.
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #include <sys/types.h>
10736 #include <sys/param.h>
10741 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10742 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10744 bogus endian macros
10751 if ac_fn_c_try_compile "$LINENO"; then :
10752 # It does; now see whether it defined to BIG_ENDIAN or not.
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #include <sys/types.h>
10756 #include <sys/param.h>
10761 #if BYTE_ORDER != BIG_ENDIAN
10769 if ac_fn_c_try_compile "$LINENO"; then :
10770 ac_cv_c_bigendian=yes
10772 ac_cv_c_bigendian=no
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 if test $ac_cv_c_bigendian = unknown; then
10779 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782 #include <limits.h>
10787 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10788 bogus endian macros
10795 if ac_fn_c_try_compile "$LINENO"; then :
10796 # It does; now see whether it defined to _BIG_ENDIAN or not.
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <limits.h>
10804 #ifndef _BIG_ENDIAN
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813 ac_cv_c_bigendian=yes
10815 ac_cv_c_bigendian=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 if test $ac_cv_c_bigendian = unknown; then
10822 # Compile a test program.
10823 if test "$cross_compiling" = yes; then :
10824 # Try to guess by grepping values from an object file.
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 short int ascii_mm[] =
10828 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10829 short int ascii_ii[] =
10830 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10831 int use_ascii (int i) {
10832 return ascii_mm[i] + ascii_ii[i];
10834 short int ebcdic_ii[] =
10835 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10836 short int ebcdic_mm[] =
10837 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10838 int use_ebcdic (int i) {
10839 return ebcdic_mm[i] + ebcdic_ii[i];
10846 return use_ascii (foo) == use_ebcdic (foo);
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10853 ac_cv_c_bigendian=yes
10855 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10856 if test "$ac_cv_c_bigendian" = unknown; then
10857 ac_cv_c_bigendian=no
10859 # finding both strings is unlikely to happen, but who knows?
10860 ac_cv_c_bigendian=unknown
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 $ac_includes_default
10873 /* Are we little or big endian? From Harbison&Steele. */
10877 char c[sizeof (long int)];
10880 return u.c[sizeof (long int) - 1] == 1;
10886 if ac_fn_c_try_run "$LINENO"; then :
10887 ac_cv_c_bigendian=no
10889 ac_cv_c_bigendian=yes
10891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10892 conftest.$ac_objext conftest.beam conftest.$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10898 $as_echo "$ac_cv_c_bigendian" >&6; }
10899 case $ac_cv_c_bigendian in #(
10901 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10907 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10911 as_fn_error "unknown endianness
10912 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10915 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10916 ASM_TYPES_HEADER=./asm_types.h
10918 echo "/* These defines are needed for the public ext2fs.h header file */" \
10920 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10921 uniq tmp_config.$$ >> public_config.h
10923 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10925 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10926 uniq tmp_config.$$ >> public_config.h
10928 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10930 rm -f tmp_config.$$
10931 PUBLIC_CONFIG_HEADER=./public_config.h
10933 for ac_header in inttypes.h
10935 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_INTTYPES_H 1
10945 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10946 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10948 cat >>confdefs.h <<_ACEOF
10949 #define HAVE_INTPTR_T 1
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10956 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10957 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <sys/stat.h>
10966 struct stat stat; stat.st_flags = 0;
10971 if ac_fn_c_try_compile "$LINENO"; then :
10972 e2fsprogs_cv_struct_st_flags=yes
10974 e2fsprogs_cv_struct_st_flags=no
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10980 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10981 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10983 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10984 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 #include <sys/stat.h>
10993 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 e2fsprogs_cv_struct_st_flags_immut=yes
11001 e2fsprogs_cv_struct_st_flags_immut=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11007 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11008 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11010 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11014 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11015 #include <sys/socket.h>
11017 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
11019 cat >>confdefs.h <<_ACEOF
11020 #define HAVE_SA_LEN 1
11025 if test -n "$BLKID_CMT"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11027 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11028 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11031 ac_func_search_save_LIBS=$LIBS
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11041 char blkid_probe_all ();
11045 return blkid_probe_all ();
11050 for ac_lib in '' blkid; do
11051 if test -z "$ac_lib"; then
11052 ac_res="none required"
11055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_search_blkid_probe_all=$ac_res
11060 rm -f core conftest.err conftest.$ac_objext \
11062 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11066 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11069 ac_cv_search_blkid_probe_all=no
11071 rm conftest.$ac_ext
11072 LIBS=$ac_func_search_save_LIBS
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11075 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11076 ac_res=$ac_cv_search_blkid_probe_all
11077 if test "$ac_res" != no; then :
11078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11083 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
11085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11087 eval as_val=\$$as_ac_var
11088 if test "x$as_val" = x""yes; then :
11089 cat >>confdefs.h <<_ACEOF
11090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11098 $as_echo_n "checking for socket in -lsocket... " >&6; }
11099 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11102 ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-lsocket $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 ac_cv_lib_socket_socket=yes
11125 ac_cv_lib_socket_socket=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11132 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11133 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11134 SOCKET_LIB=-lsocket
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.1" >&5
11139 $as_echo_n "checking for db_env_create in -ldb-4.1... " >&6; }
11140 if test "${ac_cv_lib_db_4_1_db_env_create+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-ldb-4.1 $LIBS"
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11154 char db_env_create ();
11158 return db_env_create ();
11163 if ac_fn_c_try_link "$LINENO"; then :
11164 ac_cv_lib_db_4_1_db_env_create=yes
11166 ac_cv_lib_db_4_1_db_env_create=no
11168 rm -f core conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170 LIBS=$ac_check_lib_save_LIBS
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_1_db_env_create" >&5
11173 $as_echo "$ac_cv_lib_db_4_1_db_env_create" >&6; }
11174 if test "x$ac_cv_lib_db_4_1_db_env_create" = x""yes; then :
11177 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.2" >&5
11183 $as_echo_n "checking for db_env_create in -ldb-4.2... " >&6; }
11184 if test "${ac_cv_lib_db_4_2_db_env_create+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_check_lib_save_LIBS=$LIBS
11188 LIBS="-ldb-4.2 $LIBS"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11198 char db_env_create ();
11202 return db_env_create ();
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_lib_db_4_2_db_env_create=yes
11210 ac_cv_lib_db_4_2_db_env_create=no
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_2_db_env_create" >&5
11217 $as_echo "$ac_cv_lib_db_4_2_db_env_create" >&6; }
11218 if test "x$ac_cv_lib_db_4_2_db_env_create" = x""yes; then :
11221 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.3" >&5
11227 $as_echo_n "checking for db_env_create in -ldb-4.3... " >&6; }
11228 if test "${ac_cv_lib_db_4_3_db_env_create+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldb-4.3 $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11242 char db_env_create ();
11246 return db_env_create ();
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_db_4_3_db_env_create=yes
11254 ac_cv_lib_db_4_3_db_env_create=no
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_3_db_env_create" >&5
11261 $as_echo "$ac_cv_lib_db_4_3_db_env_create" >&6; }
11262 if test "x$ac_cv_lib_db_4_3_db_env_create" = x""yes; then :
11265 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.5" >&5
11271 $as_echo_n "checking for db_env_create in -ldb-4.5... " >&6; }
11272 if test "${ac_cv_lib_db_4_5_db_env_create+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldb-4.5 $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11286 char db_env_create ();
11290 return db_env_create ();
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_db_4_5_db_env_create=yes
11298 ac_cv_lib_db_4_5_db_env_create=no
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_5_db_env_create" >&5
11305 $as_echo "$ac_cv_lib_db_4_5_db_env_create" >&6; }
11306 if test "x$ac_cv_lib_db_4_5_db_env_create" = x""yes; then :
11309 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.6" >&5
11315 $as_echo_n "checking for db_env_create in -ldb-4.6... " >&6; }
11316 if test "${ac_cv_lib_db_4_6_db_env_create+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldb-4.6 $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11330 char db_env_create ();
11334 return db_env_create ();
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_db_4_6_db_env_create=yes
11342 ac_cv_lib_db_4_6_db_env_create=no
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_6_db_env_create" >&5
11349 $as_echo "$ac_cv_lib_db_4_6_db_env_create" >&6; }
11350 if test "x$ac_cv_lib_db_4_6_db_env_create" = x""yes; then :
11353 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.7" >&5
11359 $as_echo_n "checking for db_env_create in -ldb-4.7... " >&6; }
11360 if test "${ac_cv_lib_db_4_7_db_env_create+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldb-4.7 $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11374 char db_env_create ();
11378 return db_env_create ();
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_db_4_7_db_env_create=yes
11386 ac_cv_lib_db_4_7_db_env_create=no
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_7_db_env_create" >&5
11393 $as_echo "$ac_cv_lib_db_4_7_db_env_create" >&6; }
11394 if test "x$ac_cv_lib_db_4_7_db_env_create" = x""yes; then :
11397 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.8" >&5
11403 $as_echo_n "checking for db_env_create in -ldb-4.8... " >&6; }
11404 if test "${ac_cv_lib_db_4_8_db_env_create+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11407 ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-ldb-4.8 $LIBS"
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 /* Override any GCC internal prototype to avoid an error.
11413 Use char because int might match the return type of a GCC
11414 builtin and then its argument prototype would still apply. */
11418 char db_env_create ();
11422 return db_env_create ();
11427 if ac_fn_c_try_link "$LINENO"; then :
11428 ac_cv_lib_db_4_8_db_env_create=yes
11430 ac_cv_lib_db_4_8_db_env_create=no
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_8_db_env_create" >&5
11437 $as_echo "$ac_cv_lib_db_4_8_db_env_create" >&6; }
11438 if test "x$ac_cv_lib_db_4_8_db_env_create" = x""yes; then :
11441 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11448 # Check whether --with-sqlite3 was given.
11449 if test "${with_sqlite3+set}" = set; then :
11450 withval=$with_sqlite3; SQLITE3_LIBS="-L$with_sqlite3"
11454 if test x"$E2SCAN_CMT" == x; then
11458 CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -static -pthread"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
11460 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
11461 if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lsqlite3 $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11475 char sqlite3_open ();
11479 return sqlite3_open ();
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_sqlite3_sqlite3_open=yes
11487 ac_cv_lib_sqlite3_sqlite3_open=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
11494 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
11495 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
11497 SQLITE3_LIB="$SQLITE3_LIBS -static -pthread -lsqlite3"
11499 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11505 if test x"$SQLITE3_LIB" == x; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no static sqlite3 - looking for dynamic one" >&5
11507 $as_echo "$as_me: WARNING: no static sqlite3 - looking for dynamic one" >&2;}
11508 CFLAGS="$CFLAGS_OLD $SQLITE3_LIBS -pthread"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5
11510 $as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; }
11511 if test "${ac_cv_lib_sqlite3_sqlite3_close+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11514 ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-lsqlite3 $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11525 char sqlite3_close ();
11529 return sqlite3_close ();
11534 if ac_fn_c_try_link "$LINENO"; then :
11535 ac_cv_lib_sqlite3_sqlite3_close=yes
11537 ac_cv_lib_sqlite3_sqlite3_close=no
11539 rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5
11544 $as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; }
11545 if test "x$ac_cv_lib_sqlite3_sqlite3_close" = x""yes; then :
11547 SQLITE3_LIB="$SQLITE3_LIBS -pthread -lsqlite3"
11549 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
11559 if test x"$SQLITE3_LIB" == x; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no sqlite3 - e2scan will not support database based scanning" >&5
11561 $as_echo "$as_me: WARNING: no sqlite3 - e2scan will not support database based scanning" >&2;}
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11567 $as_echo_n "checking for optreset... " >&6; }
11568 if test "${ac_cv_have_optreset+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573 #include <unistd.h>
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577 $EGREP "optreset" >/dev/null 2>&1; then :
11578 ac_cv_have_optreset=yes
11580 ac_cv_have_optreset=no
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11586 $as_echo "$ac_cv_have_optreset" >&6; }
11587 if test $ac_cv_have_optreset = yes; then
11589 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11594 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11595 if test "x$ac_cv_func_sem_init" = x""yes; then :
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11599 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11600 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lpthread $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11618 return sem_init ();
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_pthread_sem_init=yes
11626 ac_cv_lib_pthread_sem_init=no
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11633 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11634 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11635 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11637 SEM_INIT_LIB=-lpthread
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11640 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11641 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 ac_check_lib_save_LIBS=$LIBS
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11659 return sem_init ();
11664 if ac_fn_c_try_link "$LINENO"; then :
11665 ac_cv_lib_rt_sem_init=yes
11667 ac_cv_lib_rt_sem_init=no
11669 rm -f core conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11674 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11675 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11676 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11681 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11682 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lposix4 $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11700 return sem_init ();
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_posix4_sem_init=yes
11708 ac_cv_lib_posix4_sem_init=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11715 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11716 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11717 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11719 SEM_INIT_LIB=-lposix4
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11729 $as_echo_n "checking for unified diff option... " >&6; }
11730 if diff -u $0 $0 > /dev/null 2>&1 ; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11736 $as_echo "$UNI_DIFF_OPTS" >&6; }
11741 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11761 linux* | gnu* | k*bsd*-gnu)
11762 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11765 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11770 linux* | gnu* | k*bsd*-gnu)
11771 if test "$prefix" = NONE ; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11774 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11775 if test "$mandir" = '${prefix}/man' ; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11777 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11778 mandir=/usr/share/man
11783 if test "$root_prefix" = NONE ; then
11784 if test "$prefix" = NONE ; then
11785 root_prefix="$ac_default_prefix"
11787 root_prefix="$prefix"
11789 root_bindir=$bindir
11790 root_sbindir=$sbindir
11791 root_libdir=$libdir
11792 root_sysconfdir=$sysconfdir
11794 root_bindir='${root_prefix}/bin'
11795 root_sbindir='${root_prefix}/sbin'
11796 root_libdir='${root_prefix}/lib'
11797 root_sysconfdir='${root_prefix}/etc'
11799 if test "$bindir" != '${exec_prefix}/bin'; then
11800 root_bindir=$bindir
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11802 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11804 if test "$sbindir" != '${exec_prefix}/sbin'; then
11805 root_sbindir=$sbindir
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11807 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11809 if test "$libdir" != '${exec_prefix}/lib'; then
11810 root_libdir=$libdir
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11812 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11814 if test "$sysconfdir" != '${prefix}/etc'; then
11815 root_sysconfdir=$sysconfdir
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11817 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11825 # Check whether --with-multiarch was given.
11826 if test "${with_multiarch+set}" = set; then :
11827 withval=$with_multiarch; libdir=$libdir/$withval
11828 root_libdir=$root_libdir/$withval
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11832 $as_echo_n "checking whether linker accepts -static... " >&6; }
11833 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11836 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11848 if ac_fn_c_try_link "$LINENO"; then :
11849 ac_cv_e2fsprogs_use_static=yes
11851 ac_cv_e2fsprogs_use_static=no
11853 rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LDFLAGS=$SAVE_LDFLAGS
11860 ac_cv_e2fsprogs_use_static=no
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11864 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11866 if test $ac_cv_e2fsprogs_use_static = yes; then
11867 LDFLAG_STATIC=-static
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11873 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11875 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11879 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11880 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11883 if test "$cross_compiling" = yes ; then
11886 DO_TEST_SUITE=check
11889 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11890 if test -n "$CPPFLAGS" ; then
11891 INCLUDES="$INCLUDES $CPPFLAGS"
11893 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11894 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11897 if test $cross_compiling = no; then
11898 BUILD_CFLAGS="$CFLAGS"
11899 BUILD_LDFLAGS="$LDFLAGS"
11906 test -d lib || mkdir lib
11907 test -d include || mkdir include
11908 test -d include/linux || mkdir include/linux
11909 test -d include/asm || mkdir include/asm
11910 for i in MCONFIG Makefile e2fsprogs.spec \
11911 e2fsprogs-RHEL-6.spec \
11912 e2fsprogs-SUSE_LINUX-11.spec \
11913 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11914 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11915 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11916 lib/uuid/Makefile lib/uuid/uuid_types.h \
11917 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11918 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11919 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11920 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11921 debugfs/Makefile e2scan/Makefile tests/Makefile tests/progs/Makefile \
11922 resize/Makefile doc/Makefile intl/Makefile \
11923 intl/libgnuintl.h po/Makefile.in ; do
11924 if test -d `dirname ${srcdir}/$i` ; then
11925 outlist="$outlist $i"
11928 ac_config_files="$ac_config_files $outlist"
11930 cat >confcache <<\_ACEOF
11931 # This file is a shell script that caches the results of configure
11932 # tests run on this system so they can be shared between configure
11933 # scripts and configure runs, see configure's option --config-cache.
11934 # It is not useful on other systems. If it contains results you don't
11935 # want to keep, you may remove or edit it.
11937 # config.status only pays attention to the cache file if you give it
11938 # the --recheck option to rerun configure.
11940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11942 # following values.
11946 # The following way of writing the cache mishandles newlines in values,
11947 # but we know of no workaround that is simple, portable, and efficient.
11948 # So, we kill variables containing newlines.
11949 # Ultrix sh set writes to stderr and can't be redirected directly,
11950 # and sets the high bit in the cache file unless we assign to the vars.
11952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11953 eval ac_val=\$$ac_var
11957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11961 _ | IFS | as_nl) ;; #(
11962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11963 *) { eval $ac_var=; unset $ac_var;} ;;
11969 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11970 *${as_nl}ac_space=\ *)
11971 # `set' does not quote correctly, so add quotes: double-quote
11972 # substitution turns \\\\ into \\, and sed turns \\ into \.
11975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11978 # `set' quotes correctly as required by POSIX, so do not add quotes.
11979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11993 if test -w "$cache_file"; then
11994 test "x$cache_file" != "x/dev/null" &&
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11996 $as_echo "$as_me: updating cache $cache_file" >&6;}
11997 cat confcache >$cache_file
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12000 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12006 # Let make expand exec_prefix.
12007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12009 DEFS=-DHAVE_CONFIG_H
12013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12014 # 1. Remove the extension, and $U if already installed.
12015 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12016 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12017 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12018 # will be set to the directory where LIBOBJS objects are built.
12019 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12020 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12022 LIBOBJS=$ac_libobjs
12024 LTLIBOBJS=$ac_ltlibobjs
12029 : ${CONFIG_STATUS=./config.status}
12031 ac_clean_files_save=$ac_clean_files
12032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12038 # Generated by $as_me.
12039 # Run this file to recreate the current configuration.
12040 # Compiler output produced by configure, useful for debugging
12041 # configure, is in config.log if it exists.
12044 ac_cs_recheck=false
12047 SHELL=\${CONFIG_SHELL-$SHELL}
12050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12051 ## -------------------- ##
12052 ## M4sh Initialization. ##
12053 ## -------------------- ##
12055 # Be more Bourne compatible
12056 DUALCASE=1; export DUALCASE # for MKS sh
12057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12060 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12061 # is contrary to our usage. Disable this feature.
12062 alias -g '${1+"$@"}'='"$@"'
12063 setopt NO_GLOB_SUBST
12065 case `(set -o) 2>/dev/null` in #(
12077 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12081 # Prefer a ksh shell builtin over an external printf program on Solaris,
12082 # but without wasting forks for bash or zsh.
12083 if test -z "$BASH_VERSION$ZSH_VERSION" \
12084 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12085 as_echo='print -r --'
12086 as_echo_n='print -rn --'
12087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12088 as_echo='printf %s\n'
12089 as_echo_n='printf %s'
12091 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12092 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12093 as_echo_n='/usr/ucb/echo -n'
12095 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12096 as_echo_n_body='eval
12100 expr "X$arg" : "X\\(.*\\)$as_nl";
12101 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12103 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12105 export as_echo_n_body
12106 as_echo_n='sh -c $as_echo_n_body as_echo'
12108 export as_echo_body
12109 as_echo='sh -c $as_echo_body as_echo'
12112 # The user is always right.
12113 if test "${PATH_SEPARATOR+set}" != set; then
12115 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12116 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12123 # We need space, tab and new line, in precisely that order. Quoting is
12124 # there to prevent editors from complaining about space-tab.
12125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12126 # splitting by setting IFS to empty value.)
12129 # Find who we are. Look in the path if we contain no directory separator.
12131 *[\\/]* ) as_myself=$0 ;;
12132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12136 test -z "$as_dir" && as_dir=.
12137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12143 # We did not find ourselves, most probably we were run as `sh COMMAND'
12144 # in which case we are not to be found in the path.
12145 if test "x$as_myself" = x; then
12148 if test ! -f "$as_myself"; then
12149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12153 # Unset variables that we do not need and which cause bugs (e.g. in
12154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12155 # suppresses any "Segmentation fault" message there. '((' could
12156 # trigger a bug in pdksh 5.2.14.
12157 for as_var in BASH_ENV ENV MAIL MAILPATH
12158 do eval test x\${$as_var+set} = xset \
12159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12175 # as_fn_error ERROR [LINENO LOG_FD]
12176 # ---------------------------------
12177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12179 # script with status $?, using 1 if that was 0.
12182 as_status=$?; test $as_status -eq 0 && as_status=1
12184 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12187 $as_echo "$as_me: error: $1" >&2
12188 as_fn_exit $as_status
12192 # as_fn_set_status STATUS
12193 # -----------------------
12194 # Set $? to STATUS, without forking.
12195 as_fn_set_status ()
12198 } # as_fn_set_status
12200 # as_fn_exit STATUS
12201 # -----------------
12202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12206 as_fn_set_status $1
12212 # Portably unset VAR.
12215 { eval $1=; unset $1;}
12217 as_unset=as_fn_unset
12218 # as_fn_append VAR VALUE
12219 # ----------------------
12220 # Append the text in VALUE to the end of the definition contained in VAR. Take
12221 # advantage of any shell optimizations that allow amortized linear growth over
12222 # repeated appends, instead of the typical quadratic growth present in naive
12224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12225 eval 'as_fn_append ()
12236 # as_fn_arith ARG...
12237 # ------------------
12238 # Perform arithmetic evaluation on the ARGs, and store the result in the
12239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12240 # must be portable across $(()) and expr.
12241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12242 eval 'as_fn_arith ()
12249 as_val=`expr "$@" || test $? -eq 1`
12254 if expr a : '\(a\)' >/dev/null 2>&1 &&
12255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12262 as_basename=basename
12267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12273 as_me=`$as_basename -- "$0" ||
12274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12275 X"$0" : 'X\(//\)$' \| \
12276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12278 sed '/^.*\/\([^/][^/]*\)\/*$/{
12292 # Avoid depending upon Character Ranges.
12293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12296 as_cr_digits='0123456789'
12297 as_cr_alnum=$as_cr_Letters$as_cr_digits
12299 ECHO_C= ECHO_N= ECHO_T=
12300 case `echo -n x` in #(((((
12302 case `echo 'xy\c'` in
12303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12312 rm -f conf$$ conf$$.exe conf$$.file
12313 if test -d conf$$.dir; then
12314 rm -f conf$$.dir/conf$$.file
12317 mkdir conf$$.dir 2>/dev/null
12319 if (echo >conf$$.file) 2>/dev/null; then
12320 if ln -s conf$$.file conf$$ 2>/dev/null; then
12322 # ... but there are two gotchas:
12323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12325 # In both cases, we have to default to `cp -p'.
12326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12328 elif ln conf$$.file conf$$ 2>/dev/null; then
12336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12337 rmdir conf$$.dir 2>/dev/null
12342 # Create "$as_dir" as a directory, including parents if necessary.
12347 -*) as_dir=./$as_dir;;
12349 test -d "$as_dir" || eval $as_mkdir_p || {
12353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12354 *) as_qdir=$as_dir;;
12356 as_dirs="'$as_qdir' $as_dirs"
12357 as_dir=`$as_dirname -- "$as_dir" ||
12358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12359 X"$as_dir" : 'X\(//\)[^/]' \| \
12360 X"$as_dir" : 'X\(//\)$' \| \
12361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12362 $as_echo X"$as_dir" |
12363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12367 /^X\(\/\/\)[^/].*/{
12380 test -d "$as_dir" && break
12382 test -z "$as_dirs" || eval "mkdir $as_dirs"
12383 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12387 if mkdir -p . 2>/dev/null; then
12388 as_mkdir_p='mkdir -p "$as_dir"'
12390 test -d ./-p && rmdir ./-p
12394 if test -x / >/dev/null 2>&1; then
12395 as_test_x='test -x'
12397 if ls -dL / >/dev/null 2>&1; then
12404 if test -d "$1"; then
12410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12411 ???[sx]*):;;*)false;;esac;fi
12415 as_executable_p=$as_test_x
12417 # Sed expression to map a string onto a valid CPP name.
12418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12420 # Sed expression to map a string onto a valid variable name.
12421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12425 ## ----------------------------------- ##
12426 ## Main body of $CONFIG_STATUS script. ##
12427 ## ----------------------------------- ##
12429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12432 # Save the log message, to keep $0 and so on meaningful, and to
12433 # report actual input values of CONFIG_FILES etc. instead of their
12434 # values after options handling.
12436 This file was extended by $as_me, which was
12437 generated by GNU Autoconf 2.65. Invocation command line was
12439 CONFIG_FILES = $CONFIG_FILES
12440 CONFIG_HEADERS = $CONFIG_HEADERS
12441 CONFIG_LINKS = $CONFIG_LINKS
12442 CONFIG_COMMANDS = $CONFIG_COMMANDS
12445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12450 case $ac_config_files in *"
12451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12454 case $ac_config_headers in *"
12455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12460 # Files that config.status was made for.
12461 config_files="$ac_config_files"
12462 config_headers="$ac_config_headers"
12463 config_commands="$ac_config_commands"
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12469 \`$as_me' instantiates files and other configuration actions
12470 from templates according to the current configuration. Unless the files
12471 and actions are specified as TAGs, all are instantiated by default.
12473 Usage: $0 [OPTION]... [TAG]...
12475 -h, --help print this help, then exit
12476 -V, --version print version number and configuration settings, then exit
12477 --config print configuration, then exit
12478 -q, --quiet, --silent
12479 do not print progress messages
12480 -d, --debug don't remove temporary files
12481 --recheck update $as_me by reconfiguring in the same conditions
12482 --file=FILE[:TEMPLATE]
12483 instantiate the configuration file FILE
12484 --header=FILE[:TEMPLATE]
12485 instantiate the configuration header FILE
12487 Configuration files:
12490 Configuration headers:
12493 Configuration commands:
12496 Report bugs to the package provider."
12499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12500 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12503 configured by $0, generated by GNU Autoconf 2.65,
12504 with options \\"\$ac_cs_config\\"
12506 Copyright (C) 2009 Free Software Foundation, Inc.
12507 This config.status script is free software; the Free Software Foundation
12508 gives unlimited permission to copy, distribute and modify it."
12514 test -n "\$AWK" || AWK=awk
12517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12518 # The default lists apply if the user does not specify any file.
12524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12536 # Handling of the options.
12537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12540 $as_echo "$ac_cs_version"; exit ;;
12541 --config | --confi | --conf | --con | --co | --c )
12542 $as_echo "$ac_cs_config"; exit ;;
12543 --debug | --debu | --deb | --de | --d | -d )
12545 --file | --fil | --fi | --f )
12548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12550 as_fn_append CONFIG_FILES " '$ac_optarg'"
12551 ac_need_defaults=false;;
12552 --header | --heade | --head | --hea )
12555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12557 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12558 ac_need_defaults=false;;
12560 # Conflict between --help and --header
12561 as_fn_error "ambiguous option: \`$1'
12562 Try \`$0 --help' for more information.";;
12563 --help | --hel | -h )
12564 $as_echo "$ac_cs_usage"; exit ;;
12565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12569 # This is an error.
12570 -*) as_fn_error "unrecognized option: \`$1'
12571 Try \`$0 --help' for more information." ;;
12573 *) as_fn_append ac_config_targets " $1"
12574 ac_need_defaults=false ;;
12580 ac_configure_extra_args=
12582 if $ac_cs_silent; then
12584 ac_configure_extra_args="$ac_configure_extra_args --silent"
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 if \$ac_cs_recheck; then
12590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12593 CONFIG_SHELL='$SHELL'
12594 export CONFIG_SHELL
12599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12604 ## Running $as_me. ##
12610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12615 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12617 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12618 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12619 LINGUAS="${LINGUAS-%UNSET%}"
12624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12626 # Handling of arguments.
12627 for ac_config_target in $ac_config_targets
12629 case $ac_config_target in
12630 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12631 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12632 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12634 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12639 # If the user did not use the arguments to specify the items to instantiate,
12640 # then the envvar interface is used. Set only those that are not.
12641 # We use the long form for the default assignment because of an extremely
12642 # bizarre bug on SunOS 4.1.3.
12643 if $ac_need_defaults; then
12644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12649 # Have a temporary directory for convenience. Make it in the build tree
12650 # simply because there is no reason against having it here, and in addition,
12651 # creating and moving files from /tmp can sometimes cause problems.
12652 # Hook for its removal unless debugging.
12653 # Note that there is a small window in which the directory will not be cleaned:
12654 # after its creation but before its name has been assigned to `$tmp'.
12658 trap 'exit_status=$?
12659 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12661 trap 'as_fn_exit 1' 1 2 13 15
12663 # Create a (secure) tmp directory for tmp files.
12666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12667 test -n "$tmp" && test -d "$tmp"
12670 tmp=./conf$$-$RANDOM
12671 (umask 077 && mkdir "$tmp")
12672 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12674 # Set up the scripts for CONFIG_FILES section.
12675 # No need to generate them if there are no CONFIG_FILES.
12676 # This happens for instance with `./config.status config.h'.
12677 if test -n "$CONFIG_FILES"; then
12679 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12680 ac_cs_awk_getline=:
12681 ac_cs_awk_pipe_init=
12682 ac_cs_awk_read_file='
12683 while ((getline aline < (F[key])) > 0)
12686 ac_cs_awk_pipe_fini=
12688 ac_cs_awk_getline=false
12689 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12690 ac_cs_awk_read_file='
12692 print "cat " F[key] " &&"
12693 '$ac_cs_awk_pipe_init
12694 # The final `:' finishes the AND list.
12695 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12697 ac_cr=`echo X | tr X '\015'`
12698 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12699 # But we know of no other shell where ac_cr would be empty at this
12700 # point, so we can use a bashism as a fallback.
12701 if test "x$ac_cr" = x; then
12702 eval ac_cr=\$\'\\r\'
12704 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12705 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12708 ac_cs_awk_cr=$ac_cr
12711 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12714 # Create commands to substitute file output variables.
12716 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12717 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12718 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12721 } >conf$$files.sh &&
12722 . ./conf$$files.sh ||
12723 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12724 rm -f conf$$files.sh
12727 echo "cat >conf$$subs.awk <<_ACEOF" &&
12728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12730 } >conf$$subs.sh ||
12731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12734 for ac_last_try in false false false false false :; do
12735 . ./conf$$subs.sh ||
12736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12739 if test $ac_delim_n = $ac_delim_num; then
12741 elif $ac_last_try; then
12742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12747 rm -f conf$$subs.sh
12749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12750 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12754 s/^/S["/; s/!.*/"]=/
12764 s/\(.\{148\}\)..*/\1/
12766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12778 s/\(.\{148\}\)..*/\1/
12780 s/["\\]/\\&/g; s/^/"/; s/$/"/
12784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12789 ' <conf$$subs.awk | sed '
12794 ' >>$CONFIG_STATUS || ac_write_fail=1
12795 rm -f conf$$subs.awk
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12798 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12799 for (key in S) S_is_set[key] = 1
12801 \$ac_cs_awk_pipe_init
12805 nfields = split(line, field, "@")
12807 len = length(field[1])
12808 for (i = 2; i < nfields; i++) {
12810 keylen = length(key)
12811 if (S_is_set[key]) {
12813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12814 len += length(value) + length(field[++i])
12819 if (nfields == 3 && !substed) {
12821 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12822 \$ac_cs_awk_read_file
12828 \$ac_cs_awk_pipe_fini
12831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12832 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12833 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12836 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12837 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12842 # trailing colons and then remove the whole line if VPATH becomes empty
12843 # (actually we leave an empty line to preserve line numbers).
12844 if test "x$srcdir" = x.; then
12845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12846 s/:*\$(srcdir):*/:/
12847 s/:*\${srcdir}:*/:/
12849 s/^\([^=]*=[ ]*\):*/\1/
12855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12856 fi # test -n "$CONFIG_FILES"
12858 # Set up the scripts for CONFIG_HEADERS section.
12859 # No need to generate them if there are no CONFIG_HEADERS.
12860 # This happens for instance with `./config.status Makefile'.
12861 if test -n "$CONFIG_HEADERS"; then
12862 cat >"$tmp/defines.awk" <<\_ACAWK ||
12866 # Transform confdefs.h into an awk script `defines.awk', embedded as
12867 # here-document in config.status, that substitutes the proper values into
12868 # config.h.in to produce config.h.
12870 # Create a delimiter string that does not exist in confdefs.h, to ease
12871 # handling of long lines.
12873 for ac_last_try in false false :; do
12874 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12875 if test -z "$ac_t"; then
12877 elif $ac_last_try; then
12878 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12884 # For the awk script, D is an array of macro values keyed by name,
12885 # likewise P contains macro parameters if any. Preserve backslash
12886 # newline sequences.
12888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12890 s/.\{148\}/&'"$ac_delim"'/g
12893 s/^[ ]*#[ ]*define[ ][ ]*/ /
12900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12907 D["\1"]=" \3\\\\\\n"\\/p
12909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12914 s/.\{148\}/&'"$ac_delim"'/g
12919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12924 ' <confdefs.h | sed '
12925 s/'"$ac_delim"'/"\\\
12926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12929 for (key in D) D_is_set[key] = 1
12932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12934 split(line, arg, " ")
12935 if (arg[1] == "#") {
12939 defundef = substr(arg[1], 2)
12942 split(mac1, mac2, "(") #)
12944 prefix = substr(line, 1, index(line, defundef) - 1)
12945 if (D_is_set[macro]) {
12946 # Preserve the white space surrounding the "#".
12947 print prefix "define", macro P[macro] D[macro]
12950 # Replace #undef with comments. This is necessary, for example,
12951 # in the case of _POSIX_SOURCE, which is predefined and required
12952 # on some systems where configure will not decide to define it.
12953 if (defundef == "undef") {
12954 print "/*", prefix defundef, macro, "*/"
12962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12963 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12964 fi # test -n "$CONFIG_HEADERS"
12967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12972 :[FHLC]) ac_mode=$ac_tag; continue;;
12974 case $ac_mode$ac_tag in
12976 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12977 :[FH]-) ac_tag=-:-;;
12978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12995 -) ac_f="$tmp/stdin";;
12996 *) # Look for the file first in the build tree, then in the source tree
12997 # (if the path is not absolute). The absolute path cannot be DOS-style,
12998 # because $ac_f cannot contain `:'.
13002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13004 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13007 as_fn_append ac_file_inputs " '$ac_f'"
13010 # Let's still pretend it is `configure' which instantiates (i.e., don't
13011 # use $as_me), people would be surprised to read:
13012 # /* config.h. Generated by config.status. */
13013 configure_input='Generated from '`
13014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13016 if test x"$ac_file" != x-; then
13017 configure_input="$ac_file. $configure_input"
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13019 $as_echo "$as_me: creating $ac_file" >&6;}
13021 # Neutralize special characters interpreted by sed in replacement strings.
13022 case $configure_input in #(
13023 *\&* | *\|* | *\\* )
13024 ac_sed_conf_input=`$as_echo "$configure_input" |
13025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13026 *) ac_sed_conf_input=$configure_input;;
13030 *:-:* | *:-) cat >"$tmp/stdin" \
13031 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13036 ac_dir=`$as_dirname -- "$ac_file" ||
13037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13038 X"$ac_file" : 'X\(//\)[^/]' \| \
13039 X"$ac_file" : 'X\(//\)$' \| \
13040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13041 $as_echo X"$ac_file" |
13042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13046 /^X\(\/\/\)[^/].*/{
13059 as_dir="$ac_dir"; as_fn_mkdir_p
13063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13066 # A ".." for each directory in $ac_dir_suffix.
13067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13068 case $ac_top_builddir_sub in
13069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13073 ac_abs_top_builddir=$ac_pwd
13074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13075 # for backward compatibility:
13076 ac_top_builddir=$ac_top_build_prefix
13079 .) # We are building in place.
13081 ac_top_srcdir=$ac_top_builddir_sub
13082 ac_abs_top_srcdir=$ac_pwd ;;
13083 [\\/]* | ?:[\\/]* ) # Absolute name.
13084 ac_srcdir=$srcdir$ac_dir_suffix;
13085 ac_top_srcdir=$srcdir
13086 ac_abs_top_srcdir=$srcdir ;;
13087 *) # Relative name.
13088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13089 ac_top_srcdir=$ac_top_build_prefix$srcdir
13090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108 # If the template does not know about datarootdir, expand it.
13109 # FIXME: This hack should be removed a few years after 2.60.
13110 ac_datarootdir_hack=; ac_datarootdir_seen=
13121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13122 *datarootdir*) ac_datarootdir_seen=yes;;
13123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 ac_datarootdir_hack='
13129 s&@datadir@&$datadir&g
13130 s&@docdir@&$docdir&g
13131 s&@infodir@&$infodir&g
13132 s&@localedir@&$localedir&g
13133 s&@mandir@&$mandir&g
13134 s&\\\${datarootdir}&$datarootdir&g' ;;
13138 # Neutralize VPATH when `$srcdir' = `.'.
13139 # Shell code in configure.ac might set extrasub.
13140 # FIXME: do we really want to maintain this feature?
13141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13142 ac_sed_extra="$ac_vpsub
13145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13148 s|@configure_input@|$ac_sed_conf_input|;t t
13149 s&@top_builddir@&$ac_top_builddir_sub&;t t
13150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13151 s&@srcdir@&$ac_srcdir&;t t
13152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13153 s&@top_srcdir@&$ac_top_srcdir&;t t
13154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13155 s&@builddir@&$ac_builddir&;t t
13156 s&@abs_builddir@&$ac_abs_builddir&;t t
13157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13158 s&@INSTALL@&$ac_INSTALL&;t t
13159 $ac_datarootdir_hack
13161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13162 if $ac_cs_awk_getline; then
13163 $AWK -f "$tmp/subs.awk"
13165 $AWK -f "$tmp/subs.awk" | $SHELL
13167 || as_fn_error "could not create $ac_file" "$LINENO" 5
13169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13173 which seems to be undefined. Please make sure it is defined." >&5
13174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13175 which seems to be undefined. Please make sure it is defined." >&2;}
13179 -) cat "$tmp/out" && rm -f "$tmp/out";;
13180 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13182 || as_fn_error "could not create $ac_file" "$LINENO" 5
13188 if test x"$ac_file" != x-; then
13190 $as_echo "/* $configure_input */" \
13191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13192 } >"$tmp/config.h" \
13193 || as_fn_error "could not create $ac_file" "$LINENO" 5
13194 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13199 mv "$tmp/config.h" "$ac_file" \
13200 || as_fn_error "could not create $ac_file" "$LINENO" 5
13203 $as_echo "/* $configure_input */" \
13204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13205 || as_fn_error "could not create -" "$LINENO" 5
13209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13210 $as_echo "$as_me: executing $ac_file commands" >&6;}
13215 case $ac_file$ac_mode in
13217 for ac_file in $CONFIG_FILES; do
13218 # Support "outfile[:infile[:infile...]]"
13220 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13222 # PO directories have a Makefile.in generated from Makefile.in.in.
13223 case "$ac_file" in */Makefile.in)
13224 # Adjust a relative srcdir.
13225 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13226 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13227 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13228 # In autoconf-2.13 it is called $ac_given_srcdir.
13229 # In autoconf-2.50 it is called $srcdir.
13230 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13231 case "$ac_given_srcdir" in
13232 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13233 /*) top_srcdir="$ac_given_srcdir" ;;
13234 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13236 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13237 rm -f "$ac_dir/POTFILES"
13238 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13239 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13240 POMAKEFILEDEPS="POTFILES.in"
13241 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13242 # on $ac_dir but don't depend on user-specified configuration
13244 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13245 # The LINGUAS file contains the set of available languages.
13246 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13247 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13249 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13250 # Hide the ALL_LINGUAS assigment from automake.
13251 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13252 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13254 # The set of available languages was given in configure.in.
13255 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13258 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13259 # Compute UPDATEPOFILES
13260 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13261 # Compute DUMMYPOFILES
13262 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13264 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13265 case "$ac_given_srcdir" in
13267 *) srcdirpre='$(srcdir)/' ;;
13273 for lang in $ALL_LINGUAS; do
13274 POFILES="$POFILES $srcdirpre$lang.po"
13275 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13276 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13277 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13279 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13280 # environment variable.
13282 if test -n "$ALL_LINGUAS"; then
13283 for presentlang in $ALL_LINGUAS; do
13285 if test "%UNSET%" != "$LINGUAS"; then
13286 desiredlanguages="$LINGUAS"
13288 desiredlanguages="$ALL_LINGUAS"
13290 for desiredlang in $desiredlanguages; do
13291 # Use the presentlang catalog if desiredlang is
13292 # a. equal to presentlang, or
13293 # b. a variant of presentlang (because in this case,
13294 # presentlang can be used as a fallback for messages
13295 # which are not translated in the desiredlang catalog).
13296 case "$desiredlang" in
13297 "$presentlang"*) useit=yes;;
13300 if test $useit = yes; then
13301 INST_LINGUAS="$INST_LINGUAS $presentlang"
13306 if test -n "$INST_LINGUAS"; then
13307 for lang in $INST_LINGUAS; do
13308 CATALOGS="$CATALOGS $lang.gmo"
13311 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13312 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"
13313 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13314 if test -f "$f"; then
13316 *.orig | *.bak | *~) ;;
13317 *) cat "$f" >> "$ac_dir/Makefile" ;;
13332 ac_clean_files=$ac_clean_files_save
13334 test $ac_write_fail = 0 ||
13335 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13338 # configure is writing to config.log, and then calls config.status.
13339 # config.status does its own redirection, appending to config.log.
13340 # Unfortunately, on DOS this fails, as config.log is still kept open
13341 # by configure, so config.status won't be able to write to it; its
13342 # output is simply discarded. So we exec the FD to /dev/null,
13343 # effectively closing config.log, so it can be properly (re)opened and
13344 # appended to by config.status. When coming back to configure, we
13345 # need to make the FD available again.
13346 if test "$no_create" != yes; then
13348 ac_config_status_args=
13349 test "$silent" = yes &&
13350 ac_config_status_args="$ac_config_status_args --quiet"
13352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13355 # would make configure fail if this is the last instruction.
13356 $ac_cs_success || as_fn_exit $?
13358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13363 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi