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
764 program_transform_name
775 ac_subst_files='MCONFIG
782 PUBLIC_CONFIG_HEADER'
784 enable_option_checking
790 enable_maintainer_mode
791 enable_symlink_install
793 enable_verbose_makecmds
810 enable_e2initrd_helper
817 with_included_gettext
820 ac_precious_vars='build_alias
832 # Initialize some variables set by options.
834 ac_init_version=false
835 ac_unrecognized_opts=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
989 -help | --help | --hel | --he | -h)
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1138 -site=* | --site=* | --sit=*)
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1265 # Be sure to have absolute directory names.
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures this package to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 if test -n "$ac_init_help"; then
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-maintainer-mode enable makefile rules useful for maintainers
1443 --enable-symlink-install use symlinks when installing instead of hard links
1444 --enable-symlink-build use symlinks while building instead of hard links
1445 --enable-verbose-makecmds enable verbose make command output
1446 --enable-compression enable EXPERIMENTAL compression support
1447 --enable-htree enable EXPERIMENTAL htree directory support
1448 --enable-elf-shlibs select ELF shared libraries
1449 --enable-bsd-shlibs select BSD shared libraries
1450 --enable-profile build profiling libraries
1451 --enable-checker build checker libraries
1452 --enable-jbd-debug enable journal debugging
1453 --enable-blkid-debug enable blkid debugging
1454 --disable-testio-debug disable the use of the test I/O manager for debugging
1455 --disable-libuuid do not build private uuid library
1456 --disable-libblkid do not build private blkid library
1457 --disable-debugfs disable support of debugfs program
1458 --disable-imager disable support of e2image program
1459 --disable-resizer disable support of e2resize program
1460 --disable-defrag disable support of e4defrag program
1461 --enable-fsck build fsck wrapper program
1462 --enable-e2initrd-helper build e2initrd-helper program
1463 --disable-tls disable use of thread local support
1464 --disable-uuidd disable building the uuid daemon
1465 --disable-nls do not use Native Language Support
1466 --disable-rpath do not hardcode runtime library paths
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-diet-libc use diet libc
1472 --with-cc no longer supported, use CC= instead
1473 --with-ccopts no longer supported, use CFLAGS= instead
1474 --with-ldopts no longer supported, use LDFLAGS= instead
1475 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1476 --with-gnu-ld assume the C compiler uses GNU ld default=no
1477 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1478 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1479 --with-included-gettext use the GNU gettext library included here
1480 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1481 --without-libintl-prefix don't search for libintl in includedir and libdir
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1492 PKG_CONFIG path to pkg-config utility
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to the package provider.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1561 generated by GNU Autoconf 2.65
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 as_fn_set_status $ac_retval
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1700 ac_fn_c_check_header_mongrel ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1724 ac_header_compiler=no
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1740 ac_header_preproc=no
1742 rm -f conftest.err conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1772 eval "$3=\$ac_header_compiler"
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 } # ac_fn_c_check_header_mongrel
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=$ac_status
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 as_fn_set_status $ac_retval
1824 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists and can be compiled using the include files in
1827 # INCLUDES, setting the cache variable VAR accordingly.
1828 ac_fn_c_check_header_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1841 if ac_fn_c_try_compile "$LINENO"; then :
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_c_check_header_compile
1855 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856 # -------------------------------------------
1857 # Tests whether TYPE exists after having included INCLUDES, setting cache
1858 # variable VAR accordingly.
1859 ac_fn_c_check_type ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1893 if ac_fn_c_try_compile "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 } # ac_fn_c_check_type
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1932 # include <limits.h>
1934 # include <assert.h>
1939 /* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1946 /* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949 #if defined __stub_$2 || defined __stub___$2
1961 if ac_fn_c_try_link "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_c_check_func
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1981 ac_fn_c_compute_int ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1999 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=$ac_mid; break
2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019 if test $ac_lo -le $ac_mid; then
2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2034 static int test_array [1 - 2 * !(($2) < 0)];
2041 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=$ac_mid; break
2060 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061 if test $ac_mid -le $ac_hi; then
2065 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2094 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2106 static long int longval () { return $2; }
2107 static unsigned long int ulongval () { return $2; }
2114 FILE *f = fopen ("conftest.val", "w");
2119 long int i = longval ();
2122 fprintf (f, "%ld", i);
2126 unsigned long int i = ulongval ();
2129 fprintf (f, "%lu", i);
2131 /* Do not output a trailing newline, as this causes \r\n confusion
2132 on some platforms. */
2133 return ferror (f) || fclose (f) != 0;
2139 if ac_fn_c_try_run "$LINENO"; then :
2140 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 as_fn_set_status $ac_retval
2152 } # ac_fn_c_compute_int
2154 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2155 # ----------------------------------------------------
2156 # Tries to find if the field MEMBER exists in type AGGR, after including
2157 # INCLUDES, setting cache variable VAR accordingly.
2158 ac_fn_c_check_member ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2162 $as_echo_n "checking for $2.$3... " >&6; }
2163 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2189 if (sizeof ac_aggr.$3)
2195 if ac_fn_c_try_compile "$LINENO"; then :
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 } # ac_fn_c_check_member
2211 # ac_fn_c_check_decl LINENO SYMBOL VAR
2212 # ------------------------------------
2213 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2214 ac_fn_c_check_decl ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2218 $as_echo_n "checking whether $2 is declared... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2236 if ac_fn_c_try_compile "$LINENO"; then :
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 } # ac_fn_c_check_decl
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by $as_me, which was
2254 generated by GNU Autoconf 2.65. Invocation command line was
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_must_keep_next=false
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 -* ) ac_must_keep_next=true ;;
2346 as_fn_append ac_configure_args " '$ac_arg'"
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2365 ## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##
2370 # The following way of writing the cache mishandles newlines in values,
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 ## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##
2408 for ac_var in $ac_subst_vars
2410 eval ac_val=\$$ac_var
2412 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -n "$ac_subst_files"; then
2420 ## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##
2425 for ac_var in $ac_subst_files
2427 eval ac_val=\$$ac_var
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -s confdefs.h; then
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2495 if test -n "$CONFIG_SITE"; then
2496 ac_site_file1=$CONFIG_SITE
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506 test "x$ac_site_file" = xNONE && continue
2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2515 if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special files
2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 as_fn_append ac_header_list " stdlib.h"
2533 as_fn_append ac_header_list " unistd.h"
2534 as_fn_append ac_header_list " sys/param.h"
2535 # Check that the precious variables saved in the cache have kept the same
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2568 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2570 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585 if $ac_cache_corrupted; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2592 ## -------------------- ##
2593 ## Main body of script. ##
2594 ## -------------------- ##
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 for ac_dir in config "$srcdir"/config; do
2606 for ac_t in install-sh install.sh shtool; do
2607 if test -f "$ac_dir/$ac_t"; then
2609 ac_install_sh="$ac_aux_dir/$ac_t -c"
2614 if test -z "$ac_aux_dir"; then
2615 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2631 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2632 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2634 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2635 MONTH=`echo $DATE | awk -F- '{print $2}'`
2636 YEAR=`echo $DATE | awk -F- '{print $3}'`
2638 if expr $YEAR ">" 1900 > /dev/null ; then
2639 E2FSPROGS_YEAR=$YEAR
2640 elif expr $YEAR ">" 90 >/dev/null ; then
2641 E2FSPROGS_YEAR=19$YEAR
2643 E2FSPROGS_YEAR=20$YEAR
2647 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2648 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2649 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2650 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2651 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2652 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2653 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2654 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2655 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2656 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2657 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2658 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2659 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2660 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2663 base_ver=`echo $E2FSPROGS_VERSION | \
2664 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2666 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2668 case $E2FSPROGS_VERSION in
2670 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2673 E2FSPROGS_PKGVER="$base_ver"
2677 unset DATE MONTH YEAR base_ver pre_vers date_spec
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2679 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2681 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2687 # Make sure we can run config.sub.
2688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2689 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692 $as_echo_n "checking build system type... " >&6; }
2693 if test "${ac_cv_build+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2696 ac_build_alias=$build_alias
2697 test "x$ac_build_alias" = x &&
2698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699 test "x$ac_build_alias" = x &&
2700 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706 $as_echo "$ac_cv_build" >&6; }
2707 case $ac_cv_build in
2709 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2712 ac_save_IFS=$IFS; IFS='-'
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726 $as_echo_n "checking host system type... " >&6; }
2727 if test "${ac_cv_host+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2730 if test "x$host_alias" = x; then
2731 ac_cv_host=$ac_cv_build
2733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739 $as_echo "$ac_cv_host" >&6; }
2742 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2745 ac_save_IFS=$IFS; IFS='-'
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2803 if test -z "$ac_cv_prog_CC"; then
2805 # Extract the first word of "gcc", so it can be a program name with args.
2806 set dummy gcc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CC="gcc"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2841 if test "x$ac_ct_CC" = x; then
2844 case $cross_compiling:$ac_tool_warned in
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848 ac_tool_warned=yes ;;
2856 if test -z "$CC"; then
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_CC="${ac_tool_prefix}cc"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2897 if test -z "$CC"; then
2898 # Extract the first word of "cc", so it can be a program name with args.
2899 set dummy cc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_CC+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2917 ac_prog_rejected=yes
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 if test $ac_prog_rejected = yes; then
2929 # We found a bogon in the path, so make sure we never use it.
2930 set dummy $ac_cv_prog_CC
2932 if test $# != 0; then
2933 # We chose a different compiler from the bogus one.
2934 # However, it has the same basename, so the bogon will be chosen
2935 # first if we set CC to just the basename; use the full file name.
2937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2953 if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
2955 for ac_prog in cl.exe
2957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2994 test -n "$CC" && break
2997 if test -z "$CC"; then
2999 for ac_prog in cl.exe
3001 # Extract the first word of "$ac_prog", so it can be a program name with args.
3002 set dummy $ac_prog; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_ac_ct_CC="$ac_prog"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3038 test -n "$ac_ct_CC" && break
3041 if test "x$ac_ct_CC" = x; then
3044 case $cross_compiling:$ac_tool_warned in
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3057 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error "no acceptable C compiler found in \$PATH
3060 See \`config.log' for more details." "$LINENO" 5; }
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3066 for ac_option in --version -v -V -qversion; do
3067 { { ac_try="$ac_compiler $ac_option >&5"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076 if test -s conftest.err; then
3078 ... rest of stderr output deleted ...
3079 10q' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
3082 rm -f conftest.er1 conftest.err
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104 $as_echo_n "checking whether the C compiler works... " >&6; }
3105 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3111 for ac_file in $ac_files
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120 if { { ac_try="$ac_link_default"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link_default") 2>&5
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3136 for ac_file in $ac_files ''
3138 test -f "$ac_file" || continue
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3143 # We found the default executable, but exeext='' is most
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166 if test -z "$ac_file"; then :
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 { as_fn_set_status 77
3175 as_fn_error "C compiler cannot create executables
3176 See \`config.log' for more details." "$LINENO" 5; }; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3206 for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details." "$LINENO" 5; }
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3234 FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3271 if test "$cross_compiling" = maybe; then
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details." "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if test "${ac_cv_objext+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details." "$LINENO" 5; }
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if test "${ac_cv_prog_cc_g+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 if ac_fn_c_try_compile "$LINENO"; then :
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439 CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3447 if test "$GCC" = yes; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3458 ac_cv_prog_cc_c89=no
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 #include <sys/types.h>
3465 #include <sys/stat.h>
3466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467 struct buf { int x; };
3468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469 static char *e (p, i)
3475 static char *f (char * (*g) (char **, int), char **p, ...)
3480 s = g (p, va_arg (v,int));
3485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3486 function prototypes and stuff, but not '\xHH' hex character constants.
3487 These don't provoke an error unfortunately, instead are silently treated
3488 as 'x'. The following induces an error, until -std is added to get
3489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3490 array size at least. It's necessary to write '\x00'==0 to get something
3491 that's true only with -std. */
3492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495 inside strings and character constants. */
3497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3499 int test (int i, double x);
3500 struct s1 {int (*f) (int a);};
3501 struct s2 {int (*f) (double a);};
3502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3516 CC="$ac_save_CC $ac_arg"
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_cv_prog_cc_c89=$ac_arg
3520 rm -f core conftest.err conftest.$ac_objext
3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
3523 rm -f conftest.$ac_ext
3528 case "x$ac_cv_prog_cc_c89" in
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531 $as_echo "none needed" >&6; } ;;
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534 $as_echo "unsupported" >&6; } ;;
3536 CC="$CC $ac_cv_prog_cc_c89"
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3540 if test "x$ac_cv_prog_cc_c89" != xno; then :
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3556 ac_check_lib_save_LIBS=$LIBS
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3561 /* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3576 if ac_fn_c_try_link "$LINENO"; then :
3577 ac_cv_lib_dl_dlopen=yes
3579 ac_cv_lib_dl_dlopen=no
3581 rm -f core conftest.err conftest.$ac_objext \
3582 conftest$ac_exeext conftest.$ac_ext
3583 LIBS=$ac_check_lib_save_LIBS
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3589 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3596 # Check whether --with-diet-libc was given.
3597 if test "${with_diet_libc+set}" = set; then :
3598 withval=$with_diet_libc; CC="diet cc -nostdinc"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3601 $as_echo "CC=$CC" >&6; }
3604 # Check whether --with-cc was given.
3605 if test "${with_cc+set}" = set; then :
3606 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3610 # Check whether --with-ccopts was given.
3611 if test "${with_ccopts+set}" = set; then :
3612 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3616 # Check whether --with-ldopts was given.
3617 if test "${with_ldopts+set}" = set; then :
3618 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3665 if test -z "$ac_cv_prog_CC"; then
3667 # Extract the first word of "gcc", so it can be a program name with args.
3668 set dummy gcc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC="gcc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3703 if test "x$ac_ct_CC" = x; then
3706 case $cross_compiling:$ac_tool_warned in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3718 if test -z "$CC"; then
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}cc; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_CC="${ac_tool_prefix}cc"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3759 if test -z "$CC"; then
3760 # Extract the first word of "cc", so it can be a program name with args.
3761 set dummy cc; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if test "${ac_cv_prog_CC+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3779 ac_prog_rejected=yes
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test $ac_prog_rejected = yes; then
3791 # We found a bogon in the path, so make sure we never use it.
3792 set dummy $ac_cv_prog_CC
3794 if test $# != 0; then
3795 # We chose a different compiler from the bogus one.
3796 # However, it has the same basename, so the bogon will be chosen
3797 # first if we set CC to just the basename; use the full file name.
3799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3805 if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3815 if test -z "$CC"; then
3816 if test -n "$ac_tool_prefix"; then
3817 for ac_prog in cl.exe
3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_prog_CC+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3826 if test -n "$CC"; then
3827 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 if test -n "$CC"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 $as_echo "$CC" >&6; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3856 test -n "$CC" && break
3859 if test -z "$CC"; then
3861 for ac_prog in cl.exe
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -n "$ac_ct_CC"; then
3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_ac_ct_CC="$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891 if test -n "$ac_ct_CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893 $as_echo "$ac_ct_CC" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 test -n "$ac_ct_CC" && break
3903 if test "x$ac_ct_CC" = x; then
3906 case $cross_compiling:$ac_tool_warned in
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3919 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error "no acceptable C compiler found in \$PATH
3922 See \`config.log' for more details." "$LINENO" 5; }
3924 # Provide some information about the compiler.
3925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3928 for ac_option in --version -v -V -qversion; do
3929 { { ac_try="$ac_compiler $ac_option >&5"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3938 if test -s conftest.err; then
3940 ... rest of stderr output deleted ...
3941 10q' conftest.err >conftest.er1
3942 cat conftest.er1 >&5
3944 rm -f conftest.er1 conftest.err
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3951 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3968 if ac_fn_c_try_compile "$LINENO"; then :
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3978 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3984 ac_test_CFLAGS=${CFLAGS+set}
3985 ac_save_CFLAGS=$CFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3987 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3988 if test "${ac_cv_prog_cc_g+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_save_c_werror_flag=$ac_c_werror_flag
3992 ac_c_werror_flag=yes
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4048 $as_echo "$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050 CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052 if test "$GCC" = yes; then
4058 if test "$GCC" = yes; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4065 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4069 ac_cv_prog_cc_c89=no
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4091 s = g (p, va_arg (v,int));
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c89=$ac_arg
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 rm -f conftest.$ac_ext
4139 case "x$ac_cv_prog_cc_c89" in
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4147 CC="$CC $ac_cv_prog_cc_c89"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 if test "x$ac_cv_prog_cc_c89" != xno; then :
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 if test "$GCC" = yes; then
4162 RDYNAMIC="-rdynamic"
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4176 if test -z "$CPP"; then
4177 if test "${ac_cv_prog_CPP+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4180 # Double quotes because CPP needs to be expanded
4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4195 # include <limits.h>
4197 # include <assert.h>
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4204 # Broken: fails on valid input.
4207 rm -f conftest.err conftest.$ac_ext
4209 # OK, works on sane cases. Now check whether nonexistent headers
4210 # can be detected and how.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <ac_nonexistent.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216 # Broken: success on invalid input.
4219 # Passes both tests.
4223 rm -f conftest.err conftest.$ac_ext
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241 $as_echo "$CPP" >&6; }
4243 for ac_c_preproc_warn_flag in '' yes
4245 # Use a header file that comes with gcc, so configuring glibc
4246 # with a fresh cross-compiler works.
4247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248 # <limits.h> exists even on freestanding compilers.
4249 # On the NeXT, cc -E runs the code through the compiler's parser,
4250 # not just through cpp. "Syntax error" is here to catch this case.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4263 # Broken: fails on valid input.
4266 rm -f conftest.err conftest.$ac_ext
4268 # OK, works on sane cases. Now check whether nonexistent headers
4269 # can be detected and how.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275 # Broken: success on invalid input.
4278 # Passes both tests.
4282 rm -f conftest.err conftest.$ac_ext
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then :
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details." "$LINENO" 5; }
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348 $ac_path_GREP_found && break 3
4353 if test -z "$ac_cv_path_GREP"; then
4354 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 ac_cv_path_GREP=$GREP
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP="$ac_cv_path_GREP"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if test "${ac_cv_path_EGREP+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in egrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393 $as_echo_n 0123456789 >"conftest.in"
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 $ac_path_EGREP_found && break 3
4419 if test -z "$ac_cv_path_EGREP"; then
4420 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 ac_cv_path_EGREP=$EGREP
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4434 $as_echo_n "checking for ANSI C header files... " >&6; }
4435 if test "${ac_cv_header_stdc+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4453 if ac_fn_c_try_compile "$LINENO"; then :
4454 ac_cv_header_stdc=yes
4456 ac_cv_header_stdc=no
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 if test $ac_cv_header_stdc = yes; then
4461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 $EGREP "memchr" >/dev/null 2>&1; then :
4471 ac_cv_header_stdc=no
4477 if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "free" >/dev/null 2>&1; then :
4488 ac_cv_header_stdc=no
4494 if test $ac_cv_header_stdc = yes; then
4495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4496 if test "$cross_compiling" = yes; then :
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4503 #if ((' ' & 0x0FF) == 0x020)
4504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4507 # define ISLOWER(c) \
4508 (('a' <= (c) && (c) <= 'i') \
4509 || ('j' <= (c) && (c) <= 'r') \
4510 || ('s' <= (c) && (c) <= 'z'))
4511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4519 for (i = 0; i < 256; i++)
4520 if (XOR (islower (i), ISLOWER (i))
4521 || toupper (i) != TOUPPER (i))
4526 if ac_fn_c_try_run "$LINENO"; then :
4529 ac_cv_header_stdc=no
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4532 conftest.$ac_objext conftest.beam conftest.$ac_ext
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4538 $as_echo "$ac_cv_header_stdc" >&6; }
4539 if test $ac_cv_header_stdc = yes; then
4541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4547 inttypes.h stdint.h unistd.h
4549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4552 eval as_val=\$$as_ac_Header
4553 if test "x$as_val" = x""yes; then :
4554 cat >>confdefs.h <<_ACEOF
4555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4564 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4571 if test "$linux_headers" != yes; then
4572 LINUX_INCLUDE='-I$(top_builddir)/include'
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4576 $as_echo_n "checking for additional special compiler flags... " >&6; }
4577 if test "$GCC" = yes
4580 alpha) addcflags="-mieee" ;;
4583 if test "x$addcflags" != x
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4586 $as_echo "$addcflags" >&6; }
4587 CFLAGS="$addcflags $CFLAGS"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4590 $as_echo "(none)" >&6; }
4596 # Check whether --with-root-prefix was given.
4597 if test "${with_root_prefix+set}" = set; then :
4598 withval=$with_root_prefix; root_prefix=$withval
4602 # Check whether --enable-maintainer-mode was given.
4603 if test "${enable_maintainer_mode+set}" = set; then :
4604 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4608 $as_echo "Disabling maintainer mode" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4612 $as_echo "Enabling maintainer mode" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4618 $as_echo "Disabling maintainer mode by default" >&6; }
4623 # Check whether --enable-symlink-install was given.
4624 if test "${enable_symlink_install+set}" = set; then :
4625 enableval=$enable_symlink_install; if test "$enableval" = "no"
4627 LINK_INSTALL_FLAGS=-f
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4629 $as_echo "Disabling symlinks for install" >&6; }
4631 LINK_INSTALL_FLAGS=-sf
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4633 $as_echo "Enabling symlinks for install" >&6; }
4637 LINK_INSTALL_FLAGS=-f
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4639 $as_echo "Disabling symlinks for install" >&6; }
4644 # Check whether --enable-symlink-build was given.
4645 if test "${enable_symlink_build+set}" = set; then :
4646 enableval=$enable_symlink_build; if test "$enableval" = "no"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4650 $as_echo "Disabling symlinks for build" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4654 $as_echo "Enabling symlinks for build" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4660 $as_echo "Disabling symlinks for build" >&6; }
4665 # Check whether --enable-verbose-makecmds was given.
4666 if test "${enable_verbose_makecmds+set}" = set; then :
4667 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4670 $as_echo "Disabling verbose make commands" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4675 $as_echo "Enabling verbose make commands" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4682 $as_echo "Disabling verbose make commands" >&6; }
4690 # Check whether --enable-compression was given.
4691 if test "${enable_compression+set}" = set; then :
4692 enableval=$enable_compression; if test "$enableval" = "no"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4695 $as_echo "Disabling compression support" >&6; }
4697 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4700 $as_echo "Enabling compression support" >&6; }
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4702 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4707 $as_echo "Disabling compression support by default" >&6; }
4711 # Check whether --enable-htree was given.
4712 if test "${enable_htree+set}" = set; then :
4713 enableval=$enable_htree; if test "$enableval" = "no"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4717 $as_echo "Disabling 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" >&5
4723 $as_echo "Enabling htree directory support" >&6; }
4728 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4731 $as_echo "Enabling htree directory support by default" >&6; }
4736 E2_PKG_CONFIG_STATIC=--static
4739 # Check whether --enable-elf-shlibs was given.
4740 if test "${enable_elf_shlibs+set}" = set; then :
4741 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4744 MAKEFILE_ELF=/dev/null
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4746 $as_echo "Disabling ELF shared libraries" >&6; }
4748 E2_PKG_CONFIG_STATIC=
4750 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4753 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4759 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4761 $as_echo "Enabling ELF shared libraries" >&6; }
4765 MAKEFILE_ELF=/dev/null
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4768 $as_echo "Disabling ELF shared libraries by default" >&6; }
4774 # Check whether --enable-bsd-shlibs was given.
4775 if test "${enable_bsd_shlibs+set}" = set; then :
4776 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4779 MAKEFILE_BSDLIB=/dev/null
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4781 $as_echo "Disabling BSD shared libraries" >&6; }
4783 E2_PKG_CONFIG_STATIC=
4785 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4789 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4794 $as_echo "Enabling BSD shared libraries" >&6; }
4798 MAKEFILE_BSDLIB=/dev/null
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4801 $as_echo "Disabling BSD shared libraries by default" >&6; }
4807 # Check whether --enable-profile was given.
4808 if test "${enable_profile+set}" = set; then :
4809 enableval=$enable_profile; if test "$enableval" = "no"
4812 MAKEFILE_PROFILE=/dev/null
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4814 $as_echo "Disabling profiling libraries" >&6; }
4817 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4818 PROFILED_LIB_EXT=_p.a
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4820 $as_echo "Building profiling libraries" >&6; }
4825 MAKEFILE_PROFILE=/dev/null
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4827 $as_echo "Disabling profiling libraries by default" >&6; }
4833 # Check whether --enable-checker was given.
4834 if test "${enable_checker+set}" = set; then :
4835 enableval=$enable_checker; if test "$enableval" = "no"
4838 MAKEFILE_CHECKER=/dev/null
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4840 $as_echo "Disabling checker libraries" >&6; }
4843 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4845 $as_echo "Building checker libraries" >&6; }
4850 MAKEFILE_CHECKER=/dev/null
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4852 $as_echo "Disabling checker libraries by default" >&6; }
4863 # Check whether --enable-jbd-debug was given.
4864 if test "${enable_jbd_debug+set}" = set; then :
4865 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4868 $as_echo "Disabling journal debugging" >&6; }
4870 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4873 $as_echo "Enabling journal debugging" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4878 $as_echo "Disabling journal debugging by default" >&6; }
4882 # Check whether --enable-blkid-debug was given.
4883 if test "${enable_blkid_debug+set}" = set; then :
4884 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4887 $as_echo "Disabling blkid debugging" >&6; }
4889 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4892 $as_echo "Enabling blkid debugging" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4897 $as_echo "Disabling blkid debugging by default" >&6; }
4901 # Check whether --enable-testio-debug was given.
4902 if test "${enable_testio_debug+set}" = set; then :
4903 enableval=$enable_testio_debug; if test "$enableval" = "no"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4906 $as_echo "Disabling testio debugging" >&6; }
4910 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4913 $as_echo "Enabling testio debugging" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4918 $as_echo "Enabling testio debugging by default" >&6; }
4919 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4928 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4961 if test -n "$PKG_CONFIG"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4963 $as_echo "$PKG_CONFIG" >&6; }
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4971 if test -z "$ac_cv_path_PKG_CONFIG"; then
4972 ac_pt_PKG_CONFIG=$PKG_CONFIG
4973 # Extract the first word of "pkg-config", so it can be a program name with args.
4974 set dummy pkg-config; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4980 case $ac_pt_PKG_CONFIG in
4982 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5004 if test -n "$ac_pt_PKG_CONFIG"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5006 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5012 if test "x$ac_pt_PKG_CONFIG" = x; then
5015 case $cross_compiling:$ac_tool_warned in
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5021 PKG_CONFIG=$ac_pt_PKG_CONFIG
5024 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5028 if test -n "$PKG_CONFIG"; then
5029 _pkg_min_version=0.9.0
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5031 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5032 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5047 DEPPROFILED_LIBUUID=
5049 # Check whether --enable-libuuid was given.
5050 if test "${enable_libuuid+set}" = set; then :
5051 enableval=$enable_libuuid; if test "$enableval" = "no"
5053 if test -z "$PKG_CONFIG"; then
5054 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5058 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5059 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5062 ac_check_lib_save_LIBS=$LIBS
5063 LIBS="-luuid $LIBUUID $LIBS"
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5067 /* Override any GCC internal prototype to avoid an error.
5068 Use char because int might match the return type of a GCC
5069 builtin and then its argument prototype would still apply. */
5073 char uuid_generate ();
5077 return uuid_generate ();
5082 if ac_fn_c_try_link "$LINENO"; then :
5083 ac_cv_lib_uuid_uuid_generate=yes
5085 ac_cv_lib_uuid_uuid_generate=no
5087 rm -f core conftest.err conftest.$ac_objext \
5088 conftest$ac_exeext conftest.$ac_ext
5089 LIBS=$ac_check_lib_save_LIBS
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5092 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5093 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5094 LIBUUID=`$PKG_CONFIG --libs uuid`;
5095 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5097 as_fn_error "external uuid library not found" "$LINENO" 5
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5102 $as_echo "Disabling private uuid library" >&6; }
5104 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5106 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5107 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5108 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5109 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5111 $as_echo "Enabling private uuid library" >&6; }
5115 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5117 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5118 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5119 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5120 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5122 $as_echo "Enabling private uuid library by default" >&6; }
5135 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5136 if test -n "$ac_tool_prefix"; then
5137 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5168 if test -n "$PKG_CONFIG"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5170 $as_echo "$PKG_CONFIG" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5178 if test -z "$ac_cv_path_PKG_CONFIG"; then
5179 ac_pt_PKG_CONFIG=$PKG_CONFIG
5180 # Extract the first word of "pkg-config", so it can be a program name with args.
5181 set dummy pkg-config; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 case $ac_pt_PKG_CONFIG in
5189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5211 if test -n "$ac_pt_PKG_CONFIG"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5213 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_pt_PKG_CONFIG" = x; then
5222 case $cross_compiling:$ac_tool_warned in
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5228 PKG_CONFIG=$ac_pt_PKG_CONFIG
5231 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5235 if test -n "$PKG_CONFIG"; then
5236 _pkg_min_version=0.9.0
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5238 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5239 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5254 DEPPROFILED_LIBBLKID=
5256 # Check whether --enable-libblkid was given.
5257 if test "${enable_libblkid+set}" = set; then :
5258 enableval=$enable_libblkid; if test "$enableval" = "no"
5260 if test -z "$PKG_CONFIG"; then
5261 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5265 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5266 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5269 ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-lblkid $LIBBLKID $LIBS"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5274 /* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5280 char blkid_get_cache ();
5284 return blkid_get_cache ();
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 ac_cv_lib_blkid_blkid_get_cache=yes
5292 ac_cv_lib_blkid_blkid_get_cache=no
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5299 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5300 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5301 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5302 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5304 as_fn_error "external blkid library not found" "$LINENO" 5
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5309 $as_echo "Disabling private blkid library" >&6; }
5311 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5312 DEPLIBBLKID=$LIBBLKID
5313 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5314 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5315 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5316 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5317 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5320 $as_echo "Enabling private blkid library" >&6; }
5324 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5325 DEPLIBBLKID=$LIBBLKID
5326 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5327 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5328 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5329 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5330 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5333 $as_echo "Enabling private blkid library by default" >&6; }
5344 # Check whether --enable-debugfs was given.
5345 if test "${enable_debugfs+set}" = set; then :
5346 enableval=$enable_debugfs; if test "$enableval" = "no"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5349 $as_echo "Disabling debugfs support" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5354 $as_echo "Enabling debugfs support" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5359 $as_echo "Enabling debugfs support by default" >&6; }
5365 # Check whether --enable-imager was given.
5366 if test "${enable_imager+set}" = set; then :
5367 enableval=$enable_imager; if test "$enableval" = "no"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5370 $as_echo "Disabling e2image support" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5375 $as_echo "Enabling e2image support" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5380 $as_echo "Enabling e2image support by default" >&6; }
5386 # Check whether --enable-resizer was given.
5387 if test "${enable_resizer+set}" = set; then :
5388 enableval=$enable_resizer; if test "$enableval" = "no"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5391 $as_echo "Disabling e2resize support" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5396 $as_echo "Enabling e2resize support" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5401 $as_echo "Enabling e2resize support by default" >&6; }
5407 # Check whether --enable-defrag was given.
5408 if test "${enable_defrag+set}" = set; then :
5409 enableval=$enable_defrag; if test "$enableval" = "no"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5412 $as_echo "Disabling e4defrag support" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5417 $as_echo "Enabling e4defrag support" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5422 $as_echo "Enabling e4defrag support by default" >&6; }
5428 # Check whether --enable-fsck was given.
5429 if test "${enable_fsck+set}" = set; then :
5430 enableval=$enable_fsck; if test "$enableval" = "no"
5432 FSCK_PROG='' FSCK_MAN=''
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5434 $as_echo "Not building fsck wrapper" >&6; }
5436 FSCK_PROG=fsck FSCK_MAN=fsck.8
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5438 $as_echo "Building fsck wrapper" >&6; }
5444 FSCK_PROG='' FSCK_MAN=''
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5446 $as_echo "Not building fsck wrapper by default" >&6; }
5449 FSCK_PROG=fsck FSCK_MAN=fsck.8
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5451 $as_echo "Building fsck wrapper by default" >&6; }
5458 # Check whether --enable-e2initrd-helper was given.
5459 if test "${enable_e2initrd_helper+set}" = set; then :
5460 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5462 E2INITRD_PROG='' E2INITRD_MAN=''
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5464 $as_echo "Not building e2initrd helper" >&6; }
5466 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5468 $as_echo "Building e2initrd helper" >&6; }
5472 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5474 $as_echo "Building e2initrd helper by default" >&6; }
5480 # Check whether --enable-tls was given.
5481 if test "${enable_tls+set}" = set; then :
5482 enableval=$enable_tls; if test "$enableval" = "no"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5486 $as_echo "Disabling thread local support" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5490 $as_echo "Enabling thread local support" >&6; }
5494 if test -n "$WITH_DIET_LIBC"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5498 $as_echo "Diet libc does not support thread local support" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5502 $as_echo "Try using thread local support by default" >&6; }
5507 if test "$try_tls" = "yes"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5511 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5512 if test "${ac_cv_tls+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5516 ax_tls_keywords="__thread __declspec(thread) none"
5517 for ax_tls_keyword in $ax_tls_keywords; do
5518 case $ax_tls_keyword in
5519 none) ac_cv_tls=none ; break ;;
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5526 static $ax_tls_keyword int bar;
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 ac_cv_tls=$ax_tls_keyword ; break
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 if test "$ac_cv_tls" != "none"; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define TLS $ac_cv_tls
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5558 $as_echo "$ac_cv_tls" >&6; }
5561 # Check whether --enable-uuidd was given.
5562 if test "${enable_uuidd+set}" = set; then :
5563 enableval=$enable_uuidd; if test "$enableval" = "no"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5566 $as_echo "Not building uuidd" >&6; }
5569 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5573 $as_echo "Building uuidd" >&6; }
5577 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5581 $as_echo "Building uuidd by default" >&6; }
5586 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5588 GETTEXT_PACKAGE=e2fsprogs
5590 VERSION="$E2FSPROGS_VERSION"
5592 cat >>confdefs.h <<_ACEOF
5593 #define PACKAGE "$PACKAGE"
5596 cat >>confdefs.h <<_ACEOF
5597 #define VERSION "$VERSION"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5609 $as_echo_n "(cached) " >&6
5611 cat >conftest.make <<\_ACEOF
5614 @echo '@@@%%%=$(MAKE)=@@@%%%'
5616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5619 eval ac_cv_prog_make_${ac_make}_set=yes;;
5621 eval ac_cv_prog_make_${ac_make}_set=no;;
5625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 SET_MAKE="MAKE=${MAKE-make}"
5635 # Find a good install program. We prefer a C program (faster),
5636 # so one script is as good as another. But avoid the broken or
5637 # incompatible versions:
5638 # SysV /etc/install, /usr/sbin/install
5639 # SunOS /usr/etc/install
5640 # IRIX /sbin/install
5642 # AmigaOS /C/install, which installs bootblocks on floppy discs
5643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5646 # OS/2's system install, which has a completely different semantic
5647 # ./install, which can be erroneously created by make from ./install.sh.
5648 # Reject install programs that cannot install multiple files.
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5650 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5651 if test -z "$INSTALL"; then
5652 if test "${ac_cv_path_install+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 # Account for people who put trailing slashes in PATH elements.
5661 case $as_dir/ in #((
5662 ./ | .// | /[cC]/* | \
5663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5664 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5667 # OSF1 and SCO ODT 3.0 have their own names for install.
5668 # Don't use installbsd from OSF since it installs stuff as root
5670 for ac_prog in ginstall scoinst install; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5673 if test $ac_prog = install &&
5674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5675 # AIX install. It has an incompatible calling convention.
5677 elif test $ac_prog = install &&
5678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5679 # program-specific install script used by HP pwplus--don't use.
5682 rm -rf conftest.one conftest.two conftest.dir
5683 echo one > conftest.one
5684 echo two > conftest.two
5686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5687 test -s conftest.one && test -s conftest.two &&
5688 test -s conftest.dir/conftest.one &&
5689 test -s conftest.dir/conftest.two
5691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5704 rm -rf conftest.one conftest.two conftest.dir
5707 if test "${ac_cv_path_install+set}" = set; then
5708 INSTALL=$ac_cv_path_install
5710 # As a last resort, use the slow shell script. Don't cache a
5711 # value for INSTALL within a source directory, because that will
5712 # break other packages using the cache if that directory is
5713 # removed, or if the value is a relative name.
5714 INSTALL=$ac_install_sh
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5718 $as_echo "$INSTALL" >&6; }
5720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5721 # It thinks the first close brace ends the variable substitution.
5722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5730 if test -n "$ac_aux_dir"; then
5731 case "$ac_aux_dir" in
5732 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5733 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5736 if test -z "$MKINSTALLDIRS"; then
5737 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5743 $as_echo_n "checking whether NLS is requested... " >&6; }
5744 # Check whether --enable-nls was given.
5745 if test "${enable_nls+set}" = set; then :
5746 enableval=$enable_nls; USE_NLS=$enableval
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5752 $as_echo "$USE_NLS" >&6; }
5759 # Prepare PATH_SEPARATOR.
5760 # The user is always right.
5761 if test "${PATH_SEPARATOR+set}" != set; then
5762 echo "#! /bin/sh" >conf$$.sh
5763 echo "exit 0" >>conf$$.sh
5765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5773 # Find out how to test for executable files. Don't use a zero-byte file,
5774 # as systems may use methods other than mode bits to determine executability.
5775 cat >conf$$.file <<_ASEOF
5779 chmod +x conf$$.file
5780 if test -x conf$$.file >/dev/null 2>&1; then
5781 ac_executable_p="test -x"
5783 ac_executable_p="test -f"
5787 # Extract the first word of "msgfmt", so it can be a program name with args.
5788 set dummy msgfmt; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5800 for ac_dir in $PATH; do
5802 test -z "$ac_dir" && ac_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5805 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5806 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5807 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5814 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5818 MSGFMT="$ac_cv_path_MSGFMT"
5819 if test "$MSGFMT" != ":"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5821 $as_echo "$MSGFMT" >&6; }
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5827 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5828 set dummy gmsgfmt; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5836 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5858 GMSGFMT=$ac_cv_path_GMSGFMT
5859 if test -n "$GMSGFMT"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5861 $as_echo "$GMSGFMT" >&6; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5870 # Prepare PATH_SEPARATOR.
5871 # The user is always right.
5872 if test "${PATH_SEPARATOR+set}" != set; then
5873 echo "#! /bin/sh" >conf$$.sh
5874 echo "exit 0" >>conf$$.sh
5876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5884 # Find out how to test for executable files. Don't use a zero-byte file,
5885 # as systems may use methods other than mode bits to determine executability.
5886 cat >conf$$.file <<_ASEOF
5890 chmod +x conf$$.file
5891 if test -x conf$$.file >/dev/null 2>&1; then
5892 ac_executable_p="test -x"
5894 ac_executable_p="test -f"
5898 # Extract the first word of "xgettext", so it can be a program name with args.
5899 set dummy xgettext; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH; do
5913 test -z "$ac_dir" && ac_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5916 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5917 (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
5918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5925 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5929 XGETTEXT="$ac_cv_path_XGETTEXT"
5930 if test "$XGETTEXT" != ":"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5932 $as_echo "$XGETTEXT" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963 ac_executable_p="test -x"
5965 ac_executable_p="test -f"
5969 # Extract the first word of "msgmerge", so it can be a program name with args.
5970 set dummy msgmerge; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5978 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH; do
5984 test -z "$ac_dir" && ac_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5988 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5995 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5999 MSGMERGE="$ac_cv_path_MSGMERGE"
6000 if test "$MSGMERGE" != ":"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6002 $as_echo "$MSGMERGE" >&6; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6009 if test "$GMSGFMT" != ":"; then
6010 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6011 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6014 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6016 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6021 if test "$XGETTEXT" != ":"; then
6022 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6023 (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
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6027 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6033 ac_config_commands="$ac_config_commands default-1"
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$RANLIB"; then
6045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 RANLIB=$ac_cv_prog_RANLIB
6065 if test -n "$RANLIB"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6067 $as_echo "$RANLIB" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6075 if test -z "$ac_cv_prog_RANLIB"; then
6076 ac_ct_RANLIB=$RANLIB
6077 # Extract the first word of "ranlib", so it can be a program name with args.
6078 set dummy ranlib; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_RANLIB"; then
6085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_RANLIB="ranlib"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6105 if test -n "$ac_ct_RANLIB"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6107 $as_echo "$ac_ct_RANLIB" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6113 if test "x$ac_ct_RANLIB" = x; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6122 RANLIB=$ac_ct_RANLIB
6125 RANLIB="$ac_cv_prog_RANLIB"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6130 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6131 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6134 ac_check_lib_save_LIBS=$LIBS
6135 LIBS="-lcposix $LIBS"
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 /* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
6154 if ac_fn_c_try_link "$LINENO"; then :
6155 ac_cv_lib_cposix_strerror=yes
6157 ac_cv_lib_cposix_strerror=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_check_lib_save_LIBS
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6164 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6165 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6166 LIBS="$LIBS -lcposix"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6172 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6173 if test "${ac_cv_c_const+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6182 /* FIXME: Include the comments suggested by Paul. */
6184 /* Ultrix mips cc rejects this. */
6185 typedef int charset[2];
6187 /* SunOS 4.1.1 cc rejects this. */
6188 char const *const *pcpcc;
6190 /* NEC SVR4.0.2 mips cc rejects this. */
6191 struct point {int x, y;};
6192 static struct point const zero = {0,0};
6193 /* AIX XL C 1.02.0.0 rejects this.
6194 It does not let you subtract one const X* pointer from another in
6195 an arm of an if-expression whose if-part is not a constant
6197 const char *g = "string";
6198 pcpcc = &g + (g ? g-g : 0);
6199 /* HPUX 7.0 cc rejects these. */
6201 ppc = (char**) pcpcc;
6202 pcpcc = (char const *const *) ppc;
6203 { /* SCO 3.2v4 cc rejects this. */
6205 char const *s = 0 ? (char *) 0 : (char const *) 0;
6210 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6212 const int *foo = &x[0];
6215 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6216 typedef const int *iptr;
6220 { /* AIX XL C 1.02.0.0 rejects this saying
6221 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6222 struct s { int j; const int *ap[3]; };
6223 struct s *b; b->j = 5;
6225 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6229 return !cs[0] && !zero.x;
6236 if ac_fn_c_try_compile "$LINENO"; then :
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6244 $as_echo "$ac_cv_c_const" >&6; }
6245 if test $ac_cv_c_const = no; then
6247 $as_echo "#define const /**/" >>confdefs.h
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6253 $as_echo_n "checking for signed... " >&6; }
6254 if test "${bh_cv_c_signed+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6268 if ac_fn_c_try_compile "$LINENO"; then :
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6276 $as_echo "$bh_cv_c_signed" >&6; }
6277 if test $bh_cv_c_signed = no; then
6279 $as_echo "#define signed /**/" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6284 $as_echo_n "checking for inline... " >&6; }
6285 if test "${ac_cv_c_inline+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6289 for ac_kw in inline __inline__ __inline; do
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6294 static $ac_kw foo_t static_foo () {return 0; }
6295 $ac_kw foo_t foo () {return 0; }
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 ac_cv_c_inline=$ac_kw
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 test "$ac_cv_c_inline" != no && break
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6308 $as_echo "$ac_cv_c_inline" >&6; }
6310 case $ac_cv_c_inline in
6313 case $ac_cv_c_inline in
6315 *) ac_val=$ac_cv_c_inline;;
6317 cat >>confdefs.h <<_ACEOF
6319 #define inline $ac_val
6325 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6326 if test "x$ac_cv_type_off_t" = x""yes; then :
6330 cat >>confdefs.h <<_ACEOF
6331 #define off_t long int
6336 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6337 if test "x$ac_cv_type_size_t" = x""yes; then :
6341 cat >>confdefs.h <<_ACEOF
6342 #define size_t unsigned int
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6349 $as_echo_n "checking for long long... " >&6; }
6350 if test "${ac_cv_type_long_long+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 long long ll = 1LL; int i = 63;
6359 long long llmax = (long long) -1;
6360 return ll << i | ll >> i | llmax / ll | llmax % ll;
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 ac_cv_type_long_long=yes
6368 ac_cv_type_long_long=no
6370 rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6374 $as_echo "$ac_cv_type_long_long" >&6; }
6375 if test $ac_cv_type_long_long = yes; then
6377 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6383 $as_echo_n "checking for long double... " >&6; }
6384 if test "${gt_cv_c_long_double+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6387 if test "$GCC" = yes; then
6388 gt_cv_c_long_double=yes
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6393 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6394 long double foo = 0.0;
6395 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6396 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 gt_cv_c_long_double=yes
6409 gt_cv_c_long_double=no
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6415 $as_echo "$gt_cv_c_long_double" >&6; }
6416 if test $gt_cv_c_long_double = yes; then
6418 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6424 $as_echo_n "checking for wchar_t... " >&6; }
6425 if test "${gt_cv_c_wchar_t+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6431 wchar_t foo = (wchar_t)'\0';
6440 if ac_fn_c_try_compile "$LINENO"; then :
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6448 $as_echo "$gt_cv_c_wchar_t" >&6; }
6449 if test $gt_cv_c_wchar_t = yes; then
6451 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6457 $as_echo_n "checking for wint_t... " >&6; }
6458 if test "${gt_cv_c_wint_t+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6464 wint_t foo = (wchar_t)'\0';
6473 if ac_fn_c_try_compile "$LINENO"; then :
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6481 $as_echo "$gt_cv_c_wint_t" >&6; }
6482 if test $gt_cv_c_wint_t = yes; then
6484 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6490 $as_echo_n "checking for inttypes.h... " >&6; }
6491 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #include <sys/types.h>
6497 #include <inttypes.h>
6501 uintmax_t i = (uintmax_t) -1;
6506 if ac_fn_c_try_compile "$LINENO"; then :
6507 jm_ac_cv_header_inttypes_h=yes
6509 jm_ac_cv_header_inttypes_h=no
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6514 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6515 if test $jm_ac_cv_header_inttypes_h = yes; then
6517 cat >>confdefs.h <<_ACEOF
6518 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6525 $as_echo_n "checking for stdint.h... " >&6; }
6526 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6536 uintmax_t i = (uintmax_t) -1;
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542 jm_ac_cv_header_stdint_h=yes
6544 jm_ac_cv_header_stdint_h=no
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6549 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6550 if test $jm_ac_cv_header_stdint_h = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_STDINT_H_WITH_UINTMAX 1
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6562 $as_echo_n "checking for intmax_t... " >&6; }
6563 if test "${gt_cv_c_intmax_t+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6571 #if HAVE_STDINT_H_WITH_UINTMAX
6574 #if HAVE_INTTYPES_H_WITH_UINTMAX
6575 #include <inttypes.h>
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 gt_cv_c_intmax_t=yes
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6594 $as_echo "$gt_cv_c_intmax_t" >&6; }
6595 if test $gt_cv_c_intmax_t = yes; then
6597 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6604 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6605 if test "${gt_cv_func_printf_posix+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6609 if test "$cross_compiling" = yes; then :
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6620 $EGREP "notposix" >/dev/null 2>&1; then :
6621 gt_cv_func_printf_posix="guessing no"
6623 gt_cv_func_printf_posix="guessing yes"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6634 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6635 dollar expansion (possibly an autoconf bug). */
6636 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6637 static char buf[100];
6640 sprintf (buf, format, 33, 55);
6641 return (strcmp (buf, "55 33") != 0);
6644 if ac_fn_c_try_run "$LINENO"; then :
6645 gt_cv_func_printf_posix=yes
6647 gt_cv_func_printf_posix=no
6649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6650 conftest.$ac_objext conftest.beam conftest.$ac_ext
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6656 $as_echo "$gt_cv_func_printf_posix" >&6; }
6657 case $gt_cv_func_printf_posix in
6660 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6665 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6666 # for constant arguments. Useless!
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6668 $as_echo_n "checking for working alloca.h... " >&6; }
6669 if test "${ac_cv_working_alloca_h+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6678 char *p = (char *) alloca (2 * sizeof (int));
6684 if ac_fn_c_try_link "$LINENO"; then :
6685 ac_cv_working_alloca_h=yes
6687 ac_cv_working_alloca_h=no
6689 rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6693 $as_echo "$ac_cv_working_alloca_h" >&6; }
6694 if test $ac_cv_working_alloca_h = yes; then
6696 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6701 $as_echo_n "checking for alloca... " >&6; }
6702 if test "${ac_cv_func_alloca_works+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6708 # define alloca __builtin_alloca
6711 # include <malloc.h>
6712 # define alloca _alloca
6714 # ifdef HAVE_ALLOCA_H
6715 # include <alloca.h>
6720 # ifndef alloca /* predefined by HP cc +Olibcalls */
6731 char *p = (char *) alloca (1);
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 ac_cv_func_alloca_works=yes
6740 ac_cv_func_alloca_works=no
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6746 $as_echo "$ac_cv_func_alloca_works" >&6; }
6748 if test $ac_cv_func_alloca_works = yes; then
6750 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6754 # that cause trouble. Some versions do not even contain alloca or
6755 # contain a buggy version. If you still want to use their alloca,
6756 # use ar to extract alloca.o from them instead of compiling alloca.c.
6758 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6760 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6764 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6765 if test "${ac_cv_os_cray+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #if defined CRAY && ! defined CRAY2
6777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778 $EGREP "webecray" >/dev/null 2>&1; then :
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6787 $as_echo "$ac_cv_os_cray" >&6; }
6788 if test $ac_cv_os_cray = yes; then
6789 for ac_func in _getb67 GETB67 getb67; do
6790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6792 eval as_val=\$$as_ac_var
6793 if test "x$as_val" = x""yes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define CRAY_STACKSEG_END $ac_func
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6806 $as_echo_n "checking stack direction for C alloca... " >&6; }
6807 if test "${ac_cv_c_stack_direction+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6810 if test "$cross_compiling" = yes; then :
6811 ac_cv_c_stack_direction=0
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 $ac_includes_default
6817 find_stack_direction ()
6819 static char *addr = 0;
6824 return find_stack_direction ();
6827 return (&dummy > addr) ? 1 : -1;
6833 return find_stack_direction () < 0;
6836 if ac_fn_c_try_run "$LINENO"; then :
6837 ac_cv_c_stack_direction=1
6839 ac_cv_c_stack_direction=-1
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6847 $as_echo "$ac_cv_c_stack_direction" >&6; }
6848 cat >>confdefs.h <<_ACEOF
6849 #define STACK_DIRECTION $ac_cv_c_stack_direction
6858 for ac_header in $ac_header_list
6860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6863 eval as_val=\$$as_ac_Header
6864 if test "x$as_val" = x""yes; then :
6865 cat >>confdefs.h <<_ACEOF
6866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6880 for ac_func in getpagesize
6882 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6883 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6884 cat >>confdefs.h <<_ACEOF
6885 #define HAVE_GETPAGESIZE 1
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6892 $as_echo_n "checking for working mmap... " >&6; }
6893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 if test "$cross_compiling" = yes; then :
6897 ac_cv_func_mmap_fixed_mapped=no
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 $ac_includes_default
6902 /* malloc might have been renamed as rpl_malloc. */
6905 /* Thanks to Mike Haertel and Jim Avera for this test.
6906 Here is a matrix of mmap possibilities:
6907 mmap private not fixed
6908 mmap private fixed at somewhere currently unmapped
6909 mmap private fixed at somewhere already mapped
6910 mmap shared not fixed
6911 mmap shared fixed at somewhere currently unmapped
6912 mmap shared fixed at somewhere already mapped
6913 For private mappings, we should verify that changes cannot be read()
6914 back from the file, nor mmap's back from the file at a different
6915 address. (There have been systems where private was not correctly
6916 implemented like the infamous i386 svr4.0, and systems where the
6917 VM page cache was not coherent with the file system buffer cache
6918 like early versions of FreeBSD and possibly contemporary NetBSD.)
6919 For shared mappings, we should conversely verify that changes get
6920 propagated back to all the places they're supposed to be.
6922 Grep wants private fixed already mapped.
6923 The main things grep needs to know about mmap are:
6924 * does it exist and is it safe to write into the mmap'd area
6925 * how to use it (BSD variants) */
6928 #include <sys/mman.h>
6930 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6934 /* This mess was copied from the GNU getpagesize.h. */
6935 #ifndef HAVE_GETPAGESIZE
6936 # ifdef _SC_PAGESIZE
6937 # define getpagesize() sysconf(_SC_PAGESIZE)
6938 # else /* no _SC_PAGESIZE */
6939 # ifdef HAVE_SYS_PARAM_H
6940 # include <sys/param.h>
6941 # ifdef EXEC_PAGESIZE
6942 # define getpagesize() EXEC_PAGESIZE
6943 # else /* no EXEC_PAGESIZE */
6945 # define getpagesize() NBPG * CLSIZE
6948 # endif /* no CLSIZE */
6949 # else /* no NBPG */
6951 # define getpagesize() NBPC
6952 # else /* no NBPC */
6954 # define getpagesize() PAGESIZE
6955 # endif /* PAGESIZE */
6956 # endif /* no NBPC */
6957 # endif /* no NBPG */
6958 # endif /* no EXEC_PAGESIZE */
6959 # else /* no HAVE_SYS_PARAM_H */
6960 # define getpagesize() 8192 /* punt totally */
6961 # endif /* no HAVE_SYS_PARAM_H */
6962 # endif /* no _SC_PAGESIZE */
6964 #endif /* no HAVE_GETPAGESIZE */
6969 char *data, *data2, *data3;
6974 pagesize = getpagesize ();
6976 /* First, make a file with some known garbage in it. */
6977 data = (char *) malloc (pagesize);
6980 for (i = 0; i < pagesize; ++i)
6981 *(data + i) = rand ();
6983 fd = creat ("conftest.mmap", 0600);
6986 if (write (fd, data, pagesize) != pagesize)
6990 /* Next, check that the tail of a page is zero-filled. File must have
6991 non-zero length, otherwise we risk SIGBUS for entire page. */
6992 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6996 if (write (fd2, cdata2, 1) != 1)
6998 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6999 if (data2 == MAP_FAILED)
7001 for (i = 0; i < pagesize; ++i)
7005 if (munmap (data2, pagesize))
7008 /* Next, try to mmap the file at a fixed address which already has
7009 something else allocated at it. If we can, also make sure that
7010 we see the same garbage. */
7011 fd = open ("conftest.mmap", O_RDWR);
7014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7017 for (i = 0; i < pagesize; ++i)
7018 if (*(data + i) != *(data2 + i))
7021 /* Finally, make sure that changes to the mapped area do not
7022 percolate back to the file as seen by read(). (This is a bug on
7023 some variants of i386 svr4.0.) */
7024 for (i = 0; i < pagesize; ++i)
7025 *(data2 + i) = *(data2 + i) + 1;
7026 data3 = (char *) malloc (pagesize);
7029 if (read (fd, data3, pagesize) != pagesize)
7031 for (i = 0; i < pagesize; ++i)
7032 if (*(data + i) != *(data3 + i))
7038 if ac_fn_c_try_run "$LINENO"; then :
7039 ac_cv_func_mmap_fixed_mapped=yes
7041 ac_cv_func_mmap_fixed_mapped=no
7043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7044 conftest.$ac_objext conftest.beam conftest.$ac_ext
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7049 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7052 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7055 rm -f conftest.mmap conftest.txt
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7059 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7060 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7066 #include <features.h>
7067 #ifdef __GNU_LIBRARY__
7068 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7075 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7076 ac_cv_gnu_library_2_1=yes
7078 ac_cv_gnu_library_2_1=no
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7086 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7088 GLIBC21="$ac_cv_gnu_library_2_1"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7094 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7095 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7099 if test "$cross_compiling" = yes; then :
7101 # Guess based on the CPU.
7103 alpha* | i3456786 | m68k | s390*)
7104 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7106 gt_cv_int_divbyzero_sigfpe="guessing no";;
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7118 sigfpe_handler (int sig)
7120 sigfpe_handler (sig) int sig;
7123 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7124 exit (sig != SIGFPE);
7134 signal (SIGFPE, sigfpe_handler);
7135 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7136 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7137 signal (SIGTRAP, sigfpe_handler);
7139 /* Linux/SPARC yields signal SIGILL. */
7140 #if defined (__sparc__) && defined (__linux__)
7141 signal (SIGILL, sigfpe_handler);
7150 if ac_fn_c_try_run "$LINENO"; then :
7151 gt_cv_int_divbyzero_sigfpe=yes
7153 gt_cv_int_divbyzero_sigfpe=no
7155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7156 conftest.$ac_objext conftest.beam conftest.$ac_ext
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7162 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7163 case "$gt_cv_int_divbyzero_sigfpe" in
7168 cat >>confdefs.h <<_ACEOF
7169 #define INTDIV0_RAISES_SIGFPE $value
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7175 $as_echo_n "checking for unsigned long long... " >&6; }
7176 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 unsigned long long ull = 1ULL; int i = 63;
7185 unsigned long long ullmax = (unsigned long long) -1;
7186 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 ac_cv_type_unsigned_long_long=yes
7194 ac_cv_type_unsigned_long_long=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7200 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7201 if test $ac_cv_type_unsigned_long_long = yes; then
7203 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7210 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7212 test $ac_cv_type_unsigned_long_long = yes \
7213 && ac_type='unsigned long long' \
7214 || ac_type='unsigned long'
7216 cat >>confdefs.h <<_ACEOF
7217 #define uintmax_t $ac_type
7222 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7228 $as_echo_n "checking for inttypes.h... " >&6; }
7229 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7230 $as_echo_n "(cached) " >&6
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <sys/types.h>
7236 #include <inttypes.h>
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246 gt_cv_header_inttypes_h=yes
7248 gt_cv_header_inttypes_h=no
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7254 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7255 if test $gt_cv_header_inttypes_h = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_INTTYPES_H 1
7265 if test $gt_cv_header_inttypes_h = yes; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7267 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7268 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #include <inttypes.h>
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288 gt_cv_inttypes_pri_broken=no
7290 gt_cv_inttypes_pri_broken=yes
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7296 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7298 if test "$gt_cv_inttypes_pri_broken" = yes; then
7300 cat >>confdefs.h <<_ACEOF
7301 #define PRI_MACROS_BROKEN 1
7307 for ac_header in stdint.h
7309 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7310 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define HAVE_STDINT_H 1
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7320 $as_echo_n "checking for SIZE_MAX... " >&6; }
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335 $EGREP "Found it" >/dev/null 2>&1; then :
7340 if test -z "$result"; then
7341 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7348 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7355 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7362 if test "$fits_in_uint" = 1; then
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7367 extern unsigned long foo;
7377 if ac_fn_c_try_compile "$LINENO"; then :
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 if test -z "$result"; then
7383 if test "$fits_in_uint" = 1; then
7384 result="$res_hi$res_lo"U
7386 result="$res_hi$res_lo"UL
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7393 $as_echo "$result" >&6; }
7394 if test "$result" != yes; then
7396 cat >>confdefs.h <<_ACEOF
7397 #define SIZE_MAX $result
7404 for ac_header in stdint.h
7406 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7407 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7408 cat >>confdefs.h <<_ACEOF
7409 #define HAVE_STDINT_H 1
7418 if test "X$prefix" = "XNONE"; then
7419 acl_final_prefix="$ac_default_prefix"
7421 acl_final_prefix="$prefix"
7423 if test "X$exec_prefix" = "XNONE"; then
7424 acl_final_exec_prefix='${prefix}'
7426 acl_final_exec_prefix="$exec_prefix"
7428 acl_save_prefix="$prefix"
7429 prefix="$acl_final_prefix"
7430 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7431 prefix="$acl_save_prefix"
7434 # Check whether --with-gnu-ld was given.
7435 if test "${with_gnu_ld+set}" = set; then :
7436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7441 # Prepare PATH_SEPARATOR.
7442 # The user is always right.
7443 if test "${PATH_SEPARATOR+set}" != set; then
7444 echo "#! /bin/sh" >conf$$.sh
7445 echo "exit 0" >>conf$$.sh
7447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7455 if test "$GCC" = yes; then
7456 # Check if gcc -print-prog-name=ld gives a path.
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7458 $as_echo_n "checking for ld used by GCC... " >&6; }
7461 # gcc leaves a trailing carriage return which upsets mingw
7462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7467 # Accept absolute paths.
7468 [\\/]* | [A-Za-z]:[\\/]*)
7469 re_direlt='/[^/][^/]*/\.\./'
7470 # Canonicalize the path of ld
7471 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7473 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7475 test -z "$LD" && LD="$ac_prog"
7478 # If it fails, then pretend we aren't using GCC.
7482 # If it is relative, then search for the first ld in PATH.
7486 elif test "$with_gnu_ld" = yes; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7488 $as_echo_n "checking for GNU ld... " >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7491 $as_echo_n "checking for non-GNU ld... " >&6; }
7493 if test "${acl_cv_path_LD+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7496 if test -z "$LD"; then
7497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7498 for ac_dir in $PATH; do
7499 test -z "$ac_dir" && ac_dir=.
7500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7501 acl_cv_path_LD="$ac_dir/$ac_prog"
7502 # Check to see if the program is GNU ld. I'd rather use --version,
7503 # but apparently some GNU ld's only accept -v.
7504 # Break only if it was the GNU/non-GNU ld that we prefer.
7505 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7506 *GNU* | *'with BFD'*)
7507 test "$with_gnu_ld" != no && break ;;
7509 test "$with_gnu_ld" != yes && break ;;
7515 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7519 LD="$acl_cv_path_LD"
7520 if test -n "$LD"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7522 $as_echo "$LD" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7527 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7529 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7530 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7533 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7534 case `$LD -v 2>&1 </dev/null` in
7535 *GNU* | *'with BFD'*)
7536 acl_cv_prog_gnu_ld=yes ;;
7538 acl_cv_prog_gnu_ld=no ;;
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7542 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7543 with_gnu_ld=$acl_cv_prog_gnu_ld
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7548 $as_echo_n "checking for shared library run path origin... " >&6; }
7549 if test "${acl_cv_rpath+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7553 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7554 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7561 $as_echo "$acl_cv_rpath" >&6; }
7563 libext="$acl_cv_libext"
7564 shlibext="$acl_cv_shlibext"
7565 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7566 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7567 hardcode_direct="$acl_cv_hardcode_direct"
7568 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7569 # Check whether --enable-rpath was given.
7570 if test "${enable_rpath+set}" = set; then :
7571 enableval=$enable_rpath; :
7585 acl_save_prefix="$prefix"
7586 prefix="$acl_final_prefix"
7587 acl_save_exec_prefix="$exec_prefix"
7588 exec_prefix="$acl_final_exec_prefix"
7590 eval additional_includedir=\"$includedir\"
7591 eval additional_libdir=\"$libdir\"
7593 exec_prefix="$acl_save_exec_prefix"
7594 prefix="$acl_save_prefix"
7597 # Check whether --with-libiconv-prefix was given.
7598 if test "${with_libiconv_prefix+set}" = set; then :
7599 withval=$with_libiconv_prefix;
7600 if test "X$withval" = "Xno"; then
7603 if test "X$withval" = "X"; then
7605 acl_save_prefix="$prefix"
7606 prefix="$acl_final_prefix"
7607 acl_save_exec_prefix="$exec_prefix"
7608 exec_prefix="$acl_final_exec_prefix"
7610 eval additional_includedir=\"$includedir\"
7611 eval additional_libdir=\"$libdir\"
7613 exec_prefix="$acl_save_exec_prefix"
7614 prefix="$acl_save_prefix"
7617 additional_includedir="$withval/include"
7618 additional_libdir="$withval/lib"
7629 names_already_handled=
7630 names_next_round='iconv '
7631 while test -n "$names_next_round"; do
7632 names_this_round="$names_next_round"
7634 for name in $names_this_round; do
7636 for n in $names_already_handled; do
7637 if test "$n" = "$name"; then
7642 if test -z "$already_handled"; then
7643 names_already_handled="$names_already_handled $name"
7644 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7645 eval value=\"\$HAVE_LIB$uppername\"
7646 if test -n "$value"; then
7647 if test "$value" = yes; then
7648 eval value=\"\$LIB$uppername\"
7649 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7650 eval value=\"\$LTLIB$uppername\"
7651 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7660 if test $use_additional = yes; then
7661 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7662 found_dir="$additional_libdir"
7663 found_so="$additional_libdir/lib$name.$shlibext"
7664 if test -f "$additional_libdir/lib$name.la"; then
7665 found_la="$additional_libdir/lib$name.la"
7668 if test -f "$additional_libdir/lib$name.$libext"; then
7669 found_dir="$additional_libdir"
7670 found_a="$additional_libdir/lib$name.$libext"
7671 if test -f "$additional_libdir/lib$name.la"; then
7672 found_la="$additional_libdir/lib$name.la"
7677 if test "X$found_dir" = "X"; then
7678 for x in $LDFLAGS $LTLIBICONV; do
7680 acl_save_prefix="$prefix"
7681 prefix="$acl_final_prefix"
7682 acl_save_exec_prefix="$exec_prefix"
7683 exec_prefix="$acl_final_exec_prefix"
7685 exec_prefix="$acl_save_exec_prefix"
7686 prefix="$acl_save_prefix"
7690 dir=`echo "X$x" | sed -e 's/^X-L//'`
7691 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7693 found_so="$dir/lib$name.$shlibext"
7694 if test -f "$dir/lib$name.la"; then
7695 found_la="$dir/lib$name.la"
7698 if test -f "$dir/lib$name.$libext"; then
7700 found_a="$dir/lib$name.$libext"
7701 if test -f "$dir/lib$name.la"; then
7702 found_la="$dir/lib$name.la"
7708 if test "X$found_dir" != "X"; then
7713 if test "X$found_dir" != "X"; then
7714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7715 if test "X$found_so" != "X"; then
7716 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7720 for x in $ltrpathdirs; do
7721 if test "X$x" = "X$found_dir"; then
7726 if test -z "$haveit"; then
7727 ltrpathdirs="$ltrpathdirs $found_dir"
7729 if test "$hardcode_direct" = yes; then
7730 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7732 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7735 for x in $rpathdirs; do
7736 if test "X$x" = "X$found_dir"; then
7741 if test -z "$haveit"; then
7742 rpathdirs="$rpathdirs $found_dir"
7746 for x in $LDFLAGS $LIBICONV; do
7748 acl_save_prefix="$prefix"
7749 prefix="$acl_final_prefix"
7750 acl_save_exec_prefix="$exec_prefix"
7751 exec_prefix="$acl_final_exec_prefix"
7753 exec_prefix="$acl_save_exec_prefix"
7754 prefix="$acl_save_prefix"
7756 if test "X$x" = "X-L$found_dir"; then
7761 if test -z "$haveit"; then
7762 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7764 if test "$hardcode_minus_L" != no; then
7765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7767 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7773 if test "X$found_a" != "X"; then
7774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7779 additional_includedir=
7780 case "$found_dir" in
7782 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7783 additional_includedir="$basedir/include"
7786 if test "X$additional_includedir" != "X"; then
7787 if test "X$additional_includedir" != "X/usr/include"; then
7789 if test "X$additional_includedir" = "X/usr/local/include"; then
7790 if test -n "$GCC"; then
7792 linux*) haveit=yes;;
7796 if test -z "$haveit"; then
7797 for x in $CPPFLAGS $INCICONV; do
7799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 acl_save_exec_prefix="$exec_prefix"
7802 exec_prefix="$acl_final_exec_prefix"
7804 exec_prefix="$acl_save_exec_prefix"
7805 prefix="$acl_save_prefix"
7807 if test "X$x" = "X-I$additional_includedir"; then
7812 if test -z "$haveit"; then
7813 if test -d "$additional_includedir"; then
7814 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7820 if test -n "$found_la"; then
7821 save_libdir="$libdir"
7823 */* | *\\*) . "$found_la" ;;
7824 *) . "./$found_la" ;;
7826 libdir="$save_libdir"
7827 for dep in $dependency_libs; do
7830 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7831 if test "X$additional_libdir" != "X/usr/lib"; then
7833 if test "X$additional_libdir" = "X/usr/local/lib"; then
7834 if test -n "$GCC"; then
7836 linux*) haveit=yes;;
7840 if test -z "$haveit"; then
7842 for x in $LDFLAGS $LIBICONV; do
7844 acl_save_prefix="$prefix"
7845 prefix="$acl_final_prefix"
7846 acl_save_exec_prefix="$exec_prefix"
7847 exec_prefix="$acl_final_exec_prefix"
7849 exec_prefix="$acl_save_exec_prefix"
7850 prefix="$acl_save_prefix"
7852 if test "X$x" = "X-L$additional_libdir"; then
7857 if test -z "$haveit"; then
7858 if test -d "$additional_libdir"; then
7859 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7863 for x in $LDFLAGS $LTLIBICONV; do
7865 acl_save_prefix="$prefix"
7866 prefix="$acl_final_prefix"
7867 acl_save_exec_prefix="$exec_prefix"
7868 exec_prefix="$acl_final_exec_prefix"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7873 if test "X$x" = "X-L$additional_libdir"; then
7878 if test -z "$haveit"; then
7879 if test -d "$additional_libdir"; then
7880 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7887 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7888 if test "$enable_rpath" != no; then
7890 for x in $rpathdirs; do
7891 if test "X$x" = "X$dir"; then
7896 if test -z "$haveit"; then
7897 rpathdirs="$rpathdirs $dir"
7900 for x in $ltrpathdirs; do
7901 if test "X$x" = "X$dir"; then
7906 if test -z "$haveit"; then
7907 ltrpathdirs="$ltrpathdirs $dir"
7912 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7915 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7918 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7932 if test "X$rpathdirs" != "X"; then
7933 if test -n "$hardcode_libdir_separator"; then
7935 for found_dir in $rpathdirs; do
7936 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7938 acl_save_libdir="$libdir"
7940 eval flag=\"$hardcode_libdir_flag_spec\"
7941 libdir="$acl_save_libdir"
7942 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7944 for found_dir in $rpathdirs; do
7945 acl_save_libdir="$libdir"
7947 eval flag=\"$hardcode_libdir_flag_spec\"
7948 libdir="$acl_save_libdir"
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7953 if test "X$ltrpathdirs" != "X"; then
7954 for found_dir in $ltrpathdirs; do
7955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7966 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7967 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7971 $as_echo "#define ptrdiff_t long" >>confdefs.h
7976 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7977 stdlib.h string.h unistd.h sys/param.h
7979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7981 eval as_val=\$$as_ac_Header
7982 if test "x$as_val" = x""yes; then :
7983 cat >>confdefs.h <<_ACEOF
7984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7991 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7992 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7993 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7998 eval as_val=\$$as_ac_var
7999 if test "x$as_val" = x""yes; then :
8000 cat >>confdefs.h <<_ACEOF
8001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8010 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8011 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8022 char *p = (char *) _snprintf;
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_have_decl__snprintf=yes
8032 ac_cv_have_decl__snprintf=no
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8037 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8038 if test $ac_cv_have_decl__snprintf = yes; then
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_DECL__SNPRINTF $gt_value
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8051 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8052 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8063 char *p = (char *) _snwprintf;
8070 if ac_fn_c_try_compile "$LINENO"; then :
8071 ac_cv_have_decl__snwprintf=yes
8073 ac_cv_have_decl__snwprintf=no
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8078 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8079 if test $ac_cv_have_decl__snwprintf = yes; then
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DECL__SNWPRINTF $gt_value
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8093 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8094 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8104 #ifndef feof_unlocked
8105 char *p = (char *) feof_unlocked;
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 ac_cv_have_decl_feof_unlocked=yes
8115 ac_cv_have_decl_feof_unlocked=no
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8120 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8121 if test $ac_cv_have_decl_feof_unlocked = yes; then
8127 cat >>confdefs.h <<_ACEOF
8128 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8134 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8135 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8145 #ifndef fgets_unlocked
8146 char *p = (char *) fgets_unlocked;
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154 ac_cv_have_decl_fgets_unlocked=yes
8156 ac_cv_have_decl_fgets_unlocked=no
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8161 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8162 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8175 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8176 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8186 #ifndef getc_unlocked
8187 char *p = (char *) getc_unlocked;
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 ac_cv_have_decl_getc_unlocked=yes
8197 ac_cv_have_decl_getc_unlocked=no
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8202 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8203 if test $ac_cv_have_decl_getc_unlocked = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8215 case $gt_cv_func_printf_posix in
8216 *yes) HAVE_POSIX_PRINTF=1 ;;
8217 *) HAVE_POSIX_PRINTF=0 ;;
8220 if test "$ac_cv_func_asprintf" = yes; then
8226 if test "$ac_cv_func_snprintf" = yes; then
8232 if test "$ac_cv_func_wprintf" = yes; then
8244 am_save_CPPFLAGS="$CPPFLAGS"
8246 for element in $INCICONV; do
8248 for x in $CPPFLAGS; do
8250 acl_save_prefix="$prefix"
8251 prefix="$acl_final_prefix"
8252 acl_save_exec_prefix="$exec_prefix"
8253 exec_prefix="$acl_final_exec_prefix"
8255 exec_prefix="$acl_save_exec_prefix"
8256 prefix="$acl_save_prefix"
8258 if test "X$x" = "X$element"; then
8263 if test -z "$haveit"; then
8264 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8270 $as_echo_n "checking for iconv... " >&6; }
8271 if test "${am_cv_func_iconv+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8275 am_cv_func_iconv="no, consider installing GNU libiconv"
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8284 iconv_t cd = iconv_open("","");
8285 iconv(cd,NULL,NULL,NULL,NULL);
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 am_cv_func_iconv=yes
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 if test "$am_cv_func_iconv" != yes; then
8297 am_save_LIBS="$LIBS"
8298 LIBS="$LIBS $LIBICONV"
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8306 iconv_t cd = iconv_open("","");
8307 iconv(cd,NULL,NULL,NULL,NULL);
8313 if ac_fn_c_try_link "$LINENO"; then :
8315 am_cv_func_iconv=yes
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LIBS="$am_save_LIBS"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8324 $as_echo "$am_cv_func_iconv" >&6; }
8325 if test "$am_cv_func_iconv" = yes; then
8327 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8330 if test "$am_cv_lib_iconv" = yes; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8332 $as_echo_n "checking how to link with libiconv... " >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8334 $as_echo "$LIBICONV" >&6; }
8336 CPPFLAGS="$am_save_CPPFLAGS"
8343 if test "$am_cv_func_iconv" = yes; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8345 $as_echo_n "checking for iconv declaration... " >&6; }
8346 if test "${am_cv_proto_iconv+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8359 #if defined(__STDC__) || defined(__cplusplus)
8360 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 am_cv_proto_iconv_arg1=""
8376 am_cv_proto_iconv_arg1="const"
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 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);"
8382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8384 }$am_cv_proto_iconv" >&5
8386 }$am_cv_proto_iconv" >&6; }
8388 cat >>confdefs.h <<_ACEOF
8389 #define ICONV_CONST $am_cv_proto_iconv_arg1
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8396 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8397 if test "${am_cv_langinfo_codeset+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #include <langinfo.h>
8406 char* cs = nl_langinfo(CODESET);
8411 if ac_fn_c_try_link "$LINENO"; then :
8412 am_cv_langinfo_codeset=yes
8414 am_cv_langinfo_codeset=no
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8421 $as_echo "$am_cv_langinfo_codeset" >&6; }
8422 if test $am_cv_langinfo_codeset = yes; then
8424 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8428 if test $ac_cv_header_locale_h = yes; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8431 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8432 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 am_cv_val_LC_MESSAGES=yes
8449 am_cv_val_LC_MESSAGES=no
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8455 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8456 if test $am_cv_val_LC_MESSAGES = yes; then
8458 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8464 for ac_prog in bison
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467 set dummy $ac_prog; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8473 if test -n "$INTLBISON"; then
8474 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_INTLBISON="$ac_prog"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 INTLBISON=$ac_cv_prog_INTLBISON
8494 if test -n "$INTLBISON"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8496 $as_echo "$INTLBISON" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8503 test -n "$INTLBISON" && break
8506 if test -z "$INTLBISON"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8510 $as_echo_n "checking version of bison... " >&6; }
8511 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8512 case $ac_prog_version in
8513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8514 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8519 $as_echo "$ac_prog_version" >&6; }
8521 if test $ac_verc_fail = yes; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8541 $as_echo_n "checking whether NLS is requested... " >&6; }
8542 # Check whether --enable-nls was given.
8543 if test "${enable_nls+set}" = set; then :
8544 enableval=$enable_nls; USE_NLS=$enableval
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8550 $as_echo "$USE_NLS" >&6; }
8555 BUILD_INCLUDED_LIBINTL=no
8556 USE_INCLUDED_LIBINTL=no
8562 if test "$USE_NLS" = "yes"; then
8563 gt_use_preinstalled_gnugettext=no
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8566 $as_echo_n "checking whether included gettext is requested... " >&6; }
8568 # Check whether --with-included-gettext was given.
8569 if test "${with_included_gettext+set}" = set; then :
8570 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8572 nls_cv_force_use_gnu_gettext=no
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8576 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8578 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8579 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8587 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8588 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #include <libintl.h>
8594 extern int _nl_msg_cat_cntr;
8595 extern int *_nl_domain_bindings;
8599 bindtextdomain ("", "");
8600 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8605 if ac_fn_c_try_link "$LINENO"; then :
8606 gt_cv_func_gnugettext1_libc=yes
8608 gt_cv_func_gnugettext1_libc=no
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8614 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8616 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8622 acl_save_prefix="$prefix"
8623 prefix="$acl_final_prefix"
8624 acl_save_exec_prefix="$exec_prefix"
8625 exec_prefix="$acl_final_exec_prefix"
8627 eval additional_includedir=\"$includedir\"
8628 eval additional_libdir=\"$libdir\"
8630 exec_prefix="$acl_save_exec_prefix"
8631 prefix="$acl_save_prefix"
8634 # Check whether --with-libintl-prefix was given.
8635 if test "${with_libintl_prefix+set}" = set; then :
8636 withval=$with_libintl_prefix;
8637 if test "X$withval" = "Xno"; then
8640 if test "X$withval" = "X"; then
8642 acl_save_prefix="$prefix"
8643 prefix="$acl_final_prefix"
8644 acl_save_exec_prefix="$exec_prefix"
8645 exec_prefix="$acl_final_exec_prefix"
8647 eval additional_includedir=\"$includedir\"
8648 eval additional_libdir=\"$libdir\"
8650 exec_prefix="$acl_save_exec_prefix"
8651 prefix="$acl_save_prefix"
8654 additional_includedir="$withval/include"
8655 additional_libdir="$withval/lib"
8666 names_already_handled=
8667 names_next_round='intl '
8668 while test -n "$names_next_round"; do
8669 names_this_round="$names_next_round"
8671 for name in $names_this_round; do
8673 for n in $names_already_handled; do
8674 if test "$n" = "$name"; then
8679 if test -z "$already_handled"; then
8680 names_already_handled="$names_already_handled $name"
8681 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8682 eval value=\"\$HAVE_LIB$uppername\"
8683 if test -n "$value"; then
8684 if test "$value" = yes; then
8685 eval value=\"\$LIB$uppername\"
8686 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8687 eval value=\"\$LTLIB$uppername\"
8688 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8697 if test $use_additional = yes; then
8698 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8699 found_dir="$additional_libdir"
8700 found_so="$additional_libdir/lib$name.$shlibext"
8701 if test -f "$additional_libdir/lib$name.la"; then
8702 found_la="$additional_libdir/lib$name.la"
8705 if test -f "$additional_libdir/lib$name.$libext"; then
8706 found_dir="$additional_libdir"
8707 found_a="$additional_libdir/lib$name.$libext"
8708 if test -f "$additional_libdir/lib$name.la"; then
8709 found_la="$additional_libdir/lib$name.la"
8714 if test "X$found_dir" = "X"; then
8715 for x in $LDFLAGS $LTLIBINTL; do
8717 acl_save_prefix="$prefix"
8718 prefix="$acl_final_prefix"
8719 acl_save_exec_prefix="$exec_prefix"
8720 exec_prefix="$acl_final_exec_prefix"
8722 exec_prefix="$acl_save_exec_prefix"
8723 prefix="$acl_save_prefix"
8727 dir=`echo "X$x" | sed -e 's/^X-L//'`
8728 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8730 found_so="$dir/lib$name.$shlibext"
8731 if test -f "$dir/lib$name.la"; then
8732 found_la="$dir/lib$name.la"
8735 if test -f "$dir/lib$name.$libext"; then
8737 found_a="$dir/lib$name.$libext"
8738 if test -f "$dir/lib$name.la"; then
8739 found_la="$dir/lib$name.la"
8745 if test "X$found_dir" != "X"; then
8750 if test "X$found_dir" != "X"; then
8751 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8752 if test "X$found_so" != "X"; then
8753 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8754 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8757 for x in $ltrpathdirs; do
8758 if test "X$x" = "X$found_dir"; then
8763 if test -z "$haveit"; then
8764 ltrpathdirs="$ltrpathdirs $found_dir"
8766 if test "$hardcode_direct" = yes; then
8767 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8769 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8770 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8772 for x in $rpathdirs; do
8773 if test "X$x" = "X$found_dir"; then
8778 if test -z "$haveit"; then
8779 rpathdirs="$rpathdirs $found_dir"
8783 for x in $LDFLAGS $LIBINTL; do
8785 acl_save_prefix="$prefix"
8786 prefix="$acl_final_prefix"
8787 acl_save_exec_prefix="$exec_prefix"
8788 exec_prefix="$acl_final_exec_prefix"
8790 exec_prefix="$acl_save_exec_prefix"
8791 prefix="$acl_save_prefix"
8793 if test "X$x" = "X-L$found_dir"; then
8798 if test -z "$haveit"; then
8799 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8801 if test "$hardcode_minus_L" != no; then
8802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8804 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8810 if test "X$found_a" != "X"; then
8811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8813 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8816 additional_includedir=
8817 case "$found_dir" in
8819 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8820 additional_includedir="$basedir/include"
8823 if test "X$additional_includedir" != "X"; then
8824 if test "X$additional_includedir" != "X/usr/include"; then
8826 if test "X$additional_includedir" = "X/usr/local/include"; then
8827 if test -n "$GCC"; then
8829 linux*) haveit=yes;;
8833 if test -z "$haveit"; then
8834 for x in $CPPFLAGS $INCINTL; do
8836 acl_save_prefix="$prefix"
8837 prefix="$acl_final_prefix"
8838 acl_save_exec_prefix="$exec_prefix"
8839 exec_prefix="$acl_final_exec_prefix"
8841 exec_prefix="$acl_save_exec_prefix"
8842 prefix="$acl_save_prefix"
8844 if test "X$x" = "X-I$additional_includedir"; then
8849 if test -z "$haveit"; then
8850 if test -d "$additional_includedir"; then
8851 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8857 if test -n "$found_la"; then
8858 save_libdir="$libdir"
8860 */* | *\\*) . "$found_la" ;;
8861 *) . "./$found_la" ;;
8863 libdir="$save_libdir"
8864 for dep in $dependency_libs; do
8867 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8868 if test "X$additional_libdir" != "X/usr/lib"; then
8870 if test "X$additional_libdir" = "X/usr/local/lib"; then
8871 if test -n "$GCC"; then
8873 linux*) haveit=yes;;
8877 if test -z "$haveit"; then
8879 for x in $LDFLAGS $LIBINTL; do
8881 acl_save_prefix="$prefix"
8882 prefix="$acl_final_prefix"
8883 acl_save_exec_prefix="$exec_prefix"
8884 exec_prefix="$acl_final_exec_prefix"
8886 exec_prefix="$acl_save_exec_prefix"
8887 prefix="$acl_save_prefix"
8889 if test "X$x" = "X-L$additional_libdir"; then
8894 if test -z "$haveit"; then
8895 if test -d "$additional_libdir"; then
8896 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8900 for x in $LDFLAGS $LTLIBINTL; do
8902 acl_save_prefix="$prefix"
8903 prefix="$acl_final_prefix"
8904 acl_save_exec_prefix="$exec_prefix"
8905 exec_prefix="$acl_final_exec_prefix"
8907 exec_prefix="$acl_save_exec_prefix"
8908 prefix="$acl_save_prefix"
8910 if test "X$x" = "X-L$additional_libdir"; then
8915 if test -z "$haveit"; then
8916 if test -d "$additional_libdir"; then
8917 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8924 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8925 if test "$enable_rpath" != no; then
8927 for x in $rpathdirs; do
8928 if test "X$x" = "X$dir"; then
8933 if test -z "$haveit"; then
8934 rpathdirs="$rpathdirs $dir"
8937 for x in $ltrpathdirs; do
8938 if test "X$x" = "X$dir"; then
8943 if test -z "$haveit"; then
8944 ltrpathdirs="$ltrpathdirs $dir"
8949 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8955 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8956 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8962 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8963 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8969 if test "X$rpathdirs" != "X"; then
8970 if test -n "$hardcode_libdir_separator"; then
8972 for found_dir in $rpathdirs; do
8973 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8975 acl_save_libdir="$libdir"
8977 eval flag=\"$hardcode_libdir_flag_spec\"
8978 libdir="$acl_save_libdir"
8979 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8981 for found_dir in $rpathdirs; do
8982 acl_save_libdir="$libdir"
8984 eval flag=\"$hardcode_libdir_flag_spec\"
8985 libdir="$acl_save_libdir"
8986 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8990 if test "X$ltrpathdirs" != "X"; then
8991 for found_dir in $ltrpathdirs; do
8992 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8997 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8998 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9001 gt_save_CPPFLAGS="$CPPFLAGS"
9002 CPPFLAGS="$CPPFLAGS $INCINTL"
9003 gt_save_LIBS="$LIBS"
9004 LIBS="$LIBS $LIBINTL"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #include <libintl.h>
9008 extern int _nl_msg_cat_cntr;
9013 const char *_nl_expand_alias ();
9017 bindtextdomain ("", "");
9018 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 gt_cv_func_gnugettext1_libintl=yes
9026 gt_cv_func_gnugettext1_libintl=no
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9031 LIBS="$LIBS $LIBICONV"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 #include <libintl.h>
9035 extern int _nl_msg_cat_cntr;
9040 const char *_nl_expand_alias ();
9044 bindtextdomain ("", "");
9045 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 LIBINTL="$LIBINTL $LIBICONV"
9052 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9053 gt_cv_func_gnugettext1_libintl=yes
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9059 CPPFLAGS="$gt_save_CPPFLAGS"
9060 LIBS="$gt_save_LIBS"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9063 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9066 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9067 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9068 && test "$PACKAGE" != gettext-runtime \
9069 && test "$PACKAGE" != gettext-tools; }; then
9070 gt_use_preinstalled_gnugettext=yes
9078 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9079 nls_cv_use_gnu_gettext=yes
9083 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9084 BUILD_INCLUDED_LIBINTL=yes
9085 USE_INCLUDED_LIBINTL=yes
9086 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9087 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9088 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9091 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9092 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9097 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9098 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9100 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9108 $as_echo_n "checking whether to use NLS... " >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9110 $as_echo "$USE_NLS" >&6; }
9111 if test "$USE_NLS" = "yes"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9113 $as_echo_n "checking where the gettext function comes from... " >&6; }
9114 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9115 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9116 gt_source="external libintl"
9121 gt_source="included intl directory"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9124 $as_echo "$gt_source" >&6; }
9127 if test "$USE_NLS" = "yes"; then
9129 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9130 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9132 $as_echo_n "checking how to link with libintl... " >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9134 $as_echo "$LIBINTL" >&6; }
9136 for element in $INCINTL; do
9138 for x in $CPPFLAGS; do
9140 acl_save_prefix="$prefix"
9141 prefix="$acl_final_prefix"
9142 acl_save_exec_prefix="$exec_prefix"
9143 exec_prefix="$acl_final_exec_prefix"
9145 exec_prefix="$acl_save_exec_prefix"
9146 prefix="$acl_save_prefix"
9148 if test "X$x" = "X$element"; then
9153 if test -z "$haveit"; then
9154 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9161 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9164 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9172 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9173 BUILD_INCLUDED_LIBINTL=yes
9181 nls_cv_header_libgt=
9192 if test "$USE_INCLUDED_LIBINTL" = yes; then
9193 INTLOBJS="\$(GETTOBJS)"
9197 INTL_LIBTOOL_SUFFIX_PREFIX=
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9214 $as_echo_n "(cached) " >&6
9216 cat >conftest.make <<\_ACEOF
9219 @echo '@@@%%%=$(MAKE)=@@@%%%'
9221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9224 eval ac_cv_prog_make_${ac_make}_set=yes;;
9226 eval ac_cv_prog_make_${ac_make}_set=no;;
9230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9232 $as_echo "yes" >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237 SET_MAKE="MAKE=${MAKE-make}"
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9241 $as_echo_n "checking for GNU make... " >&6; }
9242 if test "${_cv_gnu_make_command+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9245 _cv_gnu_make_command='' ;
9246 for a in "$MAKE" make gmake gnumake ; do
9247 if test -z "$a" ; then continue ; fi ;
9248 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9249 _cv_gnu_make_command=$a ;
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9256 $as_echo "$_cv_gnu_make_command" >&6; } ;
9257 if test "x$_cv_gnu_make_command" != "x" ; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9264 $as_echo "\"Not found\"" >&6; };
9269 # Extract the first word of "ln", so it can be a program name with args.
9270 set dummy ln; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if test "${ac_cv_path_LN+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9278 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9301 if test -n "$LN"; then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9303 $as_echo "$LN" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9311 $as_echo_n "checking whether ln -s works... " >&6; }
9313 if test "$LN_S" = "ln -s"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9315 $as_echo "yes" >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9318 $as_echo "no, using $LN_S" >&6; }
9321 # Extract the first word of "mv", so it can be a program name with args.
9322 set dummy mv; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if test "${ac_cv_path_MV+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9330 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9353 if test -n "$MV"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9355 $as_echo "$MV" >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9362 # Extract the first word of "cp", so it can be a program name with args.
9363 set dummy cp; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if test "${ac_cv_path_CP+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9371 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9394 if test -n "$CP"; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9396 $as_echo "$CP" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399 $as_echo "no" >&6; }
9403 # Extract the first word of "rm", so it can be a program name with args.
9404 set dummy rm; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_path_RM+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9412 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9435 if test -n "$RM"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9437 $as_echo "$RM" >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9444 # Extract the first word of "chmod", so it can be a program name with args.
9445 set dummy chmod; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if test "${ac_cv_path_CHMOD+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9453 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9475 CHMOD=$ac_cv_path_CHMOD
9476 if test -n "$CHMOD"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9478 $as_echo "$CHMOD" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9485 for ac_prog in gawk mawk nawk awk
9487 # Extract the first word of "$ac_prog", so it can be a program name with args.
9488 set dummy $ac_prog; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_prog_AWK+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9494 if test -n "$AWK"; then
9495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_prog_AWK="$ac_prog"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 if test -n "$AWK"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9517 $as_echo "$AWK" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9524 test -n "$AWK" && break
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9528 $as_echo_n "checking for egrep... " >&6; }
9529 if test "${ac_cv_path_EGREP+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9533 then ac_cv_path_EGREP="$GREP -E"
9535 if test -z "$EGREP"; then
9536 ac_path_EGREP_found=false
9537 # Loop through the user's path and test for each of PROGNAME-LIST
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9542 test -z "$as_dir" && as_dir=.
9543 for ac_prog in egrep; do
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9546 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9547 # Check for GNU ac_path_EGREP and select it if it is found.
9548 # Check for GNU $ac_path_EGREP
9549 case `"$ac_path_EGREP" --version 2>&1` in
9551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9554 $as_echo_n 0123456789 >"conftest.in"
9557 cat "conftest.in" "conftest.in" >"conftest.tmp"
9558 mv "conftest.tmp" "conftest.in"
9559 cp "conftest.in" "conftest.nl"
9560 $as_echo 'EGREP' >> "conftest.nl"
9561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9563 as_fn_arith $ac_count + 1 && ac_count=$as_val
9564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9565 # Best one so far, save it but keep looking for a better one
9566 ac_cv_path_EGREP="$ac_path_EGREP"
9567 ac_path_EGREP_max=$ac_count
9569 # 10*(2^10) chars as input seems more than enough
9570 test $ac_count -gt 10 && break
9572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9575 $ac_path_EGREP_found && break 3
9580 if test -z "$ac_cv_path_EGREP"; then
9581 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9584 ac_cv_path_EGREP=$EGREP
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9590 $as_echo "$ac_cv_path_EGREP" >&6; }
9591 EGREP="$ac_cv_path_EGREP"
9594 # Extract the first word of "sed", so it can be a program name with args.
9595 set dummy sed; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_path_SED+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9603 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9626 if test -n "$SED"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9628 $as_echo "$SED" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9635 # Extract the first word of "perl", so it can be a program name with args.
9636 set dummy perl; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if test "${ac_cv_path_PERL+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9644 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9666 PERL=$ac_cv_path_PERL
9667 if test -n "$PERL"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9669 $as_echo "$PERL" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9676 # Extract the first word of "ldconfig", so it can be a program name with args.
9677 set dummy ldconfig; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9685 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9707 LDCONFIG=$ac_cv_path_LDCONFIG
9708 if test -n "$LDCONFIG"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9710 $as_echo "$LDCONFIG" >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9717 if test -n "$ac_tool_prefix"; then
9718 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9719 set dummy ${ac_tool_prefix}ar; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if test "${ac_cv_prog_AR+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9725 if test -n "$AR"; then
9726 ac_cv_prog_AR="$AR" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_AR="${ac_tool_prefix}ar"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 if test -n "$AR"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9748 $as_echo "$AR" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9756 if test -z "$ac_cv_prog_AR"; then
9758 # Extract the first word of "ar", so it can be a program name with args.
9759 set dummy ar; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9765 if test -n "$ac_ct_AR"; then
9766 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_prog_ac_ct_AR="ar"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9786 if test -n "$ac_ct_AR"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9788 $as_echo "$ac_ct_AR" >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9794 if test "x$ac_ct_AR" = x; then
9797 case $cross_compiling:$ac_tool_warned in
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9801 ac_tool_warned=yes ;;
9809 if test -n "$ac_tool_prefix"; then
9810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9817 if test -n "$RANLIB"; then
9818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 RANLIB=$ac_cv_prog_RANLIB
9838 if test -n "$RANLIB"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9840 $as_echo "$RANLIB" >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9848 if test -z "$ac_cv_prog_RANLIB"; then
9849 ac_ct_RANLIB=$RANLIB
9850 # Extract the first word of "ranlib", so it can be a program name with args.
9851 set dummy ranlib; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9857 if test -n "$ac_ct_RANLIB"; then
9858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_prog_ac_ct_RANLIB="ranlib"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9878 if test -n "$ac_ct_RANLIB"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9880 $as_echo "$ac_ct_RANLIB" >&6; }
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9886 if test "x$ac_ct_RANLIB" = x; then
9889 case $cross_compiling:$ac_tool_warned in
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9893 ac_tool_warned=yes ;;
9895 RANLIB=$ac_ct_RANLIB
9898 RANLIB="$ac_cv_prog_RANLIB"
9901 if test -n "$ac_tool_prefix"; then
9902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9903 set dummy ${ac_tool_prefix}strip; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if test "${ac_cv_prog_STRIP+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9909 if test -n "$STRIP"; then
9910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 STRIP=$ac_cv_prog_STRIP
9930 if test -n "$STRIP"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9932 $as_echo "$STRIP" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9940 if test -z "$ac_cv_prog_STRIP"; then
9942 # Extract the first word of "strip", so it can be a program name with args.
9943 set dummy strip; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9949 if test -n "$ac_ct_STRIP"; then
9950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_ac_ct_STRIP="strip"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9970 if test -n "$ac_ct_STRIP"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9972 $as_echo "$ac_ct_STRIP" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9978 if test "x$ac_ct_STRIP" = x; then
9981 case $cross_compiling:$ac_tool_warned in
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9985 ac_tool_warned=yes ;;
9990 STRIP="$ac_cv_prog_STRIP"
9993 # Extract the first word of "makeinfo", so it can be a program name with args.
9994 set dummy makeinfo; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
10000 if test -n "$MAKEINFO"; then
10001 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_MAKEINFO="makeinfo"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 MAKEINFO=$ac_cv_prog_MAKEINFO
10021 if test -n "$MAKEINFO"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10023 $as_echo "$MAKEINFO" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10030 if test "_$MAKEINFO" = "_"; then
10031 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10033 case "$MAKEINFO" in
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10036 *** Makeinfo is missing. Info documentation will not be built." >&5
10037 $as_echo "$as_me: WARNING:
10038 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10046 # See if we need a separate native compiler.
10047 if test $cross_compiling = no; then
10051 for ac_prog in gcc cc
10053 # Extract the first word of "$ac_prog", so it can be a program name with args.
10054 set dummy $ac_prog; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10060 if test -n "$BUILD_CC"; then
10061 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_BUILD_CC="$ac_prog"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 BUILD_CC=$ac_cv_prog_BUILD_CC
10081 if test -n "$BUILD_CC"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10083 $as_echo "$BUILD_CC" >&6; }
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 test -n "$BUILD_CC" && break
10094 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/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
10096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10098 eval as_val=\$$as_ac_Header
10099 if test "x$as_val" = x""yes; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10108 for ac_header in sys/disk.h sys/mount.h
10110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10112 #if HAVE_SYS_QUEUE_H
10113 #include <sys/queue.h>
10117 eval as_val=\$$as_ac_Header
10118 if test "x$as_val" = x""yes; then :
10119 cat >>confdefs.h <<_ACEOF
10120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10127 for ac_header in net/if.h
10129 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10130 #if HAVE_SYS_TYPES_H
10131 #include <sys/types.h>
10133 #if HAVE_SYS_SOCKET
10134 #include <sys/socket.h>
10138 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_NET_IF_H 1
10147 for ac_func in vprintf
10149 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10150 if test "x$ac_cv_func_vprintf" = x""yes; then :
10151 cat >>confdefs.h <<_ACEOF
10152 #define HAVE_VPRINTF 1
10155 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10156 if test "x$ac_cv_func__doprnt" = x""yes; then :
10158 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10166 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10168 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10169 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10173 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10175 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10176 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10180 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10182 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10183 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10187 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10188 #define _LARGEFILE64_SOURCE
10189 #include <unistd.h>
10191 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10192 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10196 # The cast to long int works around a bug in the HP C Compiler
10197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10199 # This bug is HP SR number 8606223364.
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10201 $as_echo_n "checking size of short... " >&6; }
10202 if test "${ac_cv_sizeof_short+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10208 if test "$ac_cv_type_short" = yes; then
10209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10211 { as_fn_set_status 77
10212 as_fn_error "cannot compute sizeof (short)
10213 See \`config.log' for more details." "$LINENO" 5; }; }
10215 ac_cv_sizeof_short=0
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10221 $as_echo "$ac_cv_sizeof_short" >&6; }
10225 cat >>confdefs.h <<_ACEOF
10226 #define SIZEOF_SHORT $ac_cv_sizeof_short
10230 # The cast to long int works around a bug in the HP C Compiler
10231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10233 # This bug is HP SR number 8606223364.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10235 $as_echo_n "checking size of int... " >&6; }
10236 if test "${ac_cv_sizeof_int+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10242 if test "$ac_cv_type_int" = yes; then
10243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10245 { as_fn_set_status 77
10246 as_fn_error "cannot compute sizeof (int)
10247 See \`config.log' for more details." "$LINENO" 5; }; }
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10255 $as_echo "$ac_cv_sizeof_int" >&6; }
10259 cat >>confdefs.h <<_ACEOF
10260 #define SIZEOF_INT $ac_cv_sizeof_int
10264 # The cast to long int works around a bug in the HP C Compiler
10265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10267 # This bug is HP SR number 8606223364.
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10269 $as_echo_n "checking size of long... " >&6; }
10270 if test "${ac_cv_sizeof_long+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10276 if test "$ac_cv_type_long" = yes; then
10277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10279 { as_fn_set_status 77
10280 as_fn_error "cannot compute sizeof (long)
10281 See \`config.log' for more details." "$LINENO" 5; }; }
10283 ac_cv_sizeof_long=0
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10289 $as_echo "$ac_cv_sizeof_long" >&6; }
10293 cat >>confdefs.h <<_ACEOF
10294 #define SIZEOF_LONG $ac_cv_sizeof_long
10298 # The cast to long int works around a bug in the HP C Compiler
10299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10301 # This bug is HP SR number 8606223364.
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10303 $as_echo_n "checking size of long long... " >&6; }
10304 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10307 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10310 if test "$ac_cv_type_long_long" = yes; then
10311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10313 { as_fn_set_status 77
10314 as_fn_error "cannot compute sizeof (long long)
10315 See \`config.log' for more details." "$LINENO" 5; }; }
10317 ac_cv_sizeof_long_long=0
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10323 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10327 cat >>confdefs.h <<_ACEOF
10328 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10332 SIZEOF_SHORT=$ac_cv_sizeof_short
10333 SIZEOF_INT=$ac_cv_sizeof_int
10334 SIZEOF_LONG=$ac_cv_sizeof_long
10335 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10341 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10342 if test "${ac_cv_c_bigendian+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10345 ac_cv_c_bigendian=unknown
10346 # See if we're dealing with a universal compiler.
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #ifndef __APPLE_CC__
10350 not a universal capable compiler
10355 if ac_fn_c_try_compile "$LINENO"; then :
10357 # Check for potential -arch flags. It is not universal unless
10358 # there are at least two -arch flags with different values.
10361 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10362 if test -n "$ac_prev"; then
10364 i?86 | x86_64 | ppc | ppc64)
10365 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10368 ac_cv_c_bigendian=universal
10374 elif test "x$ac_word" = "x-arch"; then
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 if test $ac_cv_c_bigendian = unknown; then
10381 # See if sys/param.h defines the BYTE_ORDER macro.
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 #include <sys/types.h>
10385 #include <sys/param.h>
10390 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10391 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10393 bogus endian macros
10400 if ac_fn_c_try_compile "$LINENO"; then :
10401 # It does; now see whether it defined to BIG_ENDIAN or not.
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #include <sys/types.h>
10405 #include <sys/param.h>
10410 #if BYTE_ORDER != BIG_ENDIAN
10418 if ac_fn_c_try_compile "$LINENO"; then :
10419 ac_cv_c_bigendian=yes
10421 ac_cv_c_bigendian=no
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 if test $ac_cv_c_bigendian = unknown; then
10428 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <limits.h>
10436 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10437 bogus endian macros
10444 if ac_fn_c_try_compile "$LINENO"; then :
10445 # It does; now see whether it defined to _BIG_ENDIAN or not.
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #include <limits.h>
10453 #ifndef _BIG_ENDIAN
10461 if ac_fn_c_try_compile "$LINENO"; then :
10462 ac_cv_c_bigendian=yes
10464 ac_cv_c_bigendian=no
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 if test $ac_cv_c_bigendian = unknown; then
10471 # Compile a test program.
10472 if test "$cross_compiling" = yes; then :
10473 # Try to guess by grepping values from an object file.
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 short int ascii_mm[] =
10477 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10478 short int ascii_ii[] =
10479 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10480 int use_ascii (int i) {
10481 return ascii_mm[i] + ascii_ii[i];
10483 short int ebcdic_ii[] =
10484 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10485 short int ebcdic_mm[] =
10486 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10487 int use_ebcdic (int i) {
10488 return ebcdic_mm[i] + ebcdic_ii[i];
10495 return use_ascii (foo) == use_ebcdic (foo);
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10502 ac_cv_c_bigendian=yes
10504 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10505 if test "$ac_cv_c_bigendian" = unknown; then
10506 ac_cv_c_bigendian=no
10508 # finding both strings is unlikely to happen, but who knows?
10509 ac_cv_c_bigendian=unknown
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 $ac_includes_default
10522 /* Are we little or big endian? From Harbison&Steele. */
10526 char c[sizeof (long int)];
10529 return u.c[sizeof (long int) - 1] == 1;
10535 if ac_fn_c_try_run "$LINENO"; then :
10536 ac_cv_c_bigendian=no
10538 ac_cv_c_bigendian=yes
10540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10541 conftest.$ac_objext conftest.beam conftest.$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10547 $as_echo "$ac_cv_c_bigendian" >&6; }
10548 case $ac_cv_c_bigendian in #(
10550 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10556 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10560 as_fn_error "unknown endianness
10561 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10564 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10565 ASM_TYPES_HEADER=./asm_types.h
10567 echo "/* These defines are needed for the public ext2fs.h header file */" \
10569 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10570 uniq tmp_config.$$ >> public_config.h
10572 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10574 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10575 uniq tmp_config.$$ >> public_config.h
10577 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10579 rm -f tmp_config.$$
10580 PUBLIC_CONFIG_HEADER=./public_config.h
10582 for ac_header in inttypes.h
10584 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10585 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_INTTYPES_H 1
10594 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10595 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10597 cat >>confdefs.h <<_ACEOF
10598 #define HAVE_INTPTR_T 1
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10605 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10606 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <sys/stat.h>
10615 struct stat stat; stat.st_flags = 0;
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 e2fsprogs_cv_struct_st_flags=yes
10623 e2fsprogs_cv_struct_st_flags=no
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10629 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10630 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10632 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10633 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 #include <sys/stat.h>
10642 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10647 if ac_fn_c_try_compile "$LINENO"; then :
10648 e2fsprogs_cv_struct_st_flags_immut=yes
10650 e2fsprogs_cv_struct_st_flags_immut=no
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10656 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10657 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10658 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10662 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10663 #include <sys/socket.h>
10665 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10667 cat >>confdefs.h <<_ACEOF
10668 #define HAVE_SA_LEN 1
10673 if test -n "$BLKID_CMT"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10675 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10676 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10679 ac_func_search_save_LIBS=$LIBS
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10689 char blkid_probe_all ();
10693 return blkid_probe_all ();
10698 for ac_lib in '' blkid; do
10699 if test -z "$ac_lib"; then
10700 ac_res="none required"
10703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 ac_cv_search_blkid_probe_all=$ac_res
10708 rm -f core conftest.err conftest.$ac_objext \
10710 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10714 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10717 ac_cv_search_blkid_probe_all=no
10719 rm conftest.$ac_ext
10720 LIBS=$ac_func_search_save_LIBS
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10723 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10724 ac_res=$ac_cv_search_blkid_probe_all
10725 if test "$ac_res" != no; then :
10726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10731 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 sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace
10733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10735 eval as_val=\$$as_ac_var
10736 if test "x$as_val" = x""yes; then :
10737 cat >>confdefs.h <<_ACEOF
10738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10746 $as_echo_n "checking for socket in -lsocket... " >&6; }
10747 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lsocket $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_socket_socket=yes
10773 ac_cv_lib_socket_socket=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10780 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10781 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10782 SOCKET_LIB=-lsocket
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10787 $as_echo_n "checking for optreset... " >&6; }
10788 if test "${ac_cv_have_optreset+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 #include <unistd.h>
10796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10797 $EGREP "optreset" >/dev/null 2>&1; then :
10798 ac_cv_have_optreset=yes
10800 ac_cv_have_optreset=no
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10806 $as_echo "$ac_cv_have_optreset" >&6; }
10807 if test $ac_cv_have_optreset = yes; then
10808 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10812 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10813 if test "x$ac_cv_func_sem_init" = x""yes; then :
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10817 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10818 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10821 ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-lpthread $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10836 return sem_init ();
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 ac_cv_lib_pthread_sem_init=yes
10844 ac_cv_lib_pthread_sem_init=no
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10851 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10852 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10853 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10855 SEM_INIT_LIB=-lpthread
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10858 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10859 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 ac_check_lib_save_LIBS=$LIBS
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10877 return sem_init ();
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_rt_sem_init=yes
10885 ac_cv_lib_rt_sem_init=no
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10892 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10893 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10894 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10899 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10900 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lposix4 $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10918 return sem_init ();
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_posix4_sem_init=yes
10926 ac_cv_lib_posix4_sem_init=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10933 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10934 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10935 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10937 SEM_INIT_LIB=-lposix4
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10947 $as_echo_n "checking for unified diff option... " >&6; }
10948 if diff -u $0 $0 > /dev/null 2>&1 ; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10954 $as_echo "$UNI_DIFF_OPTS" >&6; }
10958 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10978 linux* | gnu* | k*bsd*-gnu)
10979 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10982 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10987 linux* | gnu* | k*bsd*-gnu)
10988 if test "$prefix" = NONE ; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10991 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10992 if test "$mandir" = '${prefix}/man' ; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10994 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10995 mandir=/usr/share/man
11000 if test "$root_prefix" = NONE ; then
11001 if test "$prefix" = NONE ; then
11002 root_prefix="$ac_default_prefix"
11004 root_prefix="$prefix"
11006 root_bindir=$bindir
11007 root_sbindir=$sbindir
11008 root_libdir=$libdir
11009 root_sysconfdir=$sysconfdir
11011 root_bindir='${root_prefix}/bin'
11012 root_sbindir='${root_prefix}/sbin'
11013 root_libdir='${root_prefix}/lib'
11014 root_sysconfdir='${root_prefix}/etc'
11016 if test "$bindir" != '${exec_prefix}/bin'; then
11017 root_bindir=$bindir
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11019 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11021 if test "$sbindir" != '${exec_prefix}/sbin'; then
11022 root_sbindir=$sbindir
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11024 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11026 if test "$libdir" != '${exec_prefix}/lib'; then
11027 root_libdir=$libdir
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11029 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11031 if test "$sysconfdir" != '${prefix}/etc'; then
11032 root_sysconfdir=$sysconfdir
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11034 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11042 $as_echo_n "checking whether linker accepts -static... " >&6; }
11043 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
11046 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_e2fsprogs_use_static=yes
11061 ac_cv_e2fsprogs_use_static=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LDFLAGS=$SAVE_LDFLAGS
11070 ac_cv_e2fsprogs_use_static=no
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11074 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11076 if test $ac_cv_e2fsprogs_use_static = yes; then
11077 LDFLAG_STATIC=-static
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11083 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11084 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11088 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11089 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11092 if test "$cross_compiling" = yes ; then
11095 DO_TEST_SUITE=check
11099 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11100 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11103 if test $cross_compiling = no; then
11104 BUILD_CFLAGS="$CFLAGS"
11105 BUILD_LDFLAGS="$LDFLAGS"
11112 test -d lib || mkdir lib
11113 test -d include || mkdir include
11114 test -d include/linux || mkdir include/linux
11115 test -d include/asm || mkdir include/asm
11116 for i in MCONFIG Makefile e2fsprogs.spec \
11117 util/Makefile util/subst.conf util/gen-tarball \
11118 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11119 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11120 lib/uuid/Makefile lib/uuid/uuid_types.h \
11121 lib/blkid/Makefile lib/blkid/blkid_types.h \
11122 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11123 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11124 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11125 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11126 resize/Makefile doc/Makefile intl/Makefile \
11127 intl/libgnuintl.h po/Makefile.in ; do
11128 if test -d `dirname ${srcdir}/$i` ; then
11129 outlist="$outlist $i"
11132 ac_config_files="$ac_config_files $outlist"
11134 cat >confcache <<\_ACEOF
11135 # This file is a shell script that caches the results of configure
11136 # tests run on this system so they can be shared between configure
11137 # scripts and configure runs, see configure's option --config-cache.
11138 # It is not useful on other systems. If it contains results you don't
11139 # want to keep, you may remove or edit it.
11141 # config.status only pays attention to the cache file if you give it
11142 # the --recheck option to rerun configure.
11144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11146 # following values.
11150 # The following way of writing the cache mishandles newlines in values,
11151 # but we know of no workaround that is simple, portable, and efficient.
11152 # So, we kill variables containing newlines.
11153 # Ultrix sh set writes to stderr and can't be redirected directly,
11154 # and sets the high bit in the cache file unless we assign to the vars.
11156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11157 eval ac_val=\$$ac_var
11161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11165 _ | IFS | as_nl) ;; #(
11166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11167 *) { eval $ac_var=; unset $ac_var;} ;;
11173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11174 *${as_nl}ac_space=\ *)
11175 # `set' does not quote correctly, so add quotes: double-quote
11176 # substitution turns \\\\ into \\, and sed turns \\ into \.
11179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11182 # `set' quotes correctly as required by POSIX, so do not add quotes.
11183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11197 if test -w "$cache_file"; then
11198 test "x$cache_file" != "x/dev/null" &&
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11200 $as_echo "$as_me: updating cache $cache_file" >&6;}
11201 cat confcache >$cache_file
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11210 # Let make expand exec_prefix.
11211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11213 # Transform confdefs.h into DEFS.
11214 # Protect against shell expansion while executing Makefile rules.
11215 # Protect against Makefile macro expansion.
11217 # If the first sed substitution is executed (which looks for macros that
11218 # take arguments), then branch to the quote section. Otherwise,
11219 # look for a macro that doesn't take arguments.
11229 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11231 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11235 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11248 DEFS=`sed -n "$ac_script" confdefs.h`
11253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11254 # 1. Remove the extension, and $U if already installed.
11255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11256 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11258 # will be set to the directory where LIBOBJS objects are built.
11259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11262 LIBOBJS=$ac_libobjs
11264 LTLIBOBJS=$ac_ltlibobjs
11269 : ${CONFIG_STATUS=./config.status}
11271 ac_clean_files_save=$ac_clean_files
11272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11278 # Generated by $as_me.
11279 # Run this file to recreate the current configuration.
11280 # Compiler output produced by configure, useful for debugging
11281 # configure, is in config.log if it exists.
11284 ac_cs_recheck=false
11287 SHELL=\${CONFIG_SHELL-$SHELL}
11290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11291 ## -------------------- ##
11292 ## M4sh Initialization. ##
11293 ## -------------------- ##
11295 # Be more Bourne compatible
11296 DUALCASE=1; export DUALCASE # for MKS sh
11297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11301 # is contrary to our usage. Disable this feature.
11302 alias -g '${1+"$@"}'='"$@"'
11303 setopt NO_GLOB_SUBST
11305 case `(set -o) 2>/dev/null` in #(
11317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11321 # Prefer a ksh shell builtin over an external printf program on Solaris,
11322 # but without wasting forks for bash or zsh.
11323 if test -z "$BASH_VERSION$ZSH_VERSION" \
11324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11325 as_echo='print -r --'
11326 as_echo_n='print -rn --'
11327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11328 as_echo='printf %s\n'
11329 as_echo_n='printf %s'
11331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11333 as_echo_n='/usr/ucb/echo -n'
11335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11336 as_echo_n_body='eval
11340 expr "X$arg" : "X\\(.*\\)$as_nl";
11341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11345 export as_echo_n_body
11346 as_echo_n='sh -c $as_echo_n_body as_echo'
11348 export as_echo_body
11349 as_echo='sh -c $as_echo_body as_echo'
11352 # The user is always right.
11353 if test "${PATH_SEPARATOR+set}" != set; then
11355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11363 # We need space, tab and new line, in precisely that order. Quoting is
11364 # there to prevent editors from complaining about space-tab.
11365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11366 # splitting by setting IFS to empty value.)
11369 # Find who we are. Look in the path if we contain no directory separator.
11371 *[\\/]* ) as_myself=$0 ;;
11372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11376 test -z "$as_dir" && as_dir=.
11377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11383 # We did not find ourselves, most probably we were run as `sh COMMAND'
11384 # in which case we are not to be found in the path.
11385 if test "x$as_myself" = x; then
11388 if test ! -f "$as_myself"; then
11389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11393 # Unset variables that we do not need and which cause bugs (e.g. in
11394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11395 # suppresses any "Segmentation fault" message there. '((' could
11396 # trigger a bug in pdksh 5.2.14.
11397 for as_var in BASH_ENV ENV MAIL MAILPATH
11398 do eval test x\${$as_var+set} = xset \
11399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11415 # as_fn_error ERROR [LINENO LOG_FD]
11416 # ---------------------------------
11417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11419 # script with status $?, using 1 if that was 0.
11422 as_status=$?; test $as_status -eq 0 && as_status=1
11424 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11427 $as_echo "$as_me: error: $1" >&2
11428 as_fn_exit $as_status
11432 # as_fn_set_status STATUS
11433 # -----------------------
11434 # Set $? to STATUS, without forking.
11435 as_fn_set_status ()
11438 } # as_fn_set_status
11440 # as_fn_exit STATUS
11441 # -----------------
11442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11446 as_fn_set_status $1
11452 # Portably unset VAR.
11455 { eval $1=; unset $1;}
11457 as_unset=as_fn_unset
11458 # as_fn_append VAR VALUE
11459 # ----------------------
11460 # Append the text in VALUE to the end of the definition contained in VAR. Take
11461 # advantage of any shell optimizations that allow amortized linear growth over
11462 # repeated appends, instead of the typical quadratic growth present in naive
11464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11465 eval 'as_fn_append ()
11476 # as_fn_arith ARG...
11477 # ------------------
11478 # Perform arithmetic evaluation on the ARGs, and store the result in the
11479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11480 # must be portable across $(()) and expr.
11481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11482 eval 'as_fn_arith ()
11489 as_val=`expr "$@" || test $? -eq 1`
11494 if expr a : '\(a\)' >/dev/null 2>&1 &&
11495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11502 as_basename=basename
11507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11513 as_me=`$as_basename -- "$0" ||
11514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11515 X"$0" : 'X\(//\)$' \| \
11516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11518 sed '/^.*\/\([^/][^/]*\)\/*$/{
11532 # Avoid depending upon Character Ranges.
11533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11536 as_cr_digits='0123456789'
11537 as_cr_alnum=$as_cr_Letters$as_cr_digits
11539 ECHO_C= ECHO_N= ECHO_T=
11540 case `echo -n x` in #(((((
11542 case `echo 'xy\c'` in
11543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11552 rm -f conf$$ conf$$.exe conf$$.file
11553 if test -d conf$$.dir; then
11554 rm -f conf$$.dir/conf$$.file
11557 mkdir conf$$.dir 2>/dev/null
11559 if (echo >conf$$.file) 2>/dev/null; then
11560 if ln -s conf$$.file conf$$ 2>/dev/null; then
11562 # ... but there are two gotchas:
11563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11565 # In both cases, we have to default to `cp -p'.
11566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11568 elif ln conf$$.file conf$$ 2>/dev/null; then
11576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11577 rmdir conf$$.dir 2>/dev/null
11582 # Create "$as_dir" as a directory, including parents if necessary.
11587 -*) as_dir=./$as_dir;;
11589 test -d "$as_dir" || eval $as_mkdir_p || {
11593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11594 *) as_qdir=$as_dir;;
11596 as_dirs="'$as_qdir' $as_dirs"
11597 as_dir=`$as_dirname -- "$as_dir" ||
11598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11599 X"$as_dir" : 'X\(//\)[^/]' \| \
11600 X"$as_dir" : 'X\(//\)$' \| \
11601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11602 $as_echo X"$as_dir" |
11603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11607 /^X\(\/\/\)[^/].*/{
11620 test -d "$as_dir" && break
11622 test -z "$as_dirs" || eval "mkdir $as_dirs"
11623 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11627 if mkdir -p . 2>/dev/null; then
11628 as_mkdir_p='mkdir -p "$as_dir"'
11630 test -d ./-p && rmdir ./-p
11634 if test -x / >/dev/null 2>&1; then
11635 as_test_x='test -x'
11637 if ls -dL / >/dev/null 2>&1; then
11644 if test -d "$1"; then
11650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11651 ???[sx]*):;;*)false;;esac;fi
11655 as_executable_p=$as_test_x
11657 # Sed expression to map a string onto a valid CPP name.
11658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11660 # Sed expression to map a string onto a valid variable name.
11661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11665 ## ----------------------------------- ##
11666 ## Main body of $CONFIG_STATUS script. ##
11667 ## ----------------------------------- ##
11669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672 # Save the log message, to keep $0 and so on meaningful, and to
11673 # report actual input values of CONFIG_FILES etc. instead of their
11674 # values after options handling.
11676 This file was extended by $as_me, which was
11677 generated by GNU Autoconf 2.65. Invocation command line was
11679 CONFIG_FILES = $CONFIG_FILES
11680 CONFIG_HEADERS = $CONFIG_HEADERS
11681 CONFIG_LINKS = $CONFIG_LINKS
11682 CONFIG_COMMANDS = $CONFIG_COMMANDS
11685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11690 case $ac_config_files in *"
11691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11697 # Files that config.status was made for.
11698 config_files="$ac_config_files"
11699 config_commands="$ac_config_commands"
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11705 \`$as_me' instantiates files and other configuration actions
11706 from templates according to the current configuration. Unless the files
11707 and actions are specified as TAGs, all are instantiated by default.
11709 Usage: $0 [OPTION]... [TAG]...
11711 -h, --help print this help, then exit
11712 -V, --version print version number and configuration settings, then exit
11713 --config print configuration, then exit
11714 -q, --quiet, --silent
11715 do not print progress messages
11716 -d, --debug don't remove temporary files
11717 --recheck update $as_me by reconfiguring in the same conditions
11718 --file=FILE[:TEMPLATE]
11719 instantiate the configuration file FILE
11721 Configuration files:
11724 Configuration commands:
11727 Report bugs to the package provider."
11730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11734 configured by $0, generated by GNU Autoconf 2.65,
11735 with options \\"\$ac_cs_config\\"
11737 Copyright (C) 2009 Free Software Foundation, Inc.
11738 This config.status script is free software; the Free Software Foundation
11739 gives unlimited permission to copy, distribute and modify it."
11745 test -n "\$AWK" || AWK=awk
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 # The default lists apply if the user does not specify any file.
11755 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11756 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11767 # Handling of the options.
11768 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11770 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11771 $as_echo "$ac_cs_version"; exit ;;
11772 --config | --confi | --conf | --con | --co | --c )
11773 $as_echo "$ac_cs_config"; exit ;;
11774 --debug | --debu | --deb | --de | --d | -d )
11776 --file | --fil | --fi | --f )
11779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11781 as_fn_append CONFIG_FILES " '$ac_optarg'"
11782 ac_need_defaults=false;;
11783 --he | --h | --help | --hel | -h )
11784 $as_echo "$ac_cs_usage"; exit ;;
11785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11789 # This is an error.
11790 -*) as_fn_error "unrecognized option: \`$1'
11791 Try \`$0 --help' for more information." ;;
11793 *) as_fn_append ac_config_targets " $1"
11794 ac_need_defaults=false ;;
11800 ac_configure_extra_args=
11802 if $ac_cs_silent; then
11804 ac_configure_extra_args="$ac_configure_extra_args --silent"
11808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11809 if \$ac_cs_recheck; then
11810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11813 CONFIG_SHELL='$SHELL'
11814 export CONFIG_SHELL
11819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11824 ## Running $as_me. ##
11830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11834 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11835 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11837 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11838 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11839 LINGUAS="${LINGUAS-%UNSET%}"
11844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11846 # Handling of arguments.
11847 for ac_config_target in $ac_config_targets
11849 case $ac_config_target in
11850 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11851 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11853 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11858 # If the user did not use the arguments to specify the items to instantiate,
11859 # then the envvar interface is used. Set only those that are not.
11860 # We use the long form for the default assignment because of an extremely
11861 # bizarre bug on SunOS 4.1.3.
11862 if $ac_need_defaults; then
11863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11867 # Have a temporary directory for convenience. Make it in the build tree
11868 # simply because there is no reason against having it here, and in addition,
11869 # creating and moving files from /tmp can sometimes cause problems.
11870 # Hook for its removal unless debugging.
11871 # Note that there is a small window in which the directory will not be cleaned:
11872 # after its creation but before its name has been assigned to `$tmp'.
11876 trap 'exit_status=$?
11877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11879 trap 'as_fn_exit 1' 1 2 13 15
11881 # Create a (secure) tmp directory for tmp files.
11884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11885 test -n "$tmp" && test -d "$tmp"
11888 tmp=./conf$$-$RANDOM
11889 (umask 077 && mkdir "$tmp")
11890 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11892 # Set up the scripts for CONFIG_FILES section.
11893 # No need to generate them if there are no CONFIG_FILES.
11894 # This happens for instance with `./config.status config.h'.
11895 if test -n "$CONFIG_FILES"; then
11897 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11898 ac_cs_awk_getline=:
11899 ac_cs_awk_pipe_init=
11900 ac_cs_awk_read_file='
11901 while ((getline aline < (F[key])) > 0)
11904 ac_cs_awk_pipe_fini=
11906 ac_cs_awk_getline=false
11907 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11908 ac_cs_awk_read_file='
11910 print "cat " F[key] " &&"
11911 '$ac_cs_awk_pipe_init
11912 # The final `:' finishes the AND list.
11913 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11915 ac_cr=`echo X | tr X '\015'`
11916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11917 # But we know of no other shell where ac_cr would be empty at this
11918 # point, so we can use a bashism as a fallback.
11919 if test "x$ac_cr" = x; then
11920 eval ac_cr=\$\'\\r\'
11922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11926 ac_cs_awk_cr=$ac_cr
11929 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11932 # Create commands to substitute file output variables.
11934 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11935 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11936 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11939 } >conf$$files.sh &&
11940 . ./conf$$files.sh ||
11941 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11942 rm -f conf$$files.sh
11945 echo "cat >conf$$subs.awk <<_ACEOF" &&
11946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11948 } >conf$$subs.sh ||
11949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11950 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11952 for ac_last_try in false false false false false :; do
11953 . ./conf$$subs.sh ||
11954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11957 if test $ac_delim_n = $ac_delim_num; then
11959 elif $ac_last_try; then
11960 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11965 rm -f conf$$subs.sh
11967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11968 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11972 s/^/S["/; s/!.*/"]=/
11982 s/\(.\{148\}\)..*/\1/
11984 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11996 s/\(.\{148\}\)..*/\1/
11998 s/["\\]/\\&/g; s/^/"/; s/$/"/
12002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12007 ' <conf$$subs.awk | sed '
12012 ' >>$CONFIG_STATUS || ac_write_fail=1
12013 rm -f conf$$subs.awk
12014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12016 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12017 for (key in S) S_is_set[key] = 1
12019 \$ac_cs_awk_pipe_init
12023 nfields = split(line, field, "@")
12025 len = length(field[1])
12026 for (i = 2; i < nfields; i++) {
12028 keylen = length(key)
12029 if (S_is_set[key]) {
12031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12032 len += length(value) + length(field[++i])
12037 if (nfields == 3 && !substed) {
12039 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12040 \$ac_cs_awk_read_file
12046 \$ac_cs_awk_pipe_fini
12049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12050 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12051 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12054 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12055 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12060 # trailing colons and then remove the whole line if VPATH becomes empty
12061 # (actually we leave an empty line to preserve line numbers).
12062 if test "x$srcdir" = x.; then
12063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12064 s/:*\$(srcdir):*/:/
12065 s/:*\${srcdir}:*/:/
12067 s/^\([^=]*=[ ]*\):*/\1/
12073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12074 fi # test -n "$CONFIG_FILES"
12077 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12082 :[FHLC]) ac_mode=$ac_tag; continue;;
12084 case $ac_mode$ac_tag in
12086 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12087 :[FH]-) ac_tag=-:-;;
12088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12105 -) ac_f="$tmp/stdin";;
12106 *) # Look for the file first in the build tree, then in the source tree
12107 # (if the path is not absolute). The absolute path cannot be DOS-style,
12108 # because $ac_f cannot contain `:'.
12112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12114 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12116 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12117 as_fn_append ac_file_inputs " '$ac_f'"
12120 # Let's still pretend it is `configure' which instantiates (i.e., don't
12121 # use $as_me), people would be surprised to read:
12122 # /* config.h. Generated by config.status. */
12123 configure_input='Generated from '`
12124 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12126 if test x"$ac_file" != x-; then
12127 configure_input="$ac_file. $configure_input"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12129 $as_echo "$as_me: creating $ac_file" >&6;}
12131 # Neutralize special characters interpreted by sed in replacement strings.
12132 case $configure_input in #(
12133 *\&* | *\|* | *\\* )
12134 ac_sed_conf_input=`$as_echo "$configure_input" |
12135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12136 *) ac_sed_conf_input=$configure_input;;
12140 *:-:* | *:-) cat >"$tmp/stdin" \
12141 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12146 ac_dir=`$as_dirname -- "$ac_file" ||
12147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12148 X"$ac_file" : 'X\(//\)[^/]' \| \
12149 X"$ac_file" : 'X\(//\)$' \| \
12150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12151 $as_echo X"$ac_file" |
12152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12156 /^X\(\/\/\)[^/].*/{
12169 as_dir="$ac_dir"; as_fn_mkdir_p
12173 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12175 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12176 # A ".." for each directory in $ac_dir_suffix.
12177 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12178 case $ac_top_builddir_sub in
12179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12183 ac_abs_top_builddir=$ac_pwd
12184 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12185 # for backward compatibility:
12186 ac_top_builddir=$ac_top_build_prefix
12189 .) # We are building in place.
12191 ac_top_srcdir=$ac_top_builddir_sub
12192 ac_abs_top_srcdir=$ac_pwd ;;
12193 [\\/]* | ?:[\\/]* ) # Absolute name.
12194 ac_srcdir=$srcdir$ac_dir_suffix;
12195 ac_top_srcdir=$srcdir
12196 ac_abs_top_srcdir=$srcdir ;;
12197 *) # Relative name.
12198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12199 ac_top_srcdir=$ac_top_build_prefix$srcdir
12200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12202 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12218 # If the template does not know about datarootdir, expand it.
12219 # FIXME: This hack should be removed a few years after 2.60.
12220 ac_datarootdir_hack=; ac_datarootdir_seen=
12231 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12232 *datarootdir*) ac_datarootdir_seen=yes;;
12233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12235 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12238 ac_datarootdir_hack='
12239 s&@datadir@&$datadir&g
12240 s&@docdir@&$docdir&g
12241 s&@infodir@&$infodir&g
12242 s&@localedir@&$localedir&g
12243 s&@mandir@&$mandir&g
12244 s&\\\${datarootdir}&$datarootdir&g' ;;
12248 # Neutralize VPATH when `$srcdir' = `.'.
12249 # Shell code in configure.ac might set extrasub.
12250 # FIXME: do we really want to maintain this feature?
12251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12252 ac_sed_extra="$ac_vpsub
12255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12258 s|@configure_input@|$ac_sed_conf_input|;t t
12259 s&@top_builddir@&$ac_top_builddir_sub&;t t
12260 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12261 s&@srcdir@&$ac_srcdir&;t t
12262 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12263 s&@top_srcdir@&$ac_top_srcdir&;t t
12264 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12265 s&@builddir@&$ac_builddir&;t t
12266 s&@abs_builddir@&$ac_abs_builddir&;t t
12267 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12268 s&@INSTALL@&$ac_INSTALL&;t t
12269 $ac_datarootdir_hack
12271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12272 if $ac_cs_awk_getline; then
12273 $AWK -f "$tmp/subs.awk"
12275 $AWK -f "$tmp/subs.awk" | $SHELL
12277 || as_fn_error "could not create $ac_file" "$LINENO" 5
12279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12283 which seems to be undefined. Please make sure it is defined." >&5
12284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12285 which seems to be undefined. Please make sure it is defined." >&2;}
12289 -) cat "$tmp/out" && rm -f "$tmp/out";;
12290 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12292 || as_fn_error "could not create $ac_file" "$LINENO" 5
12296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12297 $as_echo "$as_me: executing $ac_file commands" >&6;}
12302 case $ac_file$ac_mode in
12304 for ac_file in $CONFIG_FILES; do
12305 # Support "outfile[:infile[:infile...]]"
12307 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12309 # PO directories have a Makefile.in generated from Makefile.in.in.
12310 case "$ac_file" in */Makefile.in)
12311 # Adjust a relative srcdir.
12312 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12313 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12314 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12315 # In autoconf-2.13 it is called $ac_given_srcdir.
12316 # In autoconf-2.50 it is called $srcdir.
12317 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12318 case "$ac_given_srcdir" in
12319 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12320 /*) top_srcdir="$ac_given_srcdir" ;;
12321 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12323 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12324 rm -f "$ac_dir/POTFILES"
12325 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12326 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12327 POMAKEFILEDEPS="POTFILES.in"
12328 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12329 # on $ac_dir but don't depend on user-specified configuration
12331 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12332 # The LINGUAS file contains the set of available languages.
12333 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12334 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12336 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12337 # Hide the ALL_LINGUAS assigment from automake.
12338 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12339 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12341 # The set of available languages was given in configure.in.
12342 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12345 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12346 # Compute UPDATEPOFILES
12347 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12348 # Compute DUMMYPOFILES
12349 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12351 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12352 case "$ac_given_srcdir" in
12354 *) srcdirpre='$(srcdir)/' ;;
12360 for lang in $ALL_LINGUAS; do
12361 POFILES="$POFILES $srcdirpre$lang.po"
12362 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12363 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12364 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12366 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12367 # environment variable.
12369 if test -n "$ALL_LINGUAS"; then
12370 for presentlang in $ALL_LINGUAS; do
12372 if test "%UNSET%" != "$LINGUAS"; then
12373 desiredlanguages="$LINGUAS"
12375 desiredlanguages="$ALL_LINGUAS"
12377 for desiredlang in $desiredlanguages; do
12378 # Use the presentlang catalog if desiredlang is
12379 # a. equal to presentlang, or
12380 # b. a variant of presentlang (because in this case,
12381 # presentlang can be used as a fallback for messages
12382 # which are not translated in the desiredlang catalog).
12383 case "$desiredlang" in
12384 "$presentlang"*) useit=yes;;
12387 if test $useit = yes; then
12388 INST_LINGUAS="$INST_LINGUAS $presentlang"
12393 if test -n "$INST_LINGUAS"; then
12394 for lang in $INST_LINGUAS; do
12395 CATALOGS="$CATALOGS $lang.gmo"
12398 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12399 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"
12400 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12401 if test -f "$f"; then
12403 *.orig | *.bak | *~) ;;
12404 *) cat "$f" >> "$ac_dir/Makefile" ;;
12419 ac_clean_files=$ac_clean_files_save
12421 test $ac_write_fail = 0 ||
12422 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12425 # configure is writing to config.log, and then calls config.status.
12426 # config.status does its own redirection, appending to config.log.
12427 # Unfortunately, on DOS this fails, as config.log is still kept open
12428 # by configure, so config.status won't be able to write to it; its
12429 # output is simply discarded. So we exec the FD to /dev/null,
12430 # effectively closing config.log, so it can be properly (re)opened and
12431 # appended to by config.status. When coming back to configure, we
12432 # need to make the FD available again.
12433 if test "$no_create" != yes; then
12435 ac_config_status_args=
12436 test "$silent" = yes &&
12437 ac_config_status_args="$ac_config_status_args --quiet"
12439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12442 # would make configure fail if this is the last instruction.
12443 $ac_cs_success || as_fn_exit $?
12445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12450 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi