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
762 program_transform_name
773 ac_subst_files='MCONFIG
780 PUBLIC_CONFIG_HEADER'
782 enable_option_checking
788 enable_maintainer_mode
789 enable_symlink_install
791 enable_verbose_makecmds
807 enable_e2initrd_helper
814 with_included_gettext
817 ac_precious_vars='build_alias
829 # Initialize some variables set by options.
831 ac_init_version=false
832 ac_unrecognized_opts=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
986 -help | --help | --hel | --he | -h)
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1135 -site=* | --site=* | --sit=*)
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information."
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1262 # Be sure to have absolute directory names.
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error "pwd does not report name of working directory"
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1368 \`configure' configures this package to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable makefile rules useful for maintainers
1440 --enable-symlink-install use symlinks when installing instead of hard links
1441 --enable-symlink-build use symlinks while building instead of hard links
1442 --enable-verbose-makecmds enable verbose make command output
1443 --enable-compression enable EXPERIMENTAL compression support
1444 --enable-htree enable EXPERIMENTAL htree directory support
1445 --enable-elf-shlibs select ELF shared libraries
1446 --enable-bsd-shlibs select BSD shared libraries
1447 --enable-profile build profiling libraries
1448 --enable-checker build checker libraries
1449 --enable-jbd-debug enable journal debugging
1450 --enable-blkid-debug enable blkid debugging
1451 --disable-testio-debug disable the use of the test I/O manager for debugging
1452 --disable-libuuid do not build private uuid library
1453 --disable-libblkid do not build private blkid library
1454 --disable-debugfs disable support of debugfs program
1455 --disable-imager disable support of e2image program
1456 --disable-resizer disable support of e2resize program
1457 --enable-fsck build fsck wrapper program
1458 --enable-e2initrd-helper build e2initrd-helper program
1459 --disable-tls disable use of thread local support
1460 --disable-uuidd disable building the uuid daemon
1461 --disable-nls do not use Native Language Support
1462 --disable-rpath do not hardcode runtime library paths
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-diet-libc use diet libc
1468 --with-cc no longer supported, use CC= instead
1469 --with-ccopts no longer supported, use CFLAGS= instead
1470 --with-ldopts no longer supported, use LDFLAGS= instead
1471 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1472 --with-gnu-ld assume the C compiler uses GNU ld default=no
1473 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1474 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1475 --with-included-gettext use the GNU gettext library included here
1476 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1477 --without-libintl-prefix don't search for libintl in includedir and libdir
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1488 PKG_CONFIG path to pkg-config utility
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to the package provider.
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1557 generated by GNU Autoconf 2.65
1559 Copyright (C) 2009 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_compile
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_link
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } >/dev/null && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 as_fn_set_status $ac_retval
1691 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694 # the include files in INCLUDES and setting the cache variable VAR
1696 ac_fn_c_check_header_mongrel ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1709 # Is the header compilable?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711 $as_echo_n "checking $2 usability... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_header_compiler=yes
1720 ac_header_compiler=no
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724 $as_echo "$ac_header_compiler" >&6; }
1726 # Is the header present?
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728 $as_echo_n "checking $2 presence... " >&6; }
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1733 if ac_fn_c_try_cpp "$LINENO"; then :
1734 ac_header_preproc=yes
1736 ac_header_preproc=no
1738 rm -f conftest.err conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740 $as_echo "$ac_header_preproc" >&6; }
1742 # So? What about this header?
1743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1754 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1758 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1768 eval "$3=\$ac_header_compiler"
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 } # ac_fn_c_check_header_mongrel
1778 # ac_fn_c_try_run LINENO
1779 # ----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781 # that executables *can* be run.
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_link"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>&5
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796 { { case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_try") 2>&5
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; }; }; then :
1808 $as_echo "$as_me: program exited with status $ac_status" >&5
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=$ac_status
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 as_fn_set_status $ac_retval
1820 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists and can be compiled using the include files in
1823 # INCLUDES, setting the cache variable VAR accordingly.
1824 ac_fn_c_check_header_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1837 if ac_fn_c_try_compile "$LINENO"; then :
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_compile
1851 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852 # -------------------------------------------
1853 # Tests whether TYPE exists after having included INCLUDES, setting cache
1854 # variable VAR accordingly.
1855 ac_fn_c_check_type ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_check_type
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920 #define $2 innocuous_$2
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1928 # include <limits.h>
1930 # include <assert.h>
1935 /* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1942 /* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945 #if defined __stub_$2 || defined __stub___$2
1957 if ac_fn_c_try_link "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_func
1972 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1973 # --------------------------------------------
1974 # Tries to find the compile-time value of EXPR in a program that includes
1975 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 ac_fn_c_compute_int ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if test "$cross_compiling" = yes; then
1981 # Depending upon the size, compute the lo and hi bounds.
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) >= 0)];
1995 if ac_fn_c_try_compile "$LINENO"; then :
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_hi=$ac_mid; break
2014 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2015 if test $ac_lo -le $ac_mid; then
2019 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) < 0)];
2037 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_lo=$ac_mid; break
2056 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2057 if test $ac_mid -le $ac_hi; then
2061 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 # Binary search between lo and hi bounds.
2072 while test "x$ac_lo" != "x$ac_hi"; do
2073 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 if ac_fn_c_try_compile "$LINENO"; then :
2090 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2102 static long int longval () { return $2; }
2103 static unsigned long int ulongval () { return $2; }
2110 FILE *f = fopen ("conftest.val", "w");
2115 long int i = longval ();
2118 fprintf (f, "%ld", i);
2122 unsigned long int i = ulongval ();
2125 fprintf (f, "%lu", i);
2127 /* Do not output a trailing newline, as this causes \r\n confusion
2128 on some platforms. */
2129 return ferror (f) || fclose (f) != 0;
2135 if ac_fn_c_try_run "$LINENO"; then :
2136 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2141 conftest.$ac_objext conftest.beam conftest.$ac_ext
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_c_compute_int
2150 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151 # ----------------------------------------------------
2152 # Tries to find if the field MEMBER exists in type AGGR, after including
2153 # INCLUDES, setting cache variable VAR accordingly.
2154 ac_fn_c_check_member ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158 $as_echo_n "checking for $2.$3... " >&6; }
2159 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2160 $as_echo_n "(cached) " >&6
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2175 if ac_fn_c_try_compile "$LINENO"; then :
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2185 if (sizeof ac_aggr.$3)
2191 if ac_fn_c_try_compile "$LINENO"; then :
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 } # ac_fn_c_check_member
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR
2208 # ------------------------------------
2209 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2210 ac_fn_c_check_decl ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2214 $as_echo_n "checking whether $2 is declared... " >&6; }
2215 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2232 if ac_fn_c_try_compile "$LINENO"; then :
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_check_decl
2245 cat >config.log <<_ACEOF
2246 This file contains any messages produced by compilers while
2247 running configure, to aid debugging if configure makes a mistake.
2249 It was created by $as_me, which was
2250 generated by GNU Autoconf 2.65. Invocation command line was
2262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 $as_echo "PATH: $as_dir"
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_must_keep_next=false
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339 -* ) ac_must_keep_next=true ;;
2342 as_fn_append ac_configure_args " '$ac_arg'"
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2361 ## ---------------- ##
2362 ## Cache variables. ##
2363 ## ---------------- ##
2366 # The following way of writing the cache mishandles newlines in values,
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 ## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -n "$ac_subst_files"; then
2416 ## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##
2421 for ac_var in $ac_subst_files
2423 eval ac_val=\$$ac_var
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -s confdefs.h; then
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2458 $as_echo "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2491 if test -n "$CONFIG_SITE"; then
2492 ac_site_file1=$CONFIG_SITE
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE && continue
2503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special files
2513 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2514 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 as_fn_append ac_header_list " stdlib.h"
2529 as_fn_append ac_header_list " unistd.h"
2530 as_fn_append ac_header_list " sys/param.h"
2531 # Check that the precious variables saved in the cache have kept the same
2533 ac_cache_corrupted=false
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 for ac_dir in config "$srcdir"/config; do
2602 for ac_t in install-sh install.sh shtool; do
2603 if test -f "$ac_dir/$ac_t"; then
2605 ac_install_sh="$ac_aux_dir/$ac_t -c"
2610 if test -z "$ac_aux_dir"; then
2611 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2626 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2627 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2628 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2630 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2631 MONTH=`echo $DATE | awk -F- '{print $2}'`
2632 YEAR=`echo $DATE | awk -F- '{print $3}'`
2634 if expr $YEAR ">" 1900 > /dev/null ; then
2635 E2FSPROGS_YEAR=$YEAR
2636 elif expr $YEAR ">" 90 >/dev/null ; then
2637 E2FSPROGS_YEAR=19$YEAR
2639 E2FSPROGS_YEAR=20$YEAR
2643 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2644 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2645 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2646 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2647 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2648 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2649 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2650 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2651 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2652 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2653 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2654 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2655 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2656 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2659 base_ver=`echo $E2FSPROGS_VERSION | \
2660 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2662 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2664 case $E2FSPROGS_VERSION in
2666 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2669 E2FSPROGS_PKGVER="$base_ver"
2673 unset DATE MONTH YEAR base_ver pre_vers date_spec
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2675 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2677 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2683 # Make sure we can run config.sub.
2684 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2685 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2688 $as_echo_n "checking build system type... " >&6; }
2689 if test "${ac_cv_build+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2692 ac_build_alias=$build_alias
2693 test "x$ac_build_alias" = x &&
2694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2695 test "x$ac_build_alias" = x &&
2696 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2697 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2698 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2702 $as_echo "$ac_cv_build" >&6; }
2703 case $ac_cv_build in
2705 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2708 ac_save_IFS=$IFS; IFS='-'
2714 # Remember, the first character of IFS is used to create $*,
2715 # except with old shells:
2718 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2722 $as_echo_n "checking host system type... " >&6; }
2723 if test "${ac_cv_host+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 if test "x$host_alias" = x; then
2727 ac_cv_host=$ac_cv_build
2729 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2730 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2735 $as_echo "$ac_cv_host" >&6; }
2738 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2741 ac_save_IFS=$IFS; IFS='-'
2747 # Remember, the first character of IFS is used to create $*,
2748 # except with old shells:
2751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760 if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_CC+set}" = set; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2799 if test -z "$ac_cv_prog_CC"; then
2801 # Extract the first word of "gcc", so it can be a program name with args.
2802 set dummy gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CC="gcc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829 if test -n "$ac_ct_CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831 $as_echo "$ac_ct_CC" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2837 if test "x$ac_ct_CC" = x; then
2840 case $cross_compiling:$ac_tool_warned in
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_CC+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}cc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2893 if test -z "$CC"; then
2894 # Extract the first word of "cc", so it can be a program name with args.
2895 set dummy cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then :
2899 $as_echo_n "(cached) " >&6
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2928 if test $# != 0; then
2929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2949 if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 for ac_prog in cl.exe
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2990 test -n "$CC" && break
2993 if test -z "$CC"; then
2995 for ac_prog in cl.exe
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="$ac_prog"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027 $as_echo "$ac_ct_CC" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3034 test -n "$ac_ct_CC" && break
3037 if test "x$ac_ct_CC" = x; then
3040 case $cross_compiling:$ac_tool_warned in
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error "no acceptable C compiler found in \$PATH
3056 See \`config.log' for more details." "$LINENO" 5; }
3058 # Provide some information about the compiler.
3059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3062 for ac_option in --version -v -V -qversion; do
3063 { { ac_try="$ac_compiler $ac_option >&5"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3072 if test -s conftest.err; then
3074 ... rest of stderr output deleted ...
3075 10q' conftest.err >conftest.er1
3076 cat conftest.er1 >&5
3078 rm -f conftest.er1 conftest.err
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3100 $as_echo_n "checking whether the C compiler works... " >&6; }
3101 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 # The possible output files:
3104 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3107 for ac_file in $ac_files
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3111 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116 if { { ac_try="$ac_link_default"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link_default") 2>&5
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3128 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3129 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3130 # so that the user can short-circuit this test for compilers unknown to
3132 for ac_file in $ac_files ''
3134 test -f "$ac_file" || continue
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3139 # We found the default executable, but exeext='' is most
3143 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147 # We set ac_cv_exeext here because the later test for it is not
3148 # safe: cross compilers may not add the suffix if given an `-o'
3149 # argument, so we may need to know it at that point already.
3150 # Even if this section looks crufty: it has the advantage of
3157 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162 if test -z "$ac_file"; then :
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 { as_fn_set_status 77
3171 as_fn_error "C compiler cannot create executables
3172 See \`config.log' for more details." "$LINENO" 5; }; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178 $as_echo_n "checking for C compiler default output file name... " >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180 $as_echo "$ac_file" >&6; }
3181 ac_exeext=$ac_cv_exeext
3183 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184 ac_clean_files=$ac_clean_files_save
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186 $as_echo_n "checking for suffix of executables... " >&6; }
3187 if { { ac_try="$ac_link"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." "$LINENO" 5; }
3217 rm -f conftest conftest$ac_cv_exeext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219 $as_echo "$ac_cv_exeext" >&6; }
3221 rm -f conftest.$ac_ext
3222 EXEEXT=$ac_cv_exeext
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3230 FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3237 ac_clean_files="$ac_clean_files conftest.out"
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241 $as_echo_n "checking whether we are cross compiling... " >&6; }
3242 if test "$cross_compiling" != yes; then
3243 { { ac_try="$ac_link"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link") 2>&5
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 if { ac_try='./conftest$ac_cv_exeext'
3255 { { case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_try") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; }; then
3267 if test "$cross_compiling" = maybe; then
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error "cannot run C compiled programs.
3273 If you meant to cross compile, use \`--host'.
3274 See \`config.log' for more details." "$LINENO" 5; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279 $as_echo "$cross_compiling" >&6; }
3281 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282 ac_clean_files=$ac_clean_files_save
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284 $as_echo_n "checking for suffix of object files... " >&6; }
3285 if test "${ac_cv_objext+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3299 rm -f conftest.o conftest.obj
3300 if { { ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_compile") 2>&5
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 for ac_file in conftest.o conftest.obj conftest.*; do
3312 test -f "$ac_file" || continue;
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "cannot compute suffix of object files: cannot compile
3326 See \`config.log' for more details." "$LINENO" 5; }
3328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331 $as_echo "$ac_cv_objext" >&6; }
3332 OBJEXT=$ac_cv_objext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3353 if ac_fn_c_try_compile "$LINENO"; then :
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364 if test $ac_compiler_gnu = yes; then
3369 ac_test_CFLAGS=${CFLAGS+set}
3370 ac_save_CFLAGS=$CFLAGS
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3373 if test "${ac_cv_prog_cc_g+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 ac_save_c_werror_flag=$ac_c_werror_flag
3377 ac_c_werror_flag=yes
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3391 if ac_fn_c_try_compile "$LINENO"; then :
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 if ac_fn_c_try_compile "$LINENO"; then :
3409 ac_c_werror_flag=$ac_save_c_werror_flag
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433 $as_echo "$ac_cv_prog_cc_g" >&6; }
3434 if test "$ac_test_CFLAGS" = set; then
3435 CFLAGS=$ac_save_CFLAGS
3436 elif test $ac_cv_prog_cc_g = yes; then
3437 if test "$GCC" = yes; then
3443 if test "$GCC" = yes; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3454 ac_cv_prog_cc_c89=no
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3476 s = g (p, va_arg (v,int));
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 CC="$ac_save_CC $ac_arg"
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_c89=$ac_arg
3516 rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 rm -f conftest.$ac_ext
3524 case "x$ac_cv_prog_cc_c89" in
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527 $as_echo "none needed" >&6; } ;;
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530 $as_echo "unsupported" >&6; } ;;
3532 CC="$CC $ac_cv_prog_cc_c89"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 ac_check_lib_save_LIBS=$LIBS
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3557 /* Override any GCC internal prototype to avoid an error.
3558 Use char because int might match the return type of a GCC
3559 builtin and then its argument prototype would still apply. */
3572 if ac_fn_c_try_link "$LINENO"; then :
3573 ac_cv_lib_dl_dlopen=yes
3575 ac_cv_lib_dl_dlopen=no
3577 rm -f core conftest.err conftest.$ac_objext \
3578 conftest$ac_exeext conftest.$ac_ext
3579 LIBS=$ac_check_lib_save_LIBS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3583 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3585 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3592 # Check whether --with-diet-libc was given.
3593 if test "${with_diet_libc+set}" = set; then :
3594 withval=$with_diet_libc; CC="diet cc -nostdinc"
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3597 $as_echo "CC=$CC" >&6; }
3600 # Check whether --with-cc was given.
3601 if test "${with_cc+set}" = set; then :
3602 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3606 # Check whether --with-ccopts was given.
3607 if test "${with_ccopts+set}" = set; then :
3608 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3612 # Check whether --with-ldopts was given.
3613 if test "${with_ldopts+set}" = set; then :
3614 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3661 if test -z "$ac_cv_prog_CC"; then
3663 # Extract the first word of "gcc", so it can be a program name with args.
3664 set dummy gcc; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_ac_ct_CC="gcc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691 if test -n "$ac_ct_CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693 $as_echo "$ac_ct_CC" >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3699 if test "x$ac_ct_CC" = x; then
3702 case $cross_compiling:$ac_tool_warned in
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706 ac_tool_warned=yes ;;
3714 if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}cc; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_CC+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_CC="${ac_tool_prefix}cc"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 if test -n "$CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3755 if test -z "$CC"; then
3756 # Extract the first word of "cc", so it can be a program name with args.
3757 set dummy cc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_CC+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3775 ac_prog_rejected=yes
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 if test $ac_prog_rejected = yes; then
3787 # We found a bogon in the path, so make sure we never use it.
3788 set dummy $ac_cv_prog_CC
3790 if test $# != 0; then
3791 # We chose a different compiler from the bogus one.
3792 # However, it has the same basename, so the bogon will be chosen
3793 # first if we set CC to just the basename; use the full file name.
3795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3801 if test -n "$CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803 $as_echo "$CC" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3811 if test -z "$CC"; then
3812 if test -n "$ac_tool_prefix"; then
3813 for ac_prog in cl.exe
3815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if test "${ac_cv_prog_CC+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 if test -n "$CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 $as_echo "$CC" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3852 test -n "$CC" && break
3855 if test -z "$CC"; then
3857 for ac_prog in cl.exe
3859 # Extract the first word of "$ac_prog", so it can be a program name with args.
3860 set dummy $ac_prog; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -n "$ac_ct_CC"; then
3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_ac_ct_CC="$ac_prog"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889 $as_echo "$ac_ct_CC" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3896 test -n "$ac_ct_CC" && break
3899 if test "x$ac_ct_CC" = x; then
3902 case $cross_compiling:$ac_tool_warned in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error "no acceptable C compiler found in \$PATH
3918 See \`config.log' for more details." "$LINENO" 5; }
3920 # Provide some information about the compiler.
3921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3924 for ac_option in --version -v -V -qversion; do
3925 { { ac_try="$ac_compiler $ac_option >&5"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3934 if test -s conftest.err; then
3936 ... rest of stderr output deleted ...
3937 10q' conftest.err >conftest.er1
3938 cat conftest.er1 >&5
3940 rm -f conftest.er1 conftest.err
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3947 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3974 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3975 if test $ac_compiler_gnu = yes; then
3980 ac_test_CFLAGS=${CFLAGS+set}
3981 ac_save_CFLAGS=$CFLAGS
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3983 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3984 if test "${ac_cv_prog_cc_g+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3987 ac_save_c_werror_flag=$ac_c_werror_flag
3988 ac_c_werror_flag=yes
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4002 if ac_fn_c_try_compile "$LINENO"; then :
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4017 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_c_werror_flag=$ac_save_c_werror_flag
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 if ac_fn_c_try_compile "$LINENO"; then :
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4044 $as_echo "$ac_cv_prog_cc_g" >&6; }
4045 if test "$ac_test_CFLAGS" = set; then
4046 CFLAGS=$ac_save_CFLAGS
4047 elif test $ac_cv_prog_cc_g = yes; then
4048 if test "$GCC" = yes; then
4054 if test "$GCC" = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 ac_cv_prog_cc_c89=no
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 #include <sys/types.h>
4072 #include <sys/stat.h>
4073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4074 struct buf { int x; };
4075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4076 static char *e (p, i)
4082 static char *f (char * (*g) (char **, int), char **p, ...)
4087 s = g (p, va_arg (v,int));
4092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4093 function prototypes and stuff, but not '\xHH' hex character constants.
4094 These don't provoke an error unfortunately, instead are silently treated
4095 as 'x'. The following induces an error, until -std is added to get
4096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4097 array size at least. It's necessary to write '\x00'==0 to get something
4098 that's true only with -std. */
4099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4101 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4102 inside strings and character constants. */
4104 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4106 int test (int i, double x);
4107 struct s1 {int (*f) (int a);};
4108 struct s2 {int (*f) (double a);};
4109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4120 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4123 CC="$ac_save_CC $ac_arg"
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_c89=$ac_arg
4127 rm -f core conftest.err conftest.$ac_objext
4128 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 rm -f conftest.$ac_ext
4135 case "x$ac_cv_prog_cc_c89" in
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138 $as_echo "none needed" >&6; } ;;
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141 $as_echo "unsupported" >&6; } ;;
4143 CC="$CC $ac_cv_prog_cc_c89"
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4145 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147 if test "x$ac_cv_prog_cc_c89" != xno; then :
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4163 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4168 if test -z "$CPP"; then
4169 if test "${ac_cv_prog_CPP+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4172 # Double quotes because CPP needs to be expanded
4173 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176 for ac_c_preproc_warn_flag in '' yes
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4196 # Broken: fails on valid input.
4199 rm -f conftest.err conftest.$ac_ext
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4211 # Passes both tests.
4215 rm -f conftest.err conftest.$ac_ext
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4233 $as_echo "$CPP" >&6; }
4235 for ac_c_preproc_warn_flag in '' yes
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4246 # include <limits.h>
4248 # include <assert.h>
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4255 # Broken: fails on valid input.
4258 rm -f conftest.err conftest.$ac_ext
4260 # OK, works on sane cases. Now check whether nonexistent headers
4261 # can be detected and how.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267 # Broken: success on invalid input.
4270 # Passes both tests.
4274 rm -f conftest.err conftest.$ac_ext
4277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4278 rm -f conftest.err conftest.$ac_ext
4279 if $ac_preproc_ok; then :
4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details." "$LINENO" 5; }
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4296 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4297 if test "${ac_cv_path_GREP+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -z "$GREP"; then
4301 ac_path_GREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in grep ggrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4312 # Check for GNU ac_path_GREP and select it if it is found.
4313 # Check for GNU $ac_path_GREP
4314 case `"$ac_path_GREP" --version 2>&1` in
4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4319 $as_echo_n 0123456789 >"conftest.in"
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'GREP' >> "conftest.nl"
4326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_GREP="$ac_path_GREP"
4332 ac_path_GREP_max=$ac_count
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 $ac_path_GREP_found && break 3
4345 if test -z "$ac_cv_path_GREP"; then
4346 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 ac_cv_path_GREP=$GREP
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4385 $as_echo_n 0123456789 >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4406 $ac_path_EGREP_found && break 3
4411 if test -z "$ac_cv_path_EGREP"; then
4412 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4415 ac_cv_path_EGREP=$EGREP
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4421 $as_echo "$ac_cv_path_EGREP" >&6; }
4422 EGREP="$ac_cv_path_EGREP"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4426 $as_echo_n "checking for ANSI C header files... " >&6; }
4427 if test "${ac_cv_header_stdc+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446 ac_cv_header_stdc=yes
4448 ac_cv_header_stdc=no
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 if test $ac_cv_header_stdc = yes; then
4453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "memchr" >/dev/null 2>&1; then :
4463 ac_cv_header_stdc=no
4469 if test $ac_cv_header_stdc = yes; then
4470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477 $EGREP "free" >/dev/null 2>&1; then :
4480 ac_cv_header_stdc=no
4486 if test $ac_cv_header_stdc = yes; then
4487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4488 if test "$cross_compiling" = yes; then :
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 #if ((' ' & 0x0FF) == 0x020)
4496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4499 # define ISLOWER(c) \
4500 (('a' <= (c) && (c) <= 'i') \
4501 || ('j' <= (c) && (c) <= 'r') \
4502 || ('s' <= (c) && (c) <= 'z'))
4503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4511 for (i = 0; i < 256; i++)
4512 if (XOR (islower (i), ISLOWER (i))
4513 || toupper (i) != TOUPPER (i))
4518 if ac_fn_c_try_run "$LINENO"; then :
4521 ac_cv_header_stdc=no
4523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524 conftest.$ac_objext conftest.beam conftest.$ac_ext
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4530 $as_echo "$ac_cv_header_stdc" >&6; }
4531 if test $ac_cv_header_stdc = yes; then
4533 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4539 inttypes.h stdint.h unistd.h
4541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4544 eval as_val=\$$as_ac_Header
4545 if test "x$as_val" = x""yes; then :
4546 cat >>confdefs.h <<_ACEOF
4547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4556 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4563 if test "$linux_headers" != yes; then
4564 LINUX_INCLUDE='-I$(top_builddir)/include'
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4568 $as_echo_n "checking for additional special compiler flags... " >&6; }
4569 if test "$GCC" = yes
4572 alpha) addcflags="-mieee" ;;
4575 if test "x$addcflags" != x
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4578 $as_echo "$addcflags" >&6; }
4579 CFLAGS="$addcflags $CFLAGS"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4582 $as_echo "(none)" >&6; }
4588 # Check whether --with-root-prefix was given.
4589 if test "${with_root_prefix+set}" = set; then :
4590 withval=$with_root_prefix; root_prefix=$withval
4594 # Check whether --enable-maintainer-mode was given.
4595 if test "${enable_maintainer_mode+set}" = set; then :
4596 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4600 $as_echo "Disabling maintainer mode" >&6; }
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4604 $as_echo "Enabling maintainer mode" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4610 $as_echo "Disabling maintainer mode by default" >&6; }
4615 # Check whether --enable-symlink-install was given.
4616 if test "${enable_symlink_install+set}" = set; then :
4617 enableval=$enable_symlink_install; if test "$enableval" = "no"
4619 LINK_INSTALL_FLAGS=-f
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4621 $as_echo "Disabling symlinks for install" >&6; }
4623 LINK_INSTALL_FLAGS=-sf
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4625 $as_echo "Enabling symlinks for install" >&6; }
4629 LINK_INSTALL_FLAGS=-f
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4631 $as_echo "Disabling symlinks for install" >&6; }
4636 # Check whether --enable-symlink-build was given.
4637 if test "${enable_symlink_build+set}" = set; then :
4638 enableval=$enable_symlink_build; if test "$enableval" = "no"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4642 $as_echo "Disabling symlinks for build" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4646 $as_echo "Enabling symlinks for build" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4652 $as_echo "Disabling symlinks for build" >&6; }
4657 # Check whether --enable-verbose-makecmds was given.
4658 if test "${enable_verbose_makecmds+set}" = set; then :
4659 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4662 $as_echo "Disabling verbose make commands" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4667 $as_echo "Enabling verbose make commands" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4674 $as_echo "Disabling verbose make commands" >&6; }
4682 # Check whether --enable-compression was given.
4683 if test "${enable_compression+set}" = set; then :
4684 enableval=$enable_compression; if test "$enableval" = "no"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4687 $as_echo "Disabling compression support" >&6; }
4689 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4692 $as_echo "Enabling compression support" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4694 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4699 $as_echo "Disabling compression support by default" >&6; }
4703 # Check whether --enable-htree was given.
4704 if test "${enable_htree+set}" = set; then :
4705 enableval=$enable_htree; if test "$enableval" = "no"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4709 $as_echo "Disabling htree directory support" >&6; }
4712 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4715 $as_echo "Enabling htree directory support" >&6; }
4720 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4723 $as_echo "Enabling htree directory support by default" >&6; }
4728 E2_PKG_CONFIG_STATIC=--static
4731 # Check whether --enable-elf-shlibs was given.
4732 if test "${enable_elf_shlibs+set}" = set; then :
4733 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4736 MAKEFILE_ELF=/dev/null
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4738 $as_echo "Disabling ELF shared libraries" >&6; }
4740 E2_PKG_CONFIG_STATIC=
4742 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4745 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4751 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4753 $as_echo "Enabling ELF shared libraries" >&6; }
4757 MAKEFILE_ELF=/dev/null
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4760 $as_echo "Disabling ELF shared libraries by default" >&6; }
4766 # Check whether --enable-bsd-shlibs was given.
4767 if test "${enable_bsd_shlibs+set}" = set; then :
4768 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4771 MAKEFILE_BSDLIB=/dev/null
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4773 $as_echo "Disabling BSD shared libraries" >&6; }
4775 E2_PKG_CONFIG_STATIC=
4777 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4781 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4786 $as_echo "Enabling BSD shared libraries" >&6; }
4790 MAKEFILE_BSDLIB=/dev/null
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4793 $as_echo "Disabling BSD shared libraries by default" >&6; }
4799 # Check whether --enable-profile was given.
4800 if test "${enable_profile+set}" = set; then :
4801 enableval=$enable_profile; if test "$enableval" = "no"
4804 MAKEFILE_PROFILE=/dev/null
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4806 $as_echo "Disabling profiling libraries" >&6; }
4809 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4810 PROFILED_LIB_EXT=_p.a
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4812 $as_echo "Building profiling libraries" >&6; }
4817 MAKEFILE_PROFILE=/dev/null
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4819 $as_echo "Disabling profiling libraries by default" >&6; }
4825 # Check whether --enable-checker was given.
4826 if test "${enable_checker+set}" = set; then :
4827 enableval=$enable_checker; if test "$enableval" = "no"
4830 MAKEFILE_CHECKER=/dev/null
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4832 $as_echo "Disabling checker libraries" >&6; }
4835 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4837 $as_echo "Building checker libraries" >&6; }
4842 MAKEFILE_CHECKER=/dev/null
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4844 $as_echo "Disabling checker libraries by default" >&6; }
4855 # Check whether --enable-jbd-debug was given.
4856 if test "${enable_jbd_debug+set}" = set; then :
4857 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4860 $as_echo "Disabling journal debugging" >&6; }
4862 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4865 $as_echo "Enabling journal debugging" >&6; }
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4870 $as_echo "Disabling journal debugging by default" >&6; }
4874 # Check whether --enable-blkid-debug was given.
4875 if test "${enable_blkid_debug+set}" = set; then :
4876 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4879 $as_echo "Disabling blkid debugging" >&6; }
4881 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4884 $as_echo "Enabling blkid debugging" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4889 $as_echo "Disabling blkid debugging by default" >&6; }
4893 # Check whether --enable-testio-debug was given.
4894 if test "${enable_testio_debug+set}" = set; then :
4895 enableval=$enable_testio_debug; if test "$enableval" = "no"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4898 $as_echo "Disabling testio debugging" >&6; }
4902 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4905 $as_echo "Enabling testio debugging" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4910 $as_echo "Enabling testio debugging by default" >&6; }
4911 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4921 if test -n "$ac_tool_prefix"; then
4922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4953 if test -n "$PKG_CONFIG"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4955 $as_echo "$PKG_CONFIG" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4963 if test -z "$ac_cv_path_PKG_CONFIG"; then
4964 ac_pt_PKG_CONFIG=$PKG_CONFIG
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966 set dummy pkg-config; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4972 case $ac_pt_PKG_CONFIG in
4974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4996 if test -n "$ac_pt_PKG_CONFIG"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4998 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5004 if test "x$ac_pt_PKG_CONFIG" = x; then
5007 case $cross_compiling:$ac_tool_warned in
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5013 PKG_CONFIG=$ac_pt_PKG_CONFIG
5016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5020 if test -n "$PKG_CONFIG"; then
5021 _pkg_min_version=0.9.0
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5039 DEPPROFILED_LIBUUID=
5041 # Check whether --enable-libuuid was given.
5042 if test "${enable_libuuid+set}" = set; then :
5043 enableval=$enable_libuuid; if test "$enableval" = "no"
5045 if test -z "$PKG_CONFIG"; then
5046 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5050 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5051 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 ac_check_lib_save_LIBS=$LIBS
5055 LIBS="-luuid $LIBUUID $LIBS"
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5059 /* Override any GCC internal prototype to avoid an error.
5060 Use char because int might match the return type of a GCC
5061 builtin and then its argument prototype would still apply. */
5065 char uuid_generate ();
5069 return uuid_generate ();
5074 if ac_fn_c_try_link "$LINENO"; then :
5075 ac_cv_lib_uuid_uuid_generate=yes
5077 ac_cv_lib_uuid_uuid_generate=no
5079 rm -f core conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5084 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5085 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5086 LIBUUID=`$PKG_CONFIG --libs uuid`;
5087 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5089 as_fn_error "external uuid library not found" "$LINENO" 5
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5094 $as_echo "Disabling private uuid library" >&6; }
5096 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5098 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5099 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5100 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5101 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5103 $as_echo "Enabling private uuid library" >&6; }
5107 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5109 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5110 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5111 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5112 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5114 $as_echo "Enabling private uuid library by default" >&6; }
5127 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5138 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5160 if test -n "$PKG_CONFIG"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5162 $as_echo "$PKG_CONFIG" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$ac_cv_path_PKG_CONFIG"; then
5171 ac_pt_PKG_CONFIG=$PKG_CONFIG
5172 # Extract the first word of "pkg-config", so it can be a program name with args.
5173 set dummy pkg-config; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 case $ac_pt_PKG_CONFIG in
5181 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5203 if test -n "$ac_pt_PKG_CONFIG"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5205 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5211 if test "x$ac_pt_PKG_CONFIG" = x; then
5214 case $cross_compiling:$ac_tool_warned in
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5220 PKG_CONFIG=$ac_pt_PKG_CONFIG
5223 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5227 if test -n "$PKG_CONFIG"; then
5228 _pkg_min_version=0.9.0
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5230 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5231 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 $as_echo "yes" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5246 DEPPROFILED_LIBBLKID=
5248 # Check whether --enable-libblkid was given.
5249 if test "${enable_libblkid+set}" = set; then :
5250 enableval=$enable_libblkid; if test "$enableval" = "no"
5252 if test -z "$PKG_CONFIG"; then
5253 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5257 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5258 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5261 ac_check_lib_save_LIBS=$LIBS
5262 LIBS="-lblkid $LIBBLKID $LIBS"
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 /* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply. */
5272 char blkid_get_cache ();
5276 return blkid_get_cache ();
5281 if ac_fn_c_try_link "$LINENO"; then :
5282 ac_cv_lib_blkid_blkid_get_cache=yes
5284 ac_cv_lib_blkid_blkid_get_cache=no
5286 rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5291 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5292 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5293 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5294 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5296 as_fn_error "external blkid library not found" "$LINENO" 5
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5301 $as_echo "Disabling private blkid library" >&6; }
5303 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5304 DEPLIBBLKID=$LIBBLKID
5305 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5306 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5307 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5308 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5309 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5312 $as_echo "Enabling private blkid library" >&6; }
5316 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5317 DEPLIBBLKID=$LIBBLKID
5318 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5319 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5320 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5321 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5322 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5325 $as_echo "Enabling private blkid library by default" >&6; }
5336 # Check whether --enable-debugfs was given.
5337 if test "${enable_debugfs+set}" = set; then :
5338 enableval=$enable_debugfs; if test "$enableval" = "no"
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5341 $as_echo "Disabling debugfs support" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5346 $as_echo "Enabling debugfs support" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5351 $as_echo "Enabling debugfs support by default" >&6; }
5357 # Check whether --enable-imager was given.
5358 if test "${enable_imager+set}" = set; then :
5359 enableval=$enable_imager; if test "$enableval" = "no"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5362 $as_echo "Disabling e2image support" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5367 $as_echo "Enabling e2image support" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5372 $as_echo "Enabling e2image support by default" >&6; }
5378 # Check whether --enable-resizer was given.
5379 if test "${enable_resizer+set}" = set; then :
5380 enableval=$enable_resizer; if test "$enableval" = "no"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5383 $as_echo "Disabling e2resize support" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5388 $as_echo "Enabling e2resize support" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5393 $as_echo "Enabling e2resize support by default" >&6; }
5399 # Check whether --enable-fsck was given.
5400 if test "${enable_fsck+set}" = set; then :
5401 enableval=$enable_fsck; if test "$enableval" = "no"
5403 FSCK_PROG='' FSCK_MAN=''
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5405 $as_echo "Not building fsck wrapper" >&6; }
5407 FSCK_PROG=fsck FSCK_MAN=fsck.8
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5409 $as_echo "Building fsck wrapper" >&6; }
5415 FSCK_PROG='' FSCK_MAN=''
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5417 $as_echo "Not building fsck wrapper by default" >&6; }
5420 FSCK_PROG=fsck FSCK_MAN=fsck.8
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5422 $as_echo "Building fsck wrapper by default" >&6; }
5429 # Check whether --enable-e2initrd-helper was given.
5430 if test "${enable_e2initrd_helper+set}" = set; then :
5431 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5433 E2INITRD_PROG='' E2INITRD_MAN=''
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5435 $as_echo "Not building e2initrd helper" >&6; }
5437 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5439 $as_echo "Building e2initrd helper" >&6; }
5443 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5445 $as_echo "Building e2initrd helper by default" >&6; }
5451 # Check whether --enable-tls was given.
5452 if test "${enable_tls+set}" = set; then :
5453 enableval=$enable_tls; if test "$enableval" = "no"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5457 $as_echo "Disabling thread local support" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5461 $as_echo "Enabling thread local support" >&6; }
5465 if test -n "$WITH_DIET_LIBC"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5469 $as_echo "Diet libc does not support thread local support" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5473 $as_echo "Try using thread local support by default" >&6; }
5478 if test "$try_tls" = "yes"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5482 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5483 if test "${ac_cv_tls+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5487 ax_tls_keywords="__thread __declspec(thread) none"
5488 for ax_tls_keyword in $ax_tls_keywords; do
5489 case $ax_tls_keyword in
5490 none) ac_cv_tls=none ; break ;;
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5497 static $ax_tls_keyword int bar;
5508 if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_tls=$ax_tls_keyword ; break
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 if test "$ac_cv_tls" != "none"; then
5523 cat >>confdefs.h <<_ACEOF
5524 #define TLS $ac_cv_tls
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5529 $as_echo "$ac_cv_tls" >&6; }
5532 # Check whether --enable-uuidd was given.
5533 if test "${enable_uuidd+set}" = set; then :
5534 enableval=$enable_uuidd; if test "$enableval" = "no"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5537 $as_echo "Not building uuidd" >&6; }
5540 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5544 $as_echo "Building uuidd" >&6; }
5548 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5552 $as_echo "Building uuidd by default" >&6; }
5557 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5559 GETTEXT_PACKAGE=e2fsprogs
5561 VERSION="$E2FSPROGS_VERSION"
5563 cat >>confdefs.h <<_ACEOF
5564 #define PACKAGE "$PACKAGE"
5567 cat >>confdefs.h <<_ACEOF
5568 #define VERSION "$VERSION"
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5576 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5578 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5579 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5580 $as_echo_n "(cached) " >&6
5582 cat >conftest.make <<\_ACEOF
5585 @echo '@@@%%%=$(MAKE)=@@@%%%'
5587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5588 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5590 eval ac_cv_prog_make_${ac_make}_set=yes;;
5592 eval ac_cv_prog_make_${ac_make}_set=no;;
5596 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 SET_MAKE="MAKE=${MAKE-make}"
5606 # Find a good install program. We prefer a C program (faster),
5607 # so one script is as good as another. But avoid the broken or
5608 # incompatible versions:
5609 # SysV /etc/install, /usr/sbin/install
5610 # SunOS /usr/etc/install
5611 # IRIX /sbin/install
5613 # AmigaOS /C/install, which installs bootblocks on floppy discs
5614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5617 # OS/2's system install, which has a completely different semantic
5618 # ./install, which can be erroneously created by make from ./install.sh.
5619 # Reject install programs that cannot install multiple files.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5622 if test -z "$INSTALL"; then
5623 if test "${ac_cv_path_install+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 # Account for people who put trailing slashes in PATH elements.
5632 case $as_dir/ in #((
5633 ./ | .// | /[cC]/* | \
5634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5635 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5638 # OSF1 and SCO ODT 3.0 have their own names for install.
5639 # Don't use installbsd from OSF since it installs stuff as root
5641 for ac_prog in ginstall scoinst install; do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5644 if test $ac_prog = install &&
5645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5646 # AIX install. It has an incompatible calling convention.
5648 elif test $ac_prog = install &&
5649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5650 # program-specific install script used by HP pwplus--don't use.
5653 rm -rf conftest.one conftest.two conftest.dir
5654 echo one > conftest.one
5655 echo two > conftest.two
5657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5658 test -s conftest.one && test -s conftest.two &&
5659 test -s conftest.dir/conftest.one &&
5660 test -s conftest.dir/conftest.two
5662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5675 rm -rf conftest.one conftest.two conftest.dir
5678 if test "${ac_cv_path_install+set}" = set; then
5679 INSTALL=$ac_cv_path_install
5681 # As a last resort, use the slow shell script. Don't cache a
5682 # value for INSTALL within a source directory, because that will
5683 # break other packages using the cache if that directory is
5684 # removed, or if the value is a relative name.
5685 INSTALL=$ac_install_sh
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5689 $as_echo "$INSTALL" >&6; }
5691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5692 # It thinks the first close brace ends the variable substitution.
5693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5701 if test -n "$ac_aux_dir"; then
5702 case "$ac_aux_dir" in
5703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5707 if test -z "$MKINSTALLDIRS"; then
5708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5714 $as_echo_n "checking whether NLS is requested... " >&6; }
5715 # Check whether --enable-nls was given.
5716 if test "${enable_nls+set}" = set; then :
5717 enableval=$enable_nls; USE_NLS=$enableval
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5723 $as_echo "$USE_NLS" >&6; }
5730 # Prepare PATH_SEPARATOR.
5731 # The user is always right.
5732 if test "${PATH_SEPARATOR+set}" != set; then
5733 echo "#! /bin/sh" >conf$$.sh
5734 echo "exit 0" >>conf$$.sh
5736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5744 # Find out how to test for executable files. Don't use a zero-byte file,
5745 # as systems may use methods other than mode bits to determine executability.
5746 cat >conf$$.file <<_ASEOF
5750 chmod +x conf$$.file
5751 if test -x conf$$.file >/dev/null 2>&1; then
5752 ac_executable_p="test -x"
5754 ac_executable_p="test -f"
5758 # Extract the first word of "msgfmt", so it can be a program name with args.
5759 set dummy msgfmt; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH; do
5773 test -z "$ac_dir" && ac_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5789 MSGFMT="$ac_cv_path_MSGFMT"
5790 if test "$MSGFMT" != ":"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5792 $as_echo "$MSGFMT" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5799 set dummy gmsgfmt; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5829 GMSGFMT=$ac_cv_path_GMSGFMT
5830 if test -n "$GMSGFMT"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5832 $as_echo "$GMSGFMT" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5841 # Prepare PATH_SEPARATOR.
5842 # The user is always right.
5843 if test "${PATH_SEPARATOR+set}" != set; then
5844 echo "#! /bin/sh" >conf$$.sh
5845 echo "exit 0" >>conf$$.sh
5847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5855 # Find out how to test for executable files. Don't use a zero-byte file,
5856 # as systems may use methods other than mode bits to determine executability.
5857 cat >conf$$.file <<_ASEOF
5861 chmod +x conf$$.file
5862 if test -x conf$$.file >/dev/null 2>&1; then
5863 ac_executable_p="test -x"
5865 ac_executable_p="test -f"
5869 # Extract the first word of "xgettext", so it can be a program name with args.
5870 set dummy xgettext; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5878 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882 for ac_dir in $PATH; do
5884 test -z "$ac_dir" && ac_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5888 (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
5889 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5900 XGETTEXT="$ac_cv_path_XGETTEXT"
5901 if test "$XGETTEXT" != ":"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5903 $as_echo "$XGETTEXT" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5912 # Prepare PATH_SEPARATOR.
5913 # The user is always right.
5914 if test "${PATH_SEPARATOR+set}" != set; then
5915 echo "#! /bin/sh" >conf$$.sh
5916 echo "exit 0" >>conf$$.sh
5918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5926 # Find out how to test for executable files. Don't use a zero-byte file,
5927 # as systems may use methods other than mode bits to determine executability.
5928 cat >conf$$.file <<_ASEOF
5932 chmod +x conf$$.file
5933 if test -x conf$$.file >/dev/null 2>&1; then
5934 ac_executable_p="test -x"
5936 ac_executable_p="test -f"
5940 # Extract the first word of "msgmerge", so it can be a program name with args.
5941 set dummy msgmerge; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5949 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5953 for ac_dir in $PATH; do
5955 test -z "$ac_dir" && ac_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5958 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5959 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5966 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5970 MSGMERGE="$ac_cv_path_MSGMERGE"
5971 if test "$MSGMERGE" != ":"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5973 $as_echo "$MSGMERGE" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5980 if test "$GMSGFMT" != ":"; then
5981 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5982 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5985 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5987 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5992 if test "$XGETTEXT" != ":"; then
5993 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5994 (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
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5998 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6004 ac_config_commands="$ac_config_commands default-1"
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6015 if test -n "$RANLIB"; then
6016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 RANLIB=$ac_cv_prog_RANLIB
6036 if test -n "$RANLIB"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6038 $as_echo "$RANLIB" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6046 if test -z "$ac_cv_prog_RANLIB"; then
6047 ac_ct_RANLIB=$RANLIB
6048 # Extract the first word of "ranlib", so it can be a program name with args.
6049 set dummy ranlib; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$ac_ct_RANLIB"; then
6056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_ac_ct_RANLIB="ranlib"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6076 if test -n "$ac_ct_RANLIB"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6078 $as_echo "$ac_ct_RANLIB" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6084 if test "x$ac_ct_RANLIB" = x; then
6087 case $cross_compiling:$ac_tool_warned in
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6093 RANLIB=$ac_ct_RANLIB
6096 RANLIB="$ac_cv_prog_RANLIB"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6101 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6102 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6105 ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lcposix $LIBS"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6110 /* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_lib_cposix_strerror=yes
6128 ac_cv_lib_cposix_strerror=no
6130 rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6135 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6136 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6137 LIBS="$LIBS -lcposix"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6143 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6144 if test "${ac_cv_c_const+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6153 /* FIXME: Include the comments suggested by Paul. */
6155 /* Ultrix mips cc rejects this. */
6156 typedef int charset[2];
6158 /* SunOS 4.1.1 cc rejects this. */
6159 char const *const *pcpcc;
6161 /* NEC SVR4.0.2 mips cc rejects this. */
6162 struct point {int x, y;};
6163 static struct point const zero = {0,0};
6164 /* AIX XL C 1.02.0.0 rejects this.
6165 It does not let you subtract one const X* pointer from another in
6166 an arm of an if-expression whose if-part is not a constant
6168 const char *g = "string";
6169 pcpcc = &g + (g ? g-g : 0);
6170 /* HPUX 7.0 cc rejects these. */
6172 ppc = (char**) pcpcc;
6173 pcpcc = (char const *const *) ppc;
6174 { /* SCO 3.2v4 cc rejects this. */
6176 char const *s = 0 ? (char *) 0 : (char const *) 0;
6181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6183 const int *foo = &x[0];
6186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6187 typedef const int *iptr;
6191 { /* AIX XL C 1.02.0.0 rejects this saying
6192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6193 struct s { int j; const int *ap[3]; };
6194 struct s *b; b->j = 5;
6196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6200 return !cs[0] && !zero.x;
6207 if ac_fn_c_try_compile "$LINENO"; then :
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6215 $as_echo "$ac_cv_c_const" >&6; }
6216 if test $ac_cv_c_const = no; then
6218 $as_echo "#define const /**/" >>confdefs.h
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6224 $as_echo_n "checking for signed... " >&6; }
6225 if test "${bh_cv_c_signed+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6239 if ac_fn_c_try_compile "$LINENO"; then :
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6247 $as_echo "$bh_cv_c_signed" >&6; }
6248 if test $bh_cv_c_signed = no; then
6250 $as_echo "#define signed /**/" >>confdefs.h
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6255 $as_echo_n "checking for inline... " >&6; }
6256 if test "${ac_cv_c_inline+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6260 for ac_kw in inline __inline__ __inline; do
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6265 static $ac_kw foo_t static_foo () {return 0; }
6266 $ac_kw foo_t foo () {return 0; }
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_c_inline=$ac_kw
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 test "$ac_cv_c_inline" != no && break
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6279 $as_echo "$ac_cv_c_inline" >&6; }
6281 case $ac_cv_c_inline in
6284 case $ac_cv_c_inline in
6286 *) ac_val=$ac_cv_c_inline;;
6288 cat >>confdefs.h <<_ACEOF
6290 #define inline $ac_val
6296 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6297 if test "x$ac_cv_type_off_t" = x""yes; then :
6301 cat >>confdefs.h <<_ACEOF
6302 #define off_t long int
6307 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6308 if test "x$ac_cv_type_size_t" = x""yes; then :
6312 cat >>confdefs.h <<_ACEOF
6313 #define size_t unsigned int
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6320 $as_echo_n "checking for long long... " >&6; }
6321 if test "${ac_cv_type_long_long+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 long long ll = 1LL; int i = 63;
6330 long long llmax = (long long) -1;
6331 return ll << i | ll >> i | llmax / ll | llmax % ll;
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 ac_cv_type_long_long=yes
6339 ac_cv_type_long_long=no
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6345 $as_echo "$ac_cv_type_long_long" >&6; }
6346 if test $ac_cv_type_long_long = yes; then
6348 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6354 $as_echo_n "checking for long double... " >&6; }
6355 if test "${gt_cv_c_long_double+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6358 if test "$GCC" = yes; then
6359 gt_cv_c_long_double=yes
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6364 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6365 long double foo = 0.0;
6366 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6367 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 gt_cv_c_long_double=yes
6380 gt_cv_c_long_double=no
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6386 $as_echo "$gt_cv_c_long_double" >&6; }
6387 if test $gt_cv_c_long_double = yes; then
6389 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6395 $as_echo_n "checking for wchar_t... " >&6; }
6396 if test "${gt_cv_c_wchar_t+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6402 wchar_t foo = (wchar_t)'\0';
6411 if ac_fn_c_try_compile "$LINENO"; then :
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6419 $as_echo "$gt_cv_c_wchar_t" >&6; }
6420 if test $gt_cv_c_wchar_t = yes; then
6422 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6428 $as_echo_n "checking for wint_t... " >&6; }
6429 if test "${gt_cv_c_wint_t+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6435 wint_t foo = (wchar_t)'\0';
6444 if ac_fn_c_try_compile "$LINENO"; then :
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6452 $as_echo "$gt_cv_c_wint_t" >&6; }
6453 if test $gt_cv_c_wint_t = yes; then
6455 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6461 $as_echo_n "checking for inttypes.h... " >&6; }
6462 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6463 $as_echo_n "(cached) " >&6
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6468 #include <inttypes.h>
6472 uintmax_t i = (uintmax_t) -1;
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 jm_ac_cv_header_inttypes_h=yes
6480 jm_ac_cv_header_inttypes_h=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6485 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6486 if test $jm_ac_cv_header_inttypes_h = yes; then
6488 cat >>confdefs.h <<_ACEOF
6489 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6496 $as_echo_n "checking for stdint.h... " >&6; }
6497 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6507 uintmax_t i = (uintmax_t) -1;
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 jm_ac_cv_header_stdint_h=yes
6515 jm_ac_cv_header_stdint_h=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6520 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6521 if test $jm_ac_cv_header_stdint_h = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_STDINT_H_WITH_UINTMAX 1
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6533 $as_echo_n "checking for intmax_t... " >&6; }
6534 if test "${gt_cv_c_intmax_t+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6542 #if HAVE_STDINT_H_WITH_UINTMAX
6545 #if HAVE_INTTYPES_H_WITH_UINTMAX
6546 #include <inttypes.h>
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 gt_cv_c_intmax_t=yes
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6565 $as_echo "$gt_cv_c_intmax_t" >&6; }
6566 if test $gt_cv_c_intmax_t = yes; then
6568 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6575 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6576 if test "${gt_cv_func_printf_posix+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6580 if test "$cross_compiling" = yes; then :
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6585 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "notposix" >/dev/null 2>&1; then :
6592 gt_cv_func_printf_posix="guessing no"
6594 gt_cv_func_printf_posix="guessing yes"
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6605 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6606 dollar expansion (possibly an autoconf bug). */
6607 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6608 static char buf[100];
6611 sprintf (buf, format, 33, 55);
6612 return (strcmp (buf, "55 33") != 0);
6615 if ac_fn_c_try_run "$LINENO"; then :
6616 gt_cv_func_printf_posix=yes
6618 gt_cv_func_printf_posix=no
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621 conftest.$ac_objext conftest.beam conftest.$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6627 $as_echo "$gt_cv_func_printf_posix" >&6; }
6628 case $gt_cv_func_printf_posix in
6631 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6637 # for constant arguments. Useless!
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6639 $as_echo_n "checking for working alloca.h... " >&6; }
6640 if test "${ac_cv_working_alloca_h+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6649 char *p = (char *) alloca (2 * sizeof (int));
6655 if ac_fn_c_try_link "$LINENO"; then :
6656 ac_cv_working_alloca_h=yes
6658 ac_cv_working_alloca_h=no
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6664 $as_echo "$ac_cv_working_alloca_h" >&6; }
6665 if test $ac_cv_working_alloca_h = yes; then
6667 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6672 $as_echo_n "checking for alloca... " >&6; }
6673 if test "${ac_cv_func_alloca_works+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 # define alloca __builtin_alloca
6682 # include <malloc.h>
6683 # define alloca _alloca
6685 # ifdef HAVE_ALLOCA_H
6686 # include <alloca.h>
6691 # ifndef alloca /* predefined by HP cc +Olibcalls */
6702 char *p = (char *) alloca (1);
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 ac_cv_func_alloca_works=yes
6711 ac_cv_func_alloca_works=no
6713 rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6717 $as_echo "$ac_cv_func_alloca_works" >&6; }
6719 if test $ac_cv_func_alloca_works = yes; then
6721 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6725 # that cause trouble. Some versions do not even contain alloca or
6726 # contain a buggy version. If you still want to use their alloca,
6727 # use ar to extract alloca.o from them instead of compiling alloca.c.
6729 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6731 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6735 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6736 if test "${ac_cv_os_cray+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #if defined CRAY && ! defined CRAY2
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "webecray" >/dev/null 2>&1; then :
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6758 $as_echo "$ac_cv_os_cray" >&6; }
6759 if test $ac_cv_os_cray = yes; then
6760 for ac_func in _getb67 GETB67 getb67; do
6761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6763 eval as_val=\$$as_ac_var
6764 if test "x$as_val" = x""yes; then :
6766 cat >>confdefs.h <<_ACEOF
6767 #define CRAY_STACKSEG_END $ac_func
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6777 $as_echo_n "checking stack direction for C alloca... " >&6; }
6778 if test "${ac_cv_c_stack_direction+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 if test "$cross_compiling" = yes; then :
6782 ac_cv_c_stack_direction=0
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 find_stack_direction ()
6790 static char *addr = 0;
6795 return find_stack_direction ();
6798 return (&dummy > addr) ? 1 : -1;
6804 return find_stack_direction () < 0;
6807 if ac_fn_c_try_run "$LINENO"; then :
6808 ac_cv_c_stack_direction=1
6810 ac_cv_c_stack_direction=-1
6812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6813 conftest.$ac_objext conftest.beam conftest.$ac_ext
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6818 $as_echo "$ac_cv_c_stack_direction" >&6; }
6819 cat >>confdefs.h <<_ACEOF
6820 #define STACK_DIRECTION $ac_cv_c_stack_direction
6829 for ac_header in $ac_header_list
6831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6834 eval as_val=\$$as_ac_Header
6835 if test "x$as_val" = x""yes; then :
6836 cat >>confdefs.h <<_ACEOF
6837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 for ac_func in getpagesize
6853 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6854 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_GETPAGESIZE 1
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6863 $as_echo_n "checking for working mmap... " >&6; }
6864 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6867 if test "$cross_compiling" = yes; then :
6868 ac_cv_func_mmap_fixed_mapped=no
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 /* malloc might have been renamed as rpl_malloc. */
6876 /* Thanks to Mike Haertel and Jim Avera for this test.
6877 Here is a matrix of mmap possibilities:
6878 mmap private not fixed
6879 mmap private fixed at somewhere currently unmapped
6880 mmap private fixed at somewhere already mapped
6881 mmap shared not fixed
6882 mmap shared fixed at somewhere currently unmapped
6883 mmap shared fixed at somewhere already mapped
6884 For private mappings, we should verify that changes cannot be read()
6885 back from the file, nor mmap's back from the file at a different
6886 address. (There have been systems where private was not correctly
6887 implemented like the infamous i386 svr4.0, and systems where the
6888 VM page cache was not coherent with the file system buffer cache
6889 like early versions of FreeBSD and possibly contemporary NetBSD.)
6890 For shared mappings, we should conversely verify that changes get
6891 propagated back to all the places they're supposed to be.
6893 Grep wants private fixed already mapped.
6894 The main things grep needs to know about mmap are:
6895 * does it exist and is it safe to write into the mmap'd area
6896 * how to use it (BSD variants) */
6899 #include <sys/mman.h>
6901 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6905 /* This mess was copied from the GNU getpagesize.h. */
6906 #ifndef HAVE_GETPAGESIZE
6907 # ifdef _SC_PAGESIZE
6908 # define getpagesize() sysconf(_SC_PAGESIZE)
6909 # else /* no _SC_PAGESIZE */
6910 # ifdef HAVE_SYS_PARAM_H
6911 # include <sys/param.h>
6912 # ifdef EXEC_PAGESIZE
6913 # define getpagesize() EXEC_PAGESIZE
6914 # else /* no EXEC_PAGESIZE */
6916 # define getpagesize() NBPG * CLSIZE
6919 # endif /* no CLSIZE */
6920 # else /* no NBPG */
6922 # define getpagesize() NBPC
6923 # else /* no NBPC */
6925 # define getpagesize() PAGESIZE
6926 # endif /* PAGESIZE */
6927 # endif /* no NBPC */
6928 # endif /* no NBPG */
6929 # endif /* no EXEC_PAGESIZE */
6930 # else /* no HAVE_SYS_PARAM_H */
6931 # define getpagesize() 8192 /* punt totally */
6932 # endif /* no HAVE_SYS_PARAM_H */
6933 # endif /* no _SC_PAGESIZE */
6935 #endif /* no HAVE_GETPAGESIZE */
6940 char *data, *data2, *data3;
6945 pagesize = getpagesize ();
6947 /* First, make a file with some known garbage in it. */
6948 data = (char *) malloc (pagesize);
6951 for (i = 0; i < pagesize; ++i)
6952 *(data + i) = rand ();
6954 fd = creat ("conftest.mmap", 0600);
6957 if (write (fd, data, pagesize) != pagesize)
6961 /* Next, check that the tail of a page is zero-filled. File must have
6962 non-zero length, otherwise we risk SIGBUS for entire page. */
6963 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6967 if (write (fd2, cdata2, 1) != 1)
6969 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6970 if (data2 == MAP_FAILED)
6972 for (i = 0; i < pagesize; ++i)
6976 if (munmap (data2, pagesize))
6979 /* Next, try to mmap the file at a fixed address which already has
6980 something else allocated at it. If we can, also make sure that
6981 we see the same garbage. */
6982 fd = open ("conftest.mmap", O_RDWR);
6985 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6986 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6988 for (i = 0; i < pagesize; ++i)
6989 if (*(data + i) != *(data2 + i))
6992 /* Finally, make sure that changes to the mapped area do not
6993 percolate back to the file as seen by read(). (This is a bug on
6994 some variants of i386 svr4.0.) */
6995 for (i = 0; i < pagesize; ++i)
6996 *(data2 + i) = *(data2 + i) + 1;
6997 data3 = (char *) malloc (pagesize);
7000 if (read (fd, data3, pagesize) != pagesize)
7002 for (i = 0; i < pagesize; ++i)
7003 if (*(data + i) != *(data3 + i))
7009 if ac_fn_c_try_run "$LINENO"; then :
7010 ac_cv_func_mmap_fixed_mapped=yes
7012 ac_cv_func_mmap_fixed_mapped=no
7014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015 conftest.$ac_objext conftest.beam conftest.$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7020 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7021 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7023 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7026 rm -f conftest.mmap conftest.txt
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7030 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7031 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7037 #include <features.h>
7038 #ifdef __GNU_LIBRARY__
7039 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7047 ac_cv_gnu_library_2_1=yes
7049 ac_cv_gnu_library_2_1=no
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7057 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7059 GLIBC21="$ac_cv_gnu_library_2_1"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7065 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7066 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7067 $as_echo_n "(cached) " >&6
7070 if test "$cross_compiling" = yes; then :
7072 # Guess based on the CPU.
7074 alpha* | i3456786 | m68k | s390*)
7075 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7077 gt_cv_int_divbyzero_sigfpe="guessing no";;
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7089 sigfpe_handler (int sig)
7091 sigfpe_handler (sig) int sig;
7094 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7095 exit (sig != SIGFPE);
7105 signal (SIGFPE, sigfpe_handler);
7106 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7107 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7108 signal (SIGTRAP, sigfpe_handler);
7110 /* Linux/SPARC yields signal SIGILL. */
7111 #if defined (__sparc__) && defined (__linux__)
7112 signal (SIGILL, sigfpe_handler);
7121 if ac_fn_c_try_run "$LINENO"; then :
7122 gt_cv_int_divbyzero_sigfpe=yes
7124 gt_cv_int_divbyzero_sigfpe=no
7126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127 conftest.$ac_objext conftest.beam conftest.$ac_ext
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7133 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7134 case "$gt_cv_int_divbyzero_sigfpe" in
7139 cat >>confdefs.h <<_ACEOF
7140 #define INTDIV0_RAISES_SIGFPE $value
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7146 $as_echo_n "checking for unsigned long long... " >&6; }
7147 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 unsigned long long ull = 1ULL; int i = 63;
7156 unsigned long long ullmax = (unsigned long long) -1;
7157 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7162 if ac_fn_c_try_link "$LINENO"; then :
7163 ac_cv_type_unsigned_long_long=yes
7165 ac_cv_type_unsigned_long_long=no
7167 rm -f core conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7171 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7172 if test $ac_cv_type_unsigned_long_long = yes; then
7174 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7181 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7183 test $ac_cv_type_unsigned_long_long = yes \
7184 && ac_type='unsigned long long' \
7185 || ac_type='unsigned long'
7187 cat >>confdefs.h <<_ACEOF
7188 #define uintmax_t $ac_type
7193 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7199 $as_echo_n "checking for inttypes.h... " >&6; }
7200 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <sys/types.h>
7207 #include <inttypes.h>
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 gt_cv_header_inttypes_h=yes
7219 gt_cv_header_inttypes_h=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7225 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7226 if test $gt_cv_header_inttypes_h = yes; then
7228 cat >>confdefs.h <<_ACEOF
7229 #define HAVE_INTTYPES_H 1
7236 if test $gt_cv_header_inttypes_h = yes; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7238 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7239 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <inttypes.h>
7258 if ac_fn_c_try_compile "$LINENO"; then :
7259 gt_cv_inttypes_pri_broken=no
7261 gt_cv_inttypes_pri_broken=yes
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7267 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7269 if test "$gt_cv_inttypes_pri_broken" = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define PRI_MACROS_BROKEN 1
7278 for ac_header in stdint.h
7280 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7281 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7282 cat >>confdefs.h <<_ACEOF
7283 #define HAVE_STDINT_H 1
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7291 $as_echo_n "checking for SIZE_MAX... " >&6; }
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 $EGREP "Found it" >/dev/null 2>&1; then :
7311 if test -z "$result"; then
7312 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7319 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7326 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7333 if test "$fits_in_uint" = 1; then
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7338 extern unsigned long foo;
7348 if ac_fn_c_try_compile "$LINENO"; then :
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 if test -z "$result"; then
7354 if test "$fits_in_uint" = 1; then
7355 result="$res_hi$res_lo"U
7357 result="$res_hi$res_lo"UL
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7364 $as_echo "$result" >&6; }
7365 if test "$result" != yes; then
7367 cat >>confdefs.h <<_ACEOF
7368 #define SIZE_MAX $result
7375 for ac_header in stdint.h
7377 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7378 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7379 cat >>confdefs.h <<_ACEOF
7380 #define HAVE_STDINT_H 1
7389 if test "X$prefix" = "XNONE"; then
7390 acl_final_prefix="$ac_default_prefix"
7392 acl_final_prefix="$prefix"
7394 if test "X$exec_prefix" = "XNONE"; then
7395 acl_final_exec_prefix='${prefix}'
7397 acl_final_exec_prefix="$exec_prefix"
7399 acl_save_prefix="$prefix"
7400 prefix="$acl_final_prefix"
7401 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7402 prefix="$acl_save_prefix"
7405 # Check whether --with-gnu-ld was given.
7406 if test "${with_gnu_ld+set}" = set; then :
7407 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7412 # Prepare PATH_SEPARATOR.
7413 # The user is always right.
7414 if test "${PATH_SEPARATOR+set}" != set; then
7415 echo "#! /bin/sh" >conf$$.sh
7416 echo "exit 0" >>conf$$.sh
7418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7426 if test "$GCC" = yes; then
7427 # Check if gcc -print-prog-name=ld gives a path.
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7429 $as_echo_n "checking for ld used by GCC... " >&6; }
7432 # gcc leaves a trailing carriage return which upsets mingw
7433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7438 # Accept absolute paths.
7439 [\\/]* | [A-Za-z]:[\\/]*)
7440 re_direlt='/[^/][^/]*/\.\./'
7441 # Canonicalize the path of ld
7442 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7443 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7444 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7446 test -z "$LD" && LD="$ac_prog"
7449 # If it fails, then pretend we aren't using GCC.
7453 # If it is relative, then search for the first ld in PATH.
7457 elif test "$with_gnu_ld" = yes; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7459 $as_echo_n "checking for GNU ld... " >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7462 $as_echo_n "checking for non-GNU ld... " >&6; }
7464 if test "${acl_cv_path_LD+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -z "$LD"; then
7468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7469 for ac_dir in $PATH; do
7470 test -z "$ac_dir" && ac_dir=.
7471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7472 acl_cv_path_LD="$ac_dir/$ac_prog"
7473 # Check to see if the program is GNU ld. I'd rather use --version,
7474 # but apparently some GNU ld's only accept -v.
7475 # Break only if it was the GNU/non-GNU ld that we prefer.
7476 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7477 *GNU* | *'with BFD'*)
7478 test "$with_gnu_ld" != no && break ;;
7480 test "$with_gnu_ld" != yes && break ;;
7486 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7490 LD="$acl_cv_path_LD"
7491 if test -n "$LD"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7493 $as_echo "$LD" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7498 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7500 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7501 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7504 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7505 case `$LD -v 2>&1 </dev/null` in
7506 *GNU* | *'with BFD'*)
7507 acl_cv_prog_gnu_ld=yes ;;
7509 acl_cv_prog_gnu_ld=no ;;
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7513 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7514 with_gnu_ld=$acl_cv_prog_gnu_ld
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7519 $as_echo_n "checking for shared library run path origin... " >&6; }
7520 if test "${acl_cv_rpath+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7524 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7525 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7532 $as_echo "$acl_cv_rpath" >&6; }
7534 libext="$acl_cv_libext"
7535 shlibext="$acl_cv_shlibext"
7536 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7537 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7538 hardcode_direct="$acl_cv_hardcode_direct"
7539 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7540 # Check whether --enable-rpath was given.
7541 if test "${enable_rpath+set}" = set; then :
7542 enableval=$enable_rpath; :
7556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 acl_save_exec_prefix="$exec_prefix"
7559 exec_prefix="$acl_final_exec_prefix"
7561 eval additional_includedir=\"$includedir\"
7562 eval additional_libdir=\"$libdir\"
7564 exec_prefix="$acl_save_exec_prefix"
7565 prefix="$acl_save_prefix"
7568 # Check whether --with-libiconv-prefix was given.
7569 if test "${with_libiconv_prefix+set}" = set; then :
7570 withval=$with_libiconv_prefix;
7571 if test "X$withval" = "Xno"; then
7574 if test "X$withval" = "X"; then
7576 acl_save_prefix="$prefix"
7577 prefix="$acl_final_prefix"
7578 acl_save_exec_prefix="$exec_prefix"
7579 exec_prefix="$acl_final_exec_prefix"
7581 eval additional_includedir=\"$includedir\"
7582 eval additional_libdir=\"$libdir\"
7584 exec_prefix="$acl_save_exec_prefix"
7585 prefix="$acl_save_prefix"
7588 additional_includedir="$withval/include"
7589 additional_libdir="$withval/lib"
7600 names_already_handled=
7601 names_next_round='iconv '
7602 while test -n "$names_next_round"; do
7603 names_this_round="$names_next_round"
7605 for name in $names_this_round; do
7607 for n in $names_already_handled; do
7608 if test "$n" = "$name"; then
7613 if test -z "$already_handled"; then
7614 names_already_handled="$names_already_handled $name"
7615 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7616 eval value=\"\$HAVE_LIB$uppername\"
7617 if test -n "$value"; then
7618 if test "$value" = yes; then
7619 eval value=\"\$LIB$uppername\"
7620 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7621 eval value=\"\$LTLIB$uppername\"
7622 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7631 if test $use_additional = yes; then
7632 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7633 found_dir="$additional_libdir"
7634 found_so="$additional_libdir/lib$name.$shlibext"
7635 if test -f "$additional_libdir/lib$name.la"; then
7636 found_la="$additional_libdir/lib$name.la"
7639 if test -f "$additional_libdir/lib$name.$libext"; then
7640 found_dir="$additional_libdir"
7641 found_a="$additional_libdir/lib$name.$libext"
7642 if test -f "$additional_libdir/lib$name.la"; then
7643 found_la="$additional_libdir/lib$name.la"
7648 if test "X$found_dir" = "X"; then
7649 for x in $LDFLAGS $LTLIBICONV; do
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 acl_save_exec_prefix="$exec_prefix"
7654 exec_prefix="$acl_final_exec_prefix"
7656 exec_prefix="$acl_save_exec_prefix"
7657 prefix="$acl_save_prefix"
7661 dir=`echo "X$x" | sed -e 's/^X-L//'`
7662 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7664 found_so="$dir/lib$name.$shlibext"
7665 if test -f "$dir/lib$name.la"; then
7666 found_la="$dir/lib$name.la"
7669 if test -f "$dir/lib$name.$libext"; then
7671 found_a="$dir/lib$name.$libext"
7672 if test -f "$dir/lib$name.la"; then
7673 found_la="$dir/lib$name.la"
7679 if test "X$found_dir" != "X"; then
7684 if test "X$found_dir" != "X"; then
7685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7686 if test "X$found_so" != "X"; then
7687 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7688 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7691 for x in $ltrpathdirs; do
7692 if test "X$x" = "X$found_dir"; then
7697 if test -z "$haveit"; then
7698 ltrpathdirs="$ltrpathdirs $found_dir"
7700 if test "$hardcode_direct" = yes; then
7701 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7703 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7706 for x in $rpathdirs; do
7707 if test "X$x" = "X$found_dir"; then
7712 if test -z "$haveit"; then
7713 rpathdirs="$rpathdirs $found_dir"
7717 for x in $LDFLAGS $LIBICONV; do
7719 acl_save_prefix="$prefix"
7720 prefix="$acl_final_prefix"
7721 acl_save_exec_prefix="$exec_prefix"
7722 exec_prefix="$acl_final_exec_prefix"
7724 exec_prefix="$acl_save_exec_prefix"
7725 prefix="$acl_save_prefix"
7727 if test "X$x" = "X-L$found_dir"; then
7732 if test -z "$haveit"; then
7733 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7735 if test "$hardcode_minus_L" != no; then
7736 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7744 if test "X$found_a" != "X"; then
7745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7747 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7750 additional_includedir=
7751 case "$found_dir" in
7753 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7754 additional_includedir="$basedir/include"
7757 if test "X$additional_includedir" != "X"; then
7758 if test "X$additional_includedir" != "X/usr/include"; then
7760 if test "X$additional_includedir" = "X/usr/local/include"; then
7761 if test -n "$GCC"; then
7763 linux*) haveit=yes;;
7767 if test -z "$haveit"; then
7768 for x in $CPPFLAGS $INCICONV; do
7770 acl_save_prefix="$prefix"
7771 prefix="$acl_final_prefix"
7772 acl_save_exec_prefix="$exec_prefix"
7773 exec_prefix="$acl_final_exec_prefix"
7775 exec_prefix="$acl_save_exec_prefix"
7776 prefix="$acl_save_prefix"
7778 if test "X$x" = "X-I$additional_includedir"; then
7783 if test -z "$haveit"; then
7784 if test -d "$additional_includedir"; then
7785 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7791 if test -n "$found_la"; then
7792 save_libdir="$libdir"
7794 */* | *\\*) . "$found_la" ;;
7795 *) . "./$found_la" ;;
7797 libdir="$save_libdir"
7798 for dep in $dependency_libs; do
7801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7802 if test "X$additional_libdir" != "X/usr/lib"; then
7804 if test "X$additional_libdir" = "X/usr/local/lib"; then
7805 if test -n "$GCC"; then
7807 linux*) haveit=yes;;
7811 if test -z "$haveit"; then
7813 for x in $LDFLAGS $LIBICONV; do
7815 acl_save_prefix="$prefix"
7816 prefix="$acl_final_prefix"
7817 acl_save_exec_prefix="$exec_prefix"
7818 exec_prefix="$acl_final_exec_prefix"
7820 exec_prefix="$acl_save_exec_prefix"
7821 prefix="$acl_save_prefix"
7823 if test "X$x" = "X-L$additional_libdir"; then
7828 if test -z "$haveit"; then
7829 if test -d "$additional_libdir"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7834 for x in $LDFLAGS $LTLIBICONV; do
7836 acl_save_prefix="$prefix"
7837 prefix="$acl_final_prefix"
7838 acl_save_exec_prefix="$exec_prefix"
7839 exec_prefix="$acl_final_exec_prefix"
7841 exec_prefix="$acl_save_exec_prefix"
7842 prefix="$acl_save_prefix"
7844 if test "X$x" = "X-L$additional_libdir"; then
7849 if test -z "$haveit"; then
7850 if test -d "$additional_libdir"; then
7851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7858 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7859 if test "$enable_rpath" != no; then
7861 for x in $rpathdirs; do
7862 if test "X$x" = "X$dir"; then
7867 if test -z "$haveit"; then
7868 rpathdirs="$rpathdirs $dir"
7871 for x in $ltrpathdirs; do
7872 if test "X$x" = "X$dir"; then
7877 if test -z "$haveit"; then
7878 ltrpathdirs="$ltrpathdirs $dir"
7883 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7886 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7889 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7890 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7896 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7903 if test "X$rpathdirs" != "X"; then
7904 if test -n "$hardcode_libdir_separator"; then
7906 for found_dir in $rpathdirs; do
7907 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7909 acl_save_libdir="$libdir"
7911 eval flag=\"$hardcode_libdir_flag_spec\"
7912 libdir="$acl_save_libdir"
7913 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7915 for found_dir in $rpathdirs; do
7916 acl_save_libdir="$libdir"
7918 eval flag=\"$hardcode_libdir_flag_spec\"
7919 libdir="$acl_save_libdir"
7920 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7924 if test "X$ltrpathdirs" != "X"; then
7925 for found_dir in $ltrpathdirs; do
7926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7937 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7938 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7942 $as_echo "#define ptrdiff_t long" >>confdefs.h
7947 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7948 stdlib.h string.h unistd.h sys/param.h
7950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7952 eval as_val=\$$as_ac_Header
7953 if test "x$as_val" = x""yes; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7962 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7963 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7964 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7969 eval as_val=\$$as_ac_var
7970 if test "x$as_val" = x""yes; then :
7971 cat >>confdefs.h <<_ACEOF
7972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
7981 $as_echo_n "checking whether _snprintf is declared... " >&6; }
7982 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7993 char *p = (char *) _snprintf;
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 ac_cv_have_decl__snprintf=yes
8003 ac_cv_have_decl__snprintf=no
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8008 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8009 if test $ac_cv_have_decl__snprintf = yes; then
8015 cat >>confdefs.h <<_ACEOF
8016 #define HAVE_DECL__SNPRINTF $gt_value
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8022 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8023 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8024 $as_echo_n "(cached) " >&6
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8034 char *p = (char *) _snwprintf;
8041 if ac_fn_c_try_compile "$LINENO"; then :
8042 ac_cv_have_decl__snwprintf=yes
8044 ac_cv_have_decl__snwprintf=no
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8049 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8050 if test $ac_cv_have_decl__snwprintf = yes; then
8056 cat >>confdefs.h <<_ACEOF
8057 #define HAVE_DECL__SNWPRINTF $gt_value
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8064 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8065 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8075 #ifndef feof_unlocked
8076 char *p = (char *) feof_unlocked;
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084 ac_cv_have_decl_feof_unlocked=yes
8086 ac_cv_have_decl_feof_unlocked=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8091 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8092 if test $ac_cv_have_decl_feof_unlocked = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8105 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8106 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8116 #ifndef fgets_unlocked
8117 char *p = (char *) fgets_unlocked;
8124 if ac_fn_c_try_compile "$LINENO"; then :
8125 ac_cv_have_decl_fgets_unlocked=yes
8127 ac_cv_have_decl_fgets_unlocked=no
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8132 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8133 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8139 cat >>confdefs.h <<_ACEOF
8140 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8146 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8147 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8157 #ifndef getc_unlocked
8158 char *p = (char *) getc_unlocked;
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 ac_cv_have_decl_getc_unlocked=yes
8168 ac_cv_have_decl_getc_unlocked=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8173 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8174 if test $ac_cv_have_decl_getc_unlocked = yes; then
8180 cat >>confdefs.h <<_ACEOF
8181 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8186 case $gt_cv_func_printf_posix in
8187 *yes) HAVE_POSIX_PRINTF=1 ;;
8188 *) HAVE_POSIX_PRINTF=0 ;;
8191 if test "$ac_cv_func_asprintf" = yes; then
8197 if test "$ac_cv_func_snprintf" = yes; then
8203 if test "$ac_cv_func_wprintf" = yes; then
8215 am_save_CPPFLAGS="$CPPFLAGS"
8217 for element in $INCICONV; do
8219 for x in $CPPFLAGS; do
8221 acl_save_prefix="$prefix"
8222 prefix="$acl_final_prefix"
8223 acl_save_exec_prefix="$exec_prefix"
8224 exec_prefix="$acl_final_exec_prefix"
8226 exec_prefix="$acl_save_exec_prefix"
8227 prefix="$acl_save_prefix"
8229 if test "X$x" = "X$element"; then
8234 if test -z "$haveit"; then
8235 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8241 $as_echo_n "checking for iconv... " >&6; }
8242 if test "${am_cv_func_iconv+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8246 am_cv_func_iconv="no, consider installing GNU libiconv"
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8255 iconv_t cd = iconv_open("","");
8256 iconv(cd,NULL,NULL,NULL,NULL);
8262 if ac_fn_c_try_link "$LINENO"; then :
8263 am_cv_func_iconv=yes
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 if test "$am_cv_func_iconv" != yes; then
8268 am_save_LIBS="$LIBS"
8269 LIBS="$LIBS $LIBICONV"
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8277 iconv_t cd = iconv_open("","");
8278 iconv(cd,NULL,NULL,NULL,NULL);
8284 if ac_fn_c_try_link "$LINENO"; then :
8286 am_cv_func_iconv=yes
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290 LIBS="$am_save_LIBS"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8295 $as_echo "$am_cv_func_iconv" >&6; }
8296 if test "$am_cv_func_iconv" = yes; then
8298 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8301 if test "$am_cv_lib_iconv" = yes; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8303 $as_echo_n "checking how to link with libiconv... " >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8305 $as_echo "$LIBICONV" >&6; }
8307 CPPFLAGS="$am_save_CPPFLAGS"
8314 if test "$am_cv_func_iconv" = yes; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8316 $as_echo_n "checking for iconv declaration... " >&6; }
8317 if test "${am_cv_proto_iconv+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8330 #if defined(__STDC__) || defined(__cplusplus)
8331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8344 if ac_fn_c_try_compile "$LINENO"; then :
8345 am_cv_proto_iconv_arg1=""
8347 am_cv_proto_iconv_arg1="const"
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 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);"
8353 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8355 }$am_cv_proto_iconv" >&5
8357 }$am_cv_proto_iconv" >&6; }
8359 cat >>confdefs.h <<_ACEOF
8360 #define ICONV_CONST $am_cv_proto_iconv_arg1
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8367 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8368 if test "${am_cv_langinfo_codeset+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <langinfo.h>
8377 char* cs = nl_langinfo(CODESET);
8382 if ac_fn_c_try_link "$LINENO"; then :
8383 am_cv_langinfo_codeset=yes
8385 am_cv_langinfo_codeset=no
8387 rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8392 $as_echo "$am_cv_langinfo_codeset" >&6; }
8393 if test $am_cv_langinfo_codeset = yes; then
8395 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8399 if test $ac_cv_header_locale_h = yes; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8402 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8403 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8417 if ac_fn_c_try_link "$LINENO"; then :
8418 am_cv_val_LC_MESSAGES=yes
8420 am_cv_val_LC_MESSAGES=no
8422 rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8426 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8427 if test $am_cv_val_LC_MESSAGES = yes; then
8429 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8435 for ac_prog in bison
8437 # Extract the first word of "$ac_prog", so it can be a program name with args.
8438 set dummy $ac_prog; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8444 if test -n "$INTLBISON"; then
8445 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_prog_INTLBISON="$ac_prog"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 INTLBISON=$ac_cv_prog_INTLBISON
8465 if test -n "$INTLBISON"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8467 $as_echo "$INTLBISON" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8474 test -n "$INTLBISON" && break
8477 if test -z "$INTLBISON"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8481 $as_echo_n "checking version of bison... " >&6; }
8482 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8483 case $ac_prog_version in
8484 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8485 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8486 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8487 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8490 $as_echo "$ac_prog_version" >&6; }
8492 if test $ac_verc_fail = yes; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8512 $as_echo_n "checking whether NLS is requested... " >&6; }
8513 # Check whether --enable-nls was given.
8514 if test "${enable_nls+set}" = set; then :
8515 enableval=$enable_nls; USE_NLS=$enableval
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8521 $as_echo "$USE_NLS" >&6; }
8526 BUILD_INCLUDED_LIBINTL=no
8527 USE_INCLUDED_LIBINTL=no
8533 if test "$USE_NLS" = "yes"; then
8534 gt_use_preinstalled_gnugettext=no
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8537 $as_echo_n "checking whether included gettext is requested... " >&6; }
8539 # Check whether --with-included-gettext was given.
8540 if test "${with_included_gettext+set}" = set; then :
8541 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8543 nls_cv_force_use_gnu_gettext=no
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8547 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8549 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8550 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8558 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8559 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 #include <libintl.h>
8565 extern int _nl_msg_cat_cntr;
8566 extern int *_nl_domain_bindings;
8570 bindtextdomain ("", "");
8571 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8576 if ac_fn_c_try_link "$LINENO"; then :
8577 gt_cv_func_gnugettext1_libc=yes
8579 gt_cv_func_gnugettext1_libc=no
8581 rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8585 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8587 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
8598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
8601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8605 # Check whether --with-libintl-prefix was given.
8606 if test "${with_libintl_prefix+set}" = set; then :
8607 withval=$with_libintl_prefix;
8608 if test "X$withval" = "Xno"; then
8611 if test "X$withval" = "X"; then
8613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
8618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
8621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8637 names_already_handled=
8638 names_next_round='intl '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8642 for name in $names_this_round; do
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBINTL; do
8688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8706 if test -f "$dir/lib$name.$libext"; then
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8716 if test "X$found_dir" != "X"; then
8721 if test "X$found_dir" != "X"; then
8722 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8737 if test "$hardcode_direct" = yes; then
8738 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8754 for x in $LDFLAGS $LIBINTL; do
8756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8764 if test "X$x" = "X-L$found_dir"; then
8769 if test -z "$haveit"; then
8770 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8772 if test "$hardcode_minus_L" != no; then
8773 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8775 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8781 if test "X$found_a" != "X"; then
8782 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8784 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8787 additional_includedir=
8788 case "$found_dir" in
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8800 linux*) haveit=yes;;
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCINTL; do
8807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8815 if test "X$x" = "X-I$additional_includedir"; then
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8844 linux*) haveit=yes;;
8848 if test -z "$haveit"; then
8850 for x in $LDFLAGS $LIBINTL; do
8852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8860 if test "X$x" = "X-L$additional_libdir"; then
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8871 for x in $LDFLAGS $LTLIBINTL; do
8873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8881 if test "X$x" = "X-L$additional_libdir"; then
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8926 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8927 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8933 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8934 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8946 acl_save_libdir="$libdir"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8968 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8969 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8972 gt_save_CPPFLAGS="$CPPFLAGS"
8973 CPPFLAGS="$CPPFLAGS $INCINTL"
8974 gt_save_LIBS="$LIBS"
8975 LIBS="$LIBS $LIBINTL"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 #include <libintl.h>
8979 extern int _nl_msg_cat_cntr;
8984 const char *_nl_expand_alias ();
8988 bindtextdomain ("", "");
8989 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8994 if ac_fn_c_try_link "$LINENO"; then :
8995 gt_cv_func_gnugettext1_libintl=yes
8997 gt_cv_func_gnugettext1_libintl=no
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9002 LIBS="$LIBS $LIBICONV"
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <libintl.h>
9006 extern int _nl_msg_cat_cntr;
9011 const char *_nl_expand_alias ();
9015 bindtextdomain ("", "");
9016 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 LIBINTL="$LIBINTL $LIBICONV"
9023 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9024 gt_cv_func_gnugettext1_libintl=yes
9027 rm -f core conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
9030 CPPFLAGS="$gt_save_CPPFLAGS"
9031 LIBS="$gt_save_LIBS"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9034 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9037 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9038 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9039 && test "$PACKAGE" != gettext-runtime \
9040 && test "$PACKAGE" != gettext-tools; }; then
9041 gt_use_preinstalled_gnugettext=yes
9049 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9050 nls_cv_use_gnu_gettext=yes
9054 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9055 BUILD_INCLUDED_LIBINTL=yes
9056 USE_INCLUDED_LIBINTL=yes
9057 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9058 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9059 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9062 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9063 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9068 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9069 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9071 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9079 $as_echo_n "checking whether to use NLS... " >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9081 $as_echo "$USE_NLS" >&6; }
9082 if test "$USE_NLS" = "yes"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9084 $as_echo_n "checking where the gettext function comes from... " >&6; }
9085 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9086 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9087 gt_source="external libintl"
9092 gt_source="included intl directory"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9095 $as_echo "$gt_source" >&6; }
9098 if test "$USE_NLS" = "yes"; then
9100 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9101 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9103 $as_echo_n "checking how to link with libintl... " >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9105 $as_echo "$LIBINTL" >&6; }
9107 for element in $INCINTL; do
9109 for x in $CPPFLAGS; do
9111 acl_save_prefix="$prefix"
9112 prefix="$acl_final_prefix"
9113 acl_save_exec_prefix="$exec_prefix"
9114 exec_prefix="$acl_final_exec_prefix"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9119 if test "X$x" = "X$element"; then
9124 if test -z "$haveit"; then
9125 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9132 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9135 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9143 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9144 BUILD_INCLUDED_LIBINTL=yes
9152 nls_cv_header_libgt=
9163 if test "$USE_INCLUDED_LIBINTL" = yes; then
9164 INTLOBJS="\$(GETTOBJS)"
9168 INTL_LIBTOOL_SUFFIX_PREFIX=
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9183 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9184 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9185 $as_echo_n "(cached) " >&6
9187 cat >conftest.make <<\_ACEOF
9190 @echo '@@@%%%=$(MAKE)=@@@%%%'
9192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9195 eval ac_cv_prog_make_${ac_make}_set=yes;;
9197 eval ac_cv_prog_make_${ac_make}_set=no;;
9201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203 $as_echo "yes" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 SET_MAKE="MAKE=${MAKE-make}"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9212 $as_echo_n "checking for GNU make... " >&6; }
9213 if test "${_cv_gnu_make_command+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9216 _cv_gnu_make_command='' ;
9217 for a in "$MAKE" make gmake gnumake ; do
9218 if test -z "$a" ; then continue ; fi ;
9219 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9220 _cv_gnu_make_command=$a ;
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9227 $as_echo "$_cv_gnu_make_command" >&6; } ;
9228 if test "x$_cv_gnu_make_command" != "x" ; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9235 $as_echo "\"Not found\"" >&6; };
9240 # Extract the first word of "ln", so it can be a program name with args.
9241 set dummy ln; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_path_LN+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9249 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9272 if test -n "$LN"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9274 $as_echo "$LN" >&6; }
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9282 $as_echo_n "checking whether ln -s works... " >&6; }
9284 if test "$LN_S" = "ln -s"; then
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9286 $as_echo "yes" >&6; }
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9289 $as_echo "no, using $LN_S" >&6; }
9292 # Extract the first word of "mv", so it can be a program name with args.
9293 set dummy mv; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if test "${ac_cv_path_MV+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9301 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
9310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9311 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9324 if test -n "$MV"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9326 $as_echo "$MV" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9333 # Extract the first word of "cp", so it can be a program name with args.
9334 set dummy cp; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if test "${ac_cv_path_CP+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9342 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9352 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9365 if test -n "$CP"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9367 $as_echo "$CP" >&6; }
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9374 # Extract the first word of "rm", so it can be a program name with args.
9375 set dummy rm; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_path_RM+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9383 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9393 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9406 if test -n "$RM"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9408 $as_echo "$RM" >&6; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9415 # Extract the first word of "chmod", so it can be a program name with args.
9416 set dummy chmod; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if test "${ac_cv_path_CHMOD+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9424 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9446 CHMOD=$ac_cv_path_CHMOD
9447 if test -n "$CHMOD"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9449 $as_echo "$CHMOD" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9456 for ac_prog in gawk mawk nawk awk
9458 # Extract the first word of "$ac_prog", so it can be a program name with args.
9459 set dummy $ac_prog; 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_prog_AWK+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9465 if test -n "$AWK"; then
9466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_AWK="$ac_prog"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 if test -n "$AWK"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9488 $as_echo "$AWK" >&6; }
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9495 test -n "$AWK" && break
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9499 $as_echo_n "checking for egrep... " >&6; }
9500 if test "${ac_cv_path_EGREP+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9504 then ac_cv_path_EGREP="$GREP -E"
9506 if test -z "$EGREP"; then
9507 ac_path_EGREP_found=false
9508 # Loop through the user's path and test for each of PROGNAME-LIST
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9513 test -z "$as_dir" && as_dir=.
9514 for ac_prog in egrep; do
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9518 # Check for GNU ac_path_EGREP and select it if it is found.
9519 # Check for GNU $ac_path_EGREP
9520 case `"$ac_path_EGREP" --version 2>&1` in
9522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9525 $as_echo_n 0123456789 >"conftest.in"
9528 cat "conftest.in" "conftest.in" >"conftest.tmp"
9529 mv "conftest.tmp" "conftest.in"
9530 cp "conftest.in" "conftest.nl"
9531 $as_echo 'EGREP' >> "conftest.nl"
9532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9534 as_fn_arith $ac_count + 1 && ac_count=$as_val
9535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9536 # Best one so far, save it but keep looking for a better one
9537 ac_cv_path_EGREP="$ac_path_EGREP"
9538 ac_path_EGREP_max=$ac_count
9540 # 10*(2^10) chars as input seems more than enough
9541 test $ac_count -gt 10 && break
9543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9546 $ac_path_EGREP_found && break 3
9551 if test -z "$ac_cv_path_EGREP"; then
9552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9555 ac_cv_path_EGREP=$EGREP
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9561 $as_echo "$ac_cv_path_EGREP" >&6; }
9562 EGREP="$ac_cv_path_EGREP"
9565 # Extract the first word of "sed", so it can be a program name with args.
9566 set dummy sed; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if test "${ac_cv_path_SED+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9574 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9597 if test -n "$SED"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9599 $as_echo "$SED" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 # Extract the first word of "perl", so it can be a program name with args.
9607 set dummy perl; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if test "${ac_cv_path_PERL+set}" = set; then :
9611 $as_echo_n "(cached) " >&6
9615 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9637 PERL=$ac_cv_path_PERL
9638 if test -n "$PERL"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9640 $as_echo "$PERL" >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9647 # Extract the first word of "ldconfig", so it can be a program name with args.
9648 set dummy ldconfig; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9656 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9678 LDCONFIG=$ac_cv_path_LDCONFIG
9679 if test -n "$LDCONFIG"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9681 $as_echo "$LDCONFIG" >&6; }
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9688 if test -n "$ac_tool_prefix"; then
9689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9690 set dummy ${ac_tool_prefix}ar; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_AR+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9696 if test -n "$AR"; then
9697 ac_cv_prog_AR="$AR" # Let the user override the test.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_AR="${ac_tool_prefix}ar"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 if test -n "$AR"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9719 $as_echo "$AR" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9727 if test -z "$ac_cv_prog_AR"; then
9729 # Extract the first word of "ar", so it can be a program name with args.
9730 set dummy ar; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9734 $as_echo_n "(cached) " >&6
9736 if test -n "$ac_ct_AR"; then
9737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746 ac_cv_prog_ac_ct_AR="ar"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9757 if test -n "$ac_ct_AR"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9759 $as_echo "$ac_ct_AR" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9765 if test "x$ac_ct_AR" = x; then
9768 case $cross_compiling:$ac_tool_warned in
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9772 ac_tool_warned=yes ;;
9780 if test -n "$ac_tool_prefix"; then
9781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9788 if test -n "$RANLIB"; then
9789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 RANLIB=$ac_cv_prog_RANLIB
9809 if test -n "$RANLIB"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9811 $as_echo "$RANLIB" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9819 if test -z "$ac_cv_prog_RANLIB"; then
9820 ac_ct_RANLIB=$RANLIB
9821 # Extract the first word of "ranlib", so it can be a program name with args.
9822 set dummy ranlib; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9828 if test -n "$ac_ct_RANLIB"; then
9829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_ac_ct_RANLIB="ranlib"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9849 if test -n "$ac_ct_RANLIB"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9851 $as_echo "$ac_ct_RANLIB" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9857 if test "x$ac_ct_RANLIB" = x; then
9860 case $cross_compiling:$ac_tool_warned in
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9864 ac_tool_warned=yes ;;
9866 RANLIB=$ac_ct_RANLIB
9869 RANLIB="$ac_cv_prog_RANLIB"
9872 if test -n "$ac_tool_prefix"; then
9873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9874 set dummy ${ac_tool_prefix}strip; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_STRIP+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9880 if test -n "$STRIP"; then
9881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 STRIP=$ac_cv_prog_STRIP
9901 if test -n "$STRIP"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9903 $as_echo "$STRIP" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9911 if test -z "$ac_cv_prog_STRIP"; then
9913 # Extract the first word of "strip", so it can be a program name with args.
9914 set dummy strip; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9920 if test -n "$ac_ct_STRIP"; then
9921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_ac_ct_STRIP="strip"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9941 if test -n "$ac_ct_STRIP"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9943 $as_echo "$ac_ct_STRIP" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9949 if test "x$ac_ct_STRIP" = x; then
9952 case $cross_compiling:$ac_tool_warned in
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9956 ac_tool_warned=yes ;;
9961 STRIP="$ac_cv_prog_STRIP"
9964 # Extract the first word of "makeinfo", so it can be a program name with args.
9965 set dummy makeinfo; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9971 if test -n "$MAKEINFO"; then
9972 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9981 ac_cv_prog_MAKEINFO="makeinfo"
9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 MAKEINFO=$ac_cv_prog_MAKEINFO
9992 if test -n "$MAKEINFO"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9994 $as_echo "$MAKEINFO" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "_$MAKEINFO" = "_"; then
10002 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10004 case "$MAKEINFO" in
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10007 *** Makeinfo is missing. Info documentation will not be built." >&5
10008 $as_echo "$as_me: WARNING:
10009 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10017 # See if we need a separate native compiler.
10018 if test $cross_compiling = no; then
10022 for ac_prog in gcc cc
10024 # Extract the first word of "$ac_prog", so it can be a program name with args.
10025 set dummy $ac_prog; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10031 if test -n "$BUILD_CC"; then
10032 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10041 ac_cv_prog_BUILD_CC="$ac_prog"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 BUILD_CC=$ac_cv_prog_BUILD_CC
10052 if test -n "$BUILD_CC"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10054 $as_echo "$BUILD_CC" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10061 test -n "$BUILD_CC" && break
10065 for ac_header in dirent.h errno.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/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
10067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10069 eval as_val=\$$as_ac_Header
10070 if test "x$as_val" = x""yes; then :
10071 cat >>confdefs.h <<_ACEOF
10072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10079 for ac_header in sys/disk.h sys/mount.h
10081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10083 #if HAVE_SYS_QUEUE_H
10084 #include <sys/queue.h>
10088 eval as_val=\$$as_ac_Header
10089 if test "x$as_val" = x""yes; then :
10090 cat >>confdefs.h <<_ACEOF
10091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10098 for ac_header in net/if.h
10100 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10101 #if HAVE_SYS_TYPES_H
10102 #include <sys/types.h>
10104 #if HAVE_SYS_SOCKET
10105 #include <sys/socket.h>
10109 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define HAVE_NET_IF_H 1
10118 for ac_func in vprintf
10120 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10121 if test "x$ac_cv_func_vprintf" = x""yes; then :
10122 cat >>confdefs.h <<_ACEOF
10123 #define HAVE_VPRINTF 1
10126 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10127 if test "x$ac_cv_func__doprnt" = x""yes; then :
10129 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10137 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10139 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10140 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10144 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10146 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10147 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10151 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10153 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10154 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10158 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10159 #define _LARGEFILE64_SOURCE
10160 #include <unistd.h>
10162 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10163 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10167 # The cast to long int works around a bug in the HP C Compiler
10168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10170 # This bug is HP SR number 8606223364.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10172 $as_echo_n "checking size of short... " >&6; }
10173 if test "${ac_cv_sizeof_short+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10179 if test "$ac_cv_type_short" = yes; then
10180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10182 { as_fn_set_status 77
10183 as_fn_error "cannot compute sizeof (short)
10184 See \`config.log' for more details." "$LINENO" 5; }; }
10186 ac_cv_sizeof_short=0
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10192 $as_echo "$ac_cv_sizeof_short" >&6; }
10196 cat >>confdefs.h <<_ACEOF
10197 #define SIZEOF_SHORT $ac_cv_sizeof_short
10201 # The cast to long int works around a bug in the HP C Compiler
10202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10204 # This bug is HP SR number 8606223364.
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10206 $as_echo_n "checking size of int... " >&6; }
10207 if test "${ac_cv_sizeof_int+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10213 if test "$ac_cv_type_int" = yes; then
10214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10216 { as_fn_set_status 77
10217 as_fn_error "cannot compute sizeof (int)
10218 See \`config.log' for more details." "$LINENO" 5; }; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10226 $as_echo "$ac_cv_sizeof_int" >&6; }
10230 cat >>confdefs.h <<_ACEOF
10231 #define SIZEOF_INT $ac_cv_sizeof_int
10235 # The cast to long int works around a bug in the HP C Compiler
10236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10238 # This bug is HP SR number 8606223364.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10240 $as_echo_n "checking size of long... " >&6; }
10241 if test "${ac_cv_sizeof_long+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10247 if test "$ac_cv_type_long" = yes; then
10248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10250 { as_fn_set_status 77
10251 as_fn_error "cannot compute sizeof (long)
10252 See \`config.log' for more details." "$LINENO" 5; }; }
10254 ac_cv_sizeof_long=0
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10260 $as_echo "$ac_cv_sizeof_long" >&6; }
10264 cat >>confdefs.h <<_ACEOF
10265 #define SIZEOF_LONG $ac_cv_sizeof_long
10269 # The cast to long int works around a bug in the HP C Compiler
10270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10272 # This bug is HP SR number 8606223364.
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10274 $as_echo_n "checking size of long long... " >&6; }
10275 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10276 $as_echo_n "(cached) " >&6
10278 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10281 if test "$ac_cv_type_long_long" = yes; then
10282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10284 { as_fn_set_status 77
10285 as_fn_error "cannot compute sizeof (long long)
10286 See \`config.log' for more details." "$LINENO" 5; }; }
10288 ac_cv_sizeof_long_long=0
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10294 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10298 cat >>confdefs.h <<_ACEOF
10299 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10303 SIZEOF_SHORT=$ac_cv_sizeof_short
10304 SIZEOF_INT=$ac_cv_sizeof_int
10305 SIZEOF_LONG=$ac_cv_sizeof_long
10306 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10312 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10313 if test "${ac_cv_c_bigendian+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10316 ac_cv_c_bigendian=unknown
10317 # See if we're dealing with a universal compiler.
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 #ifndef __APPLE_CC__
10321 not a universal capable compiler
10326 if ac_fn_c_try_compile "$LINENO"; then :
10328 # Check for potential -arch flags. It is not universal unless
10329 # there are at least two -arch flags with different values.
10332 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10333 if test -n "$ac_prev"; then
10335 i?86 | x86_64 | ppc | ppc64)
10336 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10339 ac_cv_c_bigendian=universal
10345 elif test "x$ac_word" = "x-arch"; then
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 if test $ac_cv_c_bigendian = unknown; then
10352 # See if sys/param.h defines the BYTE_ORDER macro.
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 #include <sys/types.h>
10356 #include <sys/param.h>
10361 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10362 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10364 bogus endian macros
10371 if ac_fn_c_try_compile "$LINENO"; then :
10372 # It does; now see whether it defined to BIG_ENDIAN or not.
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #include <sys/types.h>
10376 #include <sys/param.h>
10381 #if BYTE_ORDER != BIG_ENDIAN
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 ac_cv_c_bigendian=yes
10392 ac_cv_c_bigendian=no
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 if test $ac_cv_c_bigendian = unknown; then
10399 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #include <limits.h>
10407 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10408 bogus endian macros
10415 if ac_fn_c_try_compile "$LINENO"; then :
10416 # It does; now see whether it defined to _BIG_ENDIAN or not.
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419 #include <limits.h>
10424 #ifndef _BIG_ENDIAN
10432 if ac_fn_c_try_compile "$LINENO"; then :
10433 ac_cv_c_bigendian=yes
10435 ac_cv_c_bigendian=no
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 if test $ac_cv_c_bigendian = unknown; then
10442 # Compile a test program.
10443 if test "$cross_compiling" = yes; then :
10444 # Try to guess by grepping values from an object file.
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 short int ascii_mm[] =
10448 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10449 short int ascii_ii[] =
10450 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10451 int use_ascii (int i) {
10452 return ascii_mm[i] + ascii_ii[i];
10454 short int ebcdic_ii[] =
10455 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10456 short int ebcdic_mm[] =
10457 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10458 int use_ebcdic (int i) {
10459 return ebcdic_mm[i] + ebcdic_ii[i];
10466 return use_ascii (foo) == use_ebcdic (foo);
10471 if ac_fn_c_try_compile "$LINENO"; then :
10472 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10473 ac_cv_c_bigendian=yes
10475 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10476 if test "$ac_cv_c_bigendian" = unknown; then
10477 ac_cv_c_bigendian=no
10479 # finding both strings is unlikely to happen, but who knows?
10480 ac_cv_c_bigendian=unknown
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 $ac_includes_default
10493 /* Are we little or big endian? From Harbison&Steele. */
10497 char c[sizeof (long int)];
10500 return u.c[sizeof (long int) - 1] == 1;
10506 if ac_fn_c_try_run "$LINENO"; then :
10507 ac_cv_c_bigendian=no
10509 ac_cv_c_bigendian=yes
10511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512 conftest.$ac_objext conftest.beam conftest.$ac_ext
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10518 $as_echo "$ac_cv_c_bigendian" >&6; }
10519 case $ac_cv_c_bigendian in #(
10521 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10527 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10531 as_fn_error "unknown endianness
10532 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10535 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10536 ASM_TYPES_HEADER=./asm_types.h
10538 echo "/* These defines are needed for the public ext2fs.h header file */" \
10540 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10541 uniq tmp_config.$$ >> public_config.h
10543 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10545 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10546 uniq tmp_config.$$ >> public_config.h
10548 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10550 rm -f tmp_config.$$
10551 PUBLIC_CONFIG_HEADER=./public_config.h
10553 for ac_header in inttypes.h
10555 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10556 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_INTTYPES_H 1
10565 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10566 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_INTPTR_T 1
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10576 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10577 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 #include <sys/stat.h>
10586 struct stat stat; stat.st_flags = 0;
10591 if ac_fn_c_try_compile "$LINENO"; then :
10592 e2fsprogs_cv_struct_st_flags=yes
10594 e2fsprogs_cv_struct_st_flags=no
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10600 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10601 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10603 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10604 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 #include <sys/stat.h>
10613 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10618 if ac_fn_c_try_compile "$LINENO"; then :
10619 e2fsprogs_cv_struct_st_flags_immut=yes
10621 e2fsprogs_cv_struct_st_flags_immut=no
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10627 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10628 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10629 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10633 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10634 #include <sys/socket.h>
10636 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10638 cat >>confdefs.h <<_ACEOF
10639 #define HAVE_SA_LEN 1
10644 if test -n "$BLKID_CMT"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10646 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10647 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10650 ac_func_search_save_LIBS=$LIBS
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10660 char blkid_probe_all ();
10664 return blkid_probe_all ();
10669 for ac_lib in '' blkid; do
10670 if test -z "$ac_lib"; then
10671 ac_res="none required"
10674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10676 if ac_fn_c_try_link "$LINENO"; then :
10677 ac_cv_search_blkid_probe_all=$ac_res
10679 rm -f core conftest.err conftest.$ac_objext \
10681 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10685 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10688 ac_cv_search_blkid_probe_all=no
10690 rm conftest.$ac_ext
10691 LIBS=$ac_func_search_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10694 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10695 ac_res=$ac_cv_search_blkid_probe_all
10696 if test "$ac_res" != no; then :
10697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10702 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology mbstowcs
10704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10706 eval as_val=\$$as_ac_var
10707 if test "x$as_val" = x""yes; then :
10708 cat >>confdefs.h <<_ACEOF
10709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10717 $as_echo_n "checking for socket in -lsocket... " >&6; }
10718 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lsocket $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_socket_socket=yes
10744 ac_cv_lib_socket_socket=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10751 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10752 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10753 SOCKET_LIB=-lsocket
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10758 $as_echo_n "checking for optreset... " >&6; }
10759 if test "${ac_cv_have_optreset+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 #include <unistd.h>
10767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10768 $EGREP "optreset" >/dev/null 2>&1; then :
10769 ac_cv_have_optreset=yes
10771 ac_cv_have_optreset=no
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10777 $as_echo "$ac_cv_have_optreset" >&6; }
10778 if test $ac_cv_have_optreset = yes; then
10779 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10783 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10784 if test "x$ac_cv_func_sem_init" = x""yes; then :
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10788 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10789 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lpthread $LIBS"
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 /* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10807 return sem_init ();
10812 if ac_fn_c_try_link "$LINENO"; then :
10813 ac_cv_lib_pthread_sem_init=yes
10815 ac_cv_lib_pthread_sem_init=no
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10822 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10823 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10824 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10826 SEM_INIT_LIB=-lpthread
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10829 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10830 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10833 ac_check_lib_save_LIBS=$LIBS
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10848 return sem_init ();
10853 if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_rt_sem_init=yes
10856 ac_cv_lib_rt_sem_init=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10863 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10864 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10865 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10870 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10871 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lposix4 $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10889 return sem_init ();
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_posix4_sem_init=yes
10897 ac_cv_lib_posix4_sem_init=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10904 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10905 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10906 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10908 SEM_INIT_LIB=-lposix4
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10918 $as_echo_n "checking for unified diff option... " >&6; }
10919 if diff -u $0 $0 > /dev/null 2>&1 ; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10925 $as_echo "$UNI_DIFF_OPTS" >&6; }
10929 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10949 linux* | gnu* | k*bsd*-gnu)
10950 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10953 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10958 linux* | gnu* | k*bsd*-gnu)
10959 if test "$prefix" = NONE ; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10962 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10963 if test "$mandir" = '${prefix}/man' ; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10965 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10966 mandir=/usr/share/man
10971 if test "$root_prefix" = NONE ; then
10972 if test "$prefix" = NONE ; then
10973 root_prefix="$ac_default_prefix"
10975 root_prefix="$prefix"
10977 root_bindir=$bindir
10978 root_sbindir=$sbindir
10979 root_libdir=$libdir
10980 root_sysconfdir=$sysconfdir
10982 root_bindir='${root_prefix}/bin'
10983 root_sbindir='${root_prefix}/sbin'
10984 root_libdir='${root_prefix}/lib'
10985 root_sysconfdir='${root_prefix}/etc'
10987 if test "$bindir" != '${exec_prefix}/bin'; then
10988 root_bindir=$bindir
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
10990 $as_echo "Setting root_bindir to $root_bindir" >&6; }
10992 if test "$sbindir" != '${exec_prefix}/sbin'; then
10993 root_sbindir=$sbindir
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
10995 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
10997 if test "$libdir" != '${exec_prefix}/lib'; then
10998 root_libdir=$libdir
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11000 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11002 if test "$sysconfdir" != '${prefix}/etc'; then
11003 root_sysconfdir=$sysconfdir
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11005 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11013 $as_echo_n "checking whether linker accepts -static... " >&6; }
11014 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11017 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_e2fsprogs_use_static=yes
11032 ac_cv_e2fsprogs_use_static=no
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LDFLAGS=$SAVE_LDFLAGS
11041 ac_cv_e2fsprogs_use_static=no
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11045 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11047 if test $ac_cv_e2fsprogs_use_static = yes; then
11048 LDFLAG_STATIC=-static
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11054 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11055 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11059 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11060 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11063 if test "$cross_compiling" = yes ; then
11066 DO_TEST_SUITE=check
11070 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11071 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11074 if test $cross_compiling = no; then
11075 BUILD_CFLAGS="$CFLAGS"
11076 BUILD_LDFLAGS="$LDFLAGS"
11083 test -d lib || mkdir lib
11084 test -d include || mkdir include
11085 test -d include/linux || mkdir include/linux
11086 test -d include/asm || mkdir include/asm
11087 for i in MCONFIG Makefile e2fsprogs.spec \
11088 util/Makefile util/subst.conf util/gen-tarball \
11089 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11090 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11091 lib/uuid/Makefile lib/uuid/uuid_types.h \
11092 lib/blkid/Makefile lib/blkid/blkid_types.h \
11093 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11094 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11095 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11096 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11097 resize/Makefile doc/Makefile intl/Makefile \
11098 intl/libgnuintl.h po/Makefile.in ; do
11099 if test -d `dirname ${srcdir}/$i` ; then
11100 outlist="$outlist $i"
11103 ac_config_files="$ac_config_files $outlist"
11105 cat >confcache <<\_ACEOF
11106 # This file is a shell script that caches the results of configure
11107 # tests run on this system so they can be shared between configure
11108 # scripts and configure runs, see configure's option --config-cache.
11109 # It is not useful on other systems. If it contains results you don't
11110 # want to keep, you may remove or edit it.
11112 # config.status only pays attention to the cache file if you give it
11113 # the --recheck option to rerun configure.
11115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11117 # following values.
11121 # The following way of writing the cache mishandles newlines in values,
11122 # but we know of no workaround that is simple, portable, and efficient.
11123 # So, we kill variables containing newlines.
11124 # Ultrix sh set writes to stderr and can't be redirected directly,
11125 # and sets the high bit in the cache file unless we assign to the vars.
11127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11128 eval ac_val=\$$ac_var
11132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11136 _ | IFS | as_nl) ;; #(
11137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11138 *) { eval $ac_var=; unset $ac_var;} ;;
11144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11145 *${as_nl}ac_space=\ *)
11146 # `set' does not quote correctly, so add quotes: double-quote
11147 # substitution turns \\\\ into \\, and sed turns \\ into \.
11150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11153 # `set' quotes correctly as required by POSIX, so do not add quotes.
11154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11168 if test -w "$cache_file"; then
11169 test "x$cache_file" != "x/dev/null" &&
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11171 $as_echo "$as_me: updating cache $cache_file" >&6;}
11172 cat confcache >$cache_file
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11181 # Let make expand exec_prefix.
11182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11184 # Transform confdefs.h into DEFS.
11185 # Protect against shell expansion while executing Makefile rules.
11186 # Protect against Makefile macro expansion.
11188 # If the first sed substitution is executed (which looks for macros that
11189 # take arguments), then branch to the quote section. Otherwise,
11190 # look for a macro that doesn't take arguments.
11200 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11202 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11206 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11219 DEFS=`sed -n "$ac_script" confdefs.h`
11224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11225 # 1. Remove the extension, and $U if already installed.
11226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11227 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11229 # will be set to the directory where LIBOBJS objects are built.
11230 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11231 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11233 LIBOBJS=$ac_libobjs
11235 LTLIBOBJS=$ac_ltlibobjs
11240 : ${CONFIG_STATUS=./config.status}
11242 ac_clean_files_save=$ac_clean_files
11243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11249 # Generated by $as_me.
11250 # Run this file to recreate the current configuration.
11251 # Compiler output produced by configure, useful for debugging
11252 # configure, is in config.log if it exists.
11255 ac_cs_recheck=false
11258 SHELL=\${CONFIG_SHELL-$SHELL}
11261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11262 ## -------------------- ##
11263 ## M4sh Initialization. ##
11264 ## -------------------- ##
11266 # Be more Bourne compatible
11267 DUALCASE=1; export DUALCASE # for MKS sh
11268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11272 # is contrary to our usage. Disable this feature.
11273 alias -g '${1+"$@"}'='"$@"'
11274 setopt NO_GLOB_SUBST
11276 case `(set -o) 2>/dev/null` in #(
11288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11292 # Prefer a ksh shell builtin over an external printf program on Solaris,
11293 # but without wasting forks for bash or zsh.
11294 if test -z "$BASH_VERSION$ZSH_VERSION" \
11295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11296 as_echo='print -r --'
11297 as_echo_n='print -rn --'
11298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11299 as_echo='printf %s\n'
11300 as_echo_n='printf %s'
11302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11304 as_echo_n='/usr/ucb/echo -n'
11306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11307 as_echo_n_body='eval
11311 expr "X$arg" : "X\\(.*\\)$as_nl";
11312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11316 export as_echo_n_body
11317 as_echo_n='sh -c $as_echo_n_body as_echo'
11319 export as_echo_body
11320 as_echo='sh -c $as_echo_body as_echo'
11323 # The user is always right.
11324 if test "${PATH_SEPARATOR+set}" != set; then
11326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11334 # We need space, tab and new line, in precisely that order. Quoting is
11335 # there to prevent editors from complaining about space-tab.
11336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11337 # splitting by setting IFS to empty value.)
11340 # Find who we are. Look in the path if we contain no directory separator.
11342 *[\\/]* ) as_myself=$0 ;;
11343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11347 test -z "$as_dir" && as_dir=.
11348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11354 # We did not find ourselves, most probably we were run as `sh COMMAND'
11355 # in which case we are not to be found in the path.
11356 if test "x$as_myself" = x; then
11359 if test ! -f "$as_myself"; then
11360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11364 # Unset variables that we do not need and which cause bugs (e.g. in
11365 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11366 # suppresses any "Segmentation fault" message there. '((' could
11367 # trigger a bug in pdksh 5.2.14.
11368 for as_var in BASH_ENV ENV MAIL MAILPATH
11369 do eval test x\${$as_var+set} = xset \
11370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11386 # as_fn_error ERROR [LINENO LOG_FD]
11387 # ---------------------------------
11388 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11389 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11390 # script with status $?, using 1 if that was 0.
11393 as_status=$?; test $as_status -eq 0 && as_status=1
11395 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11398 $as_echo "$as_me: error: $1" >&2
11399 as_fn_exit $as_status
11403 # as_fn_set_status STATUS
11404 # -----------------------
11405 # Set $? to STATUS, without forking.
11406 as_fn_set_status ()
11409 } # as_fn_set_status
11411 # as_fn_exit STATUS
11412 # -----------------
11413 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11417 as_fn_set_status $1
11423 # Portably unset VAR.
11426 { eval $1=; unset $1;}
11428 as_unset=as_fn_unset
11429 # as_fn_append VAR VALUE
11430 # ----------------------
11431 # Append the text in VALUE to the end of the definition contained in VAR. Take
11432 # advantage of any shell optimizations that allow amortized linear growth over
11433 # repeated appends, instead of the typical quadratic growth present in naive
11435 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11436 eval 'as_fn_append ()
11447 # as_fn_arith ARG...
11448 # ------------------
11449 # Perform arithmetic evaluation on the ARGs, and store the result in the
11450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11451 # must be portable across $(()) and expr.
11452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11453 eval 'as_fn_arith ()
11460 as_val=`expr "$@" || test $? -eq 1`
11465 if expr a : '\(a\)' >/dev/null 2>&1 &&
11466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11473 as_basename=basename
11478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11484 as_me=`$as_basename -- "$0" ||
11485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11486 X"$0" : 'X\(//\)$' \| \
11487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11489 sed '/^.*\/\([^/][^/]*\)\/*$/{
11503 # Avoid depending upon Character Ranges.
11504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11507 as_cr_digits='0123456789'
11508 as_cr_alnum=$as_cr_Letters$as_cr_digits
11510 ECHO_C= ECHO_N= ECHO_T=
11511 case `echo -n x` in #(((((
11513 case `echo 'xy\c'` in
11514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11523 rm -f conf$$ conf$$.exe conf$$.file
11524 if test -d conf$$.dir; then
11525 rm -f conf$$.dir/conf$$.file
11528 mkdir conf$$.dir 2>/dev/null
11530 if (echo >conf$$.file) 2>/dev/null; then
11531 if ln -s conf$$.file conf$$ 2>/dev/null; then
11533 # ... but there are two gotchas:
11534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11536 # In both cases, we have to default to `cp -p'.
11537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11539 elif ln conf$$.file conf$$ 2>/dev/null; then
11547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11548 rmdir conf$$.dir 2>/dev/null
11553 # Create "$as_dir" as a directory, including parents if necessary.
11558 -*) as_dir=./$as_dir;;
11560 test -d "$as_dir" || eval $as_mkdir_p || {
11564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11565 *) as_qdir=$as_dir;;
11567 as_dirs="'$as_qdir' $as_dirs"
11568 as_dir=`$as_dirname -- "$as_dir" ||
11569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11570 X"$as_dir" : 'X\(//\)[^/]' \| \
11571 X"$as_dir" : 'X\(//\)$' \| \
11572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11573 $as_echo X"$as_dir" |
11574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11578 /^X\(\/\/\)[^/].*/{
11591 test -d "$as_dir" && break
11593 test -z "$as_dirs" || eval "mkdir $as_dirs"
11594 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11598 if mkdir -p . 2>/dev/null; then
11599 as_mkdir_p='mkdir -p "$as_dir"'
11601 test -d ./-p && rmdir ./-p
11605 if test -x / >/dev/null 2>&1; then
11606 as_test_x='test -x'
11608 if ls -dL / >/dev/null 2>&1; then
11615 if test -d "$1"; then
11621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11622 ???[sx]*):;;*)false;;esac;fi
11626 as_executable_p=$as_test_x
11628 # Sed expression to map a string onto a valid CPP name.
11629 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11631 # Sed expression to map a string onto a valid variable name.
11632 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11636 ## ----------------------------------- ##
11637 ## Main body of $CONFIG_STATUS script. ##
11638 ## ----------------------------------- ##
11640 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11643 # Save the log message, to keep $0 and so on meaningful, and to
11644 # report actual input values of CONFIG_FILES etc. instead of their
11645 # values after options handling.
11647 This file was extended by $as_me, which was
11648 generated by GNU Autoconf 2.65. Invocation command line was
11650 CONFIG_FILES = $CONFIG_FILES
11651 CONFIG_HEADERS = $CONFIG_HEADERS
11652 CONFIG_LINKS = $CONFIG_LINKS
11653 CONFIG_COMMANDS = $CONFIG_COMMANDS
11656 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11661 case $ac_config_files in *"
11662 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11668 # Files that config.status was made for.
11669 config_files="$ac_config_files"
11670 config_commands="$ac_config_commands"
11674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11676 \`$as_me' instantiates files and other configuration actions
11677 from templates according to the current configuration. Unless the files
11678 and actions are specified as TAGs, all are instantiated by default.
11680 Usage: $0 [OPTION]... [TAG]...
11682 -h, --help print this help, then exit
11683 -V, --version print version number and configuration settings, then exit
11684 --config print configuration, then exit
11685 -q, --quiet, --silent
11686 do not print progress messages
11687 -d, --debug don't remove temporary files
11688 --recheck update $as_me by reconfiguring in the same conditions
11689 --file=FILE[:TEMPLATE]
11690 instantiate the configuration file FILE
11692 Configuration files:
11695 Configuration commands:
11698 Report bugs to the package provider."
11701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11702 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11705 configured by $0, generated by GNU Autoconf 2.65,
11706 with options \\"\$ac_cs_config\\"
11708 Copyright (C) 2009 Free Software Foundation, Inc.
11709 This config.status script is free software; the Free Software Foundation
11710 gives unlimited permission to copy, distribute and modify it."
11716 test -n "\$AWK" || AWK=awk
11719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11720 # The default lists apply if the user does not specify any file.
11726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11738 # Handling of the options.
11739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11742 $as_echo "$ac_cs_version"; exit ;;
11743 --config | --confi | --conf | --con | --co | --c )
11744 $as_echo "$ac_cs_config"; exit ;;
11745 --debug | --debu | --deb | --de | --d | -d )
11747 --file | --fil | --fi | --f )
11750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11752 as_fn_append CONFIG_FILES " '$ac_optarg'"
11753 ac_need_defaults=false;;
11754 --he | --h | --help | --hel | -h )
11755 $as_echo "$ac_cs_usage"; exit ;;
11756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11760 # This is an error.
11761 -*) as_fn_error "unrecognized option: \`$1'
11762 Try \`$0 --help' for more information." ;;
11764 *) as_fn_append ac_config_targets " $1"
11765 ac_need_defaults=false ;;
11771 ac_configure_extra_args=
11773 if $ac_cs_silent; then
11775 ac_configure_extra_args="$ac_configure_extra_args --silent"
11779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780 if \$ac_cs_recheck; then
11781 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11783 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11784 CONFIG_SHELL='$SHELL'
11785 export CONFIG_SHELL
11790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11795 ## Running $as_me. ##
11801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11805 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11806 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11808 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11809 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11810 LINGUAS="${LINGUAS-%UNSET%}"
11815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11817 # Handling of arguments.
11818 for ac_config_target in $ac_config_targets
11820 case $ac_config_target in
11821 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11822 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11824 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11829 # If the user did not use the arguments to specify the items to instantiate,
11830 # then the envvar interface is used. Set only those that are not.
11831 # We use the long form for the default assignment because of an extremely
11832 # bizarre bug on SunOS 4.1.3.
11833 if $ac_need_defaults; then
11834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11838 # Have a temporary directory for convenience. Make it in the build tree
11839 # simply because there is no reason against having it here, and in addition,
11840 # creating and moving files from /tmp can sometimes cause problems.
11841 # Hook for its removal unless debugging.
11842 # Note that there is a small window in which the directory will not be cleaned:
11843 # after its creation but before its name has been assigned to `$tmp'.
11847 trap 'exit_status=$?
11848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11850 trap 'as_fn_exit 1' 1 2 13 15
11852 # Create a (secure) tmp directory for tmp files.
11855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11856 test -n "$tmp" && test -d "$tmp"
11859 tmp=./conf$$-$RANDOM
11860 (umask 077 && mkdir "$tmp")
11861 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11863 # Set up the scripts for CONFIG_FILES section.
11864 # No need to generate them if there are no CONFIG_FILES.
11865 # This happens for instance with `./config.status config.h'.
11866 if test -n "$CONFIG_FILES"; then
11868 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11869 ac_cs_awk_getline=:
11870 ac_cs_awk_pipe_init=
11871 ac_cs_awk_read_file='
11872 while ((getline aline < (F[key])) > 0)
11875 ac_cs_awk_pipe_fini=
11877 ac_cs_awk_getline=false
11878 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11879 ac_cs_awk_read_file='
11881 print "cat " F[key] " &&"
11882 '$ac_cs_awk_pipe_init
11883 # The final `:' finishes the AND list.
11884 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11886 ac_cr=`echo X | tr X '\015'`
11887 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11888 # But we know of no other shell where ac_cr would be empty at this
11889 # point, so we can use a bashism as a fallback.
11890 if test "x$ac_cr" = x; then
11891 eval ac_cr=\$\'\\r\'
11893 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11894 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11897 ac_cs_awk_cr=$ac_cr
11900 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11903 # Create commands to substitute file output variables.
11905 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11906 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11907 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11910 } >conf$$files.sh &&
11911 . ./conf$$files.sh ||
11912 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11913 rm -f conf$$files.sh
11916 echo "cat >conf$$subs.awk <<_ACEOF" &&
11917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11919 } >conf$$subs.sh ||
11920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11923 for ac_last_try in false false false false false :; do
11924 . ./conf$$subs.sh ||
11925 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11928 if test $ac_delim_n = $ac_delim_num; then
11930 elif $ac_last_try; then
11931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11936 rm -f conf$$subs.sh
11938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11939 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11943 s/^/S["/; s/!.*/"]=/
11953 s/\(.\{148\}\)..*/\1/
11955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11967 s/\(.\{148\}\)..*/\1/
11969 s/["\\]/\\&/g; s/^/"/; s/$/"/
11973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11978 ' <conf$$subs.awk | sed '
11983 ' >>$CONFIG_STATUS || ac_write_fail=1
11984 rm -f conf$$subs.awk
11985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11987 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11988 for (key in S) S_is_set[key] = 1
11990 \$ac_cs_awk_pipe_init
11994 nfields = split(line, field, "@")
11996 len = length(field[1])
11997 for (i = 2; i < nfields; i++) {
11999 keylen = length(key)
12000 if (S_is_set[key]) {
12002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12003 len += length(value) + length(field[++i])
12008 if (nfields == 3 && !substed) {
12010 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12011 \$ac_cs_awk_read_file
12017 \$ac_cs_awk_pipe_fini
12020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12021 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12025 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12026 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12031 # trailing colons and then remove the whole line if VPATH becomes empty
12032 # (actually we leave an empty line to preserve line numbers).
12033 if test "x$srcdir" = x.; then
12034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12035 s/:*\$(srcdir):*/:/
12036 s/:*\${srcdir}:*/:/
12038 s/^\([^=]*=[ ]*\):*/\1/
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 fi # test -n "$CONFIG_FILES"
12048 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12053 :[FHLC]) ac_mode=$ac_tag; continue;;
12055 case $ac_mode$ac_tag in
12057 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12058 :[FH]-) ac_tag=-:-;;
12059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12076 -) ac_f="$tmp/stdin";;
12077 *) # Look for the file first in the build tree, then in the source tree
12078 # (if the path is not absolute). The absolute path cannot be DOS-style,
12079 # because $ac_f cannot contain `:'.
12083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12085 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12088 as_fn_append ac_file_inputs " '$ac_f'"
12091 # Let's still pretend it is `configure' which instantiates (i.e., don't
12092 # use $as_me), people would be surprised to read:
12093 # /* config.h. Generated by config.status. */
12094 configure_input='Generated from '`
12095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12097 if test x"$ac_file" != x-; then
12098 configure_input="$ac_file. $configure_input"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12100 $as_echo "$as_me: creating $ac_file" >&6;}
12102 # Neutralize special characters interpreted by sed in replacement strings.
12103 case $configure_input in #(
12104 *\&* | *\|* | *\\* )
12105 ac_sed_conf_input=`$as_echo "$configure_input" |
12106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12107 *) ac_sed_conf_input=$configure_input;;
12111 *:-:* | *:-) cat >"$tmp/stdin" \
12112 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12117 ac_dir=`$as_dirname -- "$ac_file" ||
12118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12119 X"$ac_file" : 'X\(//\)[^/]' \| \
12120 X"$ac_file" : 'X\(//\)$' \| \
12121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12122 $as_echo X"$ac_file" |
12123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12127 /^X\(\/\/\)[^/].*/{
12140 as_dir="$ac_dir"; as_fn_mkdir_p
12144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12147 # A ".." for each directory in $ac_dir_suffix.
12148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12149 case $ac_top_builddir_sub in
12150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12154 ac_abs_top_builddir=$ac_pwd
12155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12156 # for backward compatibility:
12157 ac_top_builddir=$ac_top_build_prefix
12160 .) # We are building in place.
12162 ac_top_srcdir=$ac_top_builddir_sub
12163 ac_abs_top_srcdir=$ac_pwd ;;
12164 [\\/]* | ?:[\\/]* ) # Absolute name.
12165 ac_srcdir=$srcdir$ac_dir_suffix;
12166 ac_top_srcdir=$srcdir
12167 ac_abs_top_srcdir=$srcdir ;;
12168 *) # Relative name.
12169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12170 ac_top_srcdir=$ac_top_build_prefix$srcdir
12171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189 # If the template does not know about datarootdir, expand it.
12190 # FIXME: This hack should be removed a few years after 2.60.
12191 ac_datarootdir_hack=; ac_datarootdir_seen=
12202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12203 *datarootdir*) ac_datarootdir_seen=yes;;
12204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12209 ac_datarootdir_hack='
12210 s&@datadir@&$datadir&g
12211 s&@docdir@&$docdir&g
12212 s&@infodir@&$infodir&g
12213 s&@localedir@&$localedir&g
12214 s&@mandir@&$mandir&g
12215 s&\\\${datarootdir}&$datarootdir&g' ;;
12219 # Neutralize VPATH when `$srcdir' = `.'.
12220 # Shell code in configure.ac might set extrasub.
12221 # FIXME: do we really want to maintain this feature?
12222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12223 ac_sed_extra="$ac_vpsub
12226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12229 s|@configure_input@|$ac_sed_conf_input|;t t
12230 s&@top_builddir@&$ac_top_builddir_sub&;t t
12231 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12232 s&@srcdir@&$ac_srcdir&;t t
12233 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12234 s&@top_srcdir@&$ac_top_srcdir&;t t
12235 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12236 s&@builddir@&$ac_builddir&;t t
12237 s&@abs_builddir@&$ac_abs_builddir&;t t
12238 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12239 s&@INSTALL@&$ac_INSTALL&;t t
12240 $ac_datarootdir_hack
12242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12243 if $ac_cs_awk_getline; then
12244 $AWK -f "$tmp/subs.awk"
12246 $AWK -f "$tmp/subs.awk" | $SHELL
12248 || as_fn_error "could not create $ac_file" "$LINENO" 5
12250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12251 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12254 which seems to be undefined. Please make sure it is defined." >&5
12255 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12256 which seems to be undefined. Please make sure it is defined." >&2;}
12260 -) cat "$tmp/out" && rm -f "$tmp/out";;
12261 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12263 || as_fn_error "could not create $ac_file" "$LINENO" 5
12267 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12268 $as_echo "$as_me: executing $ac_file commands" >&6;}
12273 case $ac_file$ac_mode in
12275 for ac_file in $CONFIG_FILES; do
12276 # Support "outfile[:infile[:infile...]]"
12278 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12280 # PO directories have a Makefile.in generated from Makefile.in.in.
12281 case "$ac_file" in */Makefile.in)
12282 # Adjust a relative srcdir.
12283 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12284 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12285 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12286 # In autoconf-2.13 it is called $ac_given_srcdir.
12287 # In autoconf-2.50 it is called $srcdir.
12288 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12289 case "$ac_given_srcdir" in
12290 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12291 /*) top_srcdir="$ac_given_srcdir" ;;
12292 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12294 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12295 rm -f "$ac_dir/POTFILES"
12296 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12297 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12298 POMAKEFILEDEPS="POTFILES.in"
12299 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12300 # on $ac_dir but don't depend on user-specified configuration
12302 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12303 # The LINGUAS file contains the set of available languages.
12304 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12305 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12307 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12308 # Hide the ALL_LINGUAS assigment from automake.
12309 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12310 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12312 # The set of available languages was given in configure.in.
12313 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12316 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12317 # Compute UPDATEPOFILES
12318 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12319 # Compute DUMMYPOFILES
12320 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12322 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12323 case "$ac_given_srcdir" in
12325 *) srcdirpre='$(srcdir)/' ;;
12331 for lang in $ALL_LINGUAS; do
12332 POFILES="$POFILES $srcdirpre$lang.po"
12333 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12334 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12335 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12337 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12338 # environment variable.
12340 if test -n "$ALL_LINGUAS"; then
12341 for presentlang in $ALL_LINGUAS; do
12343 if test "%UNSET%" != "$LINGUAS"; then
12344 desiredlanguages="$LINGUAS"
12346 desiredlanguages="$ALL_LINGUAS"
12348 for desiredlang in $desiredlanguages; do
12349 # Use the presentlang catalog if desiredlang is
12350 # a. equal to presentlang, or
12351 # b. a variant of presentlang (because in this case,
12352 # presentlang can be used as a fallback for messages
12353 # which are not translated in the desiredlang catalog).
12354 case "$desiredlang" in
12355 "$presentlang"*) useit=yes;;
12358 if test $useit = yes; then
12359 INST_LINGUAS="$INST_LINGUAS $presentlang"
12364 if test -n "$INST_LINGUAS"; then
12365 for lang in $INST_LINGUAS; do
12366 CATALOGS="$CATALOGS $lang.gmo"
12369 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12370 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"
12371 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12372 if test -f "$f"; then
12374 *.orig | *.bak | *~) ;;
12375 *) cat "$f" >> "$ac_dir/Makefile" ;;
12390 ac_clean_files=$ac_clean_files_save
12392 test $ac_write_fail = 0 ||
12393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12396 # configure is writing to config.log, and then calls config.status.
12397 # config.status does its own redirection, appending to config.log.
12398 # Unfortunately, on DOS this fails, as config.log is still kept open
12399 # by configure, so config.status won't be able to write to it; its
12400 # output is simply discarded. So we exec the FD to /dev/null,
12401 # effectively closing config.log, so it can be properly (re)opened and
12402 # appended to by config.status. When coming back to configure, we
12403 # need to make the FD available again.
12404 if test "$no_create" != yes; then
12406 ac_config_status_args=
12407 test "$silent" = yes &&
12408 ac_config_status_args="$ac_config_status_args --quiet"
12410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12413 # would make configure fail if this is the last instruction.
12414 $ac_cs_success || as_fn_exit $?
12416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12421 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi