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
640 INTL_LIBTOOL_SUFFIX_PREFIX
647 BUILD_INCLUDED_LIBINTL
772 program_transform_name
783 ac_subst_files='MCONFIG
790 PUBLIC_CONFIG_HEADER'
792 enable_option_checking
798 enable_maintainer_mode
799 enable_symlink_install
800 enable_symlink_relative_symlinks
802 enable_verbose_makecmds
820 enable_e2initrd_helper
827 with_included_gettext
831 ac_precious_vars='build_alias
843 # Initialize some variables set by options.
845 ac_init_version=false
846 ac_unrecognized_opts=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name=s,x,x,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures this package to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 if test -n "$ac_init_help"; then
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-maintainer-mode enable makefile rules useful for maintainers
1454 --enable-symlink-install use symlinks when installing instead of hard links
1455 --enable-relative-symlinks use relative symlinks when installing
1456 --enable-symlink-build use symlinks while building instead of hard links
1457 --enable-verbose-makecmds enable verbose make command output
1458 --enable-compression enable EXPERIMENTAL compression support
1459 --enable-htree enable EXPERIMENTAL htree directory support
1460 --enable-elf-shlibs select ELF shared libraries
1461 --enable-bsd-shlibs select BSD shared libraries
1462 --enable-profile build profiling libraries
1463 --enable-checker build checker libraries
1464 --enable-jbd-debug enable journal debugging
1465 --enable-blkid-debug enable blkid debugging
1466 --disable-testio-debug disable the use of the test I/O manager for debugging
1467 --disable-libuuid do not build private uuid library
1468 --disable-libblkid do not build private blkid library
1469 --enable-libquota enable quota support
1470 --disable-debugfs disable support of debugfs program
1471 --disable-imager disable support of e2image program
1472 --disable-resizer disable support of e2resize program
1473 --disable-defrag disable support of e4defrag program
1474 --enable-fsck build fsck wrapper program
1475 --enable-e2initrd-helper build e2initrd-helper program
1476 --disable-tls disable use of thread local support
1477 --disable-uuidd disable building the uuid daemon
1478 --disable-nls do not use Native Language Support
1479 --disable-rpath do not hardcode runtime library paths
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-diet-libc use diet libc
1485 --with-cc no longer supported, use CC= instead
1486 --with-ccopts no longer supported, use CFLAGS= instead
1487 --with-ldopts no longer supported, use LDFLAGS= instead
1488 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1489 --with-gnu-ld assume the C compiler uses GNU ld default=no
1490 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1491 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1492 --with-included-gettext use the GNU gettext library included here
1493 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1494 --without-libintl-prefix don't search for libintl in includedir and libdir
1495 --with-multiarch=ARCH specify the multiarch triplet
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 PKG_CONFIG path to pkg-config utility
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 Report bugs to the package provider.
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1541 .) # We are building in place.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1575 generated by GNU Autoconf 2.65
1577 Copyright (C) 2009 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_compile
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext conftest$ac_exeext
1633 if { { ac_try="$ac_link"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest$ac_exeext && {
1652 test "$cross_compiling" = yes ||
1653 $as_test_x conftest$ac_exeext
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 as_fn_set_status $ac_retval
1670 } # ac_fn_c_try_link
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 as_fn_set_status $ac_retval
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1752 # -------------------------------------------
1753 # Tests whether TYPE exists after having included INCLUDES, setting cache
1754 # variable VAR accordingly.
1755 ac_fn_c_check_type ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1789 if ac_fn_c_try_compile "$LINENO"; then :
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 } # ac_fn_c_check_type
1805 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists and can be compiled using the include files in
1808 # INCLUDES, setting the cache variable VAR accordingly.
1809 ac_fn_c_check_header_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1822 if ac_fn_c_try_compile "$LINENO"; then :
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_header_compile
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1859 # include <limits.h>
1861 # include <assert.h>
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1888 if ac_fn_c_try_link "$LINENO"; then :
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 } # ac_fn_c_check_func
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1908 ac_fn_c_check_header_mongrel ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1932 ac_header_compiler=no
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1948 ac_header_preproc=no
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 eval "$3=\$ac_header_compiler"
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991 # --------------------------------------------
1992 # Tries to find the compile-time value of EXPR in a program that includes
1993 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1995 ac_fn_c_compute_int ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if test "$cross_compiling" = yes; then
1999 # Depending upon the size, compute the lo and hi bounds.
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_hi=$ac_mid; break
2032 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2033 if test $ac_lo -le $ac_mid; then
2037 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 static int test_array [1 - 2 * !(($2) < 0)];
2055 if ac_fn_c_try_compile "$LINENO"; then :
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=$ac_mid; break
2074 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2075 if test $ac_mid -le $ac_hi; then
2079 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 # Binary search between lo and hi bounds.
2090 while test "x$ac_lo" != "x$ac_hi"; do
2091 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 static long int longval () { return $2; }
2121 static unsigned long int ulongval () { return $2; }
2128 FILE *f = fopen ("conftest.val", "w");
2133 long int i = longval ();
2136 fprintf (f, "%ld", i);
2140 unsigned long int i = ulongval ();
2143 fprintf (f, "%lu", i);
2145 /* Do not output a trailing newline, as this causes \r\n confusion
2146 on some platforms. */
2147 return ferror (f) || fclose (f) != 0;
2153 if ac_fn_c_try_run "$LINENO"; then :
2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159 conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164 as_fn_set_status $ac_retval
2166 } # ac_fn_c_compute_int
2168 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2169 # ----------------------------------------------------
2170 # Tries to find if the field MEMBER exists in type AGGR, after including
2171 # INCLUDES, setting cache variable VAR accordingly.
2172 ac_fn_c_check_member ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2176 $as_echo_n "checking for $2.$3... " >&6; }
2177 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"; then :
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2203 if (sizeof ac_aggr.$3)
2209 if ac_fn_c_try_compile "$LINENO"; then :
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 } # ac_fn_c_check_member
2225 # ac_fn_c_check_decl LINENO SYMBOL VAR
2226 # ------------------------------------
2227 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2228 ac_fn_c_check_decl ()
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2232 $as_echo_n "checking whether $2 is declared... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 } # ac_fn_c_check_decl
2263 cat >config.log <<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2267 It was created by $as_me, which was
2268 generated by GNU Autoconf 2.65. Invocation command line was
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2289 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2293 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 $as_echo "PATH: $as_dir"
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_must_keep_next=false
2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336 | -silent | --silent | --silen | --sile | --sil)
2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344 as_fn_append ac_configure_args1 " '$ac_arg'"
2345 if test $ac_must_keep_next = true; then
2346 ac_must_keep_next=false # Got value, back to normal.
2349 *=* | --config-cache | -C | -disable-* | --disable-* \
2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352 | -with-* | --with-* | -without-* | --without-* | --x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 -* ) ac_must_keep_next=true ;;
2360 as_fn_append ac_configure_args " '$ac_arg'"
2365 { ac_configure_args0=; unset ac_configure_args0;}
2366 { ac_configure_args1=; unset ac_configure_args1;}
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log. We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2379 ## ---------------- ##
2380 ## Cache variables. ##
2381 ## ---------------- ##
2384 # The following way of writing the cache mishandles newlines in values,
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395 _ | IFS | as_nl) ;; #(
2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397 *) { eval $ac_var=; unset $ac_var;} ;;
2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
2405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417 ## ----------------- ##
2418 ## Output variables. ##
2419 ## ----------------- ##
2422 for ac_var in $ac_subst_vars
2424 eval ac_val=\$$ac_var
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -n "$ac_subst_files"; then
2434 ## ------------------- ##
2435 ## File substitutions. ##
2436 ## ------------------- ##
2439 for ac_var in $ac_subst_files
2441 eval ac_val=\$$ac_var
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 $as_echo "$ac_var='\''$ac_val'\''"
2450 if test -s confdefs.h; then
2460 test "$ac_signal" != 0 &&
2461 $as_echo "$as_me: caught signal $ac_signal"
2462 $as_echo "$as_me: exit $exit_status"
2464 rm -f core *.core core.conftest.* &&
2465 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2468 for ac_signal in 1 2 13 15; do
2469 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2474 rm -f -r conftest* confdefs.h
2476 $as_echo "/* confdefs.h */" > confdefs.h
2478 # Predefined preprocessor variables.
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_NAME "$PACKAGE_NAME"
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_STRING "$PACKAGE_STRING"
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_URL "$PACKAGE_URL"
2505 # Let the site file select an alternate cache file if it wants to.
2506 # Prefer an explicitly selected file to automatically selected ones.
2509 if test -n "$CONFIG_SITE"; then
2510 ac_site_file1=$CONFIG_SITE
2511 elif test "x$prefix" != xNONE; then
2512 ac_site_file1=$prefix/share/config.site
2513 ac_site_file2=$prefix/etc/config.site
2515 ac_site_file1=$ac_default_prefix/share/config.site
2516 ac_site_file2=$ac_default_prefix/etc/config.site
2518 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2520 test "x$ac_site_file" = xNONE && continue
2521 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524 sed 's/^/| /' "$ac_site_file" >&5
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537 *) . "./$cache_file";;
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 as_fn_append ac_header_list " stdlib.h"
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_header_list " sys/param.h"
2549 # Check that the precious variables saved in the cache have kept the same
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 for ac_dir in config "$srcdir"/config; do
2620 for ac_t in install-sh install.sh shtool; do
2621 if test -f "$ac_dir/$ac_t"; then
2623 ac_install_sh="$ac_aux_dir/$ac_t -c"
2628 if test -z "$ac_aux_dir"; then
2629 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2632 # These three variables are undocumented and unsupported,
2633 # and are intended to be withdrawn in a future Autoconf release.
2634 # They can cause serious problems if a builder's source tree is in a directory
2635 # whose full name contains unusual characters.
2636 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2637 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2638 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2641 ac_config_headers="$ac_config_headers lib/config.h"
2647 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2648 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2649 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2651 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2652 MONTH=`echo $DATE | awk -F- '{print $2}'`
2653 YEAR=`echo $DATE | awk -F- '{print $3}'`
2655 if expr $YEAR ">" 1900 > /dev/null ; then
2656 E2FSPROGS_YEAR=$YEAR
2657 elif expr $YEAR ">" 90 >/dev/null ; then
2658 E2FSPROGS_YEAR=19$YEAR
2660 E2FSPROGS_YEAR=20$YEAR
2664 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2665 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2666 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2667 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2668 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2669 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2670 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2671 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2672 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2673 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2674 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2675 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2676 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2677 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2680 base_ver=`echo $E2FSPROGS_VERSION | \
2681 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2683 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2685 case $E2FSPROGS_VERSION in
2687 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2690 E2FSPROGS_PKGVER="$base_ver"
2694 unset DATE MONTH YEAR base_ver pre_vers date_spec
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2696 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2698 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2704 # Make sure we can run config.sub.
2705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2706 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2709 $as_echo_n "checking build system type... " >&6; }
2710 if test "${ac_cv_build+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2713 ac_build_alias=$build_alias
2714 test "x$ac_build_alias" = x &&
2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716 test "x$ac_build_alias" = x &&
2717 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2718 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2723 $as_echo "$ac_cv_build" >&6; }
2724 case $ac_cv_build in
2726 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2729 ac_save_IFS=$IFS; IFS='-'
2735 # Remember, the first character of IFS is used to create $*,
2736 # except with old shells:
2739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2743 $as_echo_n "checking host system type... " >&6; }
2744 if test "${ac_cv_host+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2747 if test "x$host_alias" = x; then
2748 ac_cv_host=$ac_cv_build
2750 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2751 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2756 $as_echo "$ac_cv_host" >&6; }
2759 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2762 ac_save_IFS=$IFS; IFS='-'
2768 # Remember, the first character of IFS is used to create $*,
2769 # except with old shells:
2772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$ac_cv_prog_CC"; then
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2858 if test "x$ac_ct_CC" = x; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$CC" && break
3014 if test -z "$CC"; then
3016 for ac_prog in cl.exe
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="$ac_prog"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3055 test -n "$ac_ct_CC" && break
3058 if test "x$ac_ct_CC" = x; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error "no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." "$LINENO" 5; }
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093 if test -s conftest.err; then
3095 ... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3099 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121 $as_echo_n "checking whether the C compiler works... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 for ac_file in $ac_files
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137 if { { ac_try="$ac_link_default"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3153 for ac_file in $ac_files ''
3155 test -f "$ac_file" || continue
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 # We found the default executable, but exeext='' is most
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3183 if test -z "$ac_file"; then :
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { as_fn_set_status 77
3192 as_fn_error "C compiler cannot create executables
3193 See \`config.log' for more details." "$LINENO" 5; }; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3288 if test "$cross_compiling" = maybe; then
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details." "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if test "${ac_cv_objext+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details." "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3374 if ac_fn_c_try_compile "$LINENO"; then :
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if test "${ac_cv_prog_cc_g+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3464 if test "$GCC" = yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3475 ac_cv_prog_cc_c89=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 #include <sys/types.h>
3482 #include <sys/stat.h>
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3497 s = g (p, va_arg (v,int));
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
3505 as 'x'. The following induces an error, until -std is added to get
3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
3508 that's true only with -std. */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 CC="$ac_save_CC $ac_arg"
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_prog_cc_c89=$ac_arg
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 rm -f conftest.$ac_ext
3545 case "x$ac_cv_prog_cc_c89" in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_check_lib_save_LIBS=$LIBS
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3578 /* Override any GCC internal prototype to avoid an error.
3579 Use char because int might match the return type of a GCC
3580 builtin and then its argument prototype would still apply. */
3593 if ac_fn_c_try_link "$LINENO"; then :
3594 ac_cv_lib_dl_dlopen=yes
3596 ac_cv_lib_dl_dlopen=no
3598 rm -f core conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext conftest.$ac_ext
3600 LIBS=$ac_check_lib_save_LIBS
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3604 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3607 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3614 # Check whether --with-diet-libc was given.
3615 if test "${with_diet_libc+set}" = set; then :
3616 withval=$with_diet_libc; CC="diet cc -nostdinc"
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3619 $as_echo "CC=$CC" >&6; }
3622 # Check whether --with-cc was given.
3623 if test "${with_cc+set}" = set; then :
3624 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3628 # Check whether --with-ccopts was given.
3629 if test "${with_ccopts+set}" = set; then :
3630 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3634 # Check whether --with-ldopts was given.
3635 if test "${with_ldopts+set}" = set; then :
3636 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$ac_cv_prog_CC"; then
3685 # Extract the first word of "gcc", so it can be a program name with args.
3686 set dummy gcc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$ac_ct_CC"; then
3693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_ac_ct_CC="gcc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3713 if test -n "$ac_ct_CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3715 $as_echo "$ac_ct_CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3721 if test "x$ac_ct_CC" = x; then
3724 case $cross_compiling:$ac_tool_warned in
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}cc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="${ac_tool_prefix}cc"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 if test -n "$CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3777 if test -z "$CC"; then
3778 # Extract the first word of "cc", so it can be a program name with args.
3779 set dummy cc; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3797 ac_prog_rejected=yes
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 if test $ac_prog_rejected = yes; then
3809 # We found a bogon in the path, so make sure we never use it.
3810 set dummy $ac_cv_prog_CC
3812 if test $# != 0; then
3813 # We chose a different compiler from the bogus one.
3814 # However, it has the same basename, so the bogon will be chosen
3815 # first if we set CC to just the basename; use the full file name.
3817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3833 if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in cl.exe
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_CC+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test -n "$CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3867 $as_echo "$CC" >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$CC" && break
3877 if test -z "$CC"; then
3879 for ac_prog in cl.exe
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3888 if test -n "$ac_ct_CC"; then
3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_CC="$ac_prog"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909 if test -n "$ac_ct_CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3911 $as_echo "$ac_ct_CC" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3918 test -n "$ac_ct_CC" && break
3921 if test "x$ac_ct_CC" = x; then
3924 case $cross_compiling:$ac_tool_warned in
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3928 ac_tool_warned=yes ;;
3937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "no acceptable C compiler found in \$PATH
3940 See \`config.log' for more details." "$LINENO" 5; }
3942 # Provide some information about the compiler.
3943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3946 for ac_option in --version -v -V -qversion; do
3947 { { ac_try="$ac_compiler $ac_option >&5"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3956 if test -s conftest.err; then
3958 ... rest of stderr output deleted ...
3959 10q' conftest.err >conftest.er1
3960 cat conftest.er1 >&5
3962 rm -f conftest.er1 conftest.err
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3986 if ac_fn_c_try_compile "$LINENO"; then :
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997 if test $ac_compiler_gnu = yes; then
4002 ac_test_CFLAGS=${CFLAGS+set}
4003 ac_save_CFLAGS=$CFLAGS
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4006 if test "${ac_cv_prog_cc_g+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4009 ac_save_c_werror_flag=$ac_c_werror_flag
4010 ac_c_werror_flag=yes
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_c_werror_flag=$ac_save_c_werror_flag
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 if ac_fn_c_try_compile "$LINENO"; then :
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 $as_echo "$ac_cv_prog_cc_g" >&6; }
4067 if test "$ac_test_CFLAGS" = set; then
4068 CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4076 if test "$GCC" = yes; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_cv_prog_cc_c89=no
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 #include <sys/types.h>
4094 #include <sys/stat.h>
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4109 s = g (p, va_arg (v,int));
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152 rm -f conftest.$ac_ext
4157 case "x$ac_cv_prog_cc_c89" in
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 if test "$GCC" = yes; then
4180 RDYNAMIC="-rdynamic"
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4190 # On Suns, sometimes $CPP names a directory.
4191 if test -n "$CPP" && test -d "$CPP"; then
4194 if test -z "$CPP"; then
4195 if test "${ac_cv_prog_CPP+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4198 # Double quotes because CPP needs to be expanded
4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4202 for ac_c_preproc_warn_flag in '' yes
4204 # Use a header file that comes with gcc, so configuring glibc
4205 # with a fresh cross-compiler works.
4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 # <limits.h> exists even on freestanding compilers.
4208 # On the NeXT, cc -E runs the code through the compiler's parser,
4209 # not just through cpp. "Syntax error" is here to catch this case.
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4213 # include <limits.h>
4215 # include <assert.h>
4219 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: fails on valid input.
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <ac_nonexistent.h>
4233 if ac_fn_c_try_cpp "$LINENO"; then :
4234 # Broken: success on invalid input.
4237 # Passes both tests.
4241 rm -f conftest.err conftest.$ac_ext
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then :
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4259 $as_echo "$CPP" >&6; }
4261 for ac_c_preproc_warn_flag in '' yes
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4272 # include <limits.h>
4274 # include <assert.h>
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: fails on valid input.
4284 rm -f conftest.err conftest.$ac_ext
4286 # OK, works on sane cases. Now check whether nonexistent headers
4287 # can be detected and how.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <ac_nonexistent.h>
4292 if ac_fn_c_try_cpp "$LINENO"; then :
4293 # Broken: success on invalid input.
4296 # Passes both tests.
4300 rm -f conftest.err conftest.$ac_ext
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then :
4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4311 See \`config.log' for more details." "$LINENO" 5; }
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4321 $as_echo_n "checking for additional special compiler flags... " >&6; }
4322 if test "$GCC" = yes
4325 alpha) addcflags="-mieee" ;;
4328 if test "x$addcflags" != x
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4331 $as_echo "$addcflags" >&6; }
4332 CFLAGS="$addcflags $CFLAGS"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4335 $as_echo "(none)" >&6; }
4341 # Check whether --with-root-prefix was given.
4342 if test "${with_root_prefix+set}" = set; then :
4343 withval=$with_root_prefix; root_prefix=$withval
4347 # Check whether --enable-maintainer-mode was given.
4348 if test "${enable_maintainer_mode+set}" = set; then :
4349 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4353 $as_echo "Disabling maintainer mode" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4357 $as_echo "Enabling maintainer mode" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4363 $as_echo "Disabling maintainer mode by default" >&6; }
4368 # Check whether --enable-symlink-install was given.
4369 if test "${enable_symlink_install+set}" = set; then :
4370 enableval=$enable_symlink_install; if test "$enableval" = "no"
4372 LINK_INSTALL_FLAGS=-f
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4374 $as_echo "Disabling symlinks for install" >&6; }
4376 LINK_INSTALL_FLAGS=-sf
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4378 $as_echo "Enabling symlinks for install" >&6; }
4382 LINK_INSTALL_FLAGS=-f
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4384 $as_echo "Disabling symlinks for install by default" >&6; }
4389 # Check whether --enable-symlink-relative-symlinks was given.
4390 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4391 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4395 $as_echo "Disabling relative symlinks for install" >&6; }
4397 SYMLINK_RELATIVE=--relative
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4399 $as_echo "Enabling symlinks for install" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4405 $as_echo "Disabling relative symlinks for install by default" >&6; }
4410 # Check whether --enable-symlink-build was given.
4411 if test "${enable_symlink_build+set}" = set; then :
4412 enableval=$enable_symlink_build; if test "$enableval" = "no"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4416 $as_echo "Disabling symlinks for build" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4420 $as_echo "Enabling symlinks for build" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4426 $as_echo "Disabling symlinks for build by default" >&6; }
4431 # Check whether --enable-verbose-makecmds was given.
4432 if test "${enable_verbose_makecmds+set}" = set; then :
4433 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4436 $as_echo "Disabling verbose make commands" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4442 $as_echo "Enabling verbose make commands" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4450 $as_echo "Disabling verbose make commands" >&6; }
4460 # Check whether --enable-compression was given.
4461 if test "${enable_compression+set}" = set; then :
4462 enableval=$enable_compression; if test "$enableval" = "no"
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4465 $as_echo "Disabling compression support" >&6; }
4468 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4471 $as_echo "Enabling compression support" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4473 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4478 $as_echo "Disabling compression support by default" >&6; }
4483 # Check whether --enable-htree was given.
4484 if test "${enable_htree+set}" = set; then :
4485 enableval=$enable_htree; if test "$enableval" = "no"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4489 $as_echo "Disabling htree directory support" >&6; }
4492 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4495 $as_echo "Enabling htree directory support" >&6; }
4500 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4503 $as_echo "Enabling htree directory support by default" >&6; }
4508 E2_PKG_CONFIG_STATIC=--static
4511 # Check whether --enable-elf-shlibs was given.
4512 if test "${enable_elf_shlibs+set}" = set; then :
4513 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4516 MAKEFILE_ELF=/dev/null
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4518 $as_echo "Disabling ELF shared libraries" >&6; }
4520 E2_PKG_CONFIG_STATIC=
4522 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4525 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4531 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4533 $as_echo "Enabling ELF shared libraries" >&6; }
4537 MAKEFILE_ELF=/dev/null
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4540 $as_echo "Disabling ELF shared libraries by default" >&6; }
4546 # Check whether --enable-bsd-shlibs was given.
4547 if test "${enable_bsd_shlibs+set}" = set; then :
4548 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4551 MAKEFILE_BSDLIB=/dev/null
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4553 $as_echo "Disabling BSD shared libraries" >&6; }
4555 E2_PKG_CONFIG_STATIC=
4557 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4561 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4566 $as_echo "Enabling BSD shared libraries" >&6; }
4570 MAKEFILE_BSDLIB=/dev/null
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4573 $as_echo "Disabling BSD shared libraries by default" >&6; }
4579 # Check whether --enable-profile was given.
4580 if test "${enable_profile+set}" = set; then :
4581 enableval=$enable_profile; if test "$enableval" = "no"
4584 MAKEFILE_PROFILE=/dev/null
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4586 $as_echo "Disabling profiling libraries" >&6; }
4589 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4590 PROFILED_LIB_EXT=_p.a
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4592 $as_echo "Building profiling libraries" >&6; }
4597 MAKEFILE_PROFILE=/dev/null
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4599 $as_echo "Disabling profiling libraries by default" >&6; }
4605 # Check whether --enable-checker was given.
4606 if test "${enable_checker+set}" = set; then :
4607 enableval=$enable_checker; if test "$enableval" = "no"
4610 MAKEFILE_CHECKER=/dev/null
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4612 $as_echo "Disabling checker libraries" >&6; }
4615 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4617 $as_echo "Building checker libraries" >&6; }
4622 MAKEFILE_CHECKER=/dev/null
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4624 $as_echo "Disabling checker libraries by default" >&6; }
4635 # Check whether --enable-jbd-debug was given.
4636 if test "${enable_jbd_debug+set}" = set; then :
4637 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4640 $as_echo "Disabling journal debugging" >&6; }
4643 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4646 $as_echo "Enabling journal debugging" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4651 $as_echo "Disabling journal debugging by default" >&6; }
4655 # Check whether --enable-blkid-debug was given.
4656 if test "${enable_blkid_debug+set}" = set; then :
4657 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4660 $as_echo "Disabling blkid debugging" >&6; }
4663 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4666 $as_echo "Enabling blkid debugging" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4671 $as_echo "Disabling blkid debugging by default" >&6; }
4675 # Check whether --enable-testio-debug was given.
4676 if test "${enable_testio_debug+set}" = set; then :
4677 enableval=$enable_testio_debug;
4678 if test "$enableval" = "no"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4681 $as_echo "Disabling testio debugging" >&6; }
4685 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4688 $as_echo "Enabling testio debugging" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4693 $as_echo "Enabling testio debugging by default" >&6; }
4694 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4736 if test -n "$PKG_CONFIG"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4738 $as_echo "$PKG_CONFIG" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4746 if test -z "$ac_cv_path_PKG_CONFIG"; then
4747 ac_pt_PKG_CONFIG=$PKG_CONFIG
4748 # Extract the first word of "pkg-config", so it can be a program name with args.
4749 set dummy pkg-config; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4755 case $ac_pt_PKG_CONFIG in
4757 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4779 if test -n "$ac_pt_PKG_CONFIG"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4787 if test "x$ac_pt_PKG_CONFIG" = x; then
4790 case $cross_compiling:$ac_tool_warned in
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4796 PKG_CONFIG=$ac_pt_PKG_CONFIG
4799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4803 if test -n "$PKG_CONFIG"; then
4804 _pkg_min_version=0.9.0
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4807 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4822 DEPPROFILED_LIBUUID=
4824 # Check whether --enable-libuuid was given.
4825 if test "${enable_libuuid+set}" = set; then :
4826 enableval=$enable_libuuid; if test "$enableval" = "no"
4828 if test -z "$PKG_CONFIG"; then
4829 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4833 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4834 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 ac_check_lib_save_LIBS=$LIBS
4838 LIBS="-luuid $LIBUUID $LIBS"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4842 /* Override any GCC internal prototype to avoid an error.
4843 Use char because int might match the return type of a GCC
4844 builtin and then its argument prototype would still apply. */
4848 char uuid_generate ();
4852 return uuid_generate ();
4857 if ac_fn_c_try_link "$LINENO"; then :
4858 ac_cv_lib_uuid_uuid_generate=yes
4860 ac_cv_lib_uuid_uuid_generate=no
4862 rm -f core conftest.err conftest.$ac_objext \
4863 conftest$ac_exeext conftest.$ac_ext
4864 LIBS=$ac_check_lib_save_LIBS
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4867 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4868 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4869 LIBUUID=`$PKG_CONFIG --libs uuid`;
4870 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4872 as_fn_error "external uuid library not found" "$LINENO" 5
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4877 $as_echo "Disabling private uuid library" >&6; }
4879 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4881 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4882 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4883 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4884 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4886 $as_echo "Enabling private uuid library" >&6; }
4890 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4892 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4893 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4894 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4895 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4897 $as_echo "Enabling private uuid library by default" >&6; }
4910 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4943 if test -n "$PKG_CONFIG"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4945 $as_echo "$PKG_CONFIG" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4953 if test -z "$ac_cv_path_PKG_CONFIG"; then
4954 ac_pt_PKG_CONFIG=$PKG_CONFIG
4955 # Extract the first word of "pkg-config", so it can be a program name with args.
4956 set dummy pkg-config; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 case $ac_pt_PKG_CONFIG in
4964 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4986 if test -n "$ac_pt_PKG_CONFIG"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4988 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4994 if test "x$ac_pt_PKG_CONFIG" = x; then
4997 case $cross_compiling:$ac_tool_warned in
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5003 PKG_CONFIG=$ac_pt_PKG_CONFIG
5006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5010 if test -n "$PKG_CONFIG"; then
5011 _pkg_min_version=0.9.0
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5013 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5014 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5029 DEPPROFILED_LIBBLKID=
5032 # Check whether --enable-libblkid was given.
5033 if test "${enable_libblkid+set}" = set; then :
5034 enableval=$enable_libblkid; if test "$enableval" = "no"
5036 if test -z "$PKG_CONFIG"; then
5037 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5041 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5042 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5045 ac_check_lib_save_LIBS=$LIBS
5046 LIBS="-lblkid $LIBBLKID $LIBS"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5050 /* Override any GCC internal prototype to avoid an error.
5051 Use char because int might match the return type of a GCC
5052 builtin and then its argument prototype would still apply. */
5056 char blkid_get_cache ();
5060 return blkid_get_cache ();
5065 if ac_fn_c_try_link "$LINENO"; then :
5066 ac_cv_lib_blkid_blkid_get_cache=yes
5068 ac_cv_lib_blkid_blkid_get_cache=no
5070 rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072 LIBS=$ac_check_lib_save_LIBS
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5075 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5076 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5077 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5078 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5080 as_fn_error "external blkid library not found" "$LINENO" 5
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5085 $as_echo "Disabling private blkid library" >&6; }
5087 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5088 DEPLIBBLKID=$LIBBLKID
5089 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5090 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5091 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5092 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5093 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5096 $as_echo "Enabling private blkid library" >&6; }
5100 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5101 DEPLIBBLKID=$LIBBLKID
5102 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5103 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5104 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5105 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5106 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5109 $as_echo "Enabling private blkid library by default" >&6; }
5122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5155 if test -n "$PKG_CONFIG"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5157 $as_echo "$PKG_CONFIG" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_path_PKG_CONFIG"; then
5166 ac_pt_PKG_CONFIG=$PKG_CONFIG
5167 # Extract the first word of "pkg-config", so it can be a program name with args.
5168 set dummy pkg-config; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 case $ac_pt_PKG_CONFIG in
5176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5198 if test -n "$ac_pt_PKG_CONFIG"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5206 if test "x$ac_pt_PKG_CONFIG" = x; then
5209 case $cross_compiling:$ac_tool_warned in
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned=yes ;;
5215 PKG_CONFIG=$ac_pt_PKG_CONFIG
5218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5222 if test -n "$PKG_CONFIG"; then
5223 _pkg_min_version=0.9.0
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5237 # Check whether --enable-quota was given.
5238 if test "${enable_quota+set}" = set; then :
5239 enableval=$enable_quota; if test "$enableval" = "no"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5242 $as_echo "Disabling quota support" >&6; }
5244 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5247 $as_echo "Enabling quota support" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5252 $as_echo "Disabling quota support by default" >&6; }
5256 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5257 DEPLIBQUOTA=$LIBQUOTA
5258 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5259 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5260 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5261 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5269 # Check whether --enable-debugfs was given.
5270 if test "${enable_debugfs+set}" = set; then :
5271 enableval=$enable_debugfs; if test "$enableval" = "no"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5274 $as_echo "Disabling debugfs support" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5279 $as_echo "Enabling debugfs support" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5284 $as_echo "Enabling debugfs support by default" >&6; }
5290 # Check whether --enable-imager was given.
5291 if test "${enable_imager+set}" = set; then :
5292 enableval=$enable_imager; if test "$enableval" = "no"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5295 $as_echo "Disabling e2image support" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5300 $as_echo "Enabling e2image support" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5305 $as_echo "Enabling e2image support by default" >&6; }
5311 # Check whether --enable-resizer was given.
5312 if test "${enable_resizer+set}" = set; then :
5313 enableval=$enable_resizer; if test "$enableval" = "no"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5316 $as_echo "Disabling e2resize support" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5321 $as_echo "Enabling e2resize support" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5326 $as_echo "Enabling e2resize support by default" >&6; }
5332 # Check whether --enable-defrag was given.
5333 if test "${enable_defrag+set}" = set; then :
5334 enableval=$enable_defrag; if test "$enableval" = "no"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5337 $as_echo "Disabling e4defrag support" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5342 $as_echo "Enabling e4defrag support" >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5347 $as_echo "Enabling e4defrag support by default" >&6; }
5353 # Check whether --enable-fsck was given.
5354 if test "${enable_fsck+set}" = set; then :
5355 enableval=$enable_fsck; if test "$enableval" = "no"
5357 FSCK_PROG='' FSCK_MAN=''
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5359 $as_echo "Not building fsck wrapper" >&6; }
5361 FSCK_PROG=fsck FSCK_MAN=fsck.8
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5363 $as_echo "Building fsck wrapper" >&6; }
5369 FSCK_PROG='' FSCK_MAN=''
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5371 $as_echo "Not building fsck wrapper by default" >&6; }
5374 FSCK_PROG=fsck FSCK_MAN=fsck.8
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5376 $as_echo "Building fsck wrapper by default" >&6; }
5383 # Check whether --enable-e2initrd-helper was given.
5384 if test "${enable_e2initrd_helper+set}" = set; then :
5385 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5387 E2INITRD_PROG='' E2INITRD_MAN=''
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5389 $as_echo "Not building e2initrd helper" >&6; }
5391 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5393 $as_echo "Building e2initrd helper" >&6; }
5397 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5399 $as_echo "Building e2initrd helper by default" >&6; }
5405 # Check whether --enable-tls was given.
5406 if test "${enable_tls+set}" = set; then :
5407 enableval=$enable_tls; if test "$enableval" = "no"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5411 $as_echo "Disabling thread local support" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5415 $as_echo "Enabling thread local support" >&6; }
5419 if test -n "$WITH_DIET_LIBC"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5423 $as_echo "Diet libc does not support thread local support" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5427 $as_echo "Try using thread local support by default" >&6; }
5432 if test "$try_tls" = "yes"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5436 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5437 if test "${ac_cv_tls+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5441 ax_tls_keywords="__thread __declspec(thread) none"
5442 for ax_tls_keyword in $ax_tls_keywords; do
5443 case $ax_tls_keyword in
5444 none) ac_cv_tls=none ; break ;;
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5451 static $ax_tls_keyword int bar;
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_tls=$ax_tls_keyword ; break
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 if test "$ac_cv_tls" != "none"; then
5477 cat >>confdefs.h <<_ACEOF
5478 #define TLS $ac_cv_tls
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5483 $as_echo "$ac_cv_tls" >&6; }
5487 # Check whether --enable-uuidd was given.
5488 if test "${enable_uuidd+set}" = set; then :
5489 enableval=$enable_uuidd; if test "$enableval" = "no"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5492 $as_echo "Not building uuidd" >&6; }
5495 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5499 $as_echo "Building uuidd" >&6; }
5503 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5507 $as_echo "Building uuidd by default" >&6; }
5512 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5514 GETTEXT_PACKAGE=e2fsprogs
5516 VERSION="$E2FSPROGS_VERSION"
5519 cat >>confdefs.h <<_ACEOF
5520 #define PACKAGE "$PACKAGE"
5524 cat >>confdefs.h <<_ACEOF
5525 #define VERSION "$VERSION"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5535 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5536 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5537 $as_echo_n "(cached) " >&6
5539 cat >conftest.make <<\_ACEOF
5542 @echo '@@@%%%=$(MAKE)=@@@%%%'
5544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5547 eval ac_cv_prog_make_${ac_make}_set=yes;;
5549 eval ac_cv_prog_make_${ac_make}_set=no;;
5553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555 $as_echo "yes" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 SET_MAKE="MAKE=${MAKE-make}"
5563 # Find a good install program. We prefer a C program (faster),
5564 # so one script is as good as another. But avoid the broken or
5565 # incompatible versions:
5566 # SysV /etc/install, /usr/sbin/install
5567 # SunOS /usr/etc/install
5568 # IRIX /sbin/install
5570 # AmigaOS /C/install, which installs bootblocks on floppy discs
5571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5574 # OS/2's system install, which has a completely different semantic
5575 # ./install, which can be erroneously created by make from ./install.sh.
5576 # Reject install programs that cannot install multiple files.
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5578 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5579 if test -z "$INSTALL"; then
5580 if test "${ac_cv_path_install+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 # Account for people who put trailing slashes in PATH elements.
5589 case $as_dir/ in #((
5590 ./ | .// | /[cC]/* | \
5591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5595 # OSF1 and SCO ODT 3.0 have their own names for install.
5596 # Don't use installbsd from OSF since it installs stuff as root
5598 for ac_prog in ginstall scoinst install; do
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5601 if test $ac_prog = install &&
5602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5603 # AIX install. It has an incompatible calling convention.
5605 elif test $ac_prog = install &&
5606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5607 # program-specific install script used by HP pwplus--don't use.
5610 rm -rf conftest.one conftest.two conftest.dir
5611 echo one > conftest.one
5612 echo two > conftest.two
5614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5615 test -s conftest.one && test -s conftest.two &&
5616 test -s conftest.dir/conftest.one &&
5617 test -s conftest.dir/conftest.two
5619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5632 rm -rf conftest.one conftest.two conftest.dir
5635 if test "${ac_cv_path_install+set}" = set; then
5636 INSTALL=$ac_cv_path_install
5638 # As a last resort, use the slow shell script. Don't cache a
5639 # value for INSTALL within a source directory, because that will
5640 # break other packages using the cache if that directory is
5641 # removed, or if the value is a relative name.
5642 INSTALL=$ac_install_sh
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5646 $as_echo "$INSTALL" >&6; }
5648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5649 # It thinks the first close brace ends the variable substitution.
5650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5658 if test -n "$ac_aux_dir"; then
5659 case "$ac_aux_dir" in
5660 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5661 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5664 if test -z "$MKINSTALLDIRS"; then
5665 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5671 $as_echo_n "checking whether NLS is requested... " >&6; }
5672 # Check whether --enable-nls was given.
5673 if test "${enable_nls+set}" = set; then :
5674 enableval=$enable_nls; USE_NLS=$enableval
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5680 $as_echo "$USE_NLS" >&6; }
5687 # Prepare PATH_SEPARATOR.
5688 # The user is always right.
5689 if test "${PATH_SEPARATOR+set}" != set; then
5690 echo "#! /bin/sh" >conf$$.sh
5691 echo "exit 0" >>conf$$.sh
5693 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5701 # Find out how to test for executable files. Don't use a zero-byte file,
5702 # as systems may use methods other than mode bits to determine executability.
5703 cat >conf$$.file <<_ASEOF
5707 chmod +x conf$$.file
5708 if test -x conf$$.file >/dev/null 2>&1; then
5709 ac_executable_p="test -x"
5711 ac_executable_p="test -f"
5715 # Extract the first word of "msgfmt", so it can be a program name with args.
5716 set dummy msgfmt; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5724 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5727 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5728 for ac_dir in $PATH; do
5730 test -z "$ac_dir" && ac_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5733 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5734 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5735 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5742 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5746 MSGFMT="$ac_cv_path_MSGFMT"
5747 if test "$MSGFMT" != ":"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5749 $as_echo "$MSGFMT" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5755 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5756 set dummy gmsgfmt; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5764 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5786 GMSGFMT=$ac_cv_path_GMSGFMT
5787 if test -n "$GMSGFMT"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5789 $as_echo "$GMSGFMT" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5798 # Prepare PATH_SEPARATOR.
5799 # The user is always right.
5800 if test "${PATH_SEPARATOR+set}" != set; then
5801 echo "#! /bin/sh" >conf$$.sh
5802 echo "exit 0" >>conf$$.sh
5804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5812 # Find out how to test for executable files. Don't use a zero-byte file,
5813 # as systems may use methods other than mode bits to determine executability.
5814 cat >conf$$.file <<_ASEOF
5818 chmod +x conf$$.file
5819 if test -x conf$$.file >/dev/null 2>&1; then
5820 ac_executable_p="test -x"
5822 ac_executable_p="test -f"
5826 # Extract the first word of "xgettext", so it can be a program name with args.
5827 set dummy xgettext; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5839 for ac_dir in $PATH; do
5841 test -z "$ac_dir" && ac_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5844 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5845 (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
5846 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5853 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5857 XGETTEXT="$ac_cv_path_XGETTEXT"
5858 if test "$XGETTEXT" != ":"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5860 $as_echo "$XGETTEXT" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5869 # Prepare PATH_SEPARATOR.
5870 # The user is always right.
5871 if test "${PATH_SEPARATOR+set}" != set; then
5872 echo "#! /bin/sh" >conf$$.sh
5873 echo "exit 0" >>conf$$.sh
5875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5883 # Find out how to test for executable files. Don't use a zero-byte file,
5884 # as systems may use methods other than mode bits to determine executability.
5885 cat >conf$$.file <<_ASEOF
5889 chmod +x conf$$.file
5890 if test -x conf$$.file >/dev/null 2>&1; then
5891 ac_executable_p="test -x"
5893 ac_executable_p="test -f"
5897 # Extract the first word of "msgmerge", so it can be a program name with args.
5898 set dummy msgmerge; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5906 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5909 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5910 for ac_dir in $PATH; do
5912 test -z "$ac_dir" && ac_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5915 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5916 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5923 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5927 MSGMERGE="$ac_cv_path_MSGMERGE"
5928 if test "$MSGMERGE" != ":"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5930 $as_echo "$MSGMERGE" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5937 if test "$GMSGFMT" != ":"; then
5938 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5939 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5942 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5944 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5949 if test "$XGETTEXT" != ":"; then
5950 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5951 (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
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5955 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5961 ac_config_commands="$ac_config_commands default-1"
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$RANLIB"; then
5973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 RANLIB=$ac_cv_prog_RANLIB
5993 if test -n "$RANLIB"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5995 $as_echo "$RANLIB" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6003 if test -z "$ac_cv_prog_RANLIB"; then
6004 ac_ct_RANLIB=$RANLIB
6005 # Extract the first word of "ranlib", so it can be a program name with args.
6006 set dummy ranlib; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$ac_ct_RANLIB"; then
6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_prog_ac_ct_RANLIB="ranlib"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6033 if test -n "$ac_ct_RANLIB"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6035 $as_echo "$ac_ct_RANLIB" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6041 if test "x$ac_ct_RANLIB" = x; then
6044 case $cross_compiling:$ac_tool_warned in
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6050 RANLIB=$ac_ct_RANLIB
6053 RANLIB="$ac_cv_prog_RANLIB"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6058 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6059 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6062 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lcposix $LIBS"
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6067 /* Override any GCC internal prototype to avoid an error.
6068 Use char because int might match the return type of a GCC
6069 builtin and then its argument prototype would still apply. */
6082 if ac_fn_c_try_link "$LINENO"; then :
6083 ac_cv_lib_cposix_strerror=yes
6085 ac_cv_lib_cposix_strerror=no
6087 rm -f core conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
6089 LIBS=$ac_check_lib_save_LIBS
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6092 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6093 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6094 LIBS="$LIBS -lcposix"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6102 if test "${ac_cv_path_GREP+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -z "$GREP"; then
6106 ac_path_GREP_found=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6112 test -z "$as_dir" && as_dir=.
6113 for ac_prog in grep ggrep; do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6117 # Check for GNU ac_path_GREP and select it if it is found.
6118 # Check for GNU $ac_path_GREP
6119 case `"$ac_path_GREP" --version 2>&1` in
6121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6124 $as_echo_n 0123456789 >"conftest.in"
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 $as_echo 'GREP' >> "conftest.nl"
6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133 as_fn_arith $ac_count + 1 && ac_count=$as_val
6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_GREP="$ac_path_GREP"
6137 ac_path_GREP_max=$ac_count
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6145 $ac_path_GREP_found && break 3
6150 if test -z "$ac_cv_path_GREP"; then
6151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6154 ac_cv_path_GREP=$GREP
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159 $as_echo "$ac_cv_path_GREP" >&6; }
6160 GREP="$ac_cv_path_GREP"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164 $as_echo_n "checking for egrep... " >&6; }
6165 if test "${ac_cv_path_EGREP+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6169 then ac_cv_path_EGREP="$GREP -E"
6171 if test -z "$EGREP"; then
6172 ac_path_EGREP_found=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 test -z "$as_dir" && as_dir=.
6179 for ac_prog in egrep; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6183 # Check for GNU ac_path_EGREP and select it if it is found.
6184 # Check for GNU $ac_path_EGREP
6185 case `"$ac_path_EGREP" --version 2>&1` in
6187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6190 $as_echo_n 0123456789 >"conftest.in"
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo 'EGREP' >> "conftest.nl"
6197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_EGREP="$ac_path_EGREP"
6203 ac_path_EGREP_max=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 $ac_path_EGREP_found && break 3
6216 if test -z "$ac_cv_path_EGREP"; then
6217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220 ac_cv_path_EGREP=$EGREP
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6226 $as_echo "$ac_cv_path_EGREP" >&6; }
6227 EGREP="$ac_cv_path_EGREP"
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231 $as_echo_n "checking for ANSI C header files... " >&6; }
6232 if test "${ac_cv_header_stdc+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 ac_cv_header_stdc=yes
6253 ac_cv_header_stdc=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 if test $ac_cv_header_stdc = yes; then
6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "memchr" >/dev/null 2>&1; then :
6268 ac_cv_header_stdc=no
6274 if test $ac_cv_header_stdc = yes; then
6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev/null 2>&1; then :
6285 ac_cv_header_stdc=no
6291 if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then :
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6300 #if ((' ' & 0x0FF) == 0x020)
6301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304 # define ISLOWER(c) \
6305 (('a' <= (c) && (c) <= 'i') \
6306 || ('j' <= (c) && (c) <= 'r') \
6307 || ('s' <= (c) && (c) <= 'z'))
6308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 for (i = 0; i < 256; i++)
6317 if (XOR (islower (i), ISLOWER (i))
6318 || toupper (i) != TOUPPER (i))
6323 if ac_fn_c_try_run "$LINENO"; then :
6326 ac_cv_header_stdc=no
6328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329 conftest.$ac_objext conftest.beam conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335 $as_echo "$ac_cv_header_stdc" >&6; }
6336 if test $ac_cv_header_stdc = yes; then
6338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6344 if test "${ac_cv_c_const+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6353 /* FIXME: Include the comments suggested by Paul. */
6355 /* Ultrix mips cc rejects this. */
6356 typedef int charset[2];
6358 /* SunOS 4.1.1 cc rejects this. */
6359 char const *const *pcpcc;
6361 /* NEC SVR4.0.2 mips cc rejects this. */
6362 struct point {int x, y;};
6363 static struct point const zero = {0,0};
6364 /* AIX XL C 1.02.0.0 rejects this.
6365 It does not let you subtract one const X* pointer from another in
6366 an arm of an if-expression whose if-part is not a constant
6368 const char *g = "string";
6369 pcpcc = &g + (g ? g-g : 0);
6370 /* HPUX 7.0 cc rejects these. */
6372 ppc = (char**) pcpcc;
6373 pcpcc = (char const *const *) ppc;
6374 { /* SCO 3.2v4 cc rejects this. */
6376 char const *s = 0 ? (char *) 0 : (char const *) 0;
6381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6383 const int *foo = &x[0];
6386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6387 typedef const int *iptr;
6391 { /* AIX XL C 1.02.0.0 rejects this saying
6392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6393 struct s { int j; const int *ap[3]; };
6394 struct s *b; b->j = 5;
6396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6400 return !cs[0] && !zero.x;
6407 if ac_fn_c_try_compile "$LINENO"; then :
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6415 $as_echo "$ac_cv_c_const" >&6; }
6416 if test $ac_cv_c_const = no; then
6418 $as_echo "#define const /**/" >>confdefs.h
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6424 $as_echo_n "checking for signed... " >&6; }
6425 if test "${bh_cv_c_signed+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6439 if ac_fn_c_try_compile "$LINENO"; then :
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6447 $as_echo "$bh_cv_c_signed" >&6; }
6448 if test $bh_cv_c_signed = no; then
6450 $as_echo "#define signed /**/" >>confdefs.h
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6455 $as_echo_n "checking for inline... " >&6; }
6456 if test "${ac_cv_c_inline+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6460 for ac_kw in inline __inline__ __inline; do
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6465 static $ac_kw foo_t static_foo () {return 0; }
6466 $ac_kw foo_t foo () {return 0; }
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 ac_cv_c_inline=$ac_kw
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 test "$ac_cv_c_inline" != no && break
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6479 $as_echo "$ac_cv_c_inline" >&6; }
6481 case $ac_cv_c_inline in
6484 case $ac_cv_c_inline in
6486 *) ac_val=$ac_cv_c_inline;;
6488 cat >>confdefs.h <<_ACEOF
6490 #define inline $ac_val
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6498 inttypes.h stdint.h unistd.h
6500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6503 eval as_val=\$$as_ac_Header
6504 if test "x$as_val" = x""yes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6514 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6515 if test "x$ac_cv_type_off_t" = x""yes; then :
6519 cat >>confdefs.h <<_ACEOF
6520 #define off_t long int
6525 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6526 if test "x$ac_cv_type_size_t" = x""yes; then :
6530 cat >>confdefs.h <<_ACEOF
6531 #define size_t unsigned int
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6538 $as_echo_n "checking for long long... " >&6; }
6539 if test "${ac_cv_type_long_long+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6544 long long ll = 1LL; int i = 63;
6548 long long llmax = (long long) -1;
6549 return ll << i | ll >> i | llmax / ll | llmax % ll;
6554 if ac_fn_c_try_link "$LINENO"; then :
6555 ac_cv_type_long_long=yes
6557 ac_cv_type_long_long=no
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6563 $as_echo "$ac_cv_type_long_long" >&6; }
6564 if test $ac_cv_type_long_long = yes; then
6566 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6572 $as_echo_n "checking for long double... " >&6; }
6573 if test "${gt_cv_c_long_double+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6576 if test "$GCC" = yes; then
6577 gt_cv_c_long_double=yes
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6582 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6583 long double foo = 0.0;
6584 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6585 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 gt_cv_c_long_double=yes
6598 gt_cv_c_long_double=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6604 $as_echo "$gt_cv_c_long_double" >&6; }
6605 if test $gt_cv_c_long_double = yes; then
6607 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6613 $as_echo_n "checking for wchar_t... " >&6; }
6614 if test "${gt_cv_c_wchar_t+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6620 wchar_t foo = (wchar_t)'\0';
6629 if ac_fn_c_try_compile "$LINENO"; then :
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6637 $as_echo "$gt_cv_c_wchar_t" >&6; }
6638 if test $gt_cv_c_wchar_t = yes; then
6640 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6646 $as_echo_n "checking for wint_t... " >&6; }
6647 if test "${gt_cv_c_wint_t+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6653 wint_t foo = (wchar_t)'\0';
6662 if ac_fn_c_try_compile "$LINENO"; then :
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6670 $as_echo "$gt_cv_c_wint_t" >&6; }
6671 if test $gt_cv_c_wint_t = yes; then
6673 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6679 $as_echo_n "checking for inttypes.h... " >&6; }
6680 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <sys/types.h>
6686 #include <inttypes.h>
6690 uintmax_t i = (uintmax_t) -1;
6695 if ac_fn_c_try_compile "$LINENO"; then :
6696 jm_ac_cv_header_inttypes_h=yes
6698 jm_ac_cv_header_inttypes_h=no
6700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6703 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6704 if test $jm_ac_cv_header_inttypes_h = yes; then
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6714 $as_echo_n "checking for stdint.h... " >&6; }
6715 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 #include <sys/types.h>
6725 uintmax_t i = (uintmax_t) -1;
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 jm_ac_cv_header_stdint_h=yes
6733 jm_ac_cv_header_stdint_h=no
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6738 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6739 if test $jm_ac_cv_header_stdint_h = yes; then
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_STDINT_H_WITH_UINTMAX 1
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6751 $as_echo_n "checking for intmax_t... " >&6; }
6752 if test "${gt_cv_c_intmax_t+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6760 #if HAVE_STDINT_H_WITH_UINTMAX
6763 #if HAVE_INTTYPES_H_WITH_UINTMAX
6764 #include <inttypes.h>
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 gt_cv_c_intmax_t=yes
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6783 $as_echo "$gt_cv_c_intmax_t" >&6; }
6784 if test $gt_cv_c_intmax_t = yes; then
6786 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6793 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6794 if test "${gt_cv_func_printf_posix+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6798 if test "$cross_compiling" = yes; then :
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6803 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "notposix" >/dev/null 2>&1; then :
6810 gt_cv_func_printf_posix="guessing no"
6812 gt_cv_func_printf_posix="guessing yes"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6823 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6824 dollar expansion (possibly an autoconf bug). */
6825 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6826 static char buf[100];
6829 sprintf (buf, format, 33, 55);
6830 return (strcmp (buf, "55 33") != 0);
6833 if ac_fn_c_try_run "$LINENO"; then :
6834 gt_cv_func_printf_posix=yes
6836 gt_cv_func_printf_posix=no
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6839 conftest.$ac_objext conftest.beam conftest.$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6845 $as_echo "$gt_cv_func_printf_posix" >&6; }
6846 case $gt_cv_func_printf_posix in
6849 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6855 # for constant arguments. Useless!
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6857 $as_echo_n "checking for working alloca.h... " >&6; }
6858 if test "${ac_cv_working_alloca_h+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6867 char *p = (char *) alloca (2 * sizeof (int));
6873 if ac_fn_c_try_link "$LINENO"; then :
6874 ac_cv_working_alloca_h=yes
6876 ac_cv_working_alloca_h=no
6878 rm -f core conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6882 $as_echo "$ac_cv_working_alloca_h" >&6; }
6883 if test $ac_cv_working_alloca_h = yes; then
6885 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6890 $as_echo_n "checking for alloca... " >&6; }
6891 if test "${ac_cv_func_alloca_works+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6897 # define alloca __builtin_alloca
6900 # include <malloc.h>
6901 # define alloca _alloca
6903 # ifdef HAVE_ALLOCA_H
6904 # include <alloca.h>
6909 # ifndef alloca /* predefined by HP cc +Olibcalls */
6920 char *p = (char *) alloca (1);
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 ac_cv_func_alloca_works=yes
6929 ac_cv_func_alloca_works=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6935 $as_echo "$ac_cv_func_alloca_works" >&6; }
6937 if test $ac_cv_func_alloca_works = yes; then
6939 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6943 # that cause trouble. Some versions do not even contain alloca or
6944 # contain a buggy version. If you still want to use their alloca,
6945 # use ar to extract alloca.o from them instead of compiling alloca.c.
6947 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6949 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6953 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6954 if test "${ac_cv_os_cray+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 #if defined CRAY && ! defined CRAY2
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "webecray" >/dev/null 2>&1; then :
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6976 $as_echo "$ac_cv_os_cray" >&6; }
6977 if test $ac_cv_os_cray = yes; then
6978 for ac_func in _getb67 GETB67 getb67; do
6979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6981 eval as_val=\$$as_ac_var
6982 if test "x$as_val" = x""yes; then :
6984 cat >>confdefs.h <<_ACEOF
6985 #define CRAY_STACKSEG_END $ac_func
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6995 $as_echo_n "checking stack direction for C alloca... " >&6; }
6996 if test "${ac_cv_c_stack_direction+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6999 if test "$cross_compiling" = yes; then :
7000 ac_cv_c_stack_direction=0
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 $ac_includes_default
7006 find_stack_direction ()
7008 static char *addr = 0;
7013 return find_stack_direction ();
7016 return (&dummy > addr) ? 1 : -1;
7022 return find_stack_direction () < 0;
7025 if ac_fn_c_try_run "$LINENO"; then :
7026 ac_cv_c_stack_direction=1
7028 ac_cv_c_stack_direction=-1
7030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7031 conftest.$ac_objext conftest.beam conftest.$ac_ext
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7036 $as_echo "$ac_cv_c_stack_direction" >&6; }
7037 cat >>confdefs.h <<_ACEOF
7038 #define STACK_DIRECTION $ac_cv_c_stack_direction
7047 for ac_header in $ac_header_list
7049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7052 eval as_val=\$$as_ac_Header
7053 if test "x$as_val" = x""yes; then :
7054 cat >>confdefs.h <<_ACEOF
7055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7069 for ac_func in getpagesize
7071 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7072 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_GETPAGESIZE 1
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7081 $as_echo_n "checking for working mmap... " >&6; }
7082 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7085 if test "$cross_compiling" = yes; then :
7086 ac_cv_func_mmap_fixed_mapped=no
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 /* malloc might have been renamed as rpl_malloc. */
7094 /* Thanks to Mike Haertel and Jim Avera for this test.
7095 Here is a matrix of mmap possibilities:
7096 mmap private not fixed
7097 mmap private fixed at somewhere currently unmapped
7098 mmap private fixed at somewhere already mapped
7099 mmap shared not fixed
7100 mmap shared fixed at somewhere currently unmapped
7101 mmap shared fixed at somewhere already mapped
7102 For private mappings, we should verify that changes cannot be read()
7103 back from the file, nor mmap's back from the file at a different
7104 address. (There have been systems where private was not correctly
7105 implemented like the infamous i386 svr4.0, and systems where the
7106 VM page cache was not coherent with the file system buffer cache
7107 like early versions of FreeBSD and possibly contemporary NetBSD.)
7108 For shared mappings, we should conversely verify that changes get
7109 propagated back to all the places they're supposed to be.
7111 Grep wants private fixed already mapped.
7112 The main things grep needs to know about mmap are:
7113 * does it exist and is it safe to write into the mmap'd area
7114 * how to use it (BSD variants) */
7117 #include <sys/mman.h>
7119 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7123 /* This mess was copied from the GNU getpagesize.h. */
7124 #ifndef HAVE_GETPAGESIZE
7125 # ifdef _SC_PAGESIZE
7126 # define getpagesize() sysconf(_SC_PAGESIZE)
7127 # else /* no _SC_PAGESIZE */
7128 # ifdef HAVE_SYS_PARAM_H
7129 # include <sys/param.h>
7130 # ifdef EXEC_PAGESIZE
7131 # define getpagesize() EXEC_PAGESIZE
7132 # else /* no EXEC_PAGESIZE */
7134 # define getpagesize() NBPG * CLSIZE
7137 # endif /* no CLSIZE */
7138 # else /* no NBPG */
7140 # define getpagesize() NBPC
7141 # else /* no NBPC */
7143 # define getpagesize() PAGESIZE
7144 # endif /* PAGESIZE */
7145 # endif /* no NBPC */
7146 # endif /* no NBPG */
7147 # endif /* no EXEC_PAGESIZE */
7148 # else /* no HAVE_SYS_PARAM_H */
7149 # define getpagesize() 8192 /* punt totally */
7150 # endif /* no HAVE_SYS_PARAM_H */
7151 # endif /* no _SC_PAGESIZE */
7153 #endif /* no HAVE_GETPAGESIZE */
7158 char *data, *data2, *data3;
7163 pagesize = getpagesize ();
7165 /* First, make a file with some known garbage in it. */
7166 data = (char *) malloc (pagesize);
7169 for (i = 0; i < pagesize; ++i)
7170 *(data + i) = rand ();
7172 fd = creat ("conftest.mmap", 0600);
7175 if (write (fd, data, pagesize) != pagesize)
7179 /* Next, check that the tail of a page is zero-filled. File must have
7180 non-zero length, otherwise we risk SIGBUS for entire page. */
7181 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7185 if (write (fd2, cdata2, 1) != 1)
7187 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7188 if (data2 == MAP_FAILED)
7190 for (i = 0; i < pagesize; ++i)
7194 if (munmap (data2, pagesize))
7197 /* Next, try to mmap the file at a fixed address which already has
7198 something else allocated at it. If we can, also make sure that
7199 we see the same garbage. */
7200 fd = open ("conftest.mmap", O_RDWR);
7203 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7204 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7206 for (i = 0; i < pagesize; ++i)
7207 if (*(data + i) != *(data2 + i))
7210 /* Finally, make sure that changes to the mapped area do not
7211 percolate back to the file as seen by read(). (This is a bug on
7212 some variants of i386 svr4.0.) */
7213 for (i = 0; i < pagesize; ++i)
7214 *(data2 + i) = *(data2 + i) + 1;
7215 data3 = (char *) malloc (pagesize);
7218 if (read (fd, data3, pagesize) != pagesize)
7220 for (i = 0; i < pagesize; ++i)
7221 if (*(data + i) != *(data3 + i))
7227 if ac_fn_c_try_run "$LINENO"; then :
7228 ac_cv_func_mmap_fixed_mapped=yes
7230 ac_cv_func_mmap_fixed_mapped=no
7232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233 conftest.$ac_objext conftest.beam conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7238 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7241 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7244 rm -f conftest.mmap conftest.txt
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7248 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7249 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7250 $as_echo_n "(cached) " >&6
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7255 #include <features.h>
7256 #ifdef __GNU_LIBRARY__
7257 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7265 ac_cv_gnu_library_2_1=yes
7267 ac_cv_gnu_library_2_1=no
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7275 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7277 GLIBC21="$ac_cv_gnu_library_2_1"
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7283 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7284 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7288 if test "$cross_compiling" = yes; then :
7290 # Guess based on the CPU.
7292 alpha* | i3456786 | m68k | s390*)
7293 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7295 gt_cv_int_divbyzero_sigfpe="guessing no";;
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7307 sigfpe_handler (int sig)
7309 sigfpe_handler (sig) int sig;
7312 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7313 exit (sig != SIGFPE);
7323 signal (SIGFPE, sigfpe_handler);
7324 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7325 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7326 signal (SIGTRAP, sigfpe_handler);
7328 /* Linux/SPARC yields signal SIGILL. */
7329 #if defined (__sparc__) && defined (__linux__)
7330 signal (SIGILL, sigfpe_handler);
7339 if ac_fn_c_try_run "$LINENO"; then :
7340 gt_cv_int_divbyzero_sigfpe=yes
7342 gt_cv_int_divbyzero_sigfpe=no
7344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7345 conftest.$ac_objext conftest.beam conftest.$ac_ext
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7351 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7352 case "$gt_cv_int_divbyzero_sigfpe" in
7357 cat >>confdefs.h <<_ACEOF
7358 #define INTDIV0_RAISES_SIGFPE $value
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7364 $as_echo_n "checking for unsigned long long... " >&6; }
7365 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 unsigned long long ull = 1ULL; int i = 63;
7374 unsigned long long ullmax = (unsigned long long) -1;
7375 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7380 if ac_fn_c_try_link "$LINENO"; then :
7381 ac_cv_type_unsigned_long_long=yes
7383 ac_cv_type_unsigned_long_long=no
7385 rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7389 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7390 if test $ac_cv_type_unsigned_long_long = yes; then
7392 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7399 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7401 test $ac_cv_type_unsigned_long_long = yes \
7402 && ac_type='unsigned long long' \
7403 || ac_type='unsigned long'
7405 cat >>confdefs.h <<_ACEOF
7406 #define uintmax_t $ac_type
7411 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7417 $as_echo_n "checking for inttypes.h... " >&6; }
7418 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <sys/types.h>
7425 #include <inttypes.h>
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 gt_cv_header_inttypes_h=yes
7437 gt_cv_header_inttypes_h=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7443 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7444 if test $gt_cv_header_inttypes_h = yes; then
7446 cat >>confdefs.h <<_ACEOF
7447 #define HAVE_INTTYPES_H 1
7454 if test $gt_cv_header_inttypes_h = yes; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7456 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7457 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <inttypes.h>
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 gt_cv_inttypes_pri_broken=no
7479 gt_cv_inttypes_pri_broken=yes
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7485 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7487 if test "$gt_cv_inttypes_pri_broken" = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define PRI_MACROS_BROKEN 1
7496 for ac_header in stdint.h
7498 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7499 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7500 cat >>confdefs.h <<_ACEOF
7501 #define HAVE_STDINT_H 1
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7509 $as_echo_n "checking for SIZE_MAX... " >&6; }
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7524 $EGREP "Found it" >/dev/null 2>&1; then :
7529 if test -z "$result"; then
7530 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7537 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7544 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7551 if test "$fits_in_uint" = 1; then
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7556 extern unsigned long foo;
7566 if ac_fn_c_try_compile "$LINENO"; then :
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 if test -z "$result"; then
7572 if test "$fits_in_uint" = 1; then
7573 result="$res_hi$res_lo"U
7575 result="$res_hi$res_lo"UL
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7582 $as_echo "$result" >&6; }
7583 if test "$result" != yes; then
7585 cat >>confdefs.h <<_ACEOF
7586 #define SIZE_MAX $result
7593 for ac_header in stdint.h
7595 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7596 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7597 cat >>confdefs.h <<_ACEOF
7598 #define HAVE_STDINT_H 1
7607 if test "X$prefix" = "XNONE"; then
7608 acl_final_prefix="$ac_default_prefix"
7610 acl_final_prefix="$prefix"
7612 if test "X$exec_prefix" = "XNONE"; then
7613 acl_final_exec_prefix='${prefix}'
7615 acl_final_exec_prefix="$exec_prefix"
7617 acl_save_prefix="$prefix"
7618 prefix="$acl_final_prefix"
7619 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7620 prefix="$acl_save_prefix"
7623 # Check whether --with-gnu-ld was given.
7624 if test "${with_gnu_ld+set}" = set; then :
7625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7630 # Prepare PATH_SEPARATOR.
7631 # The user is always right.
7632 if test "${PATH_SEPARATOR+set}" != set; then
7633 echo "#! /bin/sh" >conf$$.sh
7634 echo "exit 0" >>conf$$.sh
7636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7644 if test "$GCC" = yes; then
7645 # Check if gcc -print-prog-name=ld gives a path.
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7647 $as_echo_n "checking for ld used by GCC... " >&6; }
7650 # gcc leaves a trailing carriage return which upsets mingw
7651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7656 # Accept absolute paths.
7657 [\\/]* | [A-Za-z]:[\\/]*)
7658 re_direlt='/[^/][^/]*/\.\./'
7659 # Canonicalize the path of ld
7660 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7662 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7664 test -z "$LD" && LD="$ac_prog"
7667 # If it fails, then pretend we aren't using GCC.
7671 # If it is relative, then search for the first ld in PATH.
7675 elif test "$with_gnu_ld" = yes; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7677 $as_echo_n "checking for GNU ld... " >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7680 $as_echo_n "checking for non-GNU ld... " >&6; }
7682 if test "${acl_cv_path_LD+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 if test -z "$LD"; then
7686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7687 for ac_dir in $PATH; do
7688 test -z "$ac_dir" && ac_dir=.
7689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7690 acl_cv_path_LD="$ac_dir/$ac_prog"
7691 # Check to see if the program is GNU ld. I'd rather use --version,
7692 # but apparently some GNU ld's only accept -v.
7693 # Break only if it was the GNU/non-GNU ld that we prefer.
7694 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7695 *GNU* | *'with BFD'*)
7696 test "$with_gnu_ld" != no && break ;;
7698 test "$with_gnu_ld" != yes && break ;;
7704 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7708 LD="$acl_cv_path_LD"
7709 if test -n "$LD"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7711 $as_echo "$LD" >&6; }
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7716 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7719 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7723 case `$LD -v 2>&1 </dev/null` in
7724 *GNU* | *'with BFD'*)
7725 acl_cv_prog_gnu_ld=yes ;;
7727 acl_cv_prog_gnu_ld=no ;;
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7731 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7732 with_gnu_ld=$acl_cv_prog_gnu_ld
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7737 $as_echo_n "checking for shared library run path origin... " >&6; }
7738 if test "${acl_cv_rpath+set}" = set; then :
7739 $as_echo_n "(cached) " >&6
7742 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7750 $as_echo "$acl_cv_rpath" >&6; }
7752 libext="$acl_cv_libext"
7753 shlibext="$acl_cv_shlibext"
7754 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7755 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7756 hardcode_direct="$acl_cv_hardcode_direct"
7757 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7758 # Check whether --enable-rpath was given.
7759 if test "${enable_rpath+set}" = set; then :
7760 enableval=$enable_rpath; :
7774 acl_save_prefix="$prefix"
7775 prefix="$acl_final_prefix"
7776 acl_save_exec_prefix="$exec_prefix"
7777 exec_prefix="$acl_final_exec_prefix"
7779 eval additional_includedir=\"$includedir\"
7780 eval additional_libdir=\"$libdir\"
7782 exec_prefix="$acl_save_exec_prefix"
7783 prefix="$acl_save_prefix"
7786 # Check whether --with-libiconv-prefix was given.
7787 if test "${with_libiconv_prefix+set}" = set; then :
7788 withval=$with_libiconv_prefix;
7789 if test "X$withval" = "Xno"; then
7792 if test "X$withval" = "X"; then
7794 acl_save_prefix="$prefix"
7795 prefix="$acl_final_prefix"
7796 acl_save_exec_prefix="$exec_prefix"
7797 exec_prefix="$acl_final_exec_prefix"
7799 eval additional_includedir=\"$includedir\"
7800 eval additional_libdir=\"$libdir\"
7802 exec_prefix="$acl_save_exec_prefix"
7803 prefix="$acl_save_prefix"
7806 additional_includedir="$withval/include"
7807 additional_libdir="$withval/lib"
7818 names_already_handled=
7819 names_next_round='iconv '
7820 while test -n "$names_next_round"; do
7821 names_this_round="$names_next_round"
7823 for name in $names_this_round; do
7825 for n in $names_already_handled; do
7826 if test "$n" = "$name"; then
7831 if test -z "$already_handled"; then
7832 names_already_handled="$names_already_handled $name"
7833 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7834 eval value=\"\$HAVE_LIB$uppername\"
7835 if test -n "$value"; then
7836 if test "$value" = yes; then
7837 eval value=\"\$LIB$uppername\"
7838 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7839 eval value=\"\$LTLIB$uppername\"
7840 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7849 if test $use_additional = yes; then
7850 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7851 found_dir="$additional_libdir"
7852 found_so="$additional_libdir/lib$name.$shlibext"
7853 if test -f "$additional_libdir/lib$name.la"; then
7854 found_la="$additional_libdir/lib$name.la"
7857 if test -f "$additional_libdir/lib$name.$libext"; then
7858 found_dir="$additional_libdir"
7859 found_a="$additional_libdir/lib$name.$libext"
7860 if test -f "$additional_libdir/lib$name.la"; then
7861 found_la="$additional_libdir/lib$name.la"
7866 if test "X$found_dir" = "X"; then
7867 for x in $LDFLAGS $LTLIBICONV; do
7869 acl_save_prefix="$prefix"
7870 prefix="$acl_final_prefix"
7871 acl_save_exec_prefix="$exec_prefix"
7872 exec_prefix="$acl_final_exec_prefix"
7874 exec_prefix="$acl_save_exec_prefix"
7875 prefix="$acl_save_prefix"
7879 dir=`echo "X$x" | sed -e 's/^X-L//'`
7880 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7882 found_so="$dir/lib$name.$shlibext"
7883 if test -f "$dir/lib$name.la"; then
7884 found_la="$dir/lib$name.la"
7887 if test -f "$dir/lib$name.$libext"; then
7889 found_a="$dir/lib$name.$libext"
7890 if test -f "$dir/lib$name.la"; then
7891 found_la="$dir/lib$name.la"
7897 if test "X$found_dir" != "X"; then
7902 if test "X$found_dir" != "X"; then
7903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7904 if test "X$found_so" != "X"; then
7905 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7909 for x in $ltrpathdirs; do
7910 if test "X$x" = "X$found_dir"; then
7915 if test -z "$haveit"; then
7916 ltrpathdirs="$ltrpathdirs $found_dir"
7918 if test "$hardcode_direct" = yes; then
7919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7921 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7924 for x in $rpathdirs; do
7925 if test "X$x" = "X$found_dir"; then
7930 if test -z "$haveit"; then
7931 rpathdirs="$rpathdirs $found_dir"
7935 for x in $LDFLAGS $LIBICONV; do
7937 acl_save_prefix="$prefix"
7938 prefix="$acl_final_prefix"
7939 acl_save_exec_prefix="$exec_prefix"
7940 exec_prefix="$acl_final_exec_prefix"
7942 exec_prefix="$acl_save_exec_prefix"
7943 prefix="$acl_save_prefix"
7945 if test "X$x" = "X-L$found_dir"; then
7950 if test -z "$haveit"; then
7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7953 if test "$hardcode_minus_L" != no; then
7954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7956 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7962 if test "X$found_a" != "X"; then
7963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7968 additional_includedir=
7969 case "$found_dir" in
7971 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7972 additional_includedir="$basedir/include"
7975 if test "X$additional_includedir" != "X"; then
7976 if test "X$additional_includedir" != "X/usr/include"; then
7978 if test "X$additional_includedir" = "X/usr/local/include"; then
7979 if test -n "$GCC"; then
7981 linux*) haveit=yes;;
7985 if test -z "$haveit"; then
7986 for x in $CPPFLAGS $INCICONV; do
7988 acl_save_prefix="$prefix"
7989 prefix="$acl_final_prefix"
7990 acl_save_exec_prefix="$exec_prefix"
7991 exec_prefix="$acl_final_exec_prefix"
7993 exec_prefix="$acl_save_exec_prefix"
7994 prefix="$acl_save_prefix"
7996 if test "X$x" = "X-I$additional_includedir"; then
8001 if test -z "$haveit"; then
8002 if test -d "$additional_includedir"; then
8003 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8009 if test -n "$found_la"; then
8010 save_libdir="$libdir"
8012 */* | *\\*) . "$found_la" ;;
8013 *) . "./$found_la" ;;
8015 libdir="$save_libdir"
8016 for dep in $dependency_libs; do
8019 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8020 if test "X$additional_libdir" != "X/usr/lib"; then
8022 if test "X$additional_libdir" = "X/usr/local/lib"; then
8023 if test -n "$GCC"; then
8025 linux*) haveit=yes;;
8029 if test -z "$haveit"; then
8031 for x in $LDFLAGS $LIBICONV; do
8033 acl_save_prefix="$prefix"
8034 prefix="$acl_final_prefix"
8035 acl_save_exec_prefix="$exec_prefix"
8036 exec_prefix="$acl_final_exec_prefix"
8038 exec_prefix="$acl_save_exec_prefix"
8039 prefix="$acl_save_prefix"
8041 if test "X$x" = "X-L$additional_libdir"; then
8046 if test -z "$haveit"; then
8047 if test -d "$additional_libdir"; then
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8052 for x in $LDFLAGS $LTLIBICONV; do
8054 acl_save_prefix="$prefix"
8055 prefix="$acl_final_prefix"
8056 acl_save_exec_prefix="$exec_prefix"
8057 exec_prefix="$acl_final_exec_prefix"
8059 exec_prefix="$acl_save_exec_prefix"
8060 prefix="$acl_save_prefix"
8062 if test "X$x" = "X-L$additional_libdir"; then
8067 if test -z "$haveit"; then
8068 if test -d "$additional_libdir"; then
8069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8077 if test "$enable_rpath" != no; then
8079 for x in $rpathdirs; do
8080 if test "X$x" = "X$dir"; then
8085 if test -z "$haveit"; then
8086 rpathdirs="$rpathdirs $dir"
8089 for x in $ltrpathdirs; do
8090 if test "X$x" = "X$dir"; then
8095 if test -z "$haveit"; then
8096 ltrpathdirs="$ltrpathdirs $dir"
8101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8121 if test "X$rpathdirs" != "X"; then
8122 if test -n "$hardcode_libdir_separator"; then
8124 for found_dir in $rpathdirs; do
8125 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8127 acl_save_libdir="$libdir"
8129 eval flag=\"$hardcode_libdir_flag_spec\"
8130 libdir="$acl_save_libdir"
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8133 for found_dir in $rpathdirs; do
8134 acl_save_libdir="$libdir"
8136 eval flag=\"$hardcode_libdir_flag_spec\"
8137 libdir="$acl_save_libdir"
8138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8142 if test "X$ltrpathdirs" != "X"; then
8143 for found_dir in $ltrpathdirs; do
8144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8155 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8156 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8160 $as_echo "#define ptrdiff_t long" >>confdefs.h
8165 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8166 stdlib.h string.h unistd.h sys/param.h
8168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8169 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8170 eval as_val=\$$as_ac_Header
8171 if test "x$as_val" = x""yes; then :
8172 cat >>confdefs.h <<_ACEOF
8173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8180 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8181 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8182 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8187 eval as_val=\$$as_ac_var
8188 if test "x$as_val" = x""yes; then :
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8199 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8200 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8211 char *p = (char *) _snprintf;
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 ac_cv_have_decl__snprintf=yes
8221 ac_cv_have_decl__snprintf=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8226 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8227 if test $ac_cv_have_decl__snprintf = yes; then
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DECL__SNPRINTF $gt_value
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8240 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8241 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8252 char *p = (char *) _snwprintf;
8259 if ac_fn_c_try_compile "$LINENO"; then :
8260 ac_cv_have_decl__snwprintf=yes
8262 ac_cv_have_decl__snwprintf=no
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8267 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8268 if test $ac_cv_have_decl__snwprintf = yes; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_DECL__SNWPRINTF $gt_value
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8282 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8283 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8293 #ifndef feof_unlocked
8294 char *p = (char *) feof_unlocked;
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 ac_cv_have_decl_feof_unlocked=yes
8304 ac_cv_have_decl_feof_unlocked=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8309 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8310 if test $ac_cv_have_decl_feof_unlocked = yes; then
8316 cat >>confdefs.h <<_ACEOF
8317 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8323 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8324 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8334 #ifndef fgets_unlocked
8335 char *p = (char *) fgets_unlocked;
8342 if ac_fn_c_try_compile "$LINENO"; then :
8343 ac_cv_have_decl_fgets_unlocked=yes
8345 ac_cv_have_decl_fgets_unlocked=no
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8350 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8351 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8364 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8365 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8375 #ifndef getc_unlocked
8376 char *p = (char *) getc_unlocked;
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384 ac_cv_have_decl_getc_unlocked=yes
8386 ac_cv_have_decl_getc_unlocked=no
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8391 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8392 if test $ac_cv_have_decl_getc_unlocked = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8404 case $gt_cv_func_printf_posix in
8405 *yes) HAVE_POSIX_PRINTF=1 ;;
8406 *) HAVE_POSIX_PRINTF=0 ;;
8409 if test "$ac_cv_func_asprintf" = yes; then
8415 if test "$ac_cv_func_snprintf" = yes; then
8421 if test "$ac_cv_func_wprintf" = yes; then
8433 am_save_CPPFLAGS="$CPPFLAGS"
8435 for element in $INCICONV; do
8437 for x in $CPPFLAGS; do
8439 acl_save_prefix="$prefix"
8440 prefix="$acl_final_prefix"
8441 acl_save_exec_prefix="$exec_prefix"
8442 exec_prefix="$acl_final_exec_prefix"
8444 exec_prefix="$acl_save_exec_prefix"
8445 prefix="$acl_save_prefix"
8447 if test "X$x" = "X$element"; then
8452 if test -z "$haveit"; then
8453 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8459 $as_echo_n "checking for iconv... " >&6; }
8460 if test "${am_cv_func_iconv+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8464 am_cv_func_iconv="no, consider installing GNU libiconv"
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8473 iconv_t cd = iconv_open("","");
8474 iconv(cd,NULL,NULL,NULL,NULL);
8480 if ac_fn_c_try_link "$LINENO"; then :
8481 am_cv_func_iconv=yes
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 if test "$am_cv_func_iconv" != yes; then
8486 am_save_LIBS="$LIBS"
8487 LIBS="$LIBS $LIBICONV"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8495 iconv_t cd = iconv_open("","");
8496 iconv(cd,NULL,NULL,NULL,NULL);
8502 if ac_fn_c_try_link "$LINENO"; then :
8504 am_cv_func_iconv=yes
8506 rm -f core conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 LIBS="$am_save_LIBS"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8513 $as_echo "$am_cv_func_iconv" >&6; }
8514 if test "$am_cv_func_iconv" = yes; then
8516 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8519 if test "$am_cv_lib_iconv" = yes; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8521 $as_echo_n "checking how to link with libiconv... " >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8523 $as_echo "$LIBICONV" >&6; }
8525 CPPFLAGS="$am_save_CPPFLAGS"
8532 if test "$am_cv_func_iconv" = yes; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8534 $as_echo_n "checking for iconv declaration... " >&6; }
8535 if test "${am_cv_proto_iconv+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8548 #if defined(__STDC__) || defined(__cplusplus)
8549 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 am_cv_proto_iconv_arg1=""
8565 am_cv_proto_iconv_arg1="const"
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 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);"
8571 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8573 }$am_cv_proto_iconv" >&5
8575 }$am_cv_proto_iconv" >&6; }
8577 cat >>confdefs.h <<_ACEOF
8578 #define ICONV_CONST $am_cv_proto_iconv_arg1
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8585 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8586 if test "${am_cv_langinfo_codeset+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <langinfo.h>
8595 char* cs = nl_langinfo(CODESET);
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 am_cv_langinfo_codeset=yes
8603 am_cv_langinfo_codeset=no
8605 rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8610 $as_echo "$am_cv_langinfo_codeset" >&6; }
8611 if test $am_cv_langinfo_codeset = yes; then
8613 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8617 if test $ac_cv_header_locale_h = yes; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8620 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8621 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 am_cv_val_LC_MESSAGES=yes
8638 am_cv_val_LC_MESSAGES=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8644 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8645 if test $am_cv_val_LC_MESSAGES = yes; then
8647 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8653 for ac_prog in bison
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8662 if test -n "$INTLBISON"; then
8663 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_prog_INTLBISON="$ac_prog"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 INTLBISON=$ac_cv_prog_INTLBISON
8683 if test -n "$INTLBISON"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8685 $as_echo "$INTLBISON" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8692 test -n "$INTLBISON" && break
8695 if test -z "$INTLBISON"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8699 $as_echo_n "checking version of bison... " >&6; }
8700 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8701 case $ac_prog_version in
8702 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8703 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8704 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8705 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8708 $as_echo "$ac_prog_version" >&6; }
8710 if test $ac_verc_fail = yes; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8730 $as_echo_n "checking whether NLS is requested... " >&6; }
8731 # Check whether --enable-nls was given.
8732 if test "${enable_nls+set}" = set; then :
8733 enableval=$enable_nls; USE_NLS=$enableval
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8739 $as_echo "$USE_NLS" >&6; }
8744 BUILD_INCLUDED_LIBINTL=no
8745 USE_INCLUDED_LIBINTL=no
8751 if test "$USE_NLS" = "yes"; then
8752 gt_use_preinstalled_gnugettext=no
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8755 $as_echo_n "checking whether included gettext is requested... " >&6; }
8757 # Check whether --with-included-gettext was given.
8758 if test "${with_included_gettext+set}" = set; then :
8759 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8761 nls_cv_force_use_gnu_gettext=no
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8765 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8767 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8768 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8776 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8777 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <libintl.h>
8783 extern int _nl_msg_cat_cntr;
8784 extern int *_nl_domain_bindings;
8788 bindtextdomain ("", "");
8789 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8794 if ac_fn_c_try_link "$LINENO"; then :
8795 gt_cv_func_gnugettext1_libc=yes
8797 gt_cv_func_gnugettext1_libc=no
8799 rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8803 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8805 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
8816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8823 # Check whether --with-libintl-prefix was given.
8824 if test "${with_libintl_prefix+set}" = set; then :
8825 withval=$with_libintl_prefix;
8826 if test "X$withval" = "Xno"; then
8829 if test "X$withval" = "X"; then
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8836 eval additional_includedir=\"$includedir\"
8837 eval additional_libdir=\"$libdir\"
8839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8843 additional_includedir="$withval/include"
8844 additional_libdir="$withval/lib"
8855 names_already_handled=
8856 names_next_round='intl '
8857 while test -n "$names_next_round"; do
8858 names_this_round="$names_next_round"
8860 for name in $names_this_round; do
8862 for n in $names_already_handled; do
8863 if test "$n" = "$name"; then
8868 if test -z "$already_handled"; then
8869 names_already_handled="$names_already_handled $name"
8870 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8871 eval value=\"\$HAVE_LIB$uppername\"
8872 if test -n "$value"; then
8873 if test "$value" = yes; then
8874 eval value=\"\$LIB$uppername\"
8875 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8876 eval value=\"\$LTLIB$uppername\"
8877 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8886 if test $use_additional = yes; then
8887 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8888 found_dir="$additional_libdir"
8889 found_so="$additional_libdir/lib$name.$shlibext"
8890 if test -f "$additional_libdir/lib$name.la"; then
8891 found_la="$additional_libdir/lib$name.la"
8894 if test -f "$additional_libdir/lib$name.$libext"; then
8895 found_dir="$additional_libdir"
8896 found_a="$additional_libdir/lib$name.$libext"
8897 if test -f "$additional_libdir/lib$name.la"; then
8898 found_la="$additional_libdir/lib$name.la"
8903 if test "X$found_dir" = "X"; then
8904 for x in $LDFLAGS $LTLIBINTL; do
8906 acl_save_prefix="$prefix"
8907 prefix="$acl_final_prefix"
8908 acl_save_exec_prefix="$exec_prefix"
8909 exec_prefix="$acl_final_exec_prefix"
8911 exec_prefix="$acl_save_exec_prefix"
8912 prefix="$acl_save_prefix"
8916 dir=`echo "X$x" | sed -e 's/^X-L//'`
8917 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8919 found_so="$dir/lib$name.$shlibext"
8920 if test -f "$dir/lib$name.la"; then
8921 found_la="$dir/lib$name.la"
8924 if test -f "$dir/lib$name.$libext"; then
8926 found_a="$dir/lib$name.$libext"
8927 if test -f "$dir/lib$name.la"; then
8928 found_la="$dir/lib$name.la"
8934 if test "X$found_dir" != "X"; then
8939 if test "X$found_dir" != "X"; then
8940 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8941 if test "X$found_so" != "X"; then
8942 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8946 for x in $ltrpathdirs; do
8947 if test "X$x" = "X$found_dir"; then
8952 if test -z "$haveit"; then
8953 ltrpathdirs="$ltrpathdirs $found_dir"
8955 if test "$hardcode_direct" = yes; then
8956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8958 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8959 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8961 for x in $rpathdirs; do
8962 if test "X$x" = "X$found_dir"; then
8967 if test -z "$haveit"; then
8968 rpathdirs="$rpathdirs $found_dir"
8972 for x in $LDFLAGS $LIBINTL; do
8974 acl_save_prefix="$prefix"
8975 prefix="$acl_final_prefix"
8976 acl_save_exec_prefix="$exec_prefix"
8977 exec_prefix="$acl_final_exec_prefix"
8979 exec_prefix="$acl_save_exec_prefix"
8980 prefix="$acl_save_prefix"
8982 if test "X$x" = "X-L$found_dir"; then
8987 if test -z "$haveit"; then
8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8990 if test "$hardcode_minus_L" != no; then
8991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8993 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8999 if test "X$found_a" != "X"; then
9000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9002 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9005 additional_includedir=
9006 case "$found_dir" in
9008 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9009 additional_includedir="$basedir/include"
9012 if test "X$additional_includedir" != "X"; then
9013 if test "X$additional_includedir" != "X/usr/include"; then
9015 if test "X$additional_includedir" = "X/usr/local/include"; then
9016 if test -n "$GCC"; then
9018 linux*) haveit=yes;;
9022 if test -z "$haveit"; then
9023 for x in $CPPFLAGS $INCINTL; do
9025 acl_save_prefix="$prefix"
9026 prefix="$acl_final_prefix"
9027 acl_save_exec_prefix="$exec_prefix"
9028 exec_prefix="$acl_final_exec_prefix"
9030 exec_prefix="$acl_save_exec_prefix"
9031 prefix="$acl_save_prefix"
9033 if test "X$x" = "X-I$additional_includedir"; then
9038 if test -z "$haveit"; then
9039 if test -d "$additional_includedir"; then
9040 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9046 if test -n "$found_la"; then
9047 save_libdir="$libdir"
9049 */* | *\\*) . "$found_la" ;;
9050 *) . "./$found_la" ;;
9052 libdir="$save_libdir"
9053 for dep in $dependency_libs; do
9056 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9057 if test "X$additional_libdir" != "X/usr/lib"; then
9059 if test "X$additional_libdir" = "X/usr/local/lib"; then
9060 if test -n "$GCC"; then
9062 linux*) haveit=yes;;
9066 if test -z "$haveit"; then
9068 for x in $LDFLAGS $LIBINTL; do
9070 acl_save_prefix="$prefix"
9071 prefix="$acl_final_prefix"
9072 acl_save_exec_prefix="$exec_prefix"
9073 exec_prefix="$acl_final_exec_prefix"
9075 exec_prefix="$acl_save_exec_prefix"
9076 prefix="$acl_save_prefix"
9078 if test "X$x" = "X-L$additional_libdir"; then
9083 if test -z "$haveit"; then
9084 if test -d "$additional_libdir"; then
9085 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9089 for x in $LDFLAGS $LTLIBINTL; do
9091 acl_save_prefix="$prefix"
9092 prefix="$acl_final_prefix"
9093 acl_save_exec_prefix="$exec_prefix"
9094 exec_prefix="$acl_final_exec_prefix"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9099 if test "X$x" = "X-L$additional_libdir"; then
9104 if test -z "$haveit"; then
9105 if test -d "$additional_libdir"; then
9106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9113 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9114 if test "$enable_rpath" != no; then
9116 for x in $rpathdirs; do
9117 if test "X$x" = "X$dir"; then
9122 if test -z "$haveit"; then
9123 rpathdirs="$rpathdirs $dir"
9126 for x in $ltrpathdirs; do
9127 if test "X$x" = "X$dir"; then
9132 if test -z "$haveit"; then
9133 ltrpathdirs="$ltrpathdirs $dir"
9138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9158 if test "X$rpathdirs" != "X"; then
9159 if test -n "$hardcode_libdir_separator"; then
9161 for found_dir in $rpathdirs; do
9162 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9164 acl_save_libdir="$libdir"
9166 eval flag=\"$hardcode_libdir_flag_spec\"
9167 libdir="$acl_save_libdir"
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9170 for found_dir in $rpathdirs; do
9171 acl_save_libdir="$libdir"
9173 eval flag=\"$hardcode_libdir_flag_spec\"
9174 libdir="$acl_save_libdir"
9175 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9179 if test "X$ltrpathdirs" != "X"; then
9180 for found_dir in $ltrpathdirs; do
9181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9186 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9187 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9190 gt_save_CPPFLAGS="$CPPFLAGS"
9191 CPPFLAGS="$CPPFLAGS $INCINTL"
9192 gt_save_LIBS="$LIBS"
9193 LIBS="$LIBS $LIBINTL"
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include <libintl.h>
9197 extern int _nl_msg_cat_cntr;
9202 const char *_nl_expand_alias ();
9206 bindtextdomain ("", "");
9207 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9212 if ac_fn_c_try_link "$LINENO"; then :
9213 gt_cv_func_gnugettext1_libintl=yes
9215 gt_cv_func_gnugettext1_libintl=no
9217 rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9220 LIBS="$LIBS $LIBICONV"
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 #include <libintl.h>
9224 extern int _nl_msg_cat_cntr;
9229 const char *_nl_expand_alias ();
9233 bindtextdomain ("", "");
9234 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9239 if ac_fn_c_try_link "$LINENO"; then :
9240 LIBINTL="$LIBINTL $LIBICONV"
9241 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9242 gt_cv_func_gnugettext1_libintl=yes
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9248 CPPFLAGS="$gt_save_CPPFLAGS"
9249 LIBS="$gt_save_LIBS"
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9252 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9255 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9256 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9257 && test "$PACKAGE" != gettext-runtime \
9258 && test "$PACKAGE" != gettext-tools; }; then
9259 gt_use_preinstalled_gnugettext=yes
9267 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9268 nls_cv_use_gnu_gettext=yes
9272 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9273 BUILD_INCLUDED_LIBINTL=yes
9274 USE_INCLUDED_LIBINTL=yes
9275 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9276 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9277 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9280 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9281 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9286 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9287 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9289 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9297 $as_echo_n "checking whether to use NLS... " >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9299 $as_echo "$USE_NLS" >&6; }
9300 if test "$USE_NLS" = "yes"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9302 $as_echo_n "checking where the gettext function comes from... " >&6; }
9303 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9304 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9305 gt_source="external libintl"
9310 gt_source="included intl directory"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9313 $as_echo "$gt_source" >&6; }
9316 if test "$USE_NLS" = "yes"; then
9318 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9319 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9321 $as_echo_n "checking how to link with libintl... " >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9323 $as_echo "$LIBINTL" >&6; }
9325 for element in $INCINTL; do
9327 for x in $CPPFLAGS; do
9329 acl_save_prefix="$prefix"
9330 prefix="$acl_final_prefix"
9331 acl_save_exec_prefix="$exec_prefix"
9332 exec_prefix="$acl_final_exec_prefix"
9334 exec_prefix="$acl_save_exec_prefix"
9335 prefix="$acl_save_prefix"
9337 if test "X$x" = "X$element"; then
9342 if test -z "$haveit"; then
9343 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9350 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9353 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9361 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9362 BUILD_INCLUDED_LIBINTL=yes
9370 nls_cv_header_libgt=
9381 if test "$USE_INCLUDED_LIBINTL" = yes; then
9382 INTLOBJS="\$(GETTOBJS)"
9386 INTL_LIBTOOL_SUFFIX_PREFIX=
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9399 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9401 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9402 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9403 $as_echo_n "(cached) " >&6
9405 cat >conftest.make <<\_ACEOF
9408 @echo '@@@%%%=$(MAKE)=@@@%%%'
9410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9411 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9413 eval ac_cv_prog_make_${ac_make}_set=yes;;
9415 eval ac_cv_prog_make_${ac_make}_set=no;;
9419 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421 $as_echo "yes" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9426 SET_MAKE="MAKE=${MAKE-make}"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9430 $as_echo_n "checking for GNU make... " >&6; }
9431 if test "${_cv_gnu_make_command+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9434 _cv_gnu_make_command='' ;
9435 for a in "$MAKE" make gmake gnumake ; do
9436 if test -z "$a" ; then continue ; fi ;
9437 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9438 _cv_gnu_make_command=$a ;
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9445 $as_echo "$_cv_gnu_make_command" >&6; } ;
9446 if test "x$_cv_gnu_make_command" != "x" ; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9453 $as_echo "\"Not found\"" >&6; };
9458 # Extract the first word of "ln", so it can be a program name with args.
9459 set dummy ln; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_path_LN+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9467 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9490 if test -n "$LN"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9492 $as_echo "$LN" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9500 $as_echo_n "checking whether ln -s works... " >&6; }
9502 if test "$LN_S" = "ln -s"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9504 $as_echo "yes" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9507 $as_echo "no, using $LN_S" >&6; }
9510 # Extract the first word of "mv", so it can be a program name with args.
9511 set dummy mv; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if test "${ac_cv_path_MV+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9519 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9542 if test -n "$MV"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9544 $as_echo "$MV" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9551 # Extract the first word of "cp", so it can be a program name with args.
9552 set dummy cp; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_CP+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9560 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9583 if test -n "$CP"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9585 $as_echo "$CP" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9592 # Extract the first word of "rm", so it can be a program name with args.
9593 set dummy rm; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_path_RM+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9601 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9624 if test -n "$RM"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9626 $as_echo "$RM" >&6; }
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9633 # Extract the first word of "chmod", so it can be a program name with args.
9634 set dummy chmod; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if test "${ac_cv_path_CHMOD+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9642 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9664 CHMOD=$ac_cv_path_CHMOD
9665 if test -n "$CHMOD"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9667 $as_echo "$CHMOD" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9674 for ac_prog in gawk mawk nawk awk
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_AWK+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 if test -n "$AWK"; then
9684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_AWK="$ac_prog"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 if test -n "$AWK"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9706 $as_echo "$AWK" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9713 test -n "$AWK" && break
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9717 $as_echo_n "checking for egrep... " >&6; }
9718 if test "${ac_cv_path_EGREP+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9722 then ac_cv_path_EGREP="$GREP -E"
9724 if test -z "$EGREP"; then
9725 ac_path_EGREP_found=false
9726 # Loop through the user's path and test for each of PROGNAME-LIST
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9731 test -z "$as_dir" && as_dir=.
9732 for ac_prog in egrep; do
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9735 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9736 # Check for GNU ac_path_EGREP and select it if it is found.
9737 # Check for GNU $ac_path_EGREP
9738 case `"$ac_path_EGREP" --version 2>&1` in
9740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9743 $as_echo_n 0123456789 >"conftest.in"
9746 cat "conftest.in" "conftest.in" >"conftest.tmp"
9747 mv "conftest.tmp" "conftest.in"
9748 cp "conftest.in" "conftest.nl"
9749 $as_echo 'EGREP' >> "conftest.nl"
9750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9752 as_fn_arith $ac_count + 1 && ac_count=$as_val
9753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9754 # Best one so far, save it but keep looking for a better one
9755 ac_cv_path_EGREP="$ac_path_EGREP"
9756 ac_path_EGREP_max=$ac_count
9758 # 10*(2^10) chars as input seems more than enough
9759 test $ac_count -gt 10 && break
9761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9764 $ac_path_EGREP_found && break 3
9769 if test -z "$ac_cv_path_EGREP"; then
9770 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9773 ac_cv_path_EGREP=$EGREP
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9779 $as_echo "$ac_cv_path_EGREP" >&6; }
9780 EGREP="$ac_cv_path_EGREP"
9783 # Extract the first word of "sed", so it can be a program name with args.
9784 set dummy sed; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if test "${ac_cv_path_SED+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9792 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9802 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9815 if test -n "$SED"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9817 $as_echo "$SED" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9824 # Extract the first word of "perl", so it can be a program name with args.
9825 set dummy perl; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_path_PERL+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9833 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9855 PERL=$ac_cv_path_PERL
9856 if test -n "$PERL"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9858 $as_echo "$PERL" >&6; }
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9865 # Extract the first word of "ldconfig", so it can be a program name with args.
9866 set dummy ldconfig; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9874 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9896 LDCONFIG=$ac_cv_path_LDCONFIG
9897 if test -n "$LDCONFIG"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9899 $as_echo "$LDCONFIG" >&6; }
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9906 if test -n "$ac_tool_prefix"; then
9907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9908 set dummy ${ac_tool_prefix}ar; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if test "${ac_cv_prog_AR+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9914 if test -n "$AR"; then
9915 ac_cv_prog_AR="$AR" # Let the user override the test.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_AR="${ac_tool_prefix}ar"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 if test -n "$AR"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9937 $as_echo "$AR" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9945 if test -z "$ac_cv_prog_AR"; then
9947 # Extract the first word of "ar", so it can be a program name with args.
9948 set dummy ar; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9954 if test -n "$ac_ct_AR"; then
9955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964 ac_cv_prog_ac_ct_AR="ar"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9975 if test -n "$ac_ct_AR"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9977 $as_echo "$ac_ct_AR" >&6; }
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9983 if test "x$ac_ct_AR" = x; then
9986 case $cross_compiling:$ac_tool_warned in
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990 ac_tool_warned=yes ;;
9998 if test -n "$ac_tool_prefix"; then
9999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10006 if test -n "$RANLIB"; then
10007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
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_prog_RANLIB="${ac_tool_prefix}ranlib"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 RANLIB=$ac_cv_prog_RANLIB
10027 if test -n "$RANLIB"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10029 $as_echo "$RANLIB" >&6; }
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10037 if test -z "$ac_cv_prog_RANLIB"; then
10038 ac_ct_RANLIB=$RANLIB
10039 # Extract the first word of "ranlib", so it can be a program name with args.
10040 set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10046 if test -n "$ac_ct_RANLIB"; then
10047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10067 if test -n "$ac_ct_RANLIB"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10069 $as_echo "$ac_ct_RANLIB" >&6; }
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10075 if test "x$ac_ct_RANLIB" = x; then
10078 case $cross_compiling:$ac_tool_warned in
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10082 ac_tool_warned=yes ;;
10084 RANLIB=$ac_ct_RANLIB
10087 RANLIB="$ac_cv_prog_RANLIB"
10090 if test -n "$ac_tool_prefix"; then
10091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10092 set dummy ${ac_tool_prefix}strip; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_STRIP+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 if test -n "$STRIP"; then
10099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 STRIP=$ac_cv_prog_STRIP
10119 if test -n "$STRIP"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10121 $as_echo "$STRIP" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10129 if test -z "$ac_cv_prog_STRIP"; then
10131 # Extract the first word of "strip", so it can be a program name with args.
10132 set dummy strip; 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_ac_ct_STRIP+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 if test -n "$ac_ct_STRIP"; then
10139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10159 if test -n "$ac_ct_STRIP"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10161 $as_echo "$ac_ct_STRIP" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10167 if test "x$ac_ct_STRIP" = x; then
10170 case $cross_compiling:$ac_tool_warned in
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174 ac_tool_warned=yes ;;
10179 STRIP="$ac_cv_prog_STRIP"
10182 # Extract the first word of "makeinfo", so it can be a program name with args.
10183 set dummy makeinfo; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10189 if test -n "$MAKEINFO"; then
10190 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199 ac_cv_prog_MAKEINFO="makeinfo"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 MAKEINFO=$ac_cv_prog_MAKEINFO
10210 if test -n "$MAKEINFO"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10212 $as_echo "$MAKEINFO" >&6; }
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10219 if test "_$MAKEINFO" = "_"; then
10220 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10222 case "$MAKEINFO" in
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10225 *** Makeinfo is missing. Info documentation will not be built." >&5
10226 $as_echo "$as_me: WARNING:
10227 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10235 # See if we need a separate native compiler.
10236 if test $cross_compiling = no; then
10240 for ac_prog in gcc cc
10242 # Extract the first word of "$ac_prog", so it can be a program name with args.
10243 set dummy $ac_prog; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10249 if test -n "$BUILD_CC"; then
10250 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_prog_BUILD_CC="$ac_prog"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 BUILD_CC=$ac_cv_prog_BUILD_CC
10270 if test -n "$BUILD_CC"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10272 $as_echo "$BUILD_CC" >&6; }
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10279 test -n "$BUILD_CC" && break
10283 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10287 eval as_val=\$$as_ac_Header
10288 if test "x$as_val" = x""yes; then :
10289 cat >>confdefs.h <<_ACEOF
10290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10297 for ac_header in sys/disk.h sys/mount.h
10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10301 #if HAVE_SYS_QUEUE_H
10302 #include <sys/queue.h>
10306 eval as_val=\$$as_ac_Header
10307 if test "x$as_val" = x""yes; then :
10308 cat >>confdefs.h <<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10316 for ac_header in net/if.h
10318 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10319 #if HAVE_SYS_TYPES_H
10320 #include <sys/types.h>
10322 #if HAVE_SYS_SOCKET
10323 #include <sys/socket.h>
10327 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10328 cat >>confdefs.h <<_ACEOF
10329 #define HAVE_NET_IF_H 1
10336 for ac_func in vprintf
10338 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10339 if test "x$ac_cv_func_vprintf" = x""yes; then :
10340 cat >>confdefs.h <<_ACEOF
10341 #define HAVE_VPRINTF 1
10344 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10345 if test "x$ac_cv_func__doprnt" = x""yes; then :
10347 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10355 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10357 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10359 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10363 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10365 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10367 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10371 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10373 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10375 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10379 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10380 #define _LARGEFILE64_SOURCE
10381 #include <unistd.h>
10383 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10385 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10389 # The cast to long int works around a bug in the HP C Compiler
10390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10392 # This bug is HP SR number 8606223364.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10394 $as_echo_n "checking size of short... " >&6; }
10395 if test "${ac_cv_sizeof_short+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10401 if test "$ac_cv_type_short" = yes; then
10402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10404 { as_fn_set_status 77
10405 as_fn_error "cannot compute sizeof (short)
10406 See \`config.log' for more details." "$LINENO" 5; }; }
10408 ac_cv_sizeof_short=0
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10414 $as_echo "$ac_cv_sizeof_short" >&6; }
10418 cat >>confdefs.h <<_ACEOF
10419 #define SIZEOF_SHORT $ac_cv_sizeof_short
10423 # The cast to long int works around a bug in the HP C Compiler
10424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10426 # This bug is HP SR number 8606223364.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10428 $as_echo_n "checking size of int... " >&6; }
10429 if test "${ac_cv_sizeof_int+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10435 if test "$ac_cv_type_int" = yes; then
10436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10438 { as_fn_set_status 77
10439 as_fn_error "cannot compute sizeof (int)
10440 See \`config.log' for more details." "$LINENO" 5; }; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10448 $as_echo "$ac_cv_sizeof_int" >&6; }
10452 cat >>confdefs.h <<_ACEOF
10453 #define SIZEOF_INT $ac_cv_sizeof_int
10457 # The cast to long int works around a bug in the HP C Compiler
10458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10460 # This bug is HP SR number 8606223364.
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10462 $as_echo_n "checking size of long... " >&6; }
10463 if test "${ac_cv_sizeof_long+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10469 if test "$ac_cv_type_long" = yes; then
10470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10472 { as_fn_set_status 77
10473 as_fn_error "cannot compute sizeof (long)
10474 See \`config.log' for more details." "$LINENO" 5; }; }
10476 ac_cv_sizeof_long=0
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10482 $as_echo "$ac_cv_sizeof_long" >&6; }
10486 cat >>confdefs.h <<_ACEOF
10487 #define SIZEOF_LONG $ac_cv_sizeof_long
10491 # The cast to long int works around a bug in the HP C Compiler
10492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10494 # This bug is HP SR number 8606223364.
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10496 $as_echo_n "checking size of long long... " >&6; }
10497 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10503 if test "$ac_cv_type_long_long" = yes; then
10504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10506 { as_fn_set_status 77
10507 as_fn_error "cannot compute sizeof (long long)
10508 See \`config.log' for more details." "$LINENO" 5; }; }
10510 ac_cv_sizeof_long_long=0
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10516 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10520 cat >>confdefs.h <<_ACEOF
10521 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10525 SIZEOF_SHORT=$ac_cv_sizeof_short
10526 SIZEOF_INT=$ac_cv_sizeof_int
10527 SIZEOF_LONG=$ac_cv_sizeof_long
10528 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10534 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10535 if test "${ac_cv_c_bigendian+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10538 ac_cv_c_bigendian=unknown
10539 # See if we're dealing with a universal compiler.
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 #ifndef __APPLE_CC__
10543 not a universal capable compiler
10548 if ac_fn_c_try_compile "$LINENO"; then :
10550 # Check for potential -arch flags. It is not universal unless
10551 # there are at least two -arch flags with different values.
10554 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10555 if test -n "$ac_prev"; then
10557 i?86 | x86_64 | ppc | ppc64)
10558 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10561 ac_cv_c_bigendian=universal
10567 elif test "x$ac_word" = "x-arch"; then
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if test $ac_cv_c_bigendian = unknown; then
10574 # See if sys/param.h defines the BYTE_ORDER macro.
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #include <sys/types.h>
10578 #include <sys/param.h>
10583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10586 bogus endian macros
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594 # It does; now see whether it defined to BIG_ENDIAN or not.
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include <sys/types.h>
10598 #include <sys/param.h>
10603 #if BYTE_ORDER != BIG_ENDIAN
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612 ac_cv_c_bigendian=yes
10614 ac_cv_c_bigendian=no
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 if test $ac_cv_c_bigendian = unknown; then
10621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #include <limits.h>
10629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10630 bogus endian macros
10637 if ac_fn_c_try_compile "$LINENO"; then :
10638 # It does; now see whether it defined to _BIG_ENDIAN or not.
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 #include <limits.h>
10646 #ifndef _BIG_ENDIAN
10654 if ac_fn_c_try_compile "$LINENO"; then :
10655 ac_cv_c_bigendian=yes
10657 ac_cv_c_bigendian=no
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 if test $ac_cv_c_bigendian = unknown; then
10664 # Compile a test program.
10665 if test "$cross_compiling" = yes; then :
10666 # Try to guess by grepping values from an object file.
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 short int ascii_mm[] =
10670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10671 short int ascii_ii[] =
10672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10673 int use_ascii (int i) {
10674 return ascii_mm[i] + ascii_ii[i];
10676 short int ebcdic_ii[] =
10677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10678 short int ebcdic_mm[] =
10679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10680 int use_ebcdic (int i) {
10681 return ebcdic_mm[i] + ebcdic_ii[i];
10688 return use_ascii (foo) == use_ebcdic (foo);
10693 if ac_fn_c_try_compile "$LINENO"; then :
10694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10695 ac_cv_c_bigendian=yes
10697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10698 if test "$ac_cv_c_bigendian" = unknown; then
10699 ac_cv_c_bigendian=no
10701 # finding both strings is unlikely to happen, but who knows?
10702 ac_cv_c_bigendian=unknown
10706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 $ac_includes_default
10715 /* Are we little or big endian? From Harbison&Steele. */
10719 char c[sizeof (long int)];
10722 return u.c[sizeof (long int) - 1] == 1;
10728 if ac_fn_c_try_run "$LINENO"; then :
10729 ac_cv_c_bigendian=no
10731 ac_cv_c_bigendian=yes
10733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10734 conftest.$ac_objext conftest.beam conftest.$ac_ext
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10740 $as_echo "$ac_cv_c_bigendian" >&6; }
10741 case $ac_cv_c_bigendian in #(
10743 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10749 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10753 as_fn_error "unknown endianness
10754 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10757 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10758 ASM_TYPES_HEADER=./asm_types.h
10760 echo "/* These defines are needed for the public ext2fs.h header file */" \
10762 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10763 uniq tmp_config.$$ >> public_config.h
10765 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10767 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10768 uniq tmp_config.$$ >> public_config.h
10770 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10772 rm -f tmp_config.$$
10773 PUBLIC_CONFIG_HEADER=./public_config.h
10775 for ac_header in inttypes.h
10777 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE_INTTYPES_H 1
10787 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10788 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_INTPTR_T 1
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10798 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10799 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10800 $as_echo_n "(cached) " >&6
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <sys/stat.h>
10808 struct stat stat; stat.st_flags = 0;
10813 if ac_fn_c_try_compile "$LINENO"; then :
10814 e2fsprogs_cv_struct_st_flags=yes
10816 e2fsprogs_cv_struct_st_flags=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10822 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10823 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10825 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10826 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #include <sys/stat.h>
10835 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841 e2fsprogs_cv_struct_st_flags_immut=yes
10843 e2fsprogs_cv_struct_st_flags_immut=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10849 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10850 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10852 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10856 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10857 #include <sys/socket.h>
10859 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_SA_LEN 1
10867 if test -n "$BLKID_CMT"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10869 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10870 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10873 ac_func_search_save_LIBS=$LIBS
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10883 char blkid_probe_all ();
10887 return blkid_probe_all ();
10892 for ac_lib in '' blkid; do
10893 if test -z "$ac_lib"; then
10894 ac_res="none required"
10897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10899 if ac_fn_c_try_link "$LINENO"; then :
10900 ac_cv_search_blkid_probe_all=$ac_res
10902 rm -f core conftest.err conftest.$ac_objext \
10904 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10908 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10911 ac_cv_search_blkid_probe_all=no
10913 rm conftest.$ac_ext
10914 LIBS=$ac_func_search_save_LIBS
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10917 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10918 ac_res=$ac_cv_search_blkid_probe_all
10919 if test "$ac_res" != no; then :
10920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10925 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
10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10929 eval as_val=\$$as_ac_var
10930 if test "x$as_val" = x""yes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10940 $as_echo_n "checking for socket in -lsocket... " >&6; }
10941 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10944 ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-lsocket $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_lib_socket_socket=yes
10967 ac_cv_lib_socket_socket=no
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10974 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10975 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10976 SOCKET_LIB=-lsocket
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10981 $as_echo_n "checking for optreset... " >&6; }
10982 if test "${ac_cv_have_optreset+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987 #include <unistd.h>
10990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10991 $EGREP "optreset" >/dev/null 2>&1; then :
10992 ac_cv_have_optreset=yes
10994 ac_cv_have_optreset=no
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11000 $as_echo "$ac_cv_have_optreset" >&6; }
11001 if test $ac_cv_have_optreset = yes; then
11003 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11008 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11009 if test "x$ac_cv_func_sem_init" = x""yes; then :
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11013 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11014 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11017 ac_check_lib_save_LIBS=$LIBS
11018 LIBS="-lpthread $LIBS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11032 return sem_init ();
11037 if ac_fn_c_try_link "$LINENO"; then :
11038 ac_cv_lib_pthread_sem_init=yes
11040 ac_cv_lib_pthread_sem_init=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11047 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11048 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11049 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11051 SEM_INIT_LIB=-lpthread
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11054 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11055 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11058 ac_check_lib_save_LIBS=$LIBS
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11073 return sem_init ();
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_rt_sem_init=yes
11081 ac_cv_lib_rt_sem_init=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11088 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11089 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11090 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11095 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11096 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lposix4 $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11114 return sem_init ();
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_posix4_sem_init=yes
11122 ac_cv_lib_posix4_sem_init=no
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11129 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11130 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11131 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11133 SEM_INIT_LIB=-lposix4
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11143 $as_echo_n "checking for unified diff option... " >&6; }
11144 if diff -u $0 $0 > /dev/null 2>&1 ; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11150 $as_echo "$UNI_DIFF_OPTS" >&6; }
11155 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11175 linux* | gnu* | k*bsd*-gnu)
11176 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11179 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11184 linux* | gnu* | k*bsd*-gnu)
11185 if test "$prefix" = NONE ; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11188 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11189 if test "$mandir" = '${prefix}/man' ; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11191 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11192 mandir=/usr/share/man
11197 if test "$root_prefix" = NONE ; then
11198 if test "$prefix" = NONE ; then
11199 root_prefix="$ac_default_prefix"
11201 root_prefix="$prefix"
11203 root_bindir=$bindir
11204 root_sbindir=$sbindir
11205 root_libdir=$libdir
11206 root_sysconfdir=$sysconfdir
11208 root_bindir='${root_prefix}/bin'
11209 root_sbindir='${root_prefix}/sbin'
11210 root_libdir='${root_prefix}/lib'
11211 root_sysconfdir='${root_prefix}/etc'
11213 if test "$bindir" != '${exec_prefix}/bin'; then
11214 root_bindir=$bindir
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11216 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11218 if test "$sbindir" != '${exec_prefix}/sbin'; then
11219 root_sbindir=$sbindir
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11221 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11223 if test "$libdir" != '${exec_prefix}/lib'; then
11224 root_libdir=$libdir
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11226 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11228 if test "$sysconfdir" != '${prefix}/etc'; then
11229 root_sysconfdir=$sysconfdir
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11231 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11239 # Check whether --with-multiarch was given.
11240 if test "${with_multiarch+set}" = set; then :
11241 withval=$with_multiarch; libdir=$libdir/$withval
11242 root_libdir=$root_libdir/$withval
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11246 $as_echo_n "checking whether linker accepts -static... " >&6; }
11247 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
11250 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_e2fsprogs_use_static=yes
11265 ac_cv_e2fsprogs_use_static=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LDFLAGS=$SAVE_LDFLAGS
11274 ac_cv_e2fsprogs_use_static=no
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11278 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11280 if test $ac_cv_e2fsprogs_use_static = yes; then
11281 LDFLAG_STATIC=-static
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11287 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11289 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11293 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11294 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11297 if test "$cross_compiling" = yes ; then
11300 DO_TEST_SUITE=check
11303 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11304 if test -n "$CPPFLAGS" ; then
11305 INCLUDES="$INCLUDES $CPPFLAGS"
11307 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11308 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11311 if test $cross_compiling = no; then
11312 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11313 BUILD_LDFLAGS="$LDFLAGS"
11320 test -d lib || mkdir lib
11321 test -d include || mkdir include
11322 test -d include/linux || mkdir include/linux
11323 test -d include/asm || mkdir include/asm
11324 for i in MCONFIG Makefile e2fsprogs.spec \
11325 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11326 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11327 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11328 lib/uuid/Makefile lib/uuid/uuid_types.h \
11329 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11330 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11331 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11332 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11333 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11334 resize/Makefile doc/Makefile intl/Makefile \
11335 intl/libgnuintl.h po/Makefile.in ; do
11336 if test -d `dirname ${srcdir}/$i` ; then
11337 outlist="$outlist $i"
11340 ac_config_files="$ac_config_files $outlist"
11342 cat >confcache <<\_ACEOF
11343 # This file is a shell script that caches the results of configure
11344 # tests run on this system so they can be shared between configure
11345 # scripts and configure runs, see configure's option --config-cache.
11346 # It is not useful on other systems. If it contains results you don't
11347 # want to keep, you may remove or edit it.
11349 # config.status only pays attention to the cache file if you give it
11350 # the --recheck option to rerun configure.
11352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11354 # following values.
11358 # The following way of writing the cache mishandles newlines in values,
11359 # but we know of no workaround that is simple, portable, and efficient.
11360 # So, we kill variables containing newlines.
11361 # Ultrix sh set writes to stderr and can't be redirected directly,
11362 # and sets the high bit in the cache file unless we assign to the vars.
11364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11365 eval ac_val=\$$ac_var
11369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11370 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11373 _ | IFS | as_nl) ;; #(
11374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11375 *) { eval $ac_var=; unset $ac_var;} ;;
11381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11382 *${as_nl}ac_space=\ *)
11383 # `set' does not quote correctly, so add quotes: double-quote
11384 # substitution turns \\\\ into \\, and sed turns \\ into \.
11387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11390 # `set' quotes correctly as required by POSIX, so do not add quotes.
11391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11404 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11405 if test -w "$cache_file"; then
11406 test "x$cache_file" != "x/dev/null" &&
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11408 $as_echo "$as_me: updating cache $cache_file" >&6;}
11409 cat confcache >$cache_file
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11418 # Let make expand exec_prefix.
11419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11421 DEFS=-DHAVE_CONFIG_H
11425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11426 # 1. Remove the extension, and $U if already installed.
11427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11430 # will be set to the directory where LIBOBJS objects are built.
11431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11434 LIBOBJS=$ac_libobjs
11436 LTLIBOBJS=$ac_ltlibobjs
11441 : ${CONFIG_STATUS=./config.status}
11443 ac_clean_files_save=$ac_clean_files
11444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11448 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11450 # Generated by $as_me.
11451 # Run this file to recreate the current configuration.
11452 # Compiler output produced by configure, useful for debugging
11453 # configure, is in config.log if it exists.
11456 ac_cs_recheck=false
11459 SHELL=\${CONFIG_SHELL-$SHELL}
11462 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11463 ## -------------------- ##
11464 ## M4sh Initialization. ##
11465 ## -------------------- ##
11467 # Be more Bourne compatible
11468 DUALCASE=1; export DUALCASE # for MKS sh
11469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11473 # is contrary to our usage. Disable this feature.
11474 alias -g '${1+"$@"}'='"$@"'
11475 setopt NO_GLOB_SUBST
11477 case `(set -o) 2>/dev/null` in #(
11489 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11490 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11493 # Prefer a ksh shell builtin over an external printf program on Solaris,
11494 # but without wasting forks for bash or zsh.
11495 if test -z "$BASH_VERSION$ZSH_VERSION" \
11496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11497 as_echo='print -r --'
11498 as_echo_n='print -rn --'
11499 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11500 as_echo='printf %s\n'
11501 as_echo_n='printf %s'
11503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11505 as_echo_n='/usr/ucb/echo -n'
11507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11508 as_echo_n_body='eval
11512 expr "X$arg" : "X\\(.*\\)$as_nl";
11513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11517 export as_echo_n_body
11518 as_echo_n='sh -c $as_echo_n_body as_echo'
11520 export as_echo_body
11521 as_echo='sh -c $as_echo_body as_echo'
11524 # The user is always right.
11525 if test "${PATH_SEPARATOR+set}" != set; then
11527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11535 # We need space, tab and new line, in precisely that order. Quoting is
11536 # there to prevent editors from complaining about space-tab.
11537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11538 # splitting by setting IFS to empty value.)
11541 # Find who we are. Look in the path if we contain no directory separator.
11543 *[\\/]* ) as_myself=$0 ;;
11544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11548 test -z "$as_dir" && as_dir=.
11549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11555 # We did not find ourselves, most probably we were run as `sh COMMAND'
11556 # in which case we are not to be found in the path.
11557 if test "x$as_myself" = x; then
11560 if test ! -f "$as_myself"; then
11561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11565 # Unset variables that we do not need and which cause bugs (e.g. in
11566 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11567 # suppresses any "Segmentation fault" message there. '((' could
11568 # trigger a bug in pdksh 5.2.14.
11569 for as_var in BASH_ENV ENV MAIL MAILPATH
11570 do eval test x\${$as_var+set} = xset \
11571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11587 # as_fn_error ERROR [LINENO LOG_FD]
11588 # ---------------------------------
11589 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11590 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11591 # script with status $?, using 1 if that was 0.
11594 as_status=$?; test $as_status -eq 0 && as_status=1
11596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11599 $as_echo "$as_me: error: $1" >&2
11600 as_fn_exit $as_status
11604 # as_fn_set_status STATUS
11605 # -----------------------
11606 # Set $? to STATUS, without forking.
11607 as_fn_set_status ()
11610 } # as_fn_set_status
11612 # as_fn_exit STATUS
11613 # -----------------
11614 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11618 as_fn_set_status $1
11624 # Portably unset VAR.
11627 { eval $1=; unset $1;}
11629 as_unset=as_fn_unset
11630 # as_fn_append VAR VALUE
11631 # ----------------------
11632 # Append the text in VALUE to the end of the definition contained in VAR. Take
11633 # advantage of any shell optimizations that allow amortized linear growth over
11634 # repeated appends, instead of the typical quadratic growth present in naive
11636 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11637 eval 'as_fn_append ()
11648 # as_fn_arith ARG...
11649 # ------------------
11650 # Perform arithmetic evaluation on the ARGs, and store the result in the
11651 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11652 # must be portable across $(()) and expr.
11653 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11654 eval 'as_fn_arith ()
11661 as_val=`expr "$@" || test $? -eq 1`
11666 if expr a : '\(a\)' >/dev/null 2>&1 &&
11667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11674 as_basename=basename
11679 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11685 as_me=`$as_basename -- "$0" ||
11686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11687 X"$0" : 'X\(//\)$' \| \
11688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11690 sed '/^.*\/\([^/][^/]*\)\/*$/{
11704 # Avoid depending upon Character Ranges.
11705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11708 as_cr_digits='0123456789'
11709 as_cr_alnum=$as_cr_Letters$as_cr_digits
11711 ECHO_C= ECHO_N= ECHO_T=
11712 case `echo -n x` in #(((((
11714 case `echo 'xy\c'` in
11715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11724 rm -f conf$$ conf$$.exe conf$$.file
11725 if test -d conf$$.dir; then
11726 rm -f conf$$.dir/conf$$.file
11729 mkdir conf$$.dir 2>/dev/null
11731 if (echo >conf$$.file) 2>/dev/null; then
11732 if ln -s conf$$.file conf$$ 2>/dev/null; then
11734 # ... but there are two gotchas:
11735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11737 # In both cases, we have to default to `cp -p'.
11738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11740 elif ln conf$$.file conf$$ 2>/dev/null; then
11748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11749 rmdir conf$$.dir 2>/dev/null
11754 # Create "$as_dir" as a directory, including parents if necessary.
11759 -*) as_dir=./$as_dir;;
11761 test -d "$as_dir" || eval $as_mkdir_p || {
11765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11766 *) as_qdir=$as_dir;;
11768 as_dirs="'$as_qdir' $as_dirs"
11769 as_dir=`$as_dirname -- "$as_dir" ||
11770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11771 X"$as_dir" : 'X\(//\)[^/]' \| \
11772 X"$as_dir" : 'X\(//\)$' \| \
11773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11774 $as_echo X"$as_dir" |
11775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11779 /^X\(\/\/\)[^/].*/{
11792 test -d "$as_dir" && break
11794 test -z "$as_dirs" || eval "mkdir $as_dirs"
11795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11799 if mkdir -p . 2>/dev/null; then
11800 as_mkdir_p='mkdir -p "$as_dir"'
11802 test -d ./-p && rmdir ./-p
11806 if test -x / >/dev/null 2>&1; then
11807 as_test_x='test -x'
11809 if ls -dL / >/dev/null 2>&1; then
11816 if test -d "$1"; then
11822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11823 ???[sx]*):;;*)false;;esac;fi
11827 as_executable_p=$as_test_x
11829 # Sed expression to map a string onto a valid CPP name.
11830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11832 # Sed expression to map a string onto a valid variable name.
11833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11837 ## ----------------------------------- ##
11838 ## Main body of $CONFIG_STATUS script. ##
11839 ## ----------------------------------- ##
11841 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11844 # Save the log message, to keep $0 and so on meaningful, and to
11845 # report actual input values of CONFIG_FILES etc. instead of their
11846 # values after options handling.
11848 This file was extended by $as_me, which was
11849 generated by GNU Autoconf 2.65. Invocation command line was
11851 CONFIG_FILES = $CONFIG_FILES
11852 CONFIG_HEADERS = $CONFIG_HEADERS
11853 CONFIG_LINKS = $CONFIG_LINKS
11854 CONFIG_COMMANDS = $CONFIG_COMMANDS
11857 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11862 case $ac_config_files in *"
11863 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11866 case $ac_config_headers in *"
11867 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11872 # Files that config.status was made for.
11873 config_files="$ac_config_files"
11874 config_headers="$ac_config_headers"
11875 config_commands="$ac_config_commands"
11879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11881 \`$as_me' instantiates files and other configuration actions
11882 from templates according to the current configuration. Unless the files
11883 and actions are specified as TAGs, all are instantiated by default.
11885 Usage: $0 [OPTION]... [TAG]...
11887 -h, --help print this help, then exit
11888 -V, --version print version number and configuration settings, then exit
11889 --config print configuration, then exit
11890 -q, --quiet, --silent
11891 do not print progress messages
11892 -d, --debug don't remove temporary files
11893 --recheck update $as_me by reconfiguring in the same conditions
11894 --file=FILE[:TEMPLATE]
11895 instantiate the configuration file FILE
11896 --header=FILE[:TEMPLATE]
11897 instantiate the configuration header FILE
11899 Configuration files:
11902 Configuration headers:
11905 Configuration commands:
11908 Report bugs to the package provider."
11911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11915 configured by $0, generated by GNU Autoconf 2.65,
11916 with options \\"\$ac_cs_config\\"
11918 Copyright (C) 2009 Free Software Foundation, Inc.
11919 This config.status script is free software; the Free Software Foundation
11920 gives unlimited permission to copy, distribute and modify it."
11926 test -n "\$AWK" || AWK=awk
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 # The default lists apply if the user does not specify any file.
11936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11948 # Handling of the options.
11949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11952 $as_echo "$ac_cs_version"; exit ;;
11953 --config | --confi | --conf | --con | --co | --c )
11954 $as_echo "$ac_cs_config"; exit ;;
11955 --debug | --debu | --deb | --de | --d | -d )
11957 --file | --fil | --fi | --f )
11960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11962 as_fn_append CONFIG_FILES " '$ac_optarg'"
11963 ac_need_defaults=false;;
11964 --header | --heade | --head | --hea )
11967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11969 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11970 ac_need_defaults=false;;
11972 # Conflict between --help and --header
11973 as_fn_error "ambiguous option: \`$1'
11974 Try \`$0 --help' for more information.";;
11975 --help | --hel | -h )
11976 $as_echo "$ac_cs_usage"; exit ;;
11977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11981 # This is an error.
11982 -*) as_fn_error "unrecognized option: \`$1'
11983 Try \`$0 --help' for more information." ;;
11985 *) as_fn_append ac_config_targets " $1"
11986 ac_need_defaults=false ;;
11992 ac_configure_extra_args=
11994 if $ac_cs_silent; then
11996 ac_configure_extra_args="$ac_configure_extra_args --silent"
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 if \$ac_cs_recheck; then
12002 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12004 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12005 CONFIG_SHELL='$SHELL'
12006 export CONFIG_SHELL
12011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12016 ## Running $as_me. ##
12022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12026 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12027 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12029 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12030 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12031 LINGUAS="${LINGUAS-%UNSET%}"
12036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12038 # Handling of arguments.
12039 for ac_config_target in $ac_config_targets
12041 case $ac_config_target in
12042 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12043 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12044 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12046 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12051 # If the user did not use the arguments to specify the items to instantiate,
12052 # then the envvar interface is used. Set only those that are not.
12053 # We use the long form for the default assignment because of an extremely
12054 # bizarre bug on SunOS 4.1.3.
12055 if $ac_need_defaults; then
12056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12061 # Have a temporary directory for convenience. Make it in the build tree
12062 # simply because there is no reason against having it here, and in addition,
12063 # creating and moving files from /tmp can sometimes cause problems.
12064 # Hook for its removal unless debugging.
12065 # Note that there is a small window in which the directory will not be cleaned:
12066 # after its creation but before its name has been assigned to `$tmp'.
12070 trap 'exit_status=$?
12071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12073 trap 'as_fn_exit 1' 1 2 13 15
12075 # Create a (secure) tmp directory for tmp files.
12078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12079 test -n "$tmp" && test -d "$tmp"
12082 tmp=./conf$$-$RANDOM
12083 (umask 077 && mkdir "$tmp")
12084 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12086 # Set up the scripts for CONFIG_FILES section.
12087 # No need to generate them if there are no CONFIG_FILES.
12088 # This happens for instance with `./config.status config.h'.
12089 if test -n "$CONFIG_FILES"; then
12091 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12092 ac_cs_awk_getline=:
12093 ac_cs_awk_pipe_init=
12094 ac_cs_awk_read_file='
12095 while ((getline aline < (F[key])) > 0)
12098 ac_cs_awk_pipe_fini=
12100 ac_cs_awk_getline=false
12101 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12102 ac_cs_awk_read_file='
12104 print "cat " F[key] " &&"
12105 '$ac_cs_awk_pipe_init
12106 # The final `:' finishes the AND list.
12107 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12109 ac_cr=`echo X | tr X '\015'`
12110 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12111 # But we know of no other shell where ac_cr would be empty at this
12112 # point, so we can use a bashism as a fallback.
12113 if test "x$ac_cr" = x; then
12114 eval ac_cr=\$\'\\r\'
12116 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12117 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12120 ac_cs_awk_cr=$ac_cr
12123 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12126 # Create commands to substitute file output variables.
12128 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12129 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12130 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12133 } >conf$$files.sh &&
12134 . ./conf$$files.sh ||
12135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12136 rm -f conf$$files.sh
12139 echo "cat >conf$$subs.awk <<_ACEOF" &&
12140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12142 } >conf$$subs.sh ||
12143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12146 for ac_last_try in false false false false false :; do
12147 . ./conf$$subs.sh ||
12148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12151 if test $ac_delim_n = $ac_delim_num; then
12153 elif $ac_last_try; then
12154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12159 rm -f conf$$subs.sh
12161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12166 s/^/S["/; s/!.*/"]=/
12176 s/\(.\{148\}\)..*/\1/
12178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12190 s/\(.\{148\}\)..*/\1/
12192 s/["\\]/\\&/g; s/^/"/; s/$/"/
12196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12201 ' <conf$$subs.awk | sed '
12206 ' >>$CONFIG_STATUS || ac_write_fail=1
12207 rm -f conf$$subs.awk
12208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12211 for (key in S) S_is_set[key] = 1
12213 \$ac_cs_awk_pipe_init
12217 nfields = split(line, field, "@")
12219 len = length(field[1])
12220 for (i = 2; i < nfields; i++) {
12222 keylen = length(key)
12223 if (S_is_set[key]) {
12225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12226 len += length(value) + length(field[++i])
12231 if (nfields == 3 && !substed) {
12233 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12234 \$ac_cs_awk_read_file
12240 \$ac_cs_awk_pipe_fini
12243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12249 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12254 # trailing colons and then remove the whole line if VPATH becomes empty
12255 # (actually we leave an empty line to preserve line numbers).
12256 if test "x$srcdir" = x.; then
12257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12258 s/:*\$(srcdir):*/:/
12259 s/:*\${srcdir}:*/:/
12261 s/^\([^=]*=[ ]*\):*/\1/
12267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12268 fi # test -n "$CONFIG_FILES"
12270 # Set up the scripts for CONFIG_HEADERS section.
12271 # No need to generate them if there are no CONFIG_HEADERS.
12272 # This happens for instance with `./config.status Makefile'.
12273 if test -n "$CONFIG_HEADERS"; then
12274 cat >"$tmp/defines.awk" <<\_ACAWK ||
12278 # Transform confdefs.h into an awk script `defines.awk', embedded as
12279 # here-document in config.status, that substitutes the proper values into
12280 # config.h.in to produce config.h.
12282 # Create a delimiter string that does not exist in confdefs.h, to ease
12283 # handling of long lines.
12285 for ac_last_try in false false :; do
12286 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12287 if test -z "$ac_t"; then
12289 elif $ac_last_try; then
12290 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12296 # For the awk script, D is an array of macro values keyed by name,
12297 # likewise P contains macro parameters if any. Preserve backslash
12298 # newline sequences.
12300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12302 s/.\{148\}/&'"$ac_delim"'/g
12305 s/^[ ]*#[ ]*define[ ][ ]*/ /
12312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12314 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12319 D["\1"]=" \3\\\\\\n"\\/p
12321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12326 s/.\{148\}/&'"$ac_delim"'/g
12331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12336 ' <confdefs.h | sed '
12337 s/'"$ac_delim"'/"\\\
12338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12341 for (key in D) D_is_set[key] = 1
12344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12346 split(line, arg, " ")
12347 if (arg[1] == "#") {
12351 defundef = substr(arg[1], 2)
12354 split(mac1, mac2, "(") #)
12356 prefix = substr(line, 1, index(line, defundef) - 1)
12357 if (D_is_set[macro]) {
12358 # Preserve the white space surrounding the "#".
12359 print prefix "define", macro P[macro] D[macro]
12362 # Replace #undef with comments. This is necessary, for example,
12363 # in the case of _POSIX_SOURCE, which is predefined and required
12364 # on some systems where configure will not decide to define it.
12365 if (defundef == "undef") {
12366 print "/*", prefix defundef, macro, "*/"
12374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12375 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12376 fi # test -n "$CONFIG_HEADERS"
12379 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12384 :[FHLC]) ac_mode=$ac_tag; continue;;
12386 case $ac_mode$ac_tag in
12388 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12389 :[FH]-) ac_tag=-:-;;
12390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12407 -) ac_f="$tmp/stdin";;
12408 *) # Look for the file first in the build tree, then in the source tree
12409 # (if the path is not absolute). The absolute path cannot be DOS-style,
12410 # because $ac_f cannot contain `:'.
12414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12416 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12418 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12419 as_fn_append ac_file_inputs " '$ac_f'"
12422 # Let's still pretend it is `configure' which instantiates (i.e., don't
12423 # use $as_me), people would be surprised to read:
12424 # /* config.h. Generated by config.status. */
12425 configure_input='Generated from '`
12426 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12428 if test x"$ac_file" != x-; then
12429 configure_input="$ac_file. $configure_input"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12431 $as_echo "$as_me: creating $ac_file" >&6;}
12433 # Neutralize special characters interpreted by sed in replacement strings.
12434 case $configure_input in #(
12435 *\&* | *\|* | *\\* )
12436 ac_sed_conf_input=`$as_echo "$configure_input" |
12437 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12438 *) ac_sed_conf_input=$configure_input;;
12442 *:-:* | *:-) cat >"$tmp/stdin" \
12443 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12448 ac_dir=`$as_dirname -- "$ac_file" ||
12449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12450 X"$ac_file" : 'X\(//\)[^/]' \| \
12451 X"$ac_file" : 'X\(//\)$' \| \
12452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12453 $as_echo X"$ac_file" |
12454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12458 /^X\(\/\/\)[^/].*/{
12471 as_dir="$ac_dir"; as_fn_mkdir_p
12475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12478 # A ".." for each directory in $ac_dir_suffix.
12479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12480 case $ac_top_builddir_sub in
12481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12485 ac_abs_top_builddir=$ac_pwd
12486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12487 # for backward compatibility:
12488 ac_top_builddir=$ac_top_build_prefix
12491 .) # We are building in place.
12493 ac_top_srcdir=$ac_top_builddir_sub
12494 ac_abs_top_srcdir=$ac_pwd ;;
12495 [\\/]* | ?:[\\/]* ) # Absolute name.
12496 ac_srcdir=$srcdir$ac_dir_suffix;
12497 ac_top_srcdir=$srcdir
12498 ac_abs_top_srcdir=$srcdir ;;
12499 *) # Relative name.
12500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12501 ac_top_srcdir=$ac_top_build_prefix$srcdir
12502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12520 # If the template does not know about datarootdir, expand it.
12521 # FIXME: This hack should be removed a few years after 2.60.
12522 ac_datarootdir_hack=; ac_datarootdir_seen=
12533 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12534 *datarootdir*) ac_datarootdir_seen=yes;;
12535 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12537 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12540 ac_datarootdir_hack='
12541 s&@datadir@&$datadir&g
12542 s&@docdir@&$docdir&g
12543 s&@infodir@&$infodir&g
12544 s&@localedir@&$localedir&g
12545 s&@mandir@&$mandir&g
12546 s&\\\${datarootdir}&$datarootdir&g' ;;
12550 # Neutralize VPATH when `$srcdir' = `.'.
12551 # Shell code in configure.ac might set extrasub.
12552 # FIXME: do we really want to maintain this feature?
12553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554 ac_sed_extra="$ac_vpsub
12557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12560 s|@configure_input@|$ac_sed_conf_input|;t t
12561 s&@top_builddir@&$ac_top_builddir_sub&;t t
12562 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12563 s&@srcdir@&$ac_srcdir&;t t
12564 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12565 s&@top_srcdir@&$ac_top_srcdir&;t t
12566 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12567 s&@builddir@&$ac_builddir&;t t
12568 s&@abs_builddir@&$ac_abs_builddir&;t t
12569 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12570 s&@INSTALL@&$ac_INSTALL&;t t
12571 $ac_datarootdir_hack
12573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12574 if $ac_cs_awk_getline; then
12575 $AWK -f "$tmp/subs.awk"
12577 $AWK -f "$tmp/subs.awk" | $SHELL
12579 || as_fn_error "could not create $ac_file" "$LINENO" 5
12581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12585 which seems to be undefined. Please make sure it is defined." >&5
12586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12587 which seems to be undefined. Please make sure it is defined." >&2;}
12591 -) cat "$tmp/out" && rm -f "$tmp/out";;
12592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12594 || as_fn_error "could not create $ac_file" "$LINENO" 5
12600 if test x"$ac_file" != x-; then
12602 $as_echo "/* $configure_input */" \
12603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12604 } >"$tmp/config.h" \
12605 || as_fn_error "could not create $ac_file" "$LINENO" 5
12606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12611 mv "$tmp/config.h" "$ac_file" \
12612 || as_fn_error "could not create $ac_file" "$LINENO" 5
12615 $as_echo "/* $configure_input */" \
12616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12617 || as_fn_error "could not create -" "$LINENO" 5
12621 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12622 $as_echo "$as_me: executing $ac_file commands" >&6;}
12627 case $ac_file$ac_mode in
12629 for ac_file in $CONFIG_FILES; do
12630 # Support "outfile[:infile[:infile...]]"
12632 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12634 # PO directories have a Makefile.in generated from Makefile.in.in.
12635 case "$ac_file" in */Makefile.in)
12636 # Adjust a relative srcdir.
12637 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12638 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12639 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12640 # In autoconf-2.13 it is called $ac_given_srcdir.
12641 # In autoconf-2.50 it is called $srcdir.
12642 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12643 case "$ac_given_srcdir" in
12644 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12645 /*) top_srcdir="$ac_given_srcdir" ;;
12646 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12648 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12649 rm -f "$ac_dir/POTFILES"
12650 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12651 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12652 POMAKEFILEDEPS="POTFILES.in"
12653 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12654 # on $ac_dir but don't depend on user-specified configuration
12656 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12657 # The LINGUAS file contains the set of available languages.
12658 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12659 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12661 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12662 # Hide the ALL_LINGUAS assigment from automake.
12663 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12664 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12666 # The set of available languages was given in configure.in.
12667 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12670 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12671 # Compute UPDATEPOFILES
12672 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12673 # Compute DUMMYPOFILES
12674 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12676 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12677 case "$ac_given_srcdir" in
12679 *) srcdirpre='$(srcdir)/' ;;
12685 for lang in $ALL_LINGUAS; do
12686 POFILES="$POFILES $srcdirpre$lang.po"
12687 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12688 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12689 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12691 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12692 # environment variable.
12694 if test -n "$ALL_LINGUAS"; then
12695 for presentlang in $ALL_LINGUAS; do
12697 if test "%UNSET%" != "$LINGUAS"; then
12698 desiredlanguages="$LINGUAS"
12700 desiredlanguages="$ALL_LINGUAS"
12702 for desiredlang in $desiredlanguages; do
12703 # Use the presentlang catalog if desiredlang is
12704 # a. equal to presentlang, or
12705 # b. a variant of presentlang (because in this case,
12706 # presentlang can be used as a fallback for messages
12707 # which are not translated in the desiredlang catalog).
12708 case "$desiredlang" in
12709 "$presentlang"*) useit=yes;;
12712 if test $useit = yes; then
12713 INST_LINGUAS="$INST_LINGUAS $presentlang"
12718 if test -n "$INST_LINGUAS"; then
12719 for lang in $INST_LINGUAS; do
12720 CATALOGS="$CATALOGS $lang.gmo"
12723 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12724 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"
12725 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12726 if test -f "$f"; then
12728 *.orig | *.bak | *~) ;;
12729 *) cat "$f" >> "$ac_dir/Makefile" ;;
12744 ac_clean_files=$ac_clean_files_save
12746 test $ac_write_fail = 0 ||
12747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12750 # configure is writing to config.log, and then calls config.status.
12751 # config.status does its own redirection, appending to config.log.
12752 # Unfortunately, on DOS this fails, as config.log is still kept open
12753 # by configure, so config.status won't be able to write to it; its
12754 # output is simply discarded. So we exec the FD to /dev/null,
12755 # effectively closing config.log, so it can be properly (re)opened and
12756 # appended to by config.status. When coming back to configure, we
12757 # need to make the FD available again.
12758 if test "$no_create" != yes; then
12760 ac_config_status_args=
12761 test "$silent" = yes &&
12762 ac_config_status_args="$ac_config_status_args --quiet"
12764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12767 # would make configure fail if this is the last instruction.
12768 $ac_cs_success || as_fn_exit $?
12770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12775 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi