2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_use_threads_default
=
626 ac_subst_vars
='LTLIBOBJS
628 systemd_system_unit_dir
703 INTL_LIBTOOL_SUFFIX_PREFIX
710 BUILD_INCLUDED_LIBINTL
720 INTL_DEFAULT_VERBOSITY
739 XGETTEXT_EXTRA_OPTIONS
747 GETTEXT_MACRO_VERSION
857 program_transform_name
868 ac_subst_files
='MCONFIG
874 PUBLIC_CONFIG_HEADER'
876 enable_option_checking
882 enable_maintainer_mode
883 enable_symlink_install
884 enable_relative_symlinks
885 enable_symlink_relative_symlinks
887 enable_verbose_makecmds
905 enable_e2initrd_helper
911 enable_bmap_stats_ops
918 with_included_gettext
928 with_systemd_unit_dir
930 ac_precious_vars
='build_alias
948 # Initialize some variables set by options.
950 ac_init_version
=false
951 ac_unrecognized_opts
=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name
=s
,x
,x
,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir
='${exec_prefix}/bin'
977 sbindir
='${exec_prefix}/sbin'
978 libexecdir
='${exec_prefix}/libexec'
979 datarootdir
='${prefix}/share'
980 datadir
='${datarootdir}'
981 sysconfdir
='${prefix}/etc'
982 sharedstatedir
='${prefix}/com'
983 localstatedir
='${prefix}/var'
984 runstatedir
='${localstatedir}/run'
985 includedir
='${prefix}/include'
986 oldincludedir
='/usr/include'
987 docdir
='${datarootdir}/doc/${PACKAGE}'
988 infodir
='${datarootdir}/info'
993 libdir
='${exec_prefix}/lib'
994 localedir
='${datarootdir}/locale'
995 mandir
='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\
$ac_option
1009 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1022 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1023 bindir
=$ac_optarg ;;
1025 -build |
--build |
--buil |
--bui |
--bu)
1026 ac_prev
=build_alias
;;
1027 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1028 build_alias
=$ac_optarg ;;
1030 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1031 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1032 ac_prev
=cache_file
;;
1033 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1034 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1035 cache_file
=$ac_optarg ;;
1037 --config-cache |
-C)
1038 cache_file
=config.cache
;;
1040 -datadir |
--datadir |
--datadi |
--datad)
1042 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1043 datadir
=$ac_optarg ;;
1045 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1046 |
--dataroo |
--dataro |
--datar)
1047 ac_prev
=datarootdir
;;
1048 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1049 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1050 datarootdir
=$ac_optarg ;;
1052 -disable-* |
--disable-*)
1053 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1056 as_fn_error $?
"invalid feature name: $ac_useropt"
1057 ac_useropt_orig
=$ac_useropt
1058 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_
$ac_useropt"
1063 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep
=', ';;
1066 eval enable_
$ac_useropt=no
;;
1068 -docdir |
--docdir |
--docdi |
--doc |
--do)
1070 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1071 docdir
=$ac_optarg ;;
1073 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1075 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1076 dvidir
=$ac_optarg ;;
1078 -enable-* |
--enable-*)
1079 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1082 as_fn_error $?
"invalid feature name: $ac_useropt"
1083 ac_useropt_orig
=$ac_useropt
1084 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_
$ac_useropt"
1089 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep
=', ';;
1092 eval enable_
$ac_useropt=\
$ac_optarg ;;
1094 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1095 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1096 |
--exec |
--exe |
--ex)
1097 ac_prev
=exec_prefix
;;
1098 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1099 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1100 |
--exec=* |
--exe=* |
--ex=*)
1101 exec_prefix
=$ac_optarg ;;
1103 -gas |
--gas |
--ga |
--g)
1104 # Obsolete; use --with-gas.
1107 -help |
--help |
--hel |
--he |
-h)
1108 ac_init_help
=long
;;
1109 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1110 ac_init_help
=recursive
;;
1111 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1112 ac_init_help
=short
;;
1114 -host |
--host |
--hos |
--ho)
1115 ac_prev
=host_alias
;;
1116 -host=* |
--host=* |
--hos=* |
--ho=*)
1117 host_alias
=$ac_optarg ;;
1119 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1121 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1123 htmldir
=$ac_optarg ;;
1125 -includedir |
--includedir |
--includedi |
--included |
--include \
1126 |
--includ |
--inclu |
--incl |
--inc)
1127 ac_prev
=includedir
;;
1128 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1129 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1130 includedir
=$ac_optarg ;;
1132 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1134 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1135 infodir
=$ac_optarg ;;
1137 -libdir |
--libdir |
--libdi |
--libd)
1139 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1140 libdir
=$ac_optarg ;;
1142 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1143 |
--libexe |
--libex |
--libe)
1144 ac_prev
=libexecdir
;;
1145 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1146 |
--libexe=* |
--libex=* |
--libe=*)
1147 libexecdir
=$ac_optarg ;;
1149 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1150 ac_prev
=localedir
;;
1151 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1152 localedir
=$ac_optarg ;;
1154 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1155 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1156 ac_prev
=localstatedir
;;
1157 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1158 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1159 localstatedir
=$ac_optarg ;;
1161 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1163 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1164 mandir
=$ac_optarg ;;
1166 -nfp |
--nfp |
--nf)
1167 # Obsolete; use --without-fp.
1170 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1171 |
--no-cr |
--no-c |
-n)
1174 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1175 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1178 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1179 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1180 |
--oldin |
--oldi |
--old |
--ol |
--o)
1181 ac_prev
=oldincludedir
;;
1182 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1183 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1184 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1185 oldincludedir
=$ac_optarg ;;
1187 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1189 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1190 prefix
=$ac_optarg ;;
1192 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1193 |
--program-pre |
--program-pr |
--program-p)
1194 ac_prev
=program_prefix
;;
1195 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1196 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1197 program_prefix
=$ac_optarg ;;
1199 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1200 |
--program-suf |
--program-su |
--program-s)
1201 ac_prev
=program_suffix
;;
1202 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1203 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1204 program_suffix
=$ac_optarg ;;
1206 -program-transform-name |
--program-transform-name \
1207 |
--program-transform-nam |
--program-transform-na \
1208 |
--program-transform-n |
--program-transform- \
1209 |
--program-transform |
--program-transfor \
1210 |
--program-transfo |
--program-transf \
1211 |
--program-trans |
--program-tran \
1212 |
--progr-tra |
--program-tr |
--program-t)
1213 ac_prev
=program_transform_name
;;
1214 -program-transform-name=* |
--program-transform-name=* \
1215 |
--program-transform-nam=* |
--program-transform-na=* \
1216 |
--program-transform-n=* |
--program-transform-=* \
1217 |
--program-transform=* |
--program-transfor=* \
1218 |
--program-transfo=* |
--program-transf=* \
1219 |
--program-trans=* |
--program-tran=* \
1220 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1221 program_transform_name
=$ac_optarg ;;
1223 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1225 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1226 pdfdir
=$ac_optarg ;;
1228 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1230 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1233 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1234 |
-silent |
--silent |
--silen |
--sile |
--sil)
1237 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1238 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1239 |
--run |
--ru |
--r)
1240 ac_prev
=runstatedir
;;
1241 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1242 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1243 |
--run=* |
--ru=* |
--r=*)
1244 runstatedir
=$ac_optarg ;;
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error $?
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $?
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir runstatedir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1419 test "$silent" = yes && exec 6>/dev
/null
1422 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di
=`ls -di .` &&
1424 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $?
"working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $?
"pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted
=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir
=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted
=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1466 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var
in $ac_precious_vars; do
1483 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1485 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1555 --build=BUILD configure
for building on BUILD
[guessed
]
1556 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1560 if test -n "$ac_init_help"; then
1565 --disable-option-checking ignore unrecognized
--enable/--with options
1566 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1567 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1568 --enable-maintainer-mode enable makefile rules useful
for maintainers
1569 --enable-symlink-install use symlinks when installing instead of hard links
1570 --enable-relative-symlinks use relative symlinks when installing
1572 --enable-symlink-build use symlinks
while building instead of hard links
1573 --enable-verbose-makecmds enable verbose
make command output
1574 --enable-elf-shlibs select ELF shared libraries
1575 --enable-bsd-shlibs select BSD shared libraries
1576 --enable-profile build profiling libraries
1577 --enable-gcov build
for coverage testing using gcov
1578 --enable-hardening build
for coverage testing using gcov
1579 --enable-jbd-debug enable journal debugging
1580 --enable-blkid-debug enable blkid debugging
1581 --disable-testio-debug disable the use of the
test I
/O manager
for debugging
1582 --enable-libuuid build and use private uuid library
1583 --enable-libblkid build and use private blkid library
1584 --enable-subset enable subset-only build
1585 --disable-backtrace disable use backtrace
1586 --disable-debugfs disable support of debugfs program
1587 --disable-imager disable support of e2image program
1588 --disable-resizer disable support of e2resize program
1589 --disable-defrag disable support of e4defrag program
1590 --enable-fsck build fsck wrapper program
1591 --enable-e2initrd-helper build e2initrd-helper program
1592 --disable-tls disable use of thread
local support
1593 --disable-uuidd disable building the uuid daemon
1594 --disable-mmp disable support mmp
, Multi Mount Protection
1595 --disable-tdb disable tdb support
1596 --disable-bmap-stats disable collection of bitmap stats.
1597 --enable-bmap-stats-ops enable collection of additional bitmap stats
1598 --disable-nls do not use Native Language Support
1599 --enable-threads={posix|solaris|pth|windows
}
1600 specify multithreading API
1601 --disable-threads build without multithread safety
1602 --disable-rpath do not hardcode runtime library paths
1603 --disable-fuse2fs do not build fuse2fs
1604 --enable-lto enable link
time optimization
1605 --enable-ubsan enable undefined behavior sanitizer
1606 --enable-addrsan enable address sanitizer
1607 --enable-threadsan enable thread sanitizer
1610 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1611 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1612 --with-diet-libc use diet libc
1613 --with-cc no longer supported
, use CC
= instead
1614 --with-ccopts no longer supported
, use CFLAGS
= instead
1615 --with-ldopts no longer supported
, use LDFLAGS
= instead
1616 --with-root-prefix=PREFIX override prefix variable
for files to be placed
in the root
1617 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1618 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
1619 --without-libpth-prefix don
't search for libpth in includedir and libdir
1620 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1621 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1622 --with-included-gettext use the GNU
gettext library included here
1623 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1624 --without-libintl-prefix don
't search for libintl in includedir and libdir
1625 --with-multiarch=ARCH specify the multiarch triplet
1626 --with-udev-rules-dir[=DIR]
1627 Install udev rules into DIR.
1628 --with-crond-dir[=DIR] Install system crontabs into DIR.
1629 --with-systemd-unit-dir[=DIR]
1630 Install systemd system units into DIR.
1632 Some influential environment variables:
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1641 PKG_CONFIG path to pkg-config utility
1643 directories to add to pkg-config's search path
1645 path overriding pkg-config
's built-in search path
1646 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1647 udev_LIBS linker flags for udev, overriding pkg-config
1649 C compiler flags for systemd, overriding pkg-config
1651 linker flags for systemd, overriding pkg-config
1653 Use these variables to override the choices made by `configure' or to
help
1654 it to
find libraries and programs with nonstandard names
/locations.
1656 Report bugs to the package provider.
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1670 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1672 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1677 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1680 ac_abs_top_builddir
=$ac_pwd
1681 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir
=$ac_top_build_prefix
1686 .
) # We are building in place.
1688 ac_top_srcdir
=$ac_top_builddir_sub
1689 ac_abs_top_srcdir
=$ac_pwd ;;
1690 [\\/]* | ?
:[\\/]* ) # Absolute name.
1691 ac_srcdir
=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir
=$srcdir
1693 ac_abs_top_srcdir
=$srcdir ;;
1695 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1699 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1720 generated by GNU Autoconf
2.69
1722 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1723 This configure
script is free software
; the Free Software Foundation
1724 gives unlimited permission to copy
, distribute and modify it.
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile
()
1738 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1739 rm -f conftest.
$ac_objext
1740 if { { ac_try
="$ac_compile"
1742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_compile
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1781 *) ac_try_echo
=$ac_try;;
1783 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1787 if test -s conftest.err
; then
1788 grep -v '^ *+' conftest.err
>conftest.er1
1789 cat conftest.er1
>&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest
$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 test -x conftest
$ac_exeext
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status
$ac_retval
1815 } # ac_fn_c_try_link
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1823 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } > conftest.i && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1854 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1857 # the include files in INCLUDES and setting the cache variable VAR
1859 ac_fn_c_check_header_mongrel ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if eval \${$3+:} false; then :
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1872 # Is the header compilable?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1874 $as_echo_n "checking $2 usability... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 ac_header_compiler=yes
1883 ac_header_compiler=no
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1887 $as_echo "$ac_header_compiler" >&6; }
1889 # Is the header present?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1891 $as_echo_n "checking $2 presence... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 if ac_fn_c_try_cpp "$LINENO"; then :
1897 ac_header_preproc=yes
1899 ac_header_preproc=no
1901 rm -f conftest.err conftest.i conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1903 $as_echo "$ac_header_preproc" >&6; }
1905 # So? What about this header?
1906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1909 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1915 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1917 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1919 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1921 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval "$3=\$ac_header_compiler"
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_mongrel
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1944 # that executables *can* be run.
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1951 *) ac_try_echo
=$ac_try;;
1953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }; then :
1971 $as_echo "$as_me: program exited with status $ac_status" >&5
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=$ac_status
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_header_compile
2014 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2015 # -------------------------------------------
2016 # Tests whether TYPE exists after having included INCLUDES, setting cache
2017 # variable VAR accordingly.
2018 ac_fn_c_check_type ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_type
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2083 #define $2 innocuous_$2
2085 /* System header to define __stub macros and hopefully few prototypes,
2086 which can conflict with char $2 (); below.
2087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088 <limits.h> exists even on freestanding compilers. */
2091 # include <limits.h>
2093 # include <assert.h>
2098 /* Override any GCC internal prototype to avoid an error.
2099 Use char because int might match the return type of a GCC
2100 builtin and then its argument prototype would still apply. */
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined __stub_$2 || defined __stub___$2
2120 if ac_fn_c_try_link "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext \
2126 conftest$ac_exeext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_func
2135 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2136 # ---------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2139 ac_fn_c_check_decl ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2143 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2145 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 #ifndef $as_decl_name
2157 (void) $as_decl_use;
2159 (void) $as_decl_name;
2167 if ac_fn_c_try_compile "$LINENO"; then :
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_decl
2181 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2182 # --------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2186 ac_fn_c_compute_int ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if test "$cross_compiling" = yes; then
2190 # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216 return test_array [0];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_hi=$ac_mid; break
2225 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2226 if test $ac_lo -le $ac_mid; then
2230 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) < 0)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2260 return test_array [0];
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_lo=$ac_mid; break
2269 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2270 if test $ac_mid -le $ac_hi; then
2274 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 # Binary search between lo and hi bounds.
2285 while test "x$ac_lo" != "x$ac_hi"; do
2286 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 return test_array [0];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2304 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2316 static long int longval () { return $2; }
2317 static unsigned long int ulongval () { return $2; }
2324 FILE *f = fopen ("conftest.val", "w");
2329 long int i = longval ();
2332 fprintf (f, "%ld", i);
2336 unsigned long int i = ulongval ();
2339 fprintf (f, "%lu", i);
2341 /* Do not output a trailing newline, as this causes \r\n confusion
2342 on some platforms. */
2343 return ferror (f) || fclose (f) != 0;
2349 if ac_fn_c_try_run "$LINENO"; then :
2350 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2355 conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 as_fn_set_status $ac_retval
2362 } # ac_fn_c_compute_int
2364 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2365 # ----------------------------------------------------
2366 # Tries to find if the field MEMBER exists in type AGGR, after including
2367 # INCLUDES, setting cache variable VAR accordingly.
2368 ac_fn_c_check_member ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2372 $as_echo_n "checking for $2.$3... " >&6; }
2373 if eval \${$4+:} false; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2389 if ac_fn_c_try_compile "$LINENO"; then :
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2399 if (sizeof ac_aggr.$3)
2405 if ac_fn_c_try_compile "$LINENO"; then :
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419 } # ac_fn_c_check_member
2420 cat >config.log <<_ACEOF
2421 This file contains any messages produced by compilers while
2422 running configure, to aid debugging if configure makes a mistake.
2424 It was created by $as_me, which was
2425 generated by GNU Autoconf 2.69. Invocation command line was
2437 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2438 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2439 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2440 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2441 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2443 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2444 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2446 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2447 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2448 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2449 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2450 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2451 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2452 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 $as_echo "PATH: $as_dir"
2477 # Keep a trace of the command line.
2478 # Strip out --no-create and --no-recursion so they do not pile up.
2479 # Strip out --silent because we don't want to record it for future runs.
2480 # Also quote any args containing shell meta-characters.
2481 # Make two passes to allow for proper duplicate-argument suppression.
2485 ac_must_keep_next=false
2491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2493 | -silent | --silent | --silen | --sile | --sil)
2496 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2499 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2501 as_fn_append ac_configure_args1 " '$ac_arg'"
2502 if test $ac_must_keep_next = true; then
2503 ac_must_keep_next=false # Got value, back to normal.
2506 *=* | --config-cache | -C | -disable-* | --disable-* \
2507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2509 | -with-* | --with-* | -without-* | --without-* | --x)
2510 case "$ac_configure_args0 " in
2511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2514 -* ) ac_must_keep_next=true ;;
2517 as_fn_append ac_configure_args " '$ac_arg'"
2522 { ac_configure_args0=; unset ac_configure_args0;}
2523 { ac_configure_args1=; unset ac_configure_args1;}
2525 # When interrupted or exit'd, cleanup temporary files, and complete
2526 # config.log. We remove comments because anyway the quotes in there
2527 # would cause problems or look ugly.
2528 # WARNING: Use '\'' to represent an apostrophe within the trap.
2529 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2530 trap 'exit_status=$?
2531 # Save into config.log some information that might help in debugging.
2535 $as_echo "## ---------------- ##
2536 ## Cache variables. ##
2537 ## ---------------- ##"
2539 # The following way of writing the cache mishandles newlines in values,
2541 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2542 eval ac_val=\$$ac_var
2546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550 _ | IFS | as_nl) ;; #(
2551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2552 *) { eval $ac_var=; unset $ac_var;} ;;
2557 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2558 *${as_nl}ac_space=\ *)
2560 "s/'\''/'\''\\\\'\'''\''/g;
2561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2571 $as_echo "## ----------------- ##
2572 ## Output variables. ##
2573 ## ----------------- ##"
2575 for ac_var in $ac_subst_vars
2577 eval ac_val=\$$ac_var
2579 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2581 $as_echo "$ac_var='\''$ac_val'\''"
2585 if test -n "$ac_subst_files"; then
2586 $as_echo "## ------------------- ##
2587 ## File substitutions. ##
2588 ## ------------------- ##"
2590 for ac_var in $ac_subst_files
2592 eval ac_val=\$$ac_var
2594 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2596 $as_echo "$ac_var='\''$ac_val'\''"
2601 if test -s confdefs.h; then
2602 $as_echo "## ----------- ##
2609 test "$ac_signal" != 0 &&
2610 $as_echo "$as_me: caught signal $ac_signal"
2611 $as_echo "$as_me: exit $exit_status"
2613 rm -f core *.core core.conftest.* &&
2614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2617 for ac_signal in 1 2 13 15; do
2618 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2623 rm -f -r conftest* confdefs.h
2625 $as_echo "/* confdefs.h */" > confdefs.h
2627 # Predefined preprocessor variables.
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_NAME "$PACKAGE_NAME"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_STRING "$PACKAGE_STRING"
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_URL "$PACKAGE_URL"
2654 # Let the site file select an alternate cache file if it wants to.
2655 # Prefer an explicitly selected file to automatically selected ones.
2658 if test -n "$CONFIG_SITE"; then
2659 # We do not want a PATH search for config.site.
2660 case $CONFIG_SITE in #((
2661 -*) ac_site_file1=./$CONFIG_SITE;;
2662 */*) ac_site_file1=$CONFIG_SITE;;
2663 *) ac_site_file1=./$CONFIG_SITE;;
2665 elif test "x$prefix" != xNONE; then
2666 ac_site_file1=$prefix/share/config.site
2667 ac_site_file2=$prefix/etc/config.site
2669 ac_site_file1=$ac_default_prefix/share/config.site
2670 ac_site_file2=$ac_default_prefix/etc/config.site
2672 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2674 test "x$ac_site_file" = xNONE && continue
2675 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2677 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2678 sed 's/^/| /' "$ac_site_file" >&5
2680 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682 as_fn_error $? "failed to load site
script $ac_site_file
2683 See \
`config.log' for more details" "$LINENO" 5; }
2687 if test -r "$cache_file"; then
2688 # Some versions of bash will fail to source /dev/null (special files
2689 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2690 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2692 $as_echo "$as_me: loading cache $cache_file" >&6;}
2694 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2695 *) . "./$cache_file";;
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2700 $as_echo "$as_me: creating cache $cache_file" >&6;}
2704 gt_needs="$gt_needs "
2705 as_fn_append ac_header_list " stdlib.h"
2706 as_fn_append ac_header_list " unistd.h"
2707 as_fn_append ac_header_list " sys/param.h"
2708 as_fn_append ac_func_list " symlink"
2709 # Check that the precious variables saved in the cache have kept the same
2711 ac_cache_corrupted=false
2712 for ac_var in $ac_precious_vars; do
2713 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2714 eval ac_new_set=\$ac_env_${ac_var}_set
2715 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2716 eval ac_new_val=\$ac_env_${ac_var}_value
2717 case $ac_old_set,$ac_new_set in
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2720 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2721 ac_cache_corrupted=: ;;
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2724 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2728 if test "x$ac_old_val" != "x$ac_new_val"; then
2729 # differences in whitespace do not lead to failure.
2730 ac_old_val_w=`echo x
$ac_old_val`
2731 ac_new_val_w=`echo x
$ac_new_val`
2732 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2734 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2735 ac_cache_corrupted=:
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2738 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2739 eval $ac_var=\$ac_old_val
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2742 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2744 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2747 # Pass precious variables to config.status.
2748 if test "$ac_new_set" = set; then
2750 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2751 *) ac_arg=$ac_var=$ac_new_val ;;
2753 case " $ac_configure_args " in
2754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2755 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2759 if $ac_cache_corrupted; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2763 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2764 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2766 ## -------------------- ##
2767 ## Main body of script. ##
2768 ## -------------------- ##
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 for ac_dir in config "$srcdir"/config; do
2780 if test -f "$ac_dir/install-sh"; then
2782 ac_install_sh="$ac_aux_dir/install-sh -c"
2784 elif test -f "$ac_dir/install.sh"; then
2786 ac_install_sh="$ac_aux_dir/install.sh -c"
2788 elif test -f "$ac_dir/shtool"; then
2790 ac_install_sh="$ac_aux_dir/shtool install -c"
2794 if test -z "$ac_aux_dir"; then
2795 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2798 # These three variables are undocumented and unsupported,
2799 # and are intended to be withdrawn in a future Autoconf release.
2800 # They can cause serious problems if a builder's source tree is in a directory
2801 # whose full name contains unusual characters.
2802 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2803 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2804 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2807 ac_config_headers="$ac_config_headers lib/config.h"
2813 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION
${srcdir}/version.h \
2814 |
awk '{print $3}' |
tr \" " " |
awk '{print $1}'`
2815 E2FSPROGS_DATE=`grep E2FSPROGS_DATE
${srcdir}/version.h |
awk '{print $3}' \
2816 |
tr \" " " |
awk '{print $1}'`
2817 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2818 MONTH=`echo $E2FSPROGS_DATE |
awk -F- '{print $2}'`
2819 YEAR=`echo $E2FSPROGS_DATE |
awk -F- '{print $3}'`
2821 if expr $YEAR ">" 1900 > /dev/null ; then
2822 E2FSPROGS_YEAR=$YEAR
2823 elif expr $YEAR ">" 90 >/dev/null ; then
2824 E2FSPROGS_YEAR=19$YEAR
2826 E2FSPROGS_YEAR=20$YEAR
2830 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2831 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2832 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2833 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2834 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2835 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2836 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2837 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2838 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2839 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2840 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2841 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2843 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2846 base_ver=`echo $E2FSPROGS_VERSION | \
2847 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2849 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2851 case $E2FSPROGS_VERSION in
2853 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2856 E2FSPROGS_PKGVER="$base_ver"
2860 unset DATE MONTH YEAR base_ver pre_vers date_spec
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2862 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2864 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2873 # Check whether --with-diet-libc was given.
2874 if test "${with_diet_libc+set}" = set; then :
2875 withval=$with_diet_libc; CC="diet cc -nostdinc"
2881 LIBS="$LIBS -lcompat"
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2884 $as_echo "CC=$CC" >&6; }
2886 # Make sure we can run config.sub.
2887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2888 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2891 $as_echo_n "checking build system type... " >&6; }
2892 if ${ac_cv_build+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 ac_build_alias=$build_alias
2896 test "x$ac_build_alias" = x &&
2897 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2898 test "x$ac_build_alias" = x &&
2899 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2900 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2901 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2905 $as_echo "$ac_cv_build" >&6; }
2906 case $ac_cv_build in
2908 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2911 ac_save_IFS=$IFS; IFS='-'
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2921 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925 $as_echo_n "checking host system type... " >&6; }
2926 if ${ac_cv_host+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test "x$host_alias" = x; then
2930 ac_cv_host=$ac_cv_build
2932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938 $as_echo "$ac_cv_host" >&6; }
2941 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2944 ac_save_IFS=$IFS; IFS='-'
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2954 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3002 if test -z "$ac_cv_prog_CC"; then
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3040 if test "x$ac_ct_CC" = x; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_CC="${ac_tool_prefix}cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3096 if test -z "$CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116 ac_prog_rejected=yes
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 if test $ac_prog_rejected = yes; then
3128 # We found a bogon in the path, so make sure we never use it.
3129 set dummy $ac_cv_prog_CC
3131 if test $# != 0; then
3132 # We chose a different compiler from the bogus one.
3133 # However, it has the same basename, so the bogon will be chosen
3134 # first if we set CC to just the basename; use the full file name.
3136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 for ac_prog in cl.exe
3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$CC" && break
3196 if test -z "$CC"; then
3198 for ac_prog in cl.exe
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_CC="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$ac_ct_CC" && break
3240 if test "x$ac_ct_CC" = x; then
3243 case $cross_compiling:$ac_tool_warned in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3259 See \
`config.log' for more details" "$LINENO" 5; }
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 for ac_option in --version -v -V -qversion; do
3266 { { ac_try="$ac_compiler $ac_option >&5"
3268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3269 *) ac_try_echo
=$ac_try;;
3271 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3275 if test -s conftest.err
; then
3277 ... rest of stderr output deleted ...
3278 10q' conftest.err
>conftest.er1
3279 cat conftest.er1
>&5
3281 rm -f conftest.er1 conftest.err
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3297 ac_clean_files_save
=$ac_clean_files
3298 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306 # The possible output files:
3307 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310 for ac_file
in $ac_files
3313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3314 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3319 if { { ac_try
="$ac_link_default"
3321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link_default") 2>&5
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3331 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3335 for ac_file in $ac_files ''
3337 test -f "$ac_file" || continue
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 # We found the default executable, but exeext='' is most
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 if test -z "$ac_file"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's
/^
/|
/' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3373 as_fn_error 77 "C compiler cannot create executables
3374 See \`config.log
' for more details" "$LINENO" 5; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3380 $as_echo_n "checking for C compiler default output file name... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3382 $as_echo "$ac_file" >&6; }
3383 ac_exeext=$ac_cv_exeext
3385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3386 ac_clean_files=$ac_clean_files_save
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3388 $as_echo_n "checking for suffix of executables... " >&6; }
3389 if { { ac_try="$ac_link"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
3400 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3401 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3404 for ac_file
in conftest.exe conftest conftest.
*; do
3405 test -f "$ac_file" ||
continue
3407 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3408 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details" "$LINENO" 5; }
3419 rm -f conftest conftest
$ac_cv_exeext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3421 $as_echo "$ac_cv_exeext" >&6; }
3423 rm -f conftest.
$ac_ext
3424 EXEEXT
=$ac_cv_exeext
3426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3432 FILE *f = fopen ("conftest.out", "w");
3433 return ferror (f) || fclose (f) != 0;
3439 ac_clean_files
="$ac_clean_files conftest.out"
3440 # Check that the compiler produces executables we can run. If not, either
3441 # the compiler is broken, or we cross compile.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3443 $as_echo_n "checking whether we are cross compiling... " >&6; }
3444 if test "$cross_compiling" != yes; then
3445 { { ac_try
="$ac_link"
3447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }
3456 if { ac_try='./conftest$ac_cv_exeext'
3457 { { case "(($ac_try" in
3458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3459 *) ac_try_echo
=$ac_try;;
3461 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_try") 2>&5
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; }; then
3469 if test "$cross_compiling" = maybe
; then
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $?
"cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details" "$LINENO" 5; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3481 $as_echo "$cross_compiling" >&6; }
3483 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3484 ac_clean_files
=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3486 $as_echo_n "checking for suffix of object files... " >&6; }
3487 if ${ac_cv_objext+:} false
; then :
3488 $as_echo_n "(cached) " >&6
3490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3501 rm -f conftest.o conftest.obj
3502 if { { ac_try
="$ac_compile"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compile") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 for ac_file in conftest.o conftest.obj conftest.*; do
3514 test -f "$ac_file" || continue;
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3528 See \
`config.log' for more details" "$LINENO" 5; }
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3538 if ${ac_cv_c_compiler_gnu+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3555 if ac_fn_c_try_compile "$LINENO"; then :
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3566 if test $ac_compiler_gnu = yes; then
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3575 if ${ac_cv_prog_cc_g+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"; then :
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 $as_echo "$ac_cv_prog_cc_g" >&6; }
3636 if test "$ac_test_CFLAGS" = set; then
3637 CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639 if test "$GCC" = yes; then
3645 if test "$GCC" = yes; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3653 if ${ac_cv_prog_cc_c89+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 ac_cv_prog_cc_c89=no
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3664 struct buf { int x; };
3665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666 static char *e (p, i)
3672 static char *f (char * (*g) (char **, int), char **p, ...)
3677 s = g (p, va_arg (v,int));
3682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3683 function prototypes and stuff, but not '\xHH' hex character constants.
3684 These don't provoke an error unfortunately, instead are silently treated
3685 as 'x'. The following induces an error, until -std is added to get
3686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3687 array size at least. It's necessary to write '\x00'==0 to get something
3688 that's true only with -std. */
3689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692 inside strings and character constants. */
3694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713 CC="$ac_save_CC $ac_arg"
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_c89=$ac_arg
3717 rm -f core conftest.err conftest.$ac_objext
3718 test "x$ac_cv_prog_cc_c89" != "xno" && break
3720 rm -f conftest.$ac_ext
3725 case "x$ac_cv_prog_cc_c89" in
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3733 CC="$CC $ac_cv_prog_cc_c89"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3737 if test "x$ac_cv_prog_cc_c89" != xno; then :
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3750 if ${ac_cv_lib_dl_dlopen+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 ac_check_lib_save_LIBS=$LIBS
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3758 /* Override any GCC internal prototype to avoid an error.
3759 Use char because int might match the return type of a GCC
3760 builtin and then its argument prototype would still apply. */
3773 if ac_fn_c_try_link "$LINENO"; then :
3774 ac_cv_lib_dl_dlopen=yes
3776 ac_cv_lib_dl_dlopen=no
3778 rm -f core conftest.err conftest.$ac_objext \
3779 conftest$ac_exeext conftest.$ac_ext
3780 LIBS=$ac_check_lib_save_LIBS
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3783 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3784 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3790 # Check whether --with-cc was given.
3791 if test "${with_cc+set}" = set; then :
3792 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3796 # Check whether --with-ccopts was given.
3797 if test "${with_ccopts+set}" = set; then :
3798 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3802 # Check whether --with-ldopts was given.
3803 if test "${with_ldopts+set}" = set; then :
3804 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 $as_echo_n "checking for $ac_word... " >&6; }
3817 if ${ac_cv_prog_CC+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 if test -n "$CC"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3851 if test -z "$ac_cv_prog_CC"; then
3853 # Extract the first word of "gcc", so it can be a program name with args.
3854 set dummy gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$ac_ct_CC"; then
3861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CC="gcc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 $as_echo "$ac_ct_CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3889 if test "x$ac_ct_CC" = x; then
3892 case $cross_compiling:$ac_tool_warned in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3904 if test -z "$CC"; then
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}cc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if ${ac_cv_prog_CC+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="${ac_tool_prefix}cc"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3945 if test -z "$CC"; then
3946 # Extract the first word of "cc", so it can be a program name with args.
3947 set dummy cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3965 ac_prog_rejected=yes
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 if test $ac_prog_rejected = yes; then
3977 # We found a bogon in the path, so make sure we never use it.
3978 set dummy $ac_cv_prog_CC
3980 if test $# != 0; then
3981 # We chose a different compiler from the bogus one.
3982 # However, it has the same basename, so the bogon will be chosen
3983 # first if we set CC to just the basename; use the full file name.
3985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4001 if test -z "$CC"; then
4002 if test -n "$ac_tool_prefix"; then
4003 for ac_prog in cl.exe
4005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_CC+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 if test -n "$CC"; then
4013 ac_cv_prog_CC="$CC" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 $as_echo "$CC" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4042 test -n "$CC" && break
4045 if test -z "$CC"; then
4047 for ac_prog in cl.exe
4049 # Extract the first word of "$ac_prog", so it can be a program name with args.
4050 set dummy $ac_prog; ac_word=$2
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 $as_echo_n "checking for $ac_word... " >&6; }
4053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 if test -n "$ac_ct_CC"; then
4057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_ac_ct_CC="$ac_prog"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4077 if test -n "$ac_ct_CC"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4079 $as_echo "$ac_ct_CC" >&6; }
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4086 test -n "$ac_ct_CC" && break
4089 if test "x$ac_ct_CC" = x; then
4092 case $cross_compiling:$ac_tool_warned in
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096 ac_tool_warned=yes ;;
4105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4108 See \
`config.log' for more details" "$LINENO" 5; }
4110 # Provide some information about the compiler.
4111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4114 for ac_option in --version -v -V -qversion; do
4115 { { ac_try="$ac_compiler $ac_option >&5"
4117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4118 *) ac_try_echo
=$ac_try;;
4120 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4124 if test -s conftest.err
; then
4126 ... rest of stderr output deleted ...
4127 10q' conftest.err
>conftest.er1
4128 cat conftest.er1
>&5
4130 rm -f conftest.er1 conftest.err
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4137 if ${ac_cv_c_compiler_gnu+:} false
; then :
4138 $as_echo_n "(cached) " >&6
4140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4154 if ac_fn_c_try_compile
"$LINENO"; then :
4159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4160 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4165 if test $ac_compiler_gnu = yes; then
4170 ac_test_CFLAGS
=${CFLAGS+set}
4171 ac_save_CFLAGS
=$CFLAGS
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4174 if ${ac_cv_prog_cc_g+:} false
; then :
4175 $as_echo_n "(cached) " >&6
4177 ac_save_c_werror_flag
=$ac_c_werror_flag
4178 ac_c_werror_flag
=yes
4181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4192 if ac_fn_c_try_compile
"$LINENO"; then :
4196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4207 if ac_fn_c_try_compile
"$LINENO"; then :
4210 ac_c_werror_flag
=$ac_save_c_werror_flag
4212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4223 if ac_fn_c_try_compile
"$LINENO"; then :
4226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 ac_c_werror_flag
=$ac_save_c_werror_flag
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4234 $as_echo "$ac_cv_prog_cc_g" >&6; }
4235 if test "$ac_test_CFLAGS" = set; then
4236 CFLAGS
=$ac_save_CFLAGS
4237 elif test $ac_cv_prog_cc_g = yes; then
4238 if test "$GCC" = yes; then
4244 if test "$GCC" = yes; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if ${ac_cv_prog_cc_c89+:} false
; then :
4253 $as_echo_n "(cached) " >&6
4255 ac_cv_prog_cc_c89
=no
4257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282 function prototypes and stuff, but not '\xHH' hex character constants.
4283 These don't provoke an error unfortunately, instead are silently treated
4284 as 'x'. The following induces an error, until -std is added to get
4285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 array size at least. It's necessary to write '\x00'==0 to get something
4287 that's true only with -std. */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291 inside strings and character constants. */
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 CC
="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile
"$LINENO"; then :
4314 ac_cv_prog_cc_c89
=$ac_arg
4316 rm -f core conftest.err conftest.
$ac_objext
4317 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 rm -f conftest.
$ac_ext
4324 case "x$ac_cv_prog_cc_c89" in
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4332 CC
="$CC $ac_cv_prog_cc_c89"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4341 ac_cpp
='$CPP $CPPFLAGS'
4342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4346 if test "$GCC" = yes; then
4347 RDYNAMIC
="-rdynamic"
4351 ac_cpp
='$CPP $CPPFLAGS'
4352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4361 if test -z "$CPP"; then
4362 if ${ac_cv_prog_CPP+:} false
; then :
4363 $as_echo_n "(cached) " >&6
4365 # Double quotes because CPP needs to be expanded
4366 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 for ac_c_preproc_warn_flag
in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 # include <limits.h>
4382 # include <assert.h>
4386 if ac_fn_c_try_cpp
"$LINENO"; then :
4389 # Broken: fails on valid input.
4392 rm -f conftest.err conftest.i conftest.
$ac_ext
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4400 if ac_fn_c_try_cpp
"$LINENO"; then :
4401 # Broken: success on invalid input.
4404 # Passes both tests.
4408 rm -f conftest.err conftest.i conftest.
$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.i conftest.err conftest.
$ac_ext
4413 if $ac_preproc_ok; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4428 for ac_c_preproc_warn_flag
in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4439 # include <limits.h>
4441 # include <assert.h>
4445 if ac_fn_c_try_cpp
"$LINENO"; then :
4448 # Broken: fails on valid input.
4451 rm -f conftest.err conftest.i conftest.
$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4459 if ac_fn_c_try_cpp
"$LINENO"; then :
4460 # Broken: success on invalid input.
4463 # Passes both tests.
4467 rm -f conftest.err conftest.i conftest.
$ac_ext
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.i conftest.err conftest.
$ac_ext
4472 if $ac_preproc_ok; then :
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details" "$LINENO" 5; }
4482 ac_cpp
='$CPP $CPPFLAGS'
4483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4488 $as_echo_n "checking for additional special compiler flags... " >&6; }
4489 if test "$GCC" = yes
4492 alpha
) addcflags
="-mieee" ;;
4495 if test "x$addcflags" != x
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4498 $as_echo "$addcflags" >&6; }
4499 CFLAGS
="$addcflags $CFLAGS"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4502 $as_echo "(none)" >&6; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4506 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4507 if ${ac_cv_path_GREP+:} false
; then :
4508 $as_echo_n "(cached) " >&6
4510 if test -z "$GREP"; then
4511 ac_path_GREP_found
=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4514 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4517 test -z "$as_dir" && as_dir
=.
4518 for ac_prog
in grep ggrep
; do
4519 for ac_exec_ext
in '' $ac_executable_extensions; do
4520 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4521 as_fn_executable_p
"$ac_path_GREP" ||
continue
4522 # Check for GNU ac_path_GREP and select it if it is found.
4523 # Check for GNU $ac_path_GREP
4524 case `"$ac_path_GREP" --version 2>&1` in
4526 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4529 $as_echo_n 0123456789 >"conftest.in"
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'GREP' >> "conftest.nl"
4536 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4537 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4538 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4539 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_GREP
="$ac_path_GREP"
4542 ac_path_GREP_max
=$ac_count
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4547 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4550 $ac_path_GREP_found && break 3
4555 if test -z "$ac_cv_path_GREP"; then
4556 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4559 ac_cv_path_GREP
=$GREP
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4564 $as_echo "$ac_cv_path_GREP" >&6; }
4565 GREP
="$ac_cv_path_GREP"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4569 $as_echo_n "checking for egrep... " >&6; }
4570 if ${ac_cv_path_EGREP+:} false
; then :
4571 $as_echo_n "(cached) " >&6
4573 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4574 then ac_cv_path_EGREP
="$GREP -E"
4576 if test -z "$EGREP"; then
4577 ac_path_EGREP_found
=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4583 test -z "$as_dir" && as_dir
=.
4584 for ac_prog
in egrep; do
4585 for ac_exec_ext
in '' $ac_executable_extensions; do
4586 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4587 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4588 # Check for GNU ac_path_EGREP and select it if it is found.
4589 # Check for GNU $ac_path_EGREP
4590 case `"$ac_path_EGREP" --version 2>&1` in
4592 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4595 $as_echo_n 0123456789 >"conftest.in"
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'EGREP' >> "conftest.nl"
4602 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4603 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4604 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4605 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_EGREP
="$ac_path_EGREP"
4608 ac_path_EGREP_max
=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4613 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4616 $ac_path_EGREP_found && break 3
4621 if test -z "$ac_cv_path_EGREP"; then
4622 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4625 ac_cv_path_EGREP
=$EGREP
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4631 $as_echo "$ac_cv_path_EGREP" >&6; }
4632 EGREP
="$ac_cv_path_EGREP"
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4636 $as_echo_n "checking for ANSI C header files... " >&6; }
4637 if ${ac_cv_header_stdc+:} false
; then :
4638 $as_echo_n "(cached) " >&6
4640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4655 if ac_fn_c_try_compile
"$LINENO"; then :
4656 ac_cv_header_stdc
=yes
4658 ac_cv_header_stdc
=no
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4662 if test $ac_cv_header_stdc = yes; then
4663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "memchr" >/dev
/null
2>&1; then :
4673 ac_cv_header_stdc
=no
4679 if test $ac_cv_header_stdc = yes; then
4680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev
/null
2>&1; then :
4690 ac_cv_header_stdc
=no
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then :
4701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4705 #if ((' ' & 0x0FF) == 0x020)
4706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4709 # define ISLOWER(c) \
4710 (('a' <= (c) && (c) <= 'i') \
4711 || ('j' <= (c) && (c) <= 'r') \
4712 || ('s' <= (c) && (c) <= 'z'))
4713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 for (i = 0; i < 256; i++)
4722 if (XOR (islower (i), ISLOWER (i))
4723 || toupper (i) != TOUPPER (i))
4728 if ac_fn_c_try_run
"$LINENO"; then :
4731 ac_cv_header_stdc
=no
4733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4740 $as_echo "$ac_cv_header_stdc" >&6; }
4741 if test $ac_cv_header_stdc = yes; then
4743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4747 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4749 inttypes.h stdint.h unistd.h
4751 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4754 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4755 cat >>confdefs.h
<<_ACEOF
4756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4766 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4773 if test "$MINIX" = yes; then
4775 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4778 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4781 $as_echo "#define _MINIX 1" >>confdefs.h
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4787 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4788 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4789 $as_echo_n "(cached) " >&6
4791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4794 # define __EXTENSIONS__ 1
4795 $ac_includes_default
4804 if ac_fn_c_try_compile
"$LINENO"; then :
4805 ac_cv_safe_to_define___extensions__
=yes
4807 ac_cv_safe_to_define___extensions__
=no
4809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4812 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4813 test $ac_cv_safe_to_define___extensions__ = yes &&
4814 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4816 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4818 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4820 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4822 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4829 # Check whether --with-root-prefix was given.
4830 if test "${with_root_prefix+set}" = set; then :
4831 withval
=$with_root_prefix; root_prefix
=$withval
4835 # Check whether --enable-maintainer-mode was given.
4836 if test "${enable_maintainer_mode+set}" = set; then :
4837 enableval
=$enable_maintainer_mode; if test "$enableval" = "no"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4841 $as_echo "Disabling maintainer mode" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4845 $as_echo "Enabling maintainer mode" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4851 $as_echo "Disabling maintainer mode by default" >&6; }
4856 # Check whether --enable-symlink-install was given.
4857 if test "${enable_symlink_install+set}" = set; then :
4858 enableval
=$enable_symlink_install; if test "$enableval" = "no"
4860 LINK_INSTALL_FLAGS
=-f
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4862 $as_echo "Disabling symlinks for install" >&6; }
4864 LINK_INSTALL_FLAGS
=-sf
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4866 $as_echo "Enabling symlinks for install" >&6; }
4870 LINK_INSTALL_FLAGS
=-f
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4872 $as_echo "Disabling symlinks for install by default" >&6; }
4877 relative_symlink_defined
=
4878 # Check whether --enable-relative-symlinks was given.
4879 if test "${enable_relative_symlinks+set}" = set; then :
4880 enableval
=$enable_relative_symlinks; if test "$enableval" = "no"
4883 relative_symlink_defined
=yes
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4885 $as_echo "Disabling relative symlinks for install" >&6; }
4887 SYMLINK_RELATIVE
=--relative
4888 relative_symlink_defined
=yes
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4890 $as_echo "Enabling relative symlinks for install" >&6; }
4894 # Check whether --enable-symlink-relative-symlinks was given.
4895 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4896 enableval
=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4898 SYMLINK_RELATIVE
=yes
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4900 $as_echo "Disabling relative symlinks for install" >&6; }
4902 SYMLINK_RELATIVE
=--relative
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4904 $as_echo "Enabling relative symlinks for install" >&6; }
4908 if test -z "$relative_symlink_defined"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4912 $as_echo "Disabling relative symlinks for install by default" >&6; }
4918 # Check whether --enable-symlink-build was given.
4919 if test "${enable_symlink_build+set}" = set; then :
4920 enableval
=$enable_symlink_build; if test "$enableval" = "no"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4924 $as_echo "Disabling symlinks for build" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4928 $as_echo "Enabling symlinks for build" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4934 $as_echo "Disabling symlinks for build by default" >&6; }
4939 # Check whether --enable-verbose-makecmds was given.
4940 if test "${enable_verbose_makecmds+set}" = set; then :
4941 enableval
=$enable_verbose_makecmds; if test "$enableval" = "no"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4944 $as_echo "Disabling verbose make commands" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4950 $as_echo "Enabling verbose make commands" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4958 $as_echo "Disabling verbose make commands" >&6; }
4968 E2_PKG_CONFIG_STATIC
=--static
4971 # Check whether --enable-elf-shlibs was given.
4972 if test "${enable_elf_shlibs+set}" = set; then :
4973 enableval
=$enable_elf_shlibs; if test "$enableval" = "no"
4976 MAKEFILE_ELF
=/dev
/null
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4978 $as_echo "Disabling ELF shared libraries" >&6; }
4980 E2_PKG_CONFIG_STATIC
=
4982 MAKEFILE_ELF
=$srcdir/lib
/Makefile.elf-lib
4985 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
4991 LDFLAG_DYNAMIC
='-Wl,-rpath-link,$(top_builddir)/lib'
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4993 $as_echo "Enabling ELF shared libraries" >&6; }
4997 MAKEFILE_ELF
=/dev
/null
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5000 $as_echo "Disabling ELF shared libraries by default" >&6; }
5006 # Check whether --enable-bsd-shlibs was given.
5007 if test "${enable_bsd_shlibs+set}" = set; then :
5008 enableval
=$enable_bsd_shlibs; if test "$enableval" = "no"
5011 MAKEFILE_BSDLIB
=/dev
/null
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5013 $as_echo "Disabling BSD shared libraries" >&6; }
5015 E2_PKG_CONFIG_STATIC
=
5017 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
5021 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.darwin-lib
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5026 $as_echo "Enabling BSD shared libraries" >&6; }
5030 MAKEFILE_BSDLIB
=/dev
/null
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5033 $as_echo "Disabling BSD shared libraries by default" >&6; }
5039 # Check whether --enable-profile was given.
5040 if test "${enable_profile+set}" = set; then :
5041 enableval
=$enable_profile; if test "$enableval" = "no"
5044 MAKEFILE_PROFILE
=/dev
/null
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5046 $as_echo "Disabling profiling libraries" >&6; }
5049 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
5050 PROFILED_LIB_EXT
=_p.a
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5052 $as_echo "Building profiling libraries" >&6; }
5057 MAKEFILE_PROFILE
=/dev
/null
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5059 $as_echo "Disabling profiling libraries by default" >&6; }
5065 # Check whether --enable-gcov was given.
5066 if test "${enable_gcov+set}" = set; then :
5067 enableval
=$enable_gcov; if test "$enableval" = "yes"
5069 CFLAGS
="-g -fprofile-arcs -ftest-coverage"
5070 LDFLAGS
="-fprofile-arcs -ftest-coverage"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5072 $as_echo "Enabling gcov support" >&6; }
5077 CFLAGS_SHLIB
="${CFLAGS_SHLIB:-$CFLAGS}"
5078 CFLAGS_STLIB
="${CFLAGS_STLIB:-$CFLAGS}"
5079 LDFLAGS_SHLIB
=${LDFLAGS_SHLIB:-$LDFLAGS}
5080 LDFLAGS_STATIC
=${LDFLAGS_STATIC:-$LDFLAGS}
5081 # Check whether --enable-hardening was given.
5082 if test "${enable_hardening+set}" = set; then :
5083 enableval
=$enable_hardening; if test "$enableval" = "yes"
5085 HARDEN_CFLAGS
="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5086 HARDEN_LDFLAGS
="-Wl,-z,relro -Wl,-z,now"
5087 CFLAGS
="$CFLAGS $HARDEN_CFLAGS -fPIE"
5088 CFLAGS_SHLIB
="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5089 CFLAGS_STLIB
="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5090 LDFLAGS
="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5091 LDFLAGS_STATIC
="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5092 LDFLAGS_SHLIB
="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5094 $as_echo "Enabling hardening support" >&6; }
5104 # Check whether --enable-jbd-debug was given.
5105 if test "${enable_jbd_debug+set}" = set; then :
5106 enableval
=$enable_jbd_debug; if test "$enableval" = "no"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5109 $as_echo "Disabling journal debugging" >&6; }
5112 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5115 $as_echo "Enabling journal debugging" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5120 $as_echo "Disabling journal debugging by default" >&6; }
5124 # Check whether --enable-blkid-debug was given.
5125 if test "${enable_blkid_debug+set}" = set; then :
5126 enableval
=$enable_blkid_debug; if test "$enableval" = "no"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5129 $as_echo "Disabling blkid debugging" >&6; }
5132 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5135 $as_echo "Enabling blkid debugging" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5140 $as_echo "Disabling blkid debugging by default" >&6; }
5144 # Check whether --enable-testio-debug was given.
5145 if test "${enable_testio_debug+set}" = set; then :
5146 enableval
=$enable_testio_debug;
5147 if test "$enableval" = "no"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5150 $as_echo "Disabling testio debugging" >&6; }
5154 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5157 $as_echo "Enabling testio debugging" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5162 $as_echo "Enabling testio debugging by default" >&6; }
5163 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5177 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5180 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5188 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir
=.
5196 for ac_exec_ext
in '' $ac_executable_extensions; do
5197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5210 if test -n "$PKG_CONFIG"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5212 $as_echo "$PKG_CONFIG" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5220 if test -z "$ac_cv_path_PKG_CONFIG"; then
5221 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5222 # Extract the first word of "pkg-config", so it can be a program name with args.
5223 set dummy pkg-config
; ac_word
=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5227 $as_echo_n "(cached) " >&6
5229 case $ac_pt_PKG_CONFIG in
5231 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir
=.
5239 for ac_exec_ext
in '' $ac_executable_extensions; do
5240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5253 if test -n "$ac_pt_PKG_CONFIG"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5255 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5261 if test "x$ac_pt_PKG_CONFIG" = x
; then
5264 case $cross_compiling:$ac_tool_warned in
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned
=yes ;;
5270 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5273 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5277 if test -n "$PKG_CONFIG"; then
5278 _pkg_min_version
=0.9.0
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5280 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5281 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5283 $as_echo "yes" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5295 DEPPROFILED_LIBUUID
=
5297 # Check whether --enable-libuuid was given.
5298 if test "${enable_libuuid+set}" = set; then :
5299 enableval
=$enable_libuuid; if test "$enableval" = "no"
5301 if test -z "$PKG_CONFIG"; then
5302 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5306 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5307 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 ac_check_lib_save_LIBS
=$LIBS
5312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5315 /* Override any GCC internal prototype to avoid an error.
5316 Use char because int might match the return type of a GCC
5317 builtin and then its argument prototype would still apply. */
5321 char uuid_generate ();
5325 return uuid_generate ();
5330 if ac_fn_c_try_link
"$LINENO"; then :
5331 ac_cv_lib_uuid_uuid_generate
=yes
5333 ac_cv_lib_uuid_uuid_generate
=no
5335 rm -f core conftest.err conftest.
$ac_objext \
5336 conftest
$ac_exeext conftest.
$ac_ext
5337 LIBS
=$ac_check_lib_save_LIBS
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5340 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5341 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
5342 LIBUUID
=`$PKG_CONFIG --libs uuid`;
5343 STATIC_LIBUUID
=`$PKG_CONFIG --static --libs uuid`
5345 as_fn_error $?
"external uuid library not found" "$LINENO" 5
5348 PROFILED_LIBUUID
=$LIBUUID
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5351 $as_echo "Disabling private uuid library" >&6; }
5353 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
5355 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
5356 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
5357 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
5358 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5360 $as_echo "Enabling private uuid library" >&6; }
5364 if test -n "$PKG_CONFIG"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5366 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5367 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
5368 $as_echo_n "(cached) " >&6
5370 ac_check_lib_save_LIBS
=$LIBS
5372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5375 /* Override any GCC internal prototype to avoid an error.
5376 Use char because int might match the return type of a GCC
5377 builtin and then its argument prototype would still apply. */
5381 char uuid_generate ();
5385 return uuid_generate ();
5390 if ac_fn_c_try_link
"$LINENO"; then :
5391 ac_cv_lib_uuid_uuid_generate
=yes
5393 ac_cv_lib_uuid_uuid_generate
=no
5395 rm -f core conftest.err conftest.
$ac_objext \
5396 conftest
$ac_exeext conftest.
$ac_ext
5397 LIBS
=$ac_check_lib_save_LIBS
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5400 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5401 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
5402 LIBUUID
=`$PKG_CONFIG --libs uuid`;
5403 STATIC_LIBUUID
=`$PKG_CONFIG --static --libs uuid`
5407 if test -n "$LIBUUID"; then
5408 PROFILED_LIBUUID
=$LIBUUID
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5411 $as_echo "Using system uuid by default" >&6; }
5413 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
5415 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
5416 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
5417 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
5418 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5420 $as_echo "Enabling private uuid library by default" >&6; }
5439 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5440 if test -n "$ac_tool_prefix"; then
5441 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5442 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir
=.
5458 for ac_exec_ext
in '' $ac_executable_extensions; do
5459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5472 if test -n "$PKG_CONFIG"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5474 $as_echo "$PKG_CONFIG" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_path_PKG_CONFIG"; then
5483 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5484 # Extract the first word of "pkg-config", so it can be a program name with args.
5485 set dummy pkg-config
; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 case $ac_pt_PKG_CONFIG in
5493 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5515 if test -n "$ac_pt_PKG_CONFIG"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5517 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5523 if test "x$ac_pt_PKG_CONFIG" = x
; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned
=yes ;;
5532 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5535 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5539 if test -n "$PKG_CONFIG"; then
5540 _pkg_min_version
=0.9.0
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5542 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5543 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5545 $as_echo "yes" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5557 DEPPROFILED_LIBBLKID
=
5560 # Check whether --enable-libblkid was given.
5561 if test "${enable_libblkid+set}" = set; then :
5562 enableval
=$enable_libblkid; if test "$enableval" = "no"
5564 if test -z "$PKG_CONFIG"; then
5565 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5569 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5570 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
5571 $as_echo_n "(cached) " >&6
5573 ac_check_lib_save_LIBS
=$LIBS
5574 LIBS
="-lblkid -luuid $LIBS"
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5578 /* Override any GCC internal prototype to avoid an error.
5579 Use char because int might match the return type of a GCC
5580 builtin and then its argument prototype would still apply. */
5584 char blkid_get_cache ();
5588 return blkid_get_cache ();
5593 if ac_fn_c_try_link
"$LINENO"; then :
5594 ac_cv_lib_blkid_blkid_get_cache
=yes
5596 ac_cv_lib_blkid_blkid_get_cache
=no
5598 rm -f core conftest.err conftest.
$ac_objext \
5599 conftest
$ac_exeext conftest.
$ac_ext
5600 LIBS
=$ac_check_lib_save_LIBS
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5603 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5604 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
5605 LIBBLKID
=`$PKG_CONFIG --libs blkid`;
5606 STATIC_LIBBLKID
=`$PKG_CONFIG --static --libs blkid`
5608 as_fn_error $?
"external blkid library not found" "$LINENO" 5
5612 PROFILED_LIBBLKID
=$LIBBLKID
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5614 $as_echo "Disabling private blkid library" >&6; }
5616 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5617 DEPLIBBLKID
=$LIBBLKID
5618 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5619 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5620 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5621 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5622 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5625 $as_echo "Enabling private blkid library" >&6; }
5629 if test -n "$PKG_CONFIG"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5631 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5632 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
5633 $as_echo_n "(cached) " >&6
5635 ac_check_lib_save_LIBS
=$LIBS
5636 LIBS
="-lblkid $LIBS"
5637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 /* Override any GCC internal prototype to avoid an error.
5641 Use char because int might match the return type of a GCC
5642 builtin and then its argument prototype would still apply. */
5646 char blkid_get_cache ();
5650 return blkid_get_cache ();
5655 if ac_fn_c_try_link
"$LINENO"; then :
5656 ac_cv_lib_blkid_blkid_get_cache
=yes
5658 ac_cv_lib_blkid_blkid_get_cache
=no
5660 rm -f core conftest.err conftest.
$ac_objext \
5661 conftest
$ac_exeext conftest.
$ac_ext
5662 LIBS
=$ac_check_lib_save_LIBS
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5665 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5666 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
5667 LIBBLKID
=`$PKG_CONFIG --libs blkid`;
5668 STATIC_LIBBLKID
=`$PKG_CONFIG --static --libs blkid`
5672 if test -n "$LIBBLKID"; then
5674 PROFILED_LIBBLKID
=$LIBBLKID
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5676 $as_echo "Using system blkid library by default" >&6; }
5678 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5679 DEPLIBBLKID
=$LIBBLKID
5680 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5681 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5682 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5683 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5684 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5687 $as_echo "Enabling private blkid library by default" >&6; }
5700 # Check whether --enable-subset was given.
5701 if test "${enable_subset+set}" = set; then :
5702 enableval
=$enable_subset; if test "$enableval" = "no"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5705 $as_echo "Disabling subset-only build" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5709 $as_echo "Enabling subset-only-build" >&6; }
5716 # Check whether --enable-backtrace was given.
5717 if test "${enable_backtrace+set}" = set; then :
5718 enableval
=$enable_backtrace; if test "$enableval" = "no"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5721 $as_echo "Disabling use of backtrace" >&6; }
5722 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5726 $as_echo "Enabling use of backtrace" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5731 $as_echo "Enabling use of backtrace by default" >&6; }
5735 # Check whether --enable-debugfs was given.
5736 if test "${enable_debugfs+set}" = set; then :
5737 enableval
=$enable_debugfs; if test "$enableval" = "no"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5740 $as_echo "Disabling debugfs support" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5745 $as_echo "Enabling debugfs support" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5750 $as_echo "Enabling debugfs support by default" >&6; }
5756 # Check whether --enable-imager was given.
5757 if test "${enable_imager+set}" = set; then :
5758 enableval
=$enable_imager; if test "$enableval" = "no"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5761 $as_echo "Disabling e2image support" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5766 $as_echo "Enabling e2image support" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5771 $as_echo "Enabling e2image support by default" >&6; }
5777 # Check whether --enable-resizer was given.
5778 if test "${enable_resizer+set}" = set; then :
5779 enableval
=$enable_resizer; if test "$enableval" = "no"
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5782 $as_echo "Disabling e2resize support" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5787 $as_echo "Enabling e2resize support" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5792 $as_echo "Enabling e2resize support by default" >&6; }
5798 # Check whether --enable-defrag was given.
5799 if test "${enable_defrag+set}" = set; then :
5800 enableval
=$enable_defrag; if test "$enableval" = "no"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5803 $as_echo "Disabling e4defrag support" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5808 $as_echo "Enabling e4defrag support" >&6; }
5812 if test -z "$WITH_DIET_LIBC"
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5815 $as_echo "Enabling e4defrag support by default" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5819 $as_echo "Disabling e4defrag support by default" >&6; }
5826 # Check whether --enable-fsck was given.
5827 if test "${enable_fsck+set}" = set; then :
5828 enableval
=$enable_fsck; if test "$enableval" = "no"
5830 FSCK_PROG
='' FSCK_MAN
=''
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5832 $as_echo "Not building fsck wrapper" >&6; }
5834 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5836 $as_echo "Building fsck wrapper" >&6; }
5842 FSCK_PROG
='' FSCK_MAN
=''
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5844 $as_echo "Not building fsck wrapper by default" >&6; }
5847 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5849 $as_echo "Building fsck wrapper by default" >&6; }
5856 # Check whether --enable-e2initrd-helper was given.
5857 if test "${enable_e2initrd_helper+set}" = set; then :
5858 enableval
=$enable_e2initrd_helper; if test "$enableval" = "no"
5860 E2INITRD_PROG
='' E2INITRD_MAN
=''
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5862 $as_echo "Not building e2initrd helper" >&6; }
5864 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5866 $as_echo "Building e2initrd helper" >&6; }
5870 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5872 $as_echo "Building e2initrd helper by default" >&6; }
5878 # Check whether --enable-tls was given.
5879 if test "${enable_tls+set}" = set; then :
5880 enableval
=$enable_tls; if test "$enableval" = "no"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5884 $as_echo "Disabling thread local support" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5888 $as_echo "Enabling thread local support" >&6; }
5892 if test -n "$WITH_DIET_LIBC"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5896 $as_echo "Diet libc does not support thread local support" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5900 $as_echo "Try using thread local support by default" >&6; }
5905 if test "$try_tls" = "yes"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5909 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5910 if ${ac_cv_tls+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5914 ax_tls_keywords
="__thread __declspec(thread) none"
5915 for ax_tls_keyword
in $ax_tls_keywords; do
5916 case $ax_tls_keyword in
5917 none
) ac_cv_tls
=none
; break ;;
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5924 static $ax_tls_keyword int bar;
5935 if ac_fn_c_try_compile
"$LINENO"; then :
5936 ac_cv_tls
=$ax_tls_keyword ; break
5941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5948 if test "$ac_cv_tls" != "none"; then
5950 cat >>confdefs.h
<<_ACEOF
5951 #define TLS $ac_cv_tls
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5956 $as_echo "$ac_cv_tls" >&6; }
5960 # Check whether --enable-uuidd was given.
5961 if test "${enable_uuidd+set}" = set; then :
5962 enableval
=$enable_uuidd; if test "$enableval" = "no"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5965 $as_echo "Not building uuidd" >&6; }
5968 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5972 $as_echo "Building uuidd" >&6; }
5976 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5978 if test -z "$UUID_CMT"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5982 $as_echo "Building uuidd by default" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5986 $as_echo "Disabling uuidd by default" >&6; }
5993 # Check whether --enable-mmp was given.
5994 if test "${enable_mmp+set}" = set; then :
5995 enableval
=$enable_mmp; if test "$enableval" = "no"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5998 $as_echo "Disabling mmp support" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6001 $as_echo "Enabling mmp support" >&6; }
6002 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6008 $as_echo "Enabling mmp support by default" >&6; }
6009 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6015 # Check whether --enable-tdb was given.
6016 if test "${enable_tdb+set}" = set; then :
6017 enableval
=$enable_tdb; if test "$enableval" = "no"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6020 $as_echo "Disabling tdb support" >&6; }
6022 TDB_MAN_COMMENT
='.\"'
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6025 $as_echo "Enabling tdb support" >&6; }
6026 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6034 $as_echo "Enabling mmp support by default" >&6; }
6035 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6045 # Check whether --enable-bmap-stats was given.
6046 if test "${enable_bmap_stats+set}" = set; then :
6047 enableval
=$enable_bmap_stats; if test "$enableval" = "no"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6050 $as_echo "Disabling bitmap statistics support" >&6; }
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6053 $as_echo "Enabling bitmap statistics support" >&6; }
6054 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6060 $as_echo "Enabling bitmap statistics support by default" >&6; }
6061 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6067 # Check whether --enable-bmap-stats-ops was given.
6068 if test "${enable_bmap_stats_ops+set}" = set; then :
6069 enableval
=$enable_bmap_stats_ops; if test "$enableval" = "no"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6072 $as_echo "Disabling additional bitmap statistics" >&6; }
6074 if test "x${enable_bmap_stats}" = "xno"; then :
6075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6077 as_fn_error $?
"Error --enable-bmap-stats-ops requires bmap-stats
6078 See \`config.log' for more details" "$LINENO" 5; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6082 $as_echo "Enabling additional bitmap statistics" >&6; }
6083 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6089 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6093 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
6095 GETTEXT_PACKAGE
=e2fsprogs
6097 VERSION
="$E2FSPROGS_VERSION"
6100 cat >>confdefs.h
<<_ACEOF
6101 #define PACKAGE "$PACKAGE"
6105 cat >>confdefs.h
<<_ACEOF
6106 #define VERSION "$VERSION"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6114 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6116 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6117 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6118 $as_echo_n "(cached) " >&6
6120 cat >conftest.
make <<\_ACEOF
6123 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6126 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6128 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6130 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6134 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136 $as_echo "yes" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 SET_MAKE
="MAKE=${MAKE-make}"
6144 # Find a good install program. We prefer a C program (faster),
6145 # so one script is as good as another. But avoid the broken or
6146 # incompatible versions:
6147 # SysV /etc/install, /usr/sbin/install
6148 # SunOS /usr/etc/install
6149 # IRIX /sbin/install
6151 # AmigaOS /C/install, which installs bootblocks on floppy discs
6152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6155 # OS/2's system install, which has a completely different semantic
6156 # ./install, which can be erroneously created by make from ./install.sh.
6157 # Reject install programs that cannot install multiple files.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6160 if test -z "$INSTALL"; then
6161 if ${ac_cv_path_install+:} false
; then :
6162 $as_echo_n "(cached) " >&6
6164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir
=.
6169 # Account for people who put trailing slashes in PATH elements.
6170 case $as_dir/ in #((
6171 .
/ | .
// |
/[cC
]/* | \
6172 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6173 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6176 # OSF1 and SCO ODT 3.0 have their own names for install.
6177 # Don't use installbsd from OSF since it installs stuff as root
6179 for ac_prog
in ginstall scoinst
install; do
6180 for ac_exec_ext
in '' $ac_executable_extensions; do
6181 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
6182 if test $ac_prog = install &&
6183 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6184 # AIX install. It has an incompatible calling convention.
6186 elif test $ac_prog = install &&
6187 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6188 # program-specific install script used by HP pwplus--don't use.
6191 rm -rf conftest.one conftest.two conftest.dir
6192 echo one
> conftest.one
6193 echo two
> conftest.two
6195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6196 test -s conftest.one
&& test -s conftest.two
&&
6197 test -s conftest.dir
/conftest.one
&&
6198 test -s conftest.dir
/conftest.two
6200 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6213 rm -rf conftest.one conftest.two conftest.dir
6216 if test "${ac_cv_path_install+set}" = set; then
6217 INSTALL
=$ac_cv_path_install
6219 # As a last resort, use the slow shell script. Don't cache a
6220 # value for INSTALL within a source directory, because that will
6221 # break other packages using the cache if that directory is
6222 # removed, or if the value is a relative name.
6223 INSTALL
=$ac_install_sh
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6227 $as_echo "$INSTALL" >&6; }
6229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6230 # It thinks the first close brace ends the variable substitution.
6231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6235 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6238 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6239 if test -z "$MKDIR_P"; then
6240 if ${ac_cv_path_mkdir+:} false
; then :
6241 $as_echo_n "(cached) " >&6
6243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6244 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6247 test -z "$as_dir" && as_dir
=.
6248 for ac_prog
in mkdir gmkdir
; do
6249 for ac_exec_ext
in '' $ac_executable_extensions; do
6250 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
6251 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6252 'mkdir (GNU coreutils) '* | \
6253 'mkdir (coreutils) '* | \
6254 'mkdir (fileutils) '4.1*)
6255 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6265 test -d .
/--version && rmdir .
/--version
6266 if test "${ac_cv_path_mkdir+set}" = set; then
6267 MKDIR_P
="$ac_cv_path_mkdir -p"
6269 # As a last resort, use the slow shell script. Don't cache a
6270 # value for MKDIR_P within a source directory, because that will
6271 # break other packages using the cache if that directory is
6272 # removed, or if the value is a relative name.
6273 MKDIR_P
="$ac_install_sh -d"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6277 $as_echo "$MKDIR_P" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6281 if ${ac_cv_path_SED+:} false
; then :
6282 $as_echo_n "(cached) " >&6
6284 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6285 for ac_i
in 1 2 3 4 5 6 7; do
6286 ac_script
="$ac_script$as_nl$ac_script"
6288 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6289 { ac_script
=; unset ac_script
;}
6290 if test -z "$SED"; then
6291 ac_path_SED_found
=false
6292 # Loop through the user's path and test for each of PROGNAME-LIST
6293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir
=.
6298 for ac_prog
in sed gsed
; do
6299 for ac_exec_ext
in '' $ac_executable_extensions; do
6300 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6301 as_fn_executable_p
"$ac_path_SED" ||
continue
6302 # Check for GNU ac_path_SED and select it if it is found.
6303 # Check for GNU $ac_path_SED
6304 case `"$ac_path_SED" --version 2>&1` in
6306 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6309 $as_echo_n 0123456789 >"conftest.in"
6312 cat "conftest.in" "conftest.in" >"conftest.tmp"
6313 mv "conftest.tmp" "conftest.in"
6314 cp "conftest.in" "conftest.nl"
6315 $as_echo '' >> "conftest.nl"
6316 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6317 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6318 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6319 if test $ac_count -gt ${ac_path_SED_max-0}; then
6320 # Best one so far, save it but keep looking for a better one
6321 ac_cv_path_SED
="$ac_path_SED"
6322 ac_path_SED_max
=$ac_count
6324 # 10*(2^10) chars as input seems more than enough
6325 test $ac_count -gt 10 && break
6327 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6330 $ac_path_SED_found && break 3
6335 if test -z "$ac_cv_path_SED"; then
6336 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6344 $as_echo "$ac_cv_path_SED" >&6; }
6345 SED
="$ac_cv_path_SED"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6350 $as_echo_n "checking whether NLS is requested... " >&6; }
6351 # Check whether --enable-nls was given.
6352 if test "${enable_nls+set}" = set; then :
6353 enableval
=$enable_nls; USE_NLS
=$enableval
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6359 $as_echo "$USE_NLS" >&6; }
6364 GETTEXT_MACRO_VERSION
=0.18
6369 # Prepare PATH_SEPARATOR.
6370 # The user is always right.
6371 if test "${PATH_SEPARATOR+set}" != set; then
6372 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6373 # contains only /bin. Note that ksh looks also at the FPATH variable,
6374 # so we have to set that as well for the test.
6376 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6377 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6378 || PATH_SEPARATOR
=';'
6382 # Find out how to test for executable files. Don't use a zero-byte file,
6383 # as systems may use methods other than mode bits to determine executability.
6384 cat >conf$$.
file <<_ASEOF
6388 chmod +x conf$$.
file
6389 if test -x conf$$.
file >/dev
/null
2>&1; then
6390 ac_executable_p
="test -x"
6392 ac_executable_p
="test -f"
6396 # Extract the first word of "msgfmt", so it can be a program name with args.
6397 set dummy msgfmt
; ac_word
=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_path_MSGFMT+:} false
; then :
6401 $as_echo_n "(cached) " >&6
6405 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6408 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6409 for ac_dir
in $PATH; do
6411 test -z "$ac_dir" && ac_dir
=.
6412 for ac_exec_ext
in '' $ac_executable_extensions; do
6413 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6414 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6415 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
6416 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6417 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6424 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6428 MSGFMT
="$ac_cv_path_MSGFMT"
6429 if test "$MSGFMT" != ":"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6431 $as_echo "$MSGFMT" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6437 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6438 set dummy gmsgfmt
; ac_word
=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_path_GMSGFMT+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6446 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir
=.
6454 for ac_exec_ext
in '' $ac_executable_extensions; do
6455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6468 GMSGFMT
=$ac_cv_path_GMSGFMT
6469 if test -n "$GMSGFMT"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6471 $as_echo "$GMSGFMT" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6480 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
6481 *) MSGFMT_015
=$MSGFMT ;;
6484 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6485 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
6486 *) GMSGFMT_015
=$GMSGFMT ;;
6491 # Prepare PATH_SEPARATOR.
6492 # The user is always right.
6493 if test "${PATH_SEPARATOR+set}" != set; then
6494 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6495 # contains only /bin. Note that ksh looks also at the FPATH variable,
6496 # so we have to set that as well for the test.
6498 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6499 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6500 || PATH_SEPARATOR
=';'
6504 # Find out how to test for executable files. Don't use a zero-byte file,
6505 # as systems may use methods other than mode bits to determine executability.
6506 cat >conf$$.
file <<_ASEOF
6510 chmod +x conf$$.
file
6511 if test -x conf$$.
file >/dev
/null
2>&1; then
6512 ac_executable_p
="test -x"
6514 ac_executable_p
="test -f"
6518 # Extract the first word of "xgettext", so it can be a program name with args.
6519 set dummy xgettext
; ac_word
=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_path_XGETTEXT+:} false
; then :
6523 $as_echo_n "(cached) " >&6
6527 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6530 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6531 for ac_dir
in $PATH; do
6533 test -z "$ac_dir" && ac_dir
=.
6534 for ac_exec_ext
in '' $ac_executable_extensions; do
6535 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6536 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6537 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
6538 (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
6539 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6546 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6550 XGETTEXT
="$ac_cv_path_XGETTEXT"
6551 if test "$XGETTEXT" != ":"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6553 $as_echo "$XGETTEXT" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6561 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6562 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
6563 *) XGETTEXT_015
=$XGETTEXT ;;
6568 # Prepare PATH_SEPARATOR.
6569 # The user is always right.
6570 if test "${PATH_SEPARATOR+set}" != set; then
6571 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6572 # contains only /bin. Note that ksh looks also at the FPATH variable,
6573 # so we have to set that as well for the test.
6575 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6576 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6577 || PATH_SEPARATOR
=';'
6581 # Find out how to test for executable files. Don't use a zero-byte file,
6582 # as systems may use methods other than mode bits to determine executability.
6583 cat >conf$$.
file <<_ASEOF
6587 chmod +x conf$$.
file
6588 if test -x conf$$.
file >/dev
/null
2>&1; then
6589 ac_executable_p
="test -x"
6591 ac_executable_p
="test -f"
6595 # Extract the first word of "msgmerge", so it can be a program name with args.
6596 set dummy msgmerge
; ac_word
=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_path_MSGMERGE+:} false
; then :
6600 $as_echo_n "(cached) " >&6
6604 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6607 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6608 for ac_dir
in $PATH; do
6610 test -z "$ac_dir" && ac_dir
=.
6611 for ac_exec_ext
in '' $ac_executable_extensions; do
6612 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6613 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6614 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
6615 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6622 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6626 MSGMERGE
="$ac_cv_path_MSGMERGE"
6627 if test "$MSGMERGE" != ":"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6629 $as_echo "$MSGMERGE" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6636 test -n "$localedir" || localedir
='${datadir}/locale'
6639 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
6642 ac_config_commands
="$ac_config_commands po-directories"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6647 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6648 if ${ac_cv_gnu_library_2+:} false
; then :
6649 $as_echo_n "(cached) " >&6
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 #include <features.h>
6655 #ifdef __GNU_LIBRARY__
6656 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
6664 ac_cv_gnu_library_2
=yes
6666 ac_cv_gnu_library_2
=no
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6674 $as_echo "$ac_cv_gnu_library_2" >&6; }
6676 GLIBC2
="$ac_cv_gnu_library_2"
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6681 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_RANLIB+:} false
; then :
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$RANLIB"; then
6688 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir
=.
6695 for ac_exec_ext
in '' $ac_executable_extensions; do
6696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 RANLIB
=$ac_cv_prog_RANLIB
6708 if test -n "$RANLIB"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6710 $as_echo "$RANLIB" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6718 if test -z "$ac_cv_prog_RANLIB"; then
6719 ac_ct_RANLIB
=$RANLIB
6720 # Extract the first word of "ranlib", so it can be a program name with args.
6721 set dummy ranlib
; ac_word
=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$ac_ct_RANLIB"; then
6728 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir
=.
6735 for ac_exec_ext
in '' $ac_executable_extensions; do
6736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6748 if test -n "$ac_ct_RANLIB"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6750 $as_echo "$ac_ct_RANLIB" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6756 if test "x$ac_ct_RANLIB" = x
; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned
=yes ;;
6765 RANLIB
=$ac_ct_RANLIB
6768 RANLIB
="$ac_cv_prog_RANLIB"
6775 if test -n "$GCC"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6777 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6778 if ${gl_cv_cc_vis_werror+:} false
; then :
6779 $as_echo_n "(cached) " >&6
6782 gl_save_CFLAGS
="$CFLAGS"
6783 CFLAGS
="$CFLAGS -Werror"
6784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6795 if ac_fn_c_try_compile
"$LINENO"; then :
6796 gl_cv_cc_vis_werror
=yes
6798 gl_cv_cc_vis_werror
=no
6800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6801 CFLAGS
="$gl_save_CFLAGS"
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6805 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6807 $as_echo_n "checking for simple visibility declarations... " >&6; }
6808 if ${gl_cv_cc_visibility+:} false
; then :
6809 $as_echo_n "(cached) " >&6
6812 gl_save_CFLAGS
="$CFLAGS"
6813 CFLAGS
="$CFLAGS -fvisibility=hidden"
6814 if test $gl_cv_cc_vis_werror = yes; then
6815 CFLAGS
="$CFLAGS -Werror"
6817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6820 extern __attribute__((__visibility__("default"))) int exportedvar;
6821 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6822 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6823 void dummyfunc (void) {}
6833 if ac_fn_c_try_compile
"$LINENO"; then :
6834 gl_cv_cc_visibility
=yes
6836 gl_cv_cc_visibility
=no
6838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6839 CFLAGS
="$gl_save_CFLAGS"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6843 $as_echo "$gl_cv_cc_visibility" >&6; }
6844 if test $gl_cv_cc_visibility = yes; then
6845 CFLAG_VISIBILITY
="-fvisibility=hidden"
6852 cat >>confdefs.h
<<_ACEOF
6853 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6858 $as_echo_n "checking for inline... " >&6; }
6859 if ${ac_cv_c_inline+:} false
; then :
6860 $as_echo_n "(cached) " >&6
6863 for ac_kw
in inline __inline__ __inline
; do
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6868 static $ac_kw foo_t static_foo () {return 0; }
6869 $ac_kw foo_t foo () {return 0; }
6873 if ac_fn_c_try_compile
"$LINENO"; then :
6874 ac_cv_c_inline
=$ac_kw
6876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6877 test "$ac_cv_c_inline" != no
&& break
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6882 $as_echo "$ac_cv_c_inline" >&6; }
6884 case $ac_cv_c_inline in
6887 case $ac_cv_c_inline in
6889 *) ac_val
=$ac_cv_c_inline;;
6891 cat >>confdefs.h
<<_ACEOF
6893 #define inline $ac_val
6899 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6900 if test "x$ac_cv_type_size_t" = xyes
; then :
6904 cat >>confdefs.h
<<_ACEOF
6905 #define size_t unsigned int
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6912 $as_echo_n "checking for stdint.h... " >&6; }
6913 if ${gl_cv_header_stdint_h+:} false
; then :
6914 $as_echo_n "(cached) " >&6
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 #include <sys/types.h>
6923 uintmax_t i = (uintmax_t) -1; return !i;
6928 if ac_fn_c_try_compile
"$LINENO"; then :
6929 gl_cv_header_stdint_h
=yes
6931 gl_cv_header_stdint_h
=no
6933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6936 $as_echo "$gl_cv_header_stdint_h" >&6; }
6937 if test $gl_cv_header_stdint_h = yes; then
6939 cat >>confdefs.h
<<_ACEOF
6940 #define HAVE_STDINT_H_WITH_UINTMAX 1
6945 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6946 # for constant arguments. Useless!
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6948 $as_echo_n "checking for working alloca.h... " >&6; }
6949 if ${ac_cv_working_alloca_h+:} false
; then :
6950 $as_echo_n "(cached) " >&6
6952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6958 char *p = (char *) alloca (2 * sizeof (int));
6964 if ac_fn_c_try_link
"$LINENO"; then :
6965 ac_cv_working_alloca_h
=yes
6967 ac_cv_working_alloca_h
=no
6969 rm -f core conftest.err conftest.
$ac_objext \
6970 conftest
$ac_exeext conftest.
$ac_ext
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6973 $as_echo "$ac_cv_working_alloca_h" >&6; }
6974 if test $ac_cv_working_alloca_h = yes; then
6976 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6981 $as_echo_n "checking for alloca... " >&6; }
6982 if ${ac_cv_func_alloca_works+:} false
; then :
6983 $as_echo_n "(cached) " >&6
6985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6988 # define alloca __builtin_alloca
6991 # include <malloc.h>
6992 # define alloca _alloca
6994 # ifdef HAVE_ALLOCA_H
6995 # include <alloca.h>
7000 # ifndef alloca /* predefined by HP cc +Olibcalls */
7001 void *alloca (size_t);
7011 char *p = (char *) alloca (1);
7017 if ac_fn_c_try_link
"$LINENO"; then :
7018 ac_cv_func_alloca_works
=yes
7020 ac_cv_func_alloca_works
=no
7022 rm -f core conftest.err conftest.
$ac_objext \
7023 conftest
$ac_exeext conftest.
$ac_ext
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7026 $as_echo "$ac_cv_func_alloca_works" >&6; }
7028 if test $ac_cv_func_alloca_works = yes; then
7030 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7033 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7034 # that cause trouble. Some versions do not even contain alloca or
7035 # contain a buggy version. If you still want to use their alloca,
7036 # use ar to extract alloca.o from them instead of compiling alloca.c.
7038 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7040 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7044 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7045 if ${ac_cv_os_cray+:} false
; then :
7046 $as_echo_n "(cached) " >&6
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 #if defined CRAY && ! defined CRAY2
7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058 $EGREP "webecray" >/dev
/null
2>&1; then :
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7067 $as_echo "$ac_cv_os_cray" >&6; }
7068 if test $ac_cv_os_cray = yes; then
7069 for ac_func
in _getb67 GETB67 getb67
; do
7070 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7072 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define CRAY_STACKSEG_END $ac_func
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7085 $as_echo_n "checking stack direction for C alloca... " >&6; }
7086 if ${ac_cv_c_stack_direction+:} false
; then :
7087 $as_echo_n "(cached) " >&6
7089 if test "$cross_compiling" = yes; then :
7090 ac_cv_c_stack_direction
=0
7092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 $ac_includes_default
7096 find_stack_direction (int *addr, int depth)
7101 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7102 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7107 main (int argc, char **argv)
7109 return find_stack_direction (0, argc + !argv + 20) < 0;
7112 if ac_fn_c_try_run
"$LINENO"; then :
7113 ac_cv_c_stack_direction
=1
7115 ac_cv_c_stack_direction
=-1
7117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7123 $as_echo "$ac_cv_c_stack_direction" >&6; }
7124 cat >>confdefs.h
<<_ACEOF
7125 #define STACK_DIRECTION $ac_cv_c_stack_direction
7134 for ac_header
in $ac_header_list
7136 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7139 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7140 cat >>confdefs.h
<<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 for ac_func
in getpagesize
7157 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7158 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7159 cat >>confdefs.h
<<_ACEOF
7160 #define HAVE_GETPAGESIZE 1
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7167 $as_echo_n "checking for working mmap... " >&6; }
7168 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7169 $as_echo_n "(cached) " >&6
7171 if test "$cross_compiling" = yes; then :
7172 ac_cv_func_mmap_fixed_mapped
=no
7174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 $ac_includes_default
7177 /* malloc might have been renamed as rpl_malloc. */
7180 /* Thanks to Mike Haertel and Jim Avera for this test.
7181 Here is a matrix of mmap possibilities:
7182 mmap private not fixed
7183 mmap private fixed at somewhere currently unmapped
7184 mmap private fixed at somewhere already mapped
7185 mmap shared not fixed
7186 mmap shared fixed at somewhere currently unmapped
7187 mmap shared fixed at somewhere already mapped
7188 For private mappings, we should verify that changes cannot be read()
7189 back from the file, nor mmap's back from the file at a different
7190 address. (There have been systems where private was not correctly
7191 implemented like the infamous i386 svr4.0, and systems where the
7192 VM page cache was not coherent with the file system buffer cache
7193 like early versions of FreeBSD and possibly contemporary NetBSD.)
7194 For shared mappings, we should conversely verify that changes get
7195 propagated back to all the places they're supposed to be.
7197 Grep wants private fixed already mapped.
7198 The main things grep needs to know about mmap are:
7199 * does it exist and is it safe to write into the mmap'd area
7200 * how to use it (BSD variants) */
7203 #include <sys/mman.h>
7205 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7209 /* This mess was copied from the GNU getpagesize.h. */
7210 #ifndef HAVE_GETPAGESIZE
7211 # ifdef _SC_PAGESIZE
7212 # define getpagesize() sysconf(_SC_PAGESIZE)
7213 # else /* no _SC_PAGESIZE */
7214 # ifdef HAVE_SYS_PARAM_H
7215 # include <sys/param.h>
7216 # ifdef EXEC_PAGESIZE
7217 # define getpagesize() EXEC_PAGESIZE
7218 # else /* no EXEC_PAGESIZE */
7220 # define getpagesize() NBPG * CLSIZE
7223 # endif /* no CLSIZE */
7224 # else /* no NBPG */
7226 # define getpagesize() NBPC
7227 # else /* no NBPC */
7229 # define getpagesize() PAGESIZE
7230 # endif /* PAGESIZE */
7231 # endif /* no NBPC */
7232 # endif /* no NBPG */
7233 # endif /* no EXEC_PAGESIZE */
7234 # else /* no HAVE_SYS_PARAM_H */
7235 # define getpagesize() 8192 /* punt totally */
7236 # endif /* no HAVE_SYS_PARAM_H */
7237 # endif /* no _SC_PAGESIZE */
7239 #endif /* no HAVE_GETPAGESIZE */
7244 char *data, *data2, *data3;
7249 pagesize = getpagesize ();
7251 /* First, make a file with some known garbage in it. */
7252 data = (char *) malloc (pagesize);
7255 for (i = 0; i < pagesize; ++i)
7256 *(data + i) = rand ();
7258 fd = creat ("conftest.mmap", 0600);
7261 if (write (fd, data, pagesize) != pagesize)
7265 /* Next, check that the tail of a page is zero-filled. File must have
7266 non-zero length, otherwise we risk SIGBUS for entire page. */
7267 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7271 if (write (fd2, cdata2, 1) != 1)
7273 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7274 if (data2 == MAP_FAILED)
7276 for (i = 0; i < pagesize; ++i)
7280 if (munmap (data2, pagesize))
7283 /* Next, try to mmap the file at a fixed address which already has
7284 something else allocated at it. If we can, also make sure that
7285 we see the same garbage. */
7286 fd = open ("conftest.mmap", O_RDWR);
7289 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7290 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7292 for (i = 0; i < pagesize; ++i)
7293 if (*(data + i) != *(data2 + i))
7296 /* Finally, make sure that changes to the mapped area do not
7297 percolate back to the file as seen by read(). (This is a bug on
7298 some variants of i386 svr4.0.) */
7299 for (i = 0; i < pagesize; ++i)
7300 *(data2 + i) = *(data2 + i) + 1;
7301 data3 = (char *) malloc (pagesize);
7304 if (read (fd, data3, pagesize) != pagesize)
7306 for (i = 0; i < pagesize; ++i)
7307 if (*(data + i) != *(data3 + i))
7315 if ac_fn_c_try_run
"$LINENO"; then :
7316 ac_cv_func_mmap_fixed_mapped
=yes
7318 ac_cv_func_mmap_fixed_mapped
=no
7320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7332 rm -f conftest.mmap conftest.txt
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7337 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7338 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7339 $as_echo_n "(cached) " >&6
7342 gt_cv_int_divbyzero_sigfpe
=
7344 macos
* | darwin
[6-9]* | darwin
[1-9][0-9]*)
7345 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7346 # compiling. If we were to perform the real test, 1 Crash Report
7347 # dialog window would pop up.
7349 i
[34567]86 | x86_64
)
7350 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
7354 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7355 if test "$cross_compiling" = yes; then :
7357 # Guess based on the CPU.
7359 alpha
* | i
[34567]86 | x86_64 | m68k | s390
*)
7360 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7362 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7373 sigfpe_handler (int sig)
7375 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7376 exit (sig != SIGFPE);
7386 signal (SIGFPE, sigfpe_handler);
7387 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7388 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7389 signal (SIGTRAP, sigfpe_handler);
7391 /* Linux/SPARC yields signal SIGILL. */
7392 #if defined (__sparc__) && defined (__linux__)
7393 signal (SIGILL, sigfpe_handler);
7402 if ac_fn_c_try_run
"$LINENO"; then :
7403 gt_cv_int_divbyzero_sigfpe
=yes
7405 gt_cv_int_divbyzero_sigfpe
=no
7407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7415 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7416 case "$gt_cv_int_divbyzero_sigfpe" in
7421 cat >>confdefs.h
<<_ACEOF
7422 #define INTDIV0_RAISES_SIGFPE $value
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7428 $as_echo_n "checking for inttypes.h... " >&6; }
7429 if ${gl_cv_header_inttypes_h+:} false
; then :
7430 $as_echo_n "(cached) " >&6
7432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7435 #include <sys/types.h>
7436 #include <inttypes.h>
7441 uintmax_t i = (uintmax_t) -1; return !i;
7446 if ac_fn_c_try_compile
"$LINENO"; then :
7447 gl_cv_header_inttypes_h
=yes
7449 gl_cv_header_inttypes_h
=no
7451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7454 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7455 if test $gl_cv_header_inttypes_h = yes; then
7457 cat >>confdefs.h
<<_ACEOF
7458 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7465 $as_echo_n "checking for unsigned long long int... " >&6; }
7466 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
7467 $as_echo_n "(cached) " >&6
7469 ac_cv_type_unsigned_long_long_int
=yes
7470 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
7471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7474 /* For now, do not test the preprocessor; as of 2007 there are too many
7475 implementations with broken preprocessors. Perhaps this can
7476 be revisited in 2012. In the meantime, code should not expect
7477 #if to work with literals wider than 32 bits. */
7478 /* Test literals. */
7479 long long int ll = 9223372036854775807ll;
7480 long long int nll = -9223372036854775807LL;
7481 unsigned long long int ull = 18446744073709551615ULL;
7482 /* Test constant expressions. */
7483 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7485 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7491 /* Test availability of runtime routines for shift and division. */
7492 long long int llmax = 9223372036854775807ll;
7493 unsigned long long int ullmax = 18446744073709551615ull;
7494 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7495 | (llmax / ll) | (llmax % ll)
7496 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7497 | (ullmax / ull) | (ullmax % ull));
7503 if ac_fn_c_try_link
"$LINENO"; then :
7506 ac_cv_type_unsigned_long_long_int
=no
7508 rm -f core conftest.err conftest.
$ac_objext \
7509 conftest
$ac_exeext conftest.
$ac_ext
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7513 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7514 if test $ac_cv_type_unsigned_long_long_int = yes; then
7516 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7523 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
7525 test $ac_cv_type_unsigned_long_long_int = yes \
7526 && ac_type
='unsigned long long' \
7527 || ac_type
='unsigned long'
7529 cat >>confdefs.h
<<_ACEOF
7530 #define uintmax_t $ac_type
7535 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7540 for ac_header
in inttypes.h
7542 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7543 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
7544 cat >>confdefs.h
<<_ACEOF
7545 #define HAVE_INTTYPES_H 1
7552 if test $ac_cv_header_inttypes_h = yes; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7554 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7555 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7556 $as_echo_n "(cached) " >&6
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7562 #include <inttypes.h>
7575 if ac_fn_c_try_compile
"$LINENO"; then :
7576 gt_cv_inttypes_pri_broken
=no
7578 gt_cv_inttypes_pri_broken
=yes
7580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7584 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7586 if test "$gt_cv_inttypes_pri_broken" = yes; then
7588 cat >>confdefs.h
<<_ACEOF
7589 #define PRI_MACROS_BROKEN 1
7603 # Check whether --enable-threads was given.
7604 if test "${enable_threads+set}" = set; then :
7605 enableval
=$enable_threads; gl_use_threads
=$enableval
7607 if test -n "$gl_use_threads_default"; then
7608 gl_use_threads
="$gl_use_threads_default"
7611 osf
*) gl_use_threads
=no
;;
7614 1.
[0-5].
*) gl_use_threads
=no
;;
7615 *) gl_use_threads
=yes ;;
7618 *) gl_use_threads
=yes ;;
7624 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
7625 # For using <pthread.h>:
7628 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7629 # groks <pthread.h>. cc also understands the flag -pthread, but
7630 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7631 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7632 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7633 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7634 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
7637 # Some systems optimize for single-threaded programs by default, and
7638 # need special flags to disable these optimizations. For example, the
7639 # definition of 'errno' in <errno.h>.
7641 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
7642 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
7650 if test "X$prefix" = "XNONE"; then
7651 acl_final_prefix
="$ac_default_prefix"
7653 acl_final_prefix
="$prefix"
7655 if test "X$exec_prefix" = "XNONE"; then
7656 acl_final_exec_prefix
='${prefix}'
7658 acl_final_exec_prefix
="$exec_prefix"
7660 acl_save_prefix
="$prefix"
7661 prefix
="$acl_final_prefix"
7662 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7663 prefix
="$acl_save_prefix"
7667 # Check whether --with-gnu-ld was given.
7668 if test "${with_gnu_ld+set}" = set; then :
7669 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7674 # Prepare PATH_SEPARATOR.
7675 # The user is always right.
7676 if test "${PATH_SEPARATOR+set}" != set; then
7677 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7678 # contains only /bin. Note that ksh looks also at the FPATH variable,
7679 # so we have to set that as well for the test.
7681 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7682 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7683 || PATH_SEPARATOR
=';'
7688 if test "$GCC" = yes; then
7689 # Check if gcc -print-prog-name=ld gives a path.
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7691 $as_echo_n "checking for ld used by $CC... " >&6; }
7694 # gcc leaves a trailing carriage return which upsets mingw
7695 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7697 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7700 # Accept absolute paths.
7702 re_direlt
='/[^/][^/]*/\.\./'
7703 # Canonicalize the pathname of ld
7704 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7705 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
7706 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7708 test -z "$LD" && LD
="$ac_prog"
7711 # If it fails, then pretend we aren't using GCC.
7715 # If it is relative, then search for the first ld in PATH.
7719 elif test "$with_gnu_ld" = yes; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7721 $as_echo_n "checking for GNU ld... " >&6; }
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7724 $as_echo_n "checking for non-GNU ld... " >&6; }
7726 if ${acl_cv_path_LD+:} false
; then :
7727 $as_echo_n "(cached) " >&6
7729 if test -z "$LD"; then
7730 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7731 for ac_dir
in $PATH; do
7733 test -z "$ac_dir" && ac_dir
=.
7734 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7735 acl_cv_path_LD
="$ac_dir/$ac_prog"
7736 # Check to see if the program is GNU ld. I'd rather use --version,
7737 # but apparently some variants of GNU ld only accept -v.
7738 # Break only if it was the GNU/non-GNU ld that we prefer.
7739 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7740 *GNU
* |
*'with BFD'*)
7741 test "$with_gnu_ld" != no
&& break
7744 test "$with_gnu_ld" != yes && break
7751 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7755 LD
="$acl_cv_path_LD"
7756 if test -n "$LD"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7758 $as_echo "$LD" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7763 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7765 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7766 if ${acl_cv_prog_gnu_ld+:} false
; then :
7767 $as_echo_n "(cached) " >&6
7769 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7770 case `$LD -v 2>&1 </dev/null` in
7771 *GNU
* |
*'with BFD'*)
7772 acl_cv_prog_gnu_ld
=yes
7775 acl_cv_prog_gnu_ld
=no
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7780 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7781 with_gnu_ld
=$acl_cv_prog_gnu_ld
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7787 $as_echo_n "checking for shared library run path origin... " >&6; }
7788 if ${acl_cv_rpath+:} false
; then :
7789 $as_echo_n "(cached) " >&6
7792 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7793 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7800 $as_echo "$acl_cv_rpath" >&6; }
7802 acl_libext
="$acl_cv_libext"
7803 acl_shlibext
="$acl_cv_shlibext"
7804 acl_libname_spec
="$acl_cv_libname_spec"
7805 acl_library_names_spec
="$acl_cv_library_names_spec"
7806 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7807 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7808 acl_hardcode_direct
="$acl_cv_hardcode_direct"
7809 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7810 # Check whether --enable-rpath was given.
7811 if test "${enable_rpath+set}" = set; then :
7812 enableval
=$enable_rpath; :
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7825 $as_echo_n "checking for 64-bit host... " >&6; }
7826 if ${gl_cv_solaris_64bit+:} false
; then :
7827 $as_echo_n "(cached) " >&6
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
7839 gl_cv_solaris_64bit
=yes
7841 gl_cv_solaris_64bit
=no
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7848 $as_echo "$gl_cv_solaris_64bit" >&6; }
7849 if test $gl_cv_solaris_64bit = yes; then
7850 acl_libdirstem
=lib
/64
7852 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
7853 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
7858 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7859 if test -n "$searchpath"; then
7860 acl_save_IFS
="${IFS= }"; IFS
=":"
7861 for searchdir
in $searchpath; do
7862 if test -d "$searchdir"; then
7863 case "$searchdir" in
7864 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
7866 # Better ignore directories of this form. They are misleading.
7868 *) searchdir
=`cd "$searchdir" && pwd`
7869 case "$searchdir" in
7870 */lib64
) acl_libdirstem
=lib64
;;
7879 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
7888 if test "$gl_use_threads" != no
; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7890 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7891 if ${gl_cv_have_weak+:} false
; then :
7892 $as_echo_n "(cached) " >&6
7895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 extern void xyzzy ();
7907 if ac_fn_c_try_link
"$LINENO"; then :
7908 gl_cv_have_weak
=maybe
7910 rm -f core conftest.err conftest.
$ac_objext \
7911 conftest
$ac_exeext conftest.
$ac_ext
7912 if test $gl_cv_have_weak = maybe
; then
7913 if test "$cross_compiling" = yes; then :
7914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7917 Extensible Linking Format
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
7923 gl_cv_have_weak
="guessing yes"
7925 gl_cv_have_weak
="guessing no"
7931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7938 return (fputs == NULL);
7941 if ac_fn_c_try_run
"$LINENO"; then :
7946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7954 $as_echo "$gl_cv_have_weak" >&6; }
7955 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
7956 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7957 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7958 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7959 if test "x$ac_cv_header_pthread_h" = xyes
; then :
7960 gl_have_pthread_h
=yes
7962 gl_have_pthread_h
=no
7966 if test "$gl_have_pthread_h" = yes; then
7967 # Other possible tests:
7968 # -lpthreads (FSU threads, PCthreads)
7971 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7972 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7973 # the second one only in libpthread, and lock.c needs it.
7974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 #include <pthread.h>
7980 pthread_mutex_lock((pthread_mutex_t*)0);
7981 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7986 if ac_fn_c_try_link
"$LINENO"; then :
7989 rm -f core conftest.err conftest.
$ac_objext \
7990 conftest
$ac_exeext conftest.
$ac_ext
7991 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7992 # since it is defined as a macro on OSF/1.)
7993 if test -n "$gl_have_pthread"; then
7994 # The program links fine without libpthread. But it may actually
7995 # need to link with libpthread in order to create multiple threads.
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7998 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
7999 $as_echo_n "(cached) " >&6
8001 ac_check_lib_save_LIBS
=$LIBS
8002 LIBS
="-lpthread $LIBS"
8003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8012 char pthread_kill ();
8016 return pthread_kill ();
8021 if ac_fn_c_try_link
"$LINENO"; then :
8022 ac_cv_lib_pthread_pthread_kill
=yes
8024 ac_cv_lib_pthread_pthread_kill
=no
8026 rm -f core conftest.err conftest.
$ac_objext \
8027 conftest
$ac_exeext conftest.
$ac_ext
8028 LIBS
=$ac_check_lib_save_LIBS
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8032 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
8033 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
8034 # On Solaris and HP-UX, most pthread functions exist also in libc.
8035 # Therefore pthread_in_use() needs to actually try to create a
8036 # thread: pthread_create from libc will fail, whereas
8037 # pthread_create will actually create a thread.
8041 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8048 # Some library is needed. Try libpthread and libc_r.
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8051 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
8052 $as_echo_n "(cached) " >&6
8054 ac_check_lib_save_LIBS
=$LIBS
8055 LIBS
="-lpthread $LIBS"
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8065 char pthread_kill ();
8069 return pthread_kill ();
8074 if ac_fn_c_try_link
"$LINENO"; then :
8075 ac_cv_lib_pthread_pthread_kill
=yes
8077 ac_cv_lib_pthread_pthread_kill
=no
8079 rm -f core conftest.err conftest.
$ac_objext \
8080 conftest
$ac_exeext conftest.
$ac_ext
8081 LIBS
=$ac_check_lib_save_LIBS
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8085 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
8087 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
8088 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
8091 if test -z "$gl_have_pthread"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8094 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8095 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
8096 $as_echo_n "(cached) " >&6
8098 ac_check_lib_save_LIBS
=$LIBS
8100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8109 char pthread_kill ();
8113 return pthread_kill ();
8118 if ac_fn_c_try_link
"$LINENO"; then :
8119 ac_cv_lib_c_r_pthread_kill
=yes
8121 ac_cv_lib_c_r_pthread_kill
=no
8123 rm -f core conftest.err conftest.
$ac_objext \
8124 conftest
$ac_exeext conftest.
$ac_ext
8125 LIBS
=$ac_check_lib_save_LIBS
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8128 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8129 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
8131 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
8132 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
8137 if test -n "$gl_have_pthread"; then
8138 gl_threads_api
=posix
8140 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8142 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
8143 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8145 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8154 if test -z "$gl_have_pthread"; then
8155 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
8156 gl_have_solaristhread
=
8157 gl_save_LIBS
="$LIBS"
8158 LIBS
="$LIBS -lthread"
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8173 if ac_fn_c_try_link
"$LINENO"; then :
8174 gl_have_solaristhread
=yes
8176 rm -f core conftest.err conftest.
$ac_objext \
8177 conftest
$ac_exeext conftest.
$ac_ext
8178 LIBS
="$gl_save_LIBS"
8179 if test -n "$gl_have_solaristhread"; then
8180 gl_threads_api
=solaris
8182 LTLIBTHREAD
=-lthread
8183 LIBMULTITHREAD
="$LIBTHREAD"
8184 LTLIBMULTITHREAD
="$LTLIBTHREAD"
8186 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8188 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8190 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8198 if test "$gl_use_threads" = pth
; then
8199 gl_save_CPPFLAGS
="$CPPFLAGS"
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8206 $as_echo_n "checking how to link with libpth... " >&6; }
8207 if ${ac_cv_libpth_libs+:} false
; then :
8208 $as_echo_n "(cached) " >&6
8220 acl_save_prefix
="$prefix"
8221 prefix
="$acl_final_prefix"
8222 acl_save_exec_prefix
="$exec_prefix"
8223 exec_prefix
="$acl_final_exec_prefix"
8225 eval additional_includedir
=\"$includedir\"
8226 eval additional_libdir
=\"$libdir\"
8228 exec_prefix
="$acl_save_exec_prefix"
8229 prefix
="$acl_save_prefix"
8232 # Check whether --with-libpth-prefix was given.
8233 if test "${with_libpth_prefix+set}" = set; then :
8234 withval
=$with_libpth_prefix;
8235 if test "X$withval" = "Xno"; then
8238 if test "X$withval" = "X"; then
8240 acl_save_prefix
="$prefix"
8241 prefix
="$acl_final_prefix"
8242 acl_save_exec_prefix
="$exec_prefix"
8243 exec_prefix
="$acl_final_exec_prefix"
8245 eval additional_includedir
=\"$includedir\"
8246 eval additional_libdir
=\"$libdir\"
8248 exec_prefix
="$acl_save_exec_prefix"
8249 prefix
="$acl_save_prefix"
8252 additional_includedir
="$withval/include"
8253 additional_libdir
="$withval/$acl_libdirstem"
8254 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8255 && ! test -d "$withval/$acl_libdirstem"; then
8256 additional_libdir
="$withval/$acl_libdirstem2"
8270 names_already_handled
=
8271 names_next_round
='pth '
8272 while test -n "$names_next_round"; do
8273 names_this_round
="$names_next_round"
8275 for name
in $names_this_round; do
8277 for n
in $names_already_handled; do
8278 if test "$n" = "$name"; then
8283 if test -z "$already_handled"; then
8284 names_already_handled
="$names_already_handled $name"
8285 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8286 eval value
=\"\
$HAVE_LIB$uppername\"
8287 if test -n "$value"; then
8288 if test "$value" = yes; then
8289 eval value
=\"\
$LIB$uppername\"
8290 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
8291 eval value
=\"\
$LTLIB$uppername\"
8292 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
8301 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8302 if test -n "$acl_shlibext"; then
8303 shrext
=".$acl_shlibext" # typically: shrext=.so
8307 if test $use_additional = yes; then
8308 dir
="$additional_libdir"
8309 if test -n "$acl_shlibext"; then
8310 if test -f "$dir/$libname$shrext"; then
8312 found_so
="$dir/$libname$shrext"
8314 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8315 ver
=`(cd "$dir" && \
8316 for f in "$libname$shrext".*; do echo "$f"; done \
8317 | sed -e "s,^$libname$shrext\\\\.,," \
8318 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8319 | sed 1q ) 2>/dev/null`
8320 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8322 found_so
="$dir/$libname$shrext.$ver"
8325 eval library_names
=\"$acl_library_names_spec\"
8326 for f
in $library_names; do
8327 if test -f "$dir/$f"; then
8336 if test "X$found_dir" = "X"; then
8337 if test -f "$dir/$libname.$acl_libext"; then
8339 found_a
="$dir/$libname.$acl_libext"
8342 if test "X$found_dir" != "X"; then
8343 if test -f "$dir/$libname.la"; then
8344 found_la
="$dir/$libname.la"
8348 if test "X$found_dir" = "X"; then
8349 for x
in $LDFLAGS $LTLIBPTH; do
8351 acl_save_prefix
="$prefix"
8352 prefix
="$acl_final_prefix"
8353 acl_save_exec_prefix
="$exec_prefix"
8354 exec_prefix
="$acl_final_exec_prefix"
8356 exec_prefix
="$acl_save_exec_prefix"
8357 prefix
="$acl_save_prefix"
8361 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8362 if test -n "$acl_shlibext"; then
8363 if test -f "$dir/$libname$shrext"; then
8365 found_so
="$dir/$libname$shrext"
8367 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8368 ver
=`(cd "$dir" && \
8369 for f in "$libname$shrext".*; do echo "$f"; done \
8370 | sed -e "s,^$libname$shrext\\\\.,," \
8371 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8372 | sed 1q ) 2>/dev/null`
8373 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8375 found_so
="$dir/$libname$shrext.$ver"
8378 eval library_names
=\"$acl_library_names_spec\"
8379 for f
in $library_names; do
8380 if test -f "$dir/$f"; then
8389 if test "X$found_dir" = "X"; then
8390 if test -f "$dir/$libname.$acl_libext"; then
8392 found_a
="$dir/$libname.$acl_libext"
8395 if test "X$found_dir" != "X"; then
8396 if test -f "$dir/$libname.la"; then
8397 found_la
="$dir/$libname.la"
8402 if test "X$found_dir" != "X"; then
8407 if test "X$found_dir" != "X"; then
8408 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8409 if test "X$found_so" != "X"; then
8410 if test "$enable_rpath" = no \
8411 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8412 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8413 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8416 for x
in $ltrpathdirs; do
8417 if test "X$x" = "X$found_dir"; then
8422 if test -z "$haveit"; then
8423 ltrpathdirs
="$ltrpathdirs $found_dir"
8425 if test "$acl_hardcode_direct" = yes; then
8426 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8428 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8429 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8431 for x
in $rpathdirs; do
8432 if test "X$x" = "X$found_dir"; then
8437 if test -z "$haveit"; then
8438 rpathdirs
="$rpathdirs $found_dir"
8442 for x
in $LDFLAGS $LIBPTH; do
8444 acl_save_prefix
="$prefix"
8445 prefix
="$acl_final_prefix"
8446 acl_save_exec_prefix
="$exec_prefix"
8447 exec_prefix
="$acl_final_exec_prefix"
8449 exec_prefix
="$acl_save_exec_prefix"
8450 prefix
="$acl_save_prefix"
8452 if test "X$x" = "X-L$found_dir"; then
8457 if test -z "$haveit"; then
8458 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8460 if test "$acl_hardcode_minus_L" != no
; then
8461 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8463 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
8469 if test "X$found_a" != "X"; then
8470 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
8472 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8475 additional_includedir
=
8476 case "$found_dir" in
8477 */$acl_libdirstem |
*/$acl_libdirstem/)
8478 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8479 if test "$name" = 'pth'; then
8480 LIBPTH_PREFIX
="$basedir"
8482 additional_includedir
="$basedir/include"
8484 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
8485 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8486 if test "$name" = 'pth'; then
8487 LIBPTH_PREFIX
="$basedir"
8489 additional_includedir
="$basedir/include"
8492 if test "X$additional_includedir" != "X"; then
8493 if test "X$additional_includedir" != "X/usr/include"; then
8495 if test "X$additional_includedir" = "X/usr/local/include"; then
8496 if test -n "$GCC"; then
8498 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8502 if test -z "$haveit"; then
8503 for x
in $CPPFLAGS $INCPTH; do
8505 acl_save_prefix
="$prefix"
8506 prefix
="$acl_final_prefix"
8507 acl_save_exec_prefix
="$exec_prefix"
8508 exec_prefix
="$acl_final_exec_prefix"
8510 exec_prefix
="$acl_save_exec_prefix"
8511 prefix
="$acl_save_prefix"
8513 if test "X$x" = "X-I$additional_includedir"; then
8518 if test -z "$haveit"; then
8519 if test -d "$additional_includedir"; then
8520 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8526 if test -n "$found_la"; then
8527 save_libdir
="$libdir"
8529 */* |
*\\*) .
"$found_la" ;;
8530 *) .
"./$found_la" ;;
8532 libdir
="$save_libdir"
8533 for dep
in $dependency_libs; do
8536 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8537 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8538 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8540 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8541 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8542 if test -n "$GCC"; then
8544 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8548 if test -z "$haveit"; then
8550 for x
in $LDFLAGS $LIBPTH; do
8552 acl_save_prefix
="$prefix"
8553 prefix
="$acl_final_prefix"
8554 acl_save_exec_prefix
="$exec_prefix"
8555 exec_prefix
="$acl_final_exec_prefix"
8557 exec_prefix
="$acl_save_exec_prefix"
8558 prefix
="$acl_save_prefix"
8560 if test "X$x" = "X-L$additional_libdir"; then
8565 if test -z "$haveit"; then
8566 if test -d "$additional_libdir"; then
8567 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8571 for x
in $LDFLAGS $LTLIBPTH; do
8573 acl_save_prefix
="$prefix"
8574 prefix
="$acl_final_prefix"
8575 acl_save_exec_prefix
="$exec_prefix"
8576 exec_prefix
="$acl_final_exec_prefix"
8578 exec_prefix
="$acl_save_exec_prefix"
8579 prefix
="$acl_save_prefix"
8581 if test "X$x" = "X-L$additional_libdir"; then
8586 if test -z "$haveit"; then
8587 if test -d "$additional_libdir"; then
8588 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8595 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8596 if test "$enable_rpath" != no
; then
8598 for x
in $rpathdirs; do
8599 if test "X$x" = "X$dir"; then
8604 if test -z "$haveit"; then
8605 rpathdirs
="$rpathdirs $dir"
8608 for x
in $ltrpathdirs; do
8609 if test "X$x" = "X$dir"; then
8614 if test -z "$haveit"; then
8615 ltrpathdirs
="$ltrpathdirs $dir"
8620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8623 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8626 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
8627 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8633 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
8634 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8640 if test "X$rpathdirs" != "X"; then
8641 if test -n "$acl_hardcode_libdir_separator"; then
8643 for found_dir
in $rpathdirs; do
8644 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8646 acl_save_libdir
="$libdir"
8648 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8649 libdir
="$acl_save_libdir"
8650 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
8652 for found_dir
in $rpathdirs; do
8653 acl_save_libdir
="$libdir"
8655 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8656 libdir
="$acl_save_libdir"
8657 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
8661 if test "X$ltrpathdirs" != "X"; then
8662 for found_dir
in $ltrpathdirs; do
8663 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8672 ac_cv_libpth_libs
="$LIBPTH"
8673 ac_cv_libpth_ltlibs
="$LTLIBPTH"
8674 ac_cv_libpth_cppflags
="$INCPTH"
8675 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8679 $as_echo "$ac_cv_libpth_libs" >&6; }
8680 LIBPTH
="$ac_cv_libpth_libs"
8681 LTLIBPTH
="$ac_cv_libpth_ltlibs"
8682 INCPTH
="$ac_cv_libpth_cppflags"
8683 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
8685 for element
in $INCPTH; do
8687 for x
in $CPPFLAGS; do
8689 acl_save_prefix
="$prefix"
8690 prefix
="$acl_final_prefix"
8691 acl_save_exec_prefix
="$exec_prefix"
8692 exec_prefix
="$acl_final_exec_prefix"
8694 exec_prefix
="$acl_save_exec_prefix"
8695 prefix
="$acl_save_prefix"
8697 if test "X$x" = "X$element"; then
8702 if test -z "$haveit"; then
8703 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8715 gl_save_LIBS
="$LIBS"
8716 LIBS
="$LIBS $LIBPTH"
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8728 if ac_fn_c_try_link
"$LINENO"; then :
8731 rm -f core conftest.err conftest.
$ac_objext \
8732 conftest
$ac_exeext conftest.
$ac_ext
8733 LIBS
="$gl_save_LIBS"
8734 if test -n "$gl_have_pth"; then
8737 LTLIBTHREAD
="$LTLIBPTH"
8738 LIBMULTITHREAD
="$LIBTHREAD"
8739 LTLIBMULTITHREAD
="$LTLIBTHREAD"
8741 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8743 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
8744 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8746 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8753 CPPFLAGS
="$gl_save_CPPFLAGS"
8756 if test -z "$gl_have_pthread"; then
8757 case "$gl_use_threads" in
8758 yes | windows | win32
) # The 'win32' is for backward compatibility.
8759 if { case "$host_os" in
8764 gl_threads_api
=windows
8766 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8774 $as_echo_n "checking for multithread API to use... " >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8776 $as_echo "$gl_threads_api" >&6; }
8788 if test "$gl_threads_api" = posix
; then
8789 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8790 # pthread_rwlock_* functions.
8791 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8793 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
8795 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8799 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8803 #include <pthread.h>
8808 #if __FreeBSD__ == 4
8809 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8810 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8811 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8812 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8814 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8822 if ac_fn_c_try_compile
"$LINENO"; then :
8824 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8844 acl_save_prefix
="$prefix"
8845 prefix
="$acl_final_prefix"
8846 acl_save_exec_prefix
="$exec_prefix"
8847 exec_prefix
="$acl_final_exec_prefix"
8849 eval additional_includedir
=\"$includedir\"
8850 eval additional_libdir
=\"$libdir\"
8852 exec_prefix
="$acl_save_exec_prefix"
8853 prefix
="$acl_save_prefix"
8856 # Check whether --with-libiconv-prefix was given.
8857 if test "${with_libiconv_prefix+set}" = set; then :
8858 withval
=$with_libiconv_prefix;
8859 if test "X$withval" = "Xno"; then
8862 if test "X$withval" = "X"; then
8864 acl_save_prefix
="$prefix"
8865 prefix
="$acl_final_prefix"
8866 acl_save_exec_prefix
="$exec_prefix"
8867 exec_prefix
="$acl_final_exec_prefix"
8869 eval additional_includedir
=\"$includedir\"
8870 eval additional_libdir
=\"$libdir\"
8872 exec_prefix
="$acl_save_exec_prefix"
8873 prefix
="$acl_save_prefix"
8876 additional_includedir
="$withval/include"
8877 additional_libdir
="$withval/$acl_libdirstem"
8878 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8879 && ! test -d "$withval/$acl_libdirstem"; then
8880 additional_libdir
="$withval/$acl_libdirstem2"
8894 names_already_handled
=
8895 names_next_round
='iconv '
8896 while test -n "$names_next_round"; do
8897 names_this_round
="$names_next_round"
8899 for name
in $names_this_round; do
8901 for n
in $names_already_handled; do
8902 if test "$n" = "$name"; then
8907 if test -z "$already_handled"; then
8908 names_already_handled
="$names_already_handled $name"
8909 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8910 eval value
=\"\
$HAVE_LIB$uppername\"
8911 if test -n "$value"; then
8912 if test "$value" = yes; then
8913 eval value
=\"\
$LIB$uppername\"
8914 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8915 eval value
=\"\
$LTLIB$uppername\"
8916 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8925 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8926 if test -n "$acl_shlibext"; then
8927 shrext
=".$acl_shlibext" # typically: shrext=.so
8931 if test $use_additional = yes; then
8932 dir
="$additional_libdir"
8933 if test -n "$acl_shlibext"; then
8934 if test -f "$dir/$libname$shrext"; then
8936 found_so
="$dir/$libname$shrext"
8938 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8939 ver
=`(cd "$dir" && \
8940 for f in "$libname$shrext".*; do echo "$f"; done \
8941 | sed -e "s,^$libname$shrext\\\\.,," \
8942 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8943 | sed 1q ) 2>/dev/null`
8944 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8946 found_so
="$dir/$libname$shrext.$ver"
8949 eval library_names
=\"$acl_library_names_spec\"
8950 for f
in $library_names; do
8951 if test -f "$dir/$f"; then
8960 if test "X$found_dir" = "X"; then
8961 if test -f "$dir/$libname.$acl_libext"; then
8963 found_a
="$dir/$libname.$acl_libext"
8966 if test "X$found_dir" != "X"; then
8967 if test -f "$dir/$libname.la"; then
8968 found_la
="$dir/$libname.la"
8972 if test "X$found_dir" = "X"; then
8973 for x
in $LDFLAGS $LTLIBICONV; do
8975 acl_save_prefix
="$prefix"
8976 prefix
="$acl_final_prefix"
8977 acl_save_exec_prefix
="$exec_prefix"
8978 exec_prefix
="$acl_final_exec_prefix"
8980 exec_prefix
="$acl_save_exec_prefix"
8981 prefix
="$acl_save_prefix"
8985 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8986 if test -n "$acl_shlibext"; then
8987 if test -f "$dir/$libname$shrext"; then
8989 found_so
="$dir/$libname$shrext"
8991 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8992 ver
=`(cd "$dir" && \
8993 for f in "$libname$shrext".*; do echo "$f"; done \
8994 | sed -e "s,^$libname$shrext\\\\.,," \
8995 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8996 | sed 1q ) 2>/dev/null`
8997 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8999 found_so
="$dir/$libname$shrext.$ver"
9002 eval library_names
=\"$acl_library_names_spec\"
9003 for f
in $library_names; do
9004 if test -f "$dir/$f"; then
9013 if test "X$found_dir" = "X"; then
9014 if test -f "$dir/$libname.$acl_libext"; then
9016 found_a
="$dir/$libname.$acl_libext"
9019 if test "X$found_dir" != "X"; then
9020 if test -f "$dir/$libname.la"; then
9021 found_la
="$dir/$libname.la"
9026 if test "X$found_dir" != "X"; then
9031 if test "X$found_dir" != "X"; then
9032 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9033 if test "X$found_so" != "X"; then
9034 if test "$enable_rpath" = no \
9035 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
9036 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9037 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9040 for x
in $ltrpathdirs; do
9041 if test "X$x" = "X$found_dir"; then
9046 if test -z "$haveit"; then
9047 ltrpathdirs
="$ltrpathdirs $found_dir"
9049 if test "$acl_hardcode_direct" = yes; then
9050 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9052 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9053 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9055 for x
in $rpathdirs; do
9056 if test "X$x" = "X$found_dir"; then
9061 if test -z "$haveit"; then
9062 rpathdirs
="$rpathdirs $found_dir"
9066 for x
in $LDFLAGS $LIBICONV; do
9068 acl_save_prefix
="$prefix"
9069 prefix
="$acl_final_prefix"
9070 acl_save_exec_prefix
="$exec_prefix"
9071 exec_prefix
="$acl_final_exec_prefix"
9073 exec_prefix
="$acl_save_exec_prefix"
9074 prefix
="$acl_save_prefix"
9076 if test "X$x" = "X-L$found_dir"; then
9081 if test -z "$haveit"; then
9082 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9084 if test "$acl_hardcode_minus_L" != no
; then
9085 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9087 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9093 if test "X$found_a" != "X"; then
9094 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9096 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9099 additional_includedir
=
9100 case "$found_dir" in
9101 */$acl_libdirstem |
*/$acl_libdirstem/)
9102 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9103 if test "$name" = 'iconv'; then
9104 LIBICONV_PREFIX
="$basedir"
9106 additional_includedir
="$basedir/include"
9108 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9109 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9110 if test "$name" = 'iconv'; then
9111 LIBICONV_PREFIX
="$basedir"
9113 additional_includedir
="$basedir/include"
9116 if test "X$additional_includedir" != "X"; then
9117 if test "X$additional_includedir" != "X/usr/include"; then
9119 if test "X$additional_includedir" = "X/usr/local/include"; then
9120 if test -n "$GCC"; then
9122 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9126 if test -z "$haveit"; then
9127 for x
in $CPPFLAGS $INCICONV; do
9129 acl_save_prefix
="$prefix"
9130 prefix
="$acl_final_prefix"
9131 acl_save_exec_prefix
="$exec_prefix"
9132 exec_prefix
="$acl_final_exec_prefix"
9134 exec_prefix
="$acl_save_exec_prefix"
9135 prefix
="$acl_save_prefix"
9137 if test "X$x" = "X-I$additional_includedir"; then
9142 if test -z "$haveit"; then
9143 if test -d "$additional_includedir"; then
9144 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9150 if test -n "$found_la"; then
9151 save_libdir
="$libdir"
9153 */* |
*\\*) .
"$found_la" ;;
9154 *) .
"./$found_la" ;;
9156 libdir
="$save_libdir"
9157 for dep
in $dependency_libs; do
9160 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9161 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9162 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9164 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9165 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9166 if test -n "$GCC"; then
9168 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9172 if test -z "$haveit"; then
9174 for x
in $LDFLAGS $LIBICONV; do
9176 acl_save_prefix
="$prefix"
9177 prefix
="$acl_final_prefix"
9178 acl_save_exec_prefix
="$exec_prefix"
9179 exec_prefix
="$acl_final_exec_prefix"
9181 exec_prefix
="$acl_save_exec_prefix"
9182 prefix
="$acl_save_prefix"
9184 if test "X$x" = "X-L$additional_libdir"; then
9189 if test -z "$haveit"; then
9190 if test -d "$additional_libdir"; then
9191 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9195 for x
in $LDFLAGS $LTLIBICONV; do
9197 acl_save_prefix
="$prefix"
9198 prefix
="$acl_final_prefix"
9199 acl_save_exec_prefix
="$exec_prefix"
9200 exec_prefix
="$acl_final_exec_prefix"
9202 exec_prefix
="$acl_save_exec_prefix"
9203 prefix
="$acl_save_prefix"
9205 if test "X$x" = "X-L$additional_libdir"; then
9210 if test -z "$haveit"; then
9211 if test -d "$additional_libdir"; then
9212 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9219 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9220 if test "$enable_rpath" != no
; then
9222 for x
in $rpathdirs; do
9223 if test "X$x" = "X$dir"; then
9228 if test -z "$haveit"; then
9229 rpathdirs
="$rpathdirs $dir"
9232 for x
in $ltrpathdirs; do
9233 if test "X$x" = "X$dir"; then
9238 if test -z "$haveit"; then
9239 ltrpathdirs
="$ltrpathdirs $dir"
9244 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9247 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9250 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9251 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9257 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9258 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9264 if test "X$rpathdirs" != "X"; then
9265 if test -n "$acl_hardcode_libdir_separator"; then
9267 for found_dir
in $rpathdirs; do
9268 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9270 acl_save_libdir
="$libdir"
9272 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9273 libdir
="$acl_save_libdir"
9274 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9276 for found_dir
in $rpathdirs; do
9277 acl_save_libdir
="$libdir"
9279 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9280 libdir
="$acl_save_libdir"
9281 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9285 if test "X$ltrpathdirs" != "X"; then
9286 for found_dir
in $ltrpathdirs; do
9287 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9302 am_save_CPPFLAGS
="$CPPFLAGS"
9304 for element
in $INCICONV; do
9306 for x
in $CPPFLAGS; do
9308 acl_save_prefix
="$prefix"
9309 prefix
="$acl_final_prefix"
9310 acl_save_exec_prefix
="$exec_prefix"
9311 exec_prefix
="$acl_final_exec_prefix"
9313 exec_prefix
="$acl_save_exec_prefix"
9314 prefix
="$acl_save_prefix"
9316 if test "X$x" = "X$element"; then
9321 if test -z "$haveit"; then
9322 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9328 $as_echo_n "checking for iconv... " >&6; }
9329 if ${am_cv_func_iconv+:} false
; then :
9330 $as_echo_n "(cached) " >&6
9333 am_cv_func_iconv
="no, consider installing GNU libiconv"
9335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9344 iconv_t cd = iconv_open("","");
9345 iconv(cd,NULL,NULL,NULL,NULL);
9351 if ac_fn_c_try_link
"$LINENO"; then :
9352 am_cv_func_iconv
=yes
9354 rm -f core conftest.err conftest.
$ac_objext \
9355 conftest
$ac_exeext conftest.
$ac_ext
9356 if test "$am_cv_func_iconv" != yes; then
9357 am_save_LIBS
="$LIBS"
9358 LIBS
="$LIBS $LIBICONV"
9359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9368 iconv_t cd = iconv_open("","");
9369 iconv(cd,NULL,NULL,NULL,NULL);
9375 if ac_fn_c_try_link
"$LINENO"; then :
9377 am_cv_func_iconv
=yes
9379 rm -f core conftest.err conftest.
$ac_objext \
9380 conftest
$ac_exeext conftest.
$ac_ext
9381 LIBS
="$am_save_LIBS"
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9386 $as_echo "$am_cv_func_iconv" >&6; }
9387 if test "$am_cv_func_iconv" = yes; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9389 $as_echo_n "checking for working iconv... " >&6; }
9390 if ${am_cv_func_iconv_works+:} false
; then :
9391 $as_echo_n "(cached) " >&6
9394 am_save_LIBS
="$LIBS"
9395 if test $am_cv_lib_iconv = yes; then
9396 LIBS
="$LIBS $LIBICONV"
9398 if test "$cross_compiling" = yes; then :
9401 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9402 *) am_cv_func_iconv_works
="guessing yes" ;;
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9414 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9417 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9418 if (cd_utf8_to_88591 != (iconv_t)(-1))
9420 static const char input[] = "\342\202\254"; /* EURO SIGN */
9422 const char *inptr = input;
9423 size_t inbytesleft = strlen (input);
9425 size_t outbytesleft = sizeof (buf);
9426 size_t res = iconv (cd_utf8_to_88591,
9427 (char **) &inptr, &inbytesleft,
9428 &outptr, &outbytesleft);
9431 iconv_close (cd_utf8_to_88591);
9434 /* Test against Solaris 10 bug: Failures are not distinguishable from
9435 successful returns. */
9437 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9438 if (cd_ascii_to_88591 != (iconv_t)(-1))
9440 static const char input[] = "\263";
9442 const char *inptr = input;
9443 size_t inbytesleft = strlen (input);
9445 size_t outbytesleft = sizeof (buf);
9446 size_t res = iconv (cd_ascii_to_88591,
9447 (char **) &inptr, &inbytesleft,
9448 &outptr, &outbytesleft);
9451 iconv_close (cd_ascii_to_88591);
9454 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9456 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9457 if (cd_88591_to_utf8 != (iconv_t)(-1))
9459 static const char input[] = "\304";
9460 static char buf[2] = { (char)0xDE, (char)0xAD };
9461 const char *inptr = input;
9462 size_t inbytesleft = 1;
9464 size_t outbytesleft = 1;
9465 size_t res = iconv (cd_88591_to_utf8,
9466 (char **) &inptr, &inbytesleft,
9467 &outptr, &outbytesleft);
9468 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9470 iconv_close (cd_88591_to_utf8);
9473 #if 0 /* This bug could be worked around by the caller. */
9474 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9476 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9477 if (cd_88591_to_utf8 != (iconv_t)(-1))
9479 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9481 const char *inptr = input;
9482 size_t inbytesleft = strlen (input);
9484 size_t outbytesleft = sizeof (buf);
9485 size_t res = iconv (cd_88591_to_utf8,
9486 (char **) &inptr, &inbytesleft,
9487 &outptr, &outbytesleft);
9490 iconv_close (cd_88591_to_utf8);
9494 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9496 if (/* Try standardized names. */
9497 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9498 /* Try IRIX, OSF/1 names. */
9499 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9500 /* Try AIX names. */
9501 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9502 /* Try HP-UX names. */
9503 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9508 if ac_fn_c_try_run
"$LINENO"; then :
9509 am_cv_func_iconv_works
=yes
9511 am_cv_func_iconv_works
=no
9513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9517 LIBS
="$am_save_LIBS"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9521 $as_echo "$am_cv_func_iconv_works" >&6; }
9522 case "$am_cv_func_iconv_works" in
9523 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
9524 *) am_func_iconv
=yes ;;
9527 am_func_iconv
=no am_cv_lib_iconv
=no
9529 if test "$am_func_iconv" = yes; then
9531 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9534 if test "$am_cv_lib_iconv" = yes; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9536 $as_echo_n "checking how to link with libiconv... " >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9538 $as_echo "$LIBICONV" >&6; }
9540 CPPFLAGS
="$am_save_CPPFLAGS"
9547 if test "$am_cv_func_iconv" = yes; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9549 $as_echo_n "checking for iconv declaration... " >&6; }
9550 if ${am_cv_proto_iconv+:} false
; then :
9551 $as_echo_n "(cached) " >&6
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9563 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9564 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9577 if ac_fn_c_try_compile
"$LINENO"; then :
9578 am_cv_proto_iconv_arg1
=""
9580 am_cv_proto_iconv_arg1
="const"
9582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9583 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);"
9586 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9588 $am_cv_proto_iconv" >&5
9590 $am_cv_proto_iconv" >&6; }
9592 cat >>confdefs.h
<<_ACEOF
9593 #define ICONV_CONST $am_cv_proto_iconv_arg1
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9613 if ac_fn_c_try_link
"$LINENO"; then :
9615 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9618 rm -f core conftest.err conftest.
$ac_objext \
9619 conftest
$ac_exeext conftest.
$ac_ext
9621 for ac_header
in argz.h inttypes.h limits.h unistd.h sys
/param.h
9623 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9625 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9626 cat >>confdefs.h
<<_ACEOF
9627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9634 for ac_func
in getcwd getegid geteuid getgid getuid mempcpy munmap \
9635 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9636 argz_stringify argz_next __fsetlocking
9638 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9639 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9640 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9641 cat >>confdefs.h
<<_ACEOF
9642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9649 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9651 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
9657 cat >>confdefs.h
<<_ACEOF
9658 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9660 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9662 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
9668 cat >>confdefs.h
<<_ACEOF
9669 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9675 for ac_prog
in bison
9677 # Extract the first word of "$ac_prog", so it can be a program name with args.
9678 set dummy
$ac_prog; ac_word
=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_prog_INTLBISON+:} false
; then :
9682 $as_echo_n "(cached) " >&6
9684 if test -n "$INTLBISON"; then
9685 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
9687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9691 test -z "$as_dir" && as_dir
=.
9692 for ac_exec_ext
in '' $ac_executable_extensions; do
9693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_INTLBISON
="$ac_prog"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 INTLBISON
=$ac_cv_prog_INTLBISON
9705 if test -n "$INTLBISON"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9707 $as_echo "$INTLBISON" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 test -n "$INTLBISON" && break
9717 if test -z "$INTLBISON"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9721 $as_echo_n "checking version of bison... " >&6; }
9722 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9723 case $ac_prog_version in
9724 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
9725 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
9726 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
9727 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9730 $as_echo "$ac_prog_version" >&6; }
9732 if test $ac_verc_fail = yes; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9739 $as_echo_n "checking for long long int... " >&6; }
9740 if ${ac_cv_type_long_long_int+:} false
; then :
9741 $as_echo_n "(cached) " >&6
9743 ac_cv_type_long_long_int
=yes
9744 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9745 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9746 if test $ac_cv_type_long_long_int = yes; then
9747 if test "$cross_compiling" = yes; then :
9750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9756 # define LLONG_MAX (HALF - 1 + HALF)
9761 long long int n = 1;
9765 long long int m = n << i;
9768 if (LLONG_MAX / 2 < m)
9776 if ac_fn_c_try_run
"$LINENO"; then :
9779 ac_cv_type_long_long_int
=no
9781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9789 $as_echo "$ac_cv_type_long_long_int" >&6; }
9790 if test $ac_cv_type_long_long_int = yes; then
9792 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9798 $as_echo_n "checking for wchar_t... " >&6; }
9799 if ${gt_cv_c_wchar_t+:} false
; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 wchar_t foo = (wchar_t)'\0';
9814 if ac_fn_c_try_compile
"$LINENO"; then :
9819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9822 $as_echo "$gt_cv_c_wchar_t" >&6; }
9823 if test $gt_cv_c_wchar_t = yes; then
9825 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9831 $as_echo_n "checking for wint_t... " >&6; }
9832 if ${gt_cv_c_wint_t+:} false
; then :
9833 $as_echo_n "(cached) " >&6
9835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9840 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9841 before <wchar.h>. */
9846 wint_t foo = (wchar_t)'\0';
9855 if ac_fn_c_try_compile
"$LINENO"; then :
9860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9863 $as_echo "$gt_cv_c_wint_t" >&6; }
9864 if test $gt_cv_c_wint_t = yes; then
9866 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9874 $as_echo_n "checking for intmax_t... " >&6; }
9875 if ${gt_cv_c_intmax_t+:} false
; then :
9876 $as_echo_n "(cached) " >&6
9878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9883 #if HAVE_STDINT_H_WITH_UINTMAX
9886 #if HAVE_INTTYPES_H_WITH_UINTMAX
9887 #include <inttypes.h>
9899 if ac_fn_c_try_compile
"$LINENO"; then :
9900 gt_cv_c_intmax_t
=yes
9904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9907 $as_echo "$gt_cv_c_intmax_t" >&6; }
9908 if test $gt_cv_c_intmax_t = yes; then
9910 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9917 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9918 if ${gt_cv_func_printf_posix+:} false
; then :
9919 $as_echo_n "(cached) " >&6
9922 if test "$cross_compiling" = yes; then :
9924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9927 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9933 $EGREP "notposix" >/dev
/null
2>&1; then :
9934 gt_cv_func_printf_posix
="guessing no"
9936 gt_cv_func_printf_posix
="guessing yes"
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9947 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9948 dollar expansion (possibly an autoconf bug). */
9949 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9950 static char buf[100];
9953 sprintf (buf, format, 33, 55);
9954 return (strcmp (buf, "55 33") != 0);
9957 if ac_fn_c_try_run
"$LINENO"; then :
9958 gt_cv_func_printf_posix
=yes
9960 gt_cv_func_printf_posix
=no
9962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9969 $as_echo "$gt_cv_func_printf_posix" >&6; }
9970 case $gt_cv_func_printf_posix in
9973 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9980 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9981 if ${ac_cv_gnu_library_2_1+:} false
; then :
9982 $as_echo_n "(cached) " >&6
9984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9987 #include <features.h>
9988 #ifdef __GNU_LIBRARY__
9989 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999 $EGREP "Lucky" >/dev
/null
2>&1; then :
10000 ac_cv_gnu_library_2_1
=yes
10002 ac_cv_gnu_library_2_1
=no
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10010 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10012 GLIBC21
="$ac_cv_gnu_library_2_1"
10016 for ac_header
in stdint.h
10018 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10019 if test "x$ac_cv_header_stdint_h" = xyes
; then :
10020 cat >>confdefs.h
<<_ACEOF
10021 #define HAVE_STDINT_H 1
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10029 $as_echo_n "checking for SIZE_MAX... " >&6; }
10030 if ${gl_cv_size_max+:} false
; then :
10031 $as_echo_n "(cached) " >&6
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10038 #include <limits.h>
10040 #include <stdint.h>
10047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10048 $EGREP "Found it" >/dev
/null
2>&1; then :
10053 if test -z "$gl_cv_size_max"; then
10054 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10055 #include <limits.h>"; then :
10058 size_t_bits_minus_1
=
10061 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10067 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10068 if test $fits_in_uint = 1; then
10069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 #include <stddef.h>
10073 extern unsigned long foo;
10083 if ac_fn_c_try_compile
"$LINENO"; then :
10086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10088 if test $fits_in_uint = 1; then
10089 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10091 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10094 gl_cv_size_max
='((size_t)~(size_t)0)'
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10100 $as_echo "$gl_cv_size_max" >&6; }
10101 if test "$gl_cv_size_max" != yes; then
10103 cat >>confdefs.h
<<_ACEOF
10104 #define SIZE_MAX $gl_cv_size_max
10112 for ac_header
in stdint.h
10114 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10115 if test "x$ac_cv_header_stdint_h" = xyes
; then :
10116 cat >>confdefs.h
<<_ACEOF
10117 #define HAVE_STDINT_H 1
10128 for ac_func
in $ac_func_list
10130 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10132 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10133 cat >>confdefs.h
<<_ACEOF
10134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10148 $as_echo_n "checking for working fcntl.h... " >&6; }
10149 if ${gl_cv_header_working_fcntl_h+:} false
; then :
10150 $as_echo_n "(cached) " >&6
10152 if test "$cross_compiling" = yes; then :
10153 gl_cv_header_working_fcntl_h
=cross-compiling
10155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 #include <sys/types.h>
10158 #include <sys/stat.h>
10160 # include <unistd.h>
10161 #else /* on Windows with MSVC */
10163 # include <stdlib.h>
10164 # defined sleep(n) _sleep ((n) * 1000)
10168 #define O_NOATIME 0
10171 #define O_NOFOLLOW 0
10173 static int const constants[] =
10175 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10176 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10183 int result = !constants;
10186 static char const sym[] = "conftest.sym";
10187 if (symlink ("/dev/null", sym) != 0)
10191 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10198 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10202 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10213 static char const file[] = "confdefs.h";
10214 int fd = open (file, O_RDONLY | O_NOATIME);
10220 if (fstat (fd, &st0) != 0)
10226 if (read (fd, &c, 1) != 1)
10230 if (close (fd) != 0)
10235 if (stat (file, &st1) != 0)
10238 if (st0.st_atime != st1.st_atime)
10250 if ac_fn_c_try_run
"$LINENO"; then :
10251 gl_cv_header_working_fcntl_h
=yes
10254 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
10255 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
10256 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10257 *) gl_cv_header_working_fcntl_h
='no';;
10260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10266 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10268 case $gl_cv_header_working_fcntl_h in #(
10269 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
10273 cat >>confdefs.h
<<_ACEOF
10274 #define HAVE_WORKING_O_NOATIME $ac_val
10278 case $gl_cv_header_working_fcntl_h in #(
10279 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
10283 cat >>confdefs.h
<<_ACEOF
10284 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10290 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10291 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
10292 $as_echo_n "(cached) " >&6
10294 gt_save_LIBS
="$LIBS"
10295 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <CoreFoundation/CFPreferences.h>
10302 CFPreferencesCopyAppValue(NULL, NULL)
10307 if ac_fn_c_try_link
"$LINENO"; then :
10308 gt_cv_func_CFPreferencesCopyAppValue
=yes
10310 gt_cv_func_CFPreferencesCopyAppValue
=no
10312 rm -f core conftest.err conftest.
$ac_objext \
10313 conftest
$ac_exeext conftest.
$ac_ext
10314 LIBS
="$gt_save_LIBS"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10317 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10318 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10320 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10324 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10325 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
10326 $as_echo_n "(cached) " >&6
10328 gt_save_LIBS
="$LIBS"
10329 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 #include <CoreFoundation/CFLocale.h>
10336 CFLocaleCopyCurrent();
10341 if ac_fn_c_try_link
"$LINENO"; then :
10342 gt_cv_func_CFLocaleCopyCurrent
=yes
10344 gt_cv_func_CFLocaleCopyCurrent
=no
10346 rm -f core conftest.err conftest.
$ac_objext \
10347 conftest
$ac_exeext conftest.
$ac_ext
10348 LIBS
="$gt_save_LIBS"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10351 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10352 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10354 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10358 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10359 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
10371 case "$enable_silent_rules" in
10372 yes) INTL_DEFAULT_VERBOSITY
=0;;
10373 no
) INTL_DEFAULT_VERBOSITY
=1;;
10374 *) INTL_DEFAULT_VERBOSITY
=1;;
10378 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10379 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
10383 $as_echo "#define ptrdiff_t long" >>confdefs.h
10388 for ac_header
in features.h stddef.h stdlib.h string.h
10390 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10391 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10392 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10393 cat >>confdefs.h
<<_ACEOF
10394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10401 for ac_func
in asprintf fwprintf newlocale putenv setenv setlocale \
10402 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10404 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10406 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10407 cat >>confdefs.h
<<_ACEOF
10408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10415 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10417 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
10423 cat >>confdefs.h
<<_ACEOF
10424 #define HAVE_DECL__SNPRINTF $ac_have_decl
10426 ac_fn_c_check_decl
"$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10428 if test "x$ac_cv_have_decl__snwprintf" = xyes
; then :
10434 cat >>confdefs.h
<<_ACEOF
10435 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10439 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10441 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
10447 cat >>confdefs.h
<<_ACEOF
10448 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10452 case $gt_cv_func_printf_posix in
10453 *yes) HAVE_POSIX_PRINTF
=1 ;;
10454 *) HAVE_POSIX_PRINTF
=0 ;;
10457 if test "$ac_cv_func_asprintf" = yes; then
10463 if test "$ac_cv_func_snprintf" = yes; then
10469 if test "$ac_cv_func_newlocale" = yes; then
10475 if test "$ac_cv_func_wprintf" = yes; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10484 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10485 if ${am_cv_langinfo_codeset+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 #include <langinfo.h>
10494 char* cs = nl_langinfo(CODESET); return !cs;
10499 if ac_fn_c_try_link
"$LINENO"; then :
10500 am_cv_langinfo_codeset
=yes
10502 am_cv_langinfo_codeset
=no
10504 rm -f core conftest.err conftest.
$ac_objext \
10505 conftest
$ac_exeext conftest.
$ac_ext
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10509 $as_echo "$am_cv_langinfo_codeset" >&6; }
10510 if test $am_cv_langinfo_codeset = yes; then
10512 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10518 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10519 if ${gt_cv_val_LC_MESSAGES+:} false
; then :
10520 $as_echo_n "(cached) " >&6
10522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #include <locale.h>
10533 if ac_fn_c_try_link
"$LINENO"; then :
10534 gt_cv_val_LC_MESSAGES
=yes
10536 gt_cv_val_LC_MESSAGES
=no
10538 rm -f core conftest.err conftest.
$ac_objext \
10539 conftest
$ac_exeext conftest.
$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10542 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10543 if test $gt_cv_val_LC_MESSAGES = yes; then
10545 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10550 if test "$enable_shared" = yes; then
10552 mingw
* | cygwin
*) is_woe32dll
=yes ;;
10553 *) is_woe32dll
=no
;;
10558 WOE32DLL
=$is_woe32dll
10562 mingw
* | cygwin
*) is_woe32
=yes ;;
10567 if test $WOE32 = yes; then
10568 if test -n "$ac_tool_prefix"; then
10569 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10570 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_WINDRES+:} false
; then :
10574 $as_echo_n "(cached) " >&6
10576 if test -n "$WINDRES"; then
10577 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10580 for as_dir
in $PATH
10583 test -z "$as_dir" && as_dir
=.
10584 for ac_exec_ext
in '' $ac_executable_extensions; do
10585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10586 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 WINDRES
=$ac_cv_prog_WINDRES
10597 if test -n "$WINDRES"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10599 $as_echo "$WINDRES" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10607 if test -z "$ac_cv_prog_WINDRES"; then
10608 ac_ct_WINDRES
=$WINDRES
10609 # Extract the first word of "windres", so it can be a program name with args.
10610 set dummy windres
; ac_word
=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
10614 $as_echo_n "(cached) " >&6
10616 if test -n "$ac_ct_WINDRES"; then
10617 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10620 for as_dir
in $PATH
10623 test -z "$as_dir" && as_dir
=.
10624 for ac_exec_ext
in '' $ac_executable_extensions; do
10625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10626 ac_cv_prog_ac_ct_WINDRES
="windres"
10627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10637 if test -n "$ac_ct_WINDRES"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10639 $as_echo "$ac_ct_WINDRES" >&6; }
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10645 if test "x$ac_ct_WINDRES" = x
; then
10648 case $cross_compiling:$ac_tool_warned in
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10652 ac_tool_warned
=yes ;;
10654 WINDRES
=$ac_ct_WINDRES
10657 WINDRES
="$ac_cv_prog_WINDRES"
10663 hpux
*) LTLIBC
="" ;;
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10694 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10695 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
10696 $as_echo_n "(cached) " >&6
10698 gt_save_LIBS
="$LIBS"
10699 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 #include <CoreFoundation/CFPreferences.h>
10706 CFPreferencesCopyAppValue(NULL, NULL)
10711 if ac_fn_c_try_link
"$LINENO"; then :
10712 gt_cv_func_CFPreferencesCopyAppValue
=yes
10714 gt_cv_func_CFPreferencesCopyAppValue
=no
10716 rm -f core conftest.err conftest.
$ac_objext \
10717 conftest
$ac_exeext conftest.
$ac_ext
10718 LIBS
="$gt_save_LIBS"
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10721 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10722 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10724 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10728 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10729 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 gt_save_LIBS
="$LIBS"
10733 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <CoreFoundation/CFLocale.h>
10740 CFLocaleCopyCurrent();
10745 if ac_fn_c_try_link
"$LINENO"; then :
10746 gt_cv_func_CFLocaleCopyCurrent
=yes
10748 gt_cv_func_CFLocaleCopyCurrent
=no
10750 rm -f core conftest.err conftest.
$ac_objext \
10751 conftest
$ac_exeext conftest.
$ac_ext
10752 LIBS
="$gt_save_LIBS"
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10755 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10756 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10758 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10762 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10763 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
10771 BUILD_INCLUDED_LIBINTL
=no
10772 USE_INCLUDED_LIBINTL
=no
10778 case " $gt_needs " in
10779 *" need-formatstring-macros "*) gt_api_version
=3 ;;
10780 *" need-ngettext "*) gt_api_version
=2 ;;
10781 *) gt_api_version
=1 ;;
10783 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
10784 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
10786 if test "$USE_NLS" = "yes"; then
10787 gt_use_preinstalled_gnugettext
=no
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10790 $as_echo_n "checking whether included gettext is requested... " >&6; }
10792 # Check whether --with-included-gettext was given.
10793 if test "${with_included_gettext+set}" = set; then :
10794 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10796 nls_cv_force_use_gnu_gettext
=no
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10800 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10802 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10803 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10806 if test $gt_api_version -ge 3; then
10807 gt_revision_test_code
='
10808 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10809 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10811 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10814 gt_revision_test_code
=
10816 if test $gt_api_version -ge 2; then
10817 gt_expression_test_code
=' + * ngettext ("", "", 0)'
10819 gt_expression_test_code
=
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10823 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10824 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
10825 $as_echo_n "(cached) " >&6
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10830 #include <libintl.h>
10831 $gt_revision_test_code
10832 extern int _nl_msg_cat_cntr;
10833 extern int *_nl_domain_bindings;
10839 bindtextdomain ("", "");
10840 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10846 if ac_fn_c_try_link
"$LINENO"; then :
10847 eval "$gt_func_gnugettext_libc=yes"
10849 eval "$gt_func_gnugettext_libc=no"
10851 rm -f core conftest.err conftest.
$ac_objext \
10852 conftest
$ac_exeext conftest.
$ac_ext
10854 eval ac_res
=\$
$gt_func_gnugettext_libc
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10856 $as_echo "$ac_res" >&6; }
10858 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10869 acl_save_prefix
="$prefix"
10870 prefix
="$acl_final_prefix"
10871 acl_save_exec_prefix
="$exec_prefix"
10872 exec_prefix
="$acl_final_exec_prefix"
10874 eval additional_includedir
=\"$includedir\"
10875 eval additional_libdir
=\"$libdir\"
10877 exec_prefix
="$acl_save_exec_prefix"
10878 prefix
="$acl_save_prefix"
10881 # Check whether --with-libintl-prefix was given.
10882 if test "${with_libintl_prefix+set}" = set; then :
10883 withval
=$with_libintl_prefix;
10884 if test "X$withval" = "Xno"; then
10887 if test "X$withval" = "X"; then
10889 acl_save_prefix
="$prefix"
10890 prefix
="$acl_final_prefix"
10891 acl_save_exec_prefix
="$exec_prefix"
10892 exec_prefix
="$acl_final_exec_prefix"
10894 eval additional_includedir
=\"$includedir\"
10895 eval additional_libdir
=\"$libdir\"
10897 exec_prefix
="$acl_save_exec_prefix"
10898 prefix
="$acl_save_prefix"
10901 additional_includedir
="$withval/include"
10902 additional_libdir
="$withval/$acl_libdirstem"
10903 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10904 && ! test -d "$withval/$acl_libdirstem"; then
10905 additional_libdir
="$withval/$acl_libdirstem2"
10919 names_already_handled
=
10920 names_next_round
='intl '
10921 while test -n "$names_next_round"; do
10922 names_this_round
="$names_next_round"
10924 for name
in $names_this_round; do
10926 for n
in $names_already_handled; do
10927 if test "$n" = "$name"; then
10928 already_handled
=yes
10932 if test -z "$already_handled"; then
10933 names_already_handled
="$names_already_handled $name"
10934 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10935 eval value
=\"\
$HAVE_LIB$uppername\"
10936 if test -n "$value"; then
10937 if test "$value" = yes; then
10938 eval value
=\"\
$LIB$uppername\"
10939 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
10940 eval value
=\"\
$LTLIB$uppername\"
10941 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
10950 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
10951 if test -n "$acl_shlibext"; then
10952 shrext
=".$acl_shlibext" # typically: shrext=.so
10956 if test $use_additional = yes; then
10957 dir
="$additional_libdir"
10958 if test -n "$acl_shlibext"; then
10959 if test -f "$dir/$libname$shrext"; then
10961 found_so
="$dir/$libname$shrext"
10963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10964 ver
=`(cd "$dir" && \
10965 for f in "$libname$shrext".*; do echo "$f"; done \
10966 | sed -e "s,^$libname$shrext\\\\.,," \
10967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10968 | sed 1q ) 2>/dev/null`
10969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10971 found_so
="$dir/$libname$shrext.$ver"
10974 eval library_names
=\"$acl_library_names_spec\"
10975 for f
in $library_names; do
10976 if test -f "$dir/$f"; then
10985 if test "X$found_dir" = "X"; then
10986 if test -f "$dir/$libname.$acl_libext"; then
10988 found_a
="$dir/$libname.$acl_libext"
10991 if test "X$found_dir" != "X"; then
10992 if test -f "$dir/$libname.la"; then
10993 found_la
="$dir/$libname.la"
10997 if test "X$found_dir" = "X"; then
10998 for x
in $LDFLAGS $LTLIBINTL; do
11000 acl_save_prefix
="$prefix"
11001 prefix
="$acl_final_prefix"
11002 acl_save_exec_prefix
="$exec_prefix"
11003 exec_prefix
="$acl_final_exec_prefix"
11005 exec_prefix
="$acl_save_exec_prefix"
11006 prefix
="$acl_save_prefix"
11010 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11011 if test -n "$acl_shlibext"; then
11012 if test -f "$dir/$libname$shrext"; then
11014 found_so
="$dir/$libname$shrext"
11016 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11017 ver
=`(cd "$dir" && \
11018 for f in "$libname$shrext".*; do echo "$f"; done \
11019 | sed -e "s,^$libname$shrext\\\\.,," \
11020 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11021 | sed 1q ) 2>/dev/null`
11022 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11024 found_so
="$dir/$libname$shrext.$ver"
11027 eval library_names
=\"$acl_library_names_spec\"
11028 for f
in $library_names; do
11029 if test -f "$dir/$f"; then
11038 if test "X$found_dir" = "X"; then
11039 if test -f "$dir/$libname.$acl_libext"; then
11041 found_a
="$dir/$libname.$acl_libext"
11044 if test "X$found_dir" != "X"; then
11045 if test -f "$dir/$libname.la"; then
11046 found_la
="$dir/$libname.la"
11051 if test "X$found_dir" != "X"; then
11056 if test "X$found_dir" != "X"; then
11057 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11058 if test "X$found_so" != "X"; then
11059 if test "$enable_rpath" = no \
11060 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
11061 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11062 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11065 for x
in $ltrpathdirs; do
11066 if test "X$x" = "X$found_dir"; then
11071 if test -z "$haveit"; then
11072 ltrpathdirs
="$ltrpathdirs $found_dir"
11074 if test "$acl_hardcode_direct" = yes; then
11075 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11077 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
11078 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11080 for x
in $rpathdirs; do
11081 if test "X$x" = "X$found_dir"; then
11086 if test -z "$haveit"; then
11087 rpathdirs
="$rpathdirs $found_dir"
11091 for x
in $LDFLAGS $LIBINTL; do
11093 acl_save_prefix
="$prefix"
11094 prefix
="$acl_final_prefix"
11095 acl_save_exec_prefix
="$exec_prefix"
11096 exec_prefix
="$acl_final_exec_prefix"
11098 exec_prefix
="$acl_save_exec_prefix"
11099 prefix
="$acl_save_prefix"
11101 if test "X$x" = "X-L$found_dir"; then
11106 if test -z "$haveit"; then
11107 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11109 if test "$acl_hardcode_minus_L" != no
; then
11110 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11112 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
11118 if test "X$found_a" != "X"; then
11119 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
11121 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11124 additional_includedir
=
11125 case "$found_dir" in
11126 */$acl_libdirstem |
*/$acl_libdirstem/)
11127 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11128 if test "$name" = 'intl'; then
11129 LIBINTL_PREFIX
="$basedir"
11131 additional_includedir
="$basedir/include"
11133 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
11134 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11135 if test "$name" = 'intl'; then
11136 LIBINTL_PREFIX
="$basedir"
11138 additional_includedir
="$basedir/include"
11141 if test "X$additional_includedir" != "X"; then
11142 if test "X$additional_includedir" != "X/usr/include"; then
11144 if test "X$additional_includedir" = "X/usr/local/include"; then
11145 if test -n "$GCC"; then
11147 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11151 if test -z "$haveit"; then
11152 for x
in $CPPFLAGS $INCINTL; do
11154 acl_save_prefix
="$prefix"
11155 prefix
="$acl_final_prefix"
11156 acl_save_exec_prefix
="$exec_prefix"
11157 exec_prefix
="$acl_final_exec_prefix"
11159 exec_prefix
="$acl_save_exec_prefix"
11160 prefix
="$acl_save_prefix"
11162 if test "X$x" = "X-I$additional_includedir"; then
11167 if test -z "$haveit"; then
11168 if test -d "$additional_includedir"; then
11169 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11175 if test -n "$found_la"; then
11176 save_libdir
="$libdir"
11177 case "$found_la" in
11178 */* |
*\\*) .
"$found_la" ;;
11179 *) .
"./$found_la" ;;
11181 libdir
="$save_libdir"
11182 for dep
in $dependency_libs; do
11185 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11186 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11187 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11189 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11190 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11191 if test -n "$GCC"; then
11193 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11197 if test -z "$haveit"; then
11199 for x
in $LDFLAGS $LIBINTL; do
11201 acl_save_prefix
="$prefix"
11202 prefix
="$acl_final_prefix"
11203 acl_save_exec_prefix
="$exec_prefix"
11204 exec_prefix
="$acl_final_exec_prefix"
11206 exec_prefix
="$acl_save_exec_prefix"
11207 prefix
="$acl_save_prefix"
11209 if test "X$x" = "X-L$additional_libdir"; then
11214 if test -z "$haveit"; then
11215 if test -d "$additional_libdir"; then
11216 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11220 for x
in $LDFLAGS $LTLIBINTL; do
11222 acl_save_prefix
="$prefix"
11223 prefix
="$acl_final_prefix"
11224 acl_save_exec_prefix
="$exec_prefix"
11225 exec_prefix
="$acl_final_exec_prefix"
11227 exec_prefix
="$acl_save_exec_prefix"
11228 prefix
="$acl_save_prefix"
11230 if test "X$x" = "X-L$additional_libdir"; then
11235 if test -z "$haveit"; then
11236 if test -d "$additional_libdir"; then
11237 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11244 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11245 if test "$enable_rpath" != no
; then
11247 for x
in $rpathdirs; do
11248 if test "X$x" = "X$dir"; then
11253 if test -z "$haveit"; then
11254 rpathdirs
="$rpathdirs $dir"
11257 for x
in $ltrpathdirs; do
11258 if test "X$x" = "X$dir"; then
11263 if test -z "$haveit"; then
11264 ltrpathdirs
="$ltrpathdirs $dir"
11269 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11272 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11275 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
11276 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11282 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
11283 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11289 if test "X$rpathdirs" != "X"; then
11290 if test -n "$acl_hardcode_libdir_separator"; then
11292 for found_dir
in $rpathdirs; do
11293 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11295 acl_save_libdir
="$libdir"
11297 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11298 libdir
="$acl_save_libdir"
11299 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
11301 for found_dir
in $rpathdirs; do
11302 acl_save_libdir
="$libdir"
11303 libdir
="$found_dir"
11304 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11305 libdir
="$acl_save_libdir"
11306 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
11310 if test "X$ltrpathdirs" != "X"; then
11311 for found_dir
in $ltrpathdirs; do
11312 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11323 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
11324 $as_echo_n "(cached) " >&6
11326 gt_save_CPPFLAGS
="$CPPFLAGS"
11327 CPPFLAGS
="$CPPFLAGS $INCINTL"
11328 gt_save_LIBS
="$LIBS"
11329 LIBS
="$LIBS $LIBINTL"
11330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 #include <libintl.h>
11334 $gt_revision_test_code
11335 extern int _nl_msg_cat_cntr;
11340 const char *_nl_expand_alias (const char *);
11346 bindtextdomain ("", "");
11347 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11353 if ac_fn_c_try_link
"$LINENO"; then :
11354 eval "$gt_func_gnugettext_libintl=yes"
11356 eval "$gt_func_gnugettext_libintl=no"
11358 rm -f core conftest.err conftest.
$ac_objext \
11359 conftest
$ac_exeext conftest.
$ac_ext
11360 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11361 LIBS
="$LIBS $LIBICONV"
11362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11365 #include <libintl.h>
11366 $gt_revision_test_code
11367 extern int _nl_msg_cat_cntr;
11372 const char *_nl_expand_alias (const char *);
11378 bindtextdomain ("", "");
11379 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11385 if ac_fn_c_try_link
"$LINENO"; then :
11386 LIBINTL
="$LIBINTL $LIBICONV"
11387 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
11388 eval "$gt_func_gnugettext_libintl=yes"
11391 rm -f core conftest.err conftest.
$ac_objext \
11392 conftest
$ac_exeext conftest.
$ac_ext
11394 CPPFLAGS
="$gt_save_CPPFLAGS"
11395 LIBS
="$gt_save_LIBS"
11397 eval ac_res
=\$
$gt_func_gnugettext_libintl
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11399 $as_echo "$ac_res" >&6; }
11402 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11403 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11404 && test "$PACKAGE" != gettext-runtime \
11405 && test "$PACKAGE" != gettext-tools
; }; then
11406 gt_use_preinstalled_gnugettext
=yes
11414 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11415 nls_cv_use_gnu_gettext
=yes
11419 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11420 BUILD_INCLUDED_LIBINTL
=yes
11421 USE_INCLUDED_LIBINTL
=yes
11422 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11423 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11424 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11428 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11429 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11434 if test -n "$INTL_MACOSX_LIBS"; then
11435 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11436 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11437 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
11438 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
11442 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11443 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11445 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11453 $as_echo_n "checking whether to use NLS... " >&6; }
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11455 $as_echo "$USE_NLS" >&6; }
11456 if test "$USE_NLS" = "yes"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11458 $as_echo_n "checking where the gettext function comes from... " >&6; }
11459 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11460 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11461 gt_source
="external libintl"
11466 gt_source
="included intl directory"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11469 $as_echo "$gt_source" >&6; }
11472 if test "$USE_NLS" = "yes"; then
11474 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11475 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11477 $as_echo_n "checking how to link with libintl... " >&6; }
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11479 $as_echo "$LIBINTL" >&6; }
11481 for element
in $INCINTL; do
11483 for x
in $CPPFLAGS; do
11485 acl_save_prefix
="$prefix"
11486 prefix
="$acl_final_prefix"
11487 acl_save_exec_prefix
="$exec_prefix"
11488 exec_prefix
="$acl_final_exec_prefix"
11490 exec_prefix
="$acl_save_exec_prefix"
11491 prefix
="$acl_save_prefix"
11493 if test "X$x" = "X$element"; then
11498 if test -z "$haveit"; then
11499 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11506 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11509 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11517 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
11518 BUILD_INCLUDED_LIBINTL
=yes
11525 nls_cv_header_intl
=
11526 nls_cv_header_libgt
=
11538 if test "$USE_INCLUDED_LIBINTL" = yes; then
11539 INTLOBJS
="\$(GETTOBJS)"
11543 INTL_LIBTOOL_SUFFIX_PREFIX
=
11547 INTLLIBS
="$LIBINTL"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11556 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11558 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11559 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
11560 $as_echo_n "(cached) " >&6
11562 cat >conftest.
make <<\_ACEOF
11565 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11567 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11568 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11569 *@@@
%%%=?
*=@@@
%%%*)
11570 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11572 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11574 rm -f conftest.
make
11576 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 SET_MAKE
="MAKE=${MAKE-make}"
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11587 $as_echo_n "checking for GNU make... " >&6; }
11588 if ${_cv_gnu_make_command+:} false
; then :
11589 $as_echo_n "(cached) " >&6
11591 _cv_gnu_make_command
='' ;
11592 if test -n "$FORCE_NATIVE_MAKE" ; then
11595 MAKES
="make gmake gnumake"
11597 for a
in "$MAKE" $MAKES ; do
11598 if test -z "$a" ; then continue ; fi ;
11599 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
11600 _cv_gnu_make_command
=$a ;
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11607 $as_echo "$_cv_gnu_make_command" >&6; } ;
11608 if test "x$_cv_gnu_make_command" != "x" ; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11615 $as_echo "\"Not found\"" >&6; };
11620 # Extract the first word of "ln", so it can be a program name with args.
11621 set dummy
ln; ac_word
=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_LN+:} false
; then :
11625 $as_echo_n "(cached) " >&6
11629 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
11632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11633 for as_dir
in $PATH
11636 test -z "$as_dir" && as_dir
=.
11637 for ac_exec_ext
in '' $ac_executable_extensions; do
11638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="ln"
11652 if test -n "$LN"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11654 $as_echo "$LN" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11663 $as_echo_n "checking whether ln -s works... " >&6; }
11665 if test "$LN_S" = "ln -s"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667 $as_echo "yes" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11670 $as_echo "no, using $LN_S" >&6; }
11673 # Extract the first word of "mv", so it can be a program name with args.
11674 set dummy
mv; ac_word
=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_MV+:} false
; then :
11678 $as_echo_n "(cached) " >&6
11682 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
11685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11686 for as_dir
in $PATH
11689 test -z "$as_dir" && as_dir
=.
11690 for ac_exec_ext
in '' $ac_executable_extensions; do
11691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
11705 if test -n "$MV"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11707 $as_echo "$MV" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11714 # Extract the first word of "cp", so it can be a program name with args.
11715 set dummy
cp; ac_word
=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_CP+:} false
; then :
11719 $as_echo_n "(cached) " >&6
11723 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
11726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11727 for as_dir
in $PATH
11730 test -z "$as_dir" && as_dir
=.
11731 for ac_exec_ext
in '' $ac_executable_extensions; do
11732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
11746 if test -n "$CP"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11748 $as_echo "$CP" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 # Extract the first word of "rm", so it can be a program name with args.
11756 set dummy
rm; ac_word
=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_path_RM+:} false
; then :
11760 $as_echo_n "(cached) " >&6
11764 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
11767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11768 for as_dir
in $PATH
11771 test -z "$as_dir" && as_dir
=.
11772 for ac_exec_ext
in '' $ac_executable_extensions; do
11773 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11774 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
11787 if test -n "$RM"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11789 $as_echo "$RM" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11796 # Extract the first word of "chmod", so it can be a program name with args.
11797 set dummy
chmod; ac_word
=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_path_CHMOD+:} false
; then :
11801 $as_echo_n "(cached) " >&6
11805 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
11808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11809 for as_dir
in $PATH
11812 test -z "$as_dir" && as_dir
=.
11813 for ac_exec_ext
in '' $ac_executable_extensions; do
11814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11815 ac_cv_path_CHMOD
="$as_dir/$ac_word$ac_exec_ext"
11816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
=":"
11827 CHMOD
=$ac_cv_path_CHMOD
11828 if test -n "$CHMOD"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11830 $as_echo "$CHMOD" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11837 for ac_prog
in gawk mawk nawk
awk
11839 # Extract the first word of "$ac_prog", so it can be a program name with args.
11840 set dummy
$ac_prog; ac_word
=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_AWK+:} false
; then :
11844 $as_echo_n "(cached) " >&6
11846 if test -n "$AWK"; then
11847 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11850 for as_dir
in $PATH
11853 test -z "$as_dir" && as_dir
=.
11854 for ac_exec_ext
in '' $ac_executable_extensions; do
11855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_AWK
="$ac_prog"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 AWK
=$ac_cv_prog_AWK
11867 if test -n "$AWK"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11869 $as_echo "$AWK" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 test -n "$AWK" && break
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11880 $as_echo_n "checking for egrep... " >&6; }
11881 if ${ac_cv_path_EGREP+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
11885 then ac_cv_path_EGREP
="$GREP -E"
11887 if test -z "$EGREP"; then
11888 ac_path_EGREP_found
=false
11889 # Loop through the user's path and test for each of PROGNAME-LIST
11890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11891 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11894 test -z "$as_dir" && as_dir
=.
11895 for ac_prog
in egrep; do
11896 for ac_exec_ext
in '' $ac_executable_extensions; do
11897 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
11898 as_fn_executable_p
"$ac_path_EGREP" ||
continue
11899 # Check for GNU ac_path_EGREP and select it if it is found.
11900 # Check for GNU $ac_path_EGREP
11901 case `"$ac_path_EGREP" --version 2>&1` in
11903 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
11906 $as_echo_n 0123456789 >"conftest.in"
11909 cat "conftest.in" "conftest.in" >"conftest.tmp"
11910 mv "conftest.tmp" "conftest.in"
11911 cp "conftest.in" "conftest.nl"
11912 $as_echo 'EGREP' >> "conftest.nl"
11913 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11914 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11915 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11916 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11917 # Best one so far, save it but keep looking for a better one
11918 ac_cv_path_EGREP
="$ac_path_EGREP"
11919 ac_path_EGREP_max
=$ac_count
11921 # 10*(2^10) chars as input seems more than enough
11922 test $ac_count -gt 10 && break
11924 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11927 $ac_path_EGREP_found && break 3
11932 if test -z "$ac_cv_path_EGREP"; then
11933 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11936 ac_cv_path_EGREP
=$EGREP
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11942 $as_echo "$ac_cv_path_EGREP" >&6; }
11943 EGREP
="$ac_cv_path_EGREP"
11946 # Extract the first word of "sed", so it can be a program name with args.
11947 set dummy
sed; ac_word
=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_SED+:} false
; then :
11951 $as_echo_n "(cached) " >&6
11955 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
11958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11959 for as_dir
in $PATH
11962 test -z "$as_dir" && as_dir
=.
11963 for ac_exec_ext
in '' $ac_executable_extensions; do
11964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
11977 SED
=$ac_cv_path_SED
11978 if test -n "$SED"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11980 $as_echo "$SED" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11987 # Extract the first word of "perl", so it can be a program name with args.
11988 set dummy perl
; ac_word
=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_PERL+:} false
; then :
11992 $as_echo_n "(cached) " >&6
11996 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
11999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12000 for as_dir
in $PATH
12003 test -z "$as_dir" && as_dir
=.
12004 for ac_exec_ext
in '' $ac_executable_extensions; do
12005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12006 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl"
12018 PERL
=$ac_cv_path_PERL
12019 if test -n "$PERL"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12021 $as_echo "$PERL" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12028 # Extract the first word of "ldconfig", so it can be a program name with args.
12029 set dummy ldconfig
; ac_word
=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_LDCONFIG+:} false
; then :
12033 $as_echo_n "(cached) " >&6
12037 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
12040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12041 for as_dir
in $PATH
12044 test -z "$as_dir" && as_dir
=.
12045 for ac_exec_ext
in '' $ac_executable_extensions; do
12046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_path_LDCONFIG
="$as_dir/$ac_word$ac_exec_ext"
12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
=":"
12059 LDCONFIG
=$ac_cv_path_LDCONFIG
12060 if test -n "$LDCONFIG"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12062 $as_echo "$LDCONFIG" >&6; }
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12069 if test -n "$ac_tool_prefix"; then
12070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12071 set dummy
${ac_tool_prefix}ar; ac_word
=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_AR+:} false
; then :
12075 $as_echo_n "(cached) " >&6
12077 if test -n "$AR"; then
12078 ac_cv_prog_AR
="$AR" # Let the user override the test.
12080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12081 for as_dir
in $PATH
12084 test -z "$as_dir" && as_dir
=.
12085 for ac_exec_ext
in '' $ac_executable_extensions; do
12086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_AR
="${ac_tool_prefix}ar"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 if test -n "$AR"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12100 $as_echo "$AR" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12108 if test -z "$ac_cv_prog_AR"; then
12110 # Extract the first word of "ar", so it can be a program name with args.
12111 set dummy
ar; ac_word
=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
12115 $as_echo_n "(cached) " >&6
12117 if test -n "$ac_ct_AR"; then
12118 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
12120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12121 for as_dir
in $PATH
12124 test -z "$as_dir" && as_dir
=.
12125 for ac_exec_ext
in '' $ac_executable_extensions; do
12126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_prog_ac_ct_AR
="ar"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
12138 if test -n "$ac_ct_AR"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12140 $as_echo "$ac_ct_AR" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12146 if test "x$ac_ct_AR" = x
; then
12149 case $cross_compiling:$ac_tool_warned in
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12153 ac_tool_warned
=yes ;;
12158 AR
="$ac_cv_prog_AR"
12161 if test -n "$ac_tool_prefix"; then
12162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_RANLIB+:} false
; then :
12167 $as_echo_n "(cached) " >&6
12169 if test -n "$RANLIB"; then
12170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
12172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12173 for as_dir
in $PATH
12176 test -z "$as_dir" && as_dir
=.
12177 for ac_exec_ext
in '' $ac_executable_extensions; do
12178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 RANLIB
=$ac_cv_prog_RANLIB
12190 if test -n "$RANLIB"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12192 $as_echo "$RANLIB" >&6; }
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12200 if test -z "$ac_cv_prog_RANLIB"; then
12201 ac_ct_RANLIB
=$RANLIB
12202 # Extract the first word of "ranlib", so it can be a program name with args.
12203 set dummy ranlib
; ac_word
=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
12207 $as_echo_n "(cached) " >&6
12209 if test -n "$ac_ct_RANLIB"; then
12210 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
12212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12213 for as_dir
in $PATH
12216 test -z "$as_dir" && as_dir
=.
12217 for ac_exec_ext
in '' $ac_executable_extensions; do
12218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_prog_ac_ct_RANLIB
="ranlib"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
12230 if test -n "$ac_ct_RANLIB"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12232 $as_echo "$ac_ct_RANLIB" >&6; }
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12238 if test "x$ac_ct_RANLIB" = x
; then
12241 case $cross_compiling:$ac_tool_warned in
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12245 ac_tool_warned
=yes ;;
12247 RANLIB
=$ac_ct_RANLIB
12250 RANLIB
="$ac_cv_prog_RANLIB"
12253 if test -n "$ac_tool_prefix"; then
12254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12255 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_STRIP+:} false
; then :
12259 $as_echo_n "(cached) " >&6
12261 if test -n "$STRIP"; then
12262 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
12264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12265 for as_dir
in $PATH
12268 test -z "$as_dir" && as_dir
=.
12269 for ac_exec_ext
in '' $ac_executable_extensions; do
12270 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12271 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 STRIP
=$ac_cv_prog_STRIP
12282 if test -n "$STRIP"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12284 $as_echo "$STRIP" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12292 if test -z "$ac_cv_prog_STRIP"; then
12294 # Extract the first word of "strip", so it can be a program name with args.
12295 set dummy strip
; ac_word
=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
12299 $as_echo_n "(cached) " >&6
12301 if test -n "$ac_ct_STRIP"; then
12302 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
12304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12305 for as_dir
in $PATH
12308 test -z "$as_dir" && as_dir
=.
12309 for ac_exec_ext
in '' $ac_executable_extensions; do
12310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_prog_ac_ct_STRIP
="strip"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
12322 if test -n "$ac_ct_STRIP"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12324 $as_echo "$ac_ct_STRIP" >&6; }
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12330 if test "x$ac_ct_STRIP" = x
; then
12333 case $cross_compiling:$ac_tool_warned in
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12337 ac_tool_warned
=yes ;;
12342 STRIP
="$ac_cv_prog_STRIP"
12345 # Extract the first word of "makeinfo", so it can be a program name with args.
12346 set dummy makeinfo
; ac_word
=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_MAKEINFO+:} false
; then :
12350 $as_echo_n "(cached) " >&6
12352 if test -n "$MAKEINFO"; then
12353 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
12355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12356 for as_dir
in $PATH
12359 test -z "$as_dir" && as_dir
=.
12360 for ac_exec_ext
in '' $ac_executable_extensions; do
12361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_MAKEINFO
="makeinfo"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 MAKEINFO
=$ac_cv_prog_MAKEINFO
12373 if test -n "$MAKEINFO"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12375 $as_echo "$MAKEINFO" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 if test "_$MAKEINFO" = "_"; then
12383 MAKEINFO
="echo Makeinfo is missing. Info documentation will not be built."
12385 case "$MAKEINFO" in
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12388 *** Makeinfo is missing. Info documentation will not be built." >&5
12389 $as_echo "$as_me: WARNING:
12390 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12398 # See if we need a separate native compiler.
12399 if test $cross_compiling = no
; then
12403 for ac_prog
in gcc cc
12405 # Extract the first word of "$ac_prog", so it can be a program name with args.
12406 set dummy
$ac_prog; ac_word
=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if ${ac_cv_prog_BUILD_CC+:} false
; then :
12410 $as_echo_n "(cached) " >&6
12412 if test -n "$BUILD_CC"; then
12413 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
12415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12416 for as_dir
in $PATH
12419 test -z "$as_dir" && as_dir
=.
12420 for ac_exec_ext
in '' $ac_executable_extensions; do
12421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_prog_BUILD_CC
="$ac_prog"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 BUILD_CC
=$ac_cv_prog_BUILD_CC
12433 if test -n "$BUILD_CC"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12435 $as_echo "$BUILD_CC" >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12442 test -n "$BUILD_CC" && break
12446 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 attr
/xattr.h linux
/falloc.h linux
/fd.h linux
/fsmap.h linux
/major.h linux
/loop.h linux
/types.h net
/if_dl.h netinet
/in.h sys
/acl.h sys
/disklabel.h sys
/disk.h sys
/file.h sys
/ioctl.h sys
/key.h sys
/mkdev.h sys
/mman.h sys
/mount.h sys
/prctl.h sys
/resource.h sys
/select.h sys
/socket.h sys
/sockio.h sys
/stat.h sys
/syscall.h sys
/sysctl.h sys
/sysmacros.h sys
/time.h sys
/types.h sys
/un.h sys
/wait.h sys
/xattr.h
12448 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12449 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12460 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12462 for i
in dd gdd
; do
12463 if "$i" if=/dev
/null of
=/dev
/null count
=1 bs
=10k
2>/dev
/null iflag
=fullblock oflag
=append
; then
12468 if test -n "$DD" ; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12470 $as_echo "$DD" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12473 $as_echo "not found, using dd" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12476 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12480 for ac_header
in net
/if.h
12482 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12483 #if HAVE_SYS_TYPES_H
12484 #include <sys/types.h>
12486 #if HAVE_SYS_SOCKET
12487 #include <sys/socket.h>
12491 if test "x$ac_cv_header_net_if_h" = xyes
; then :
12492 cat >>confdefs.h
<<_ACEOF
12493 #define HAVE_NET_IF_H 1
12500 for ac_func
in vprintf
12502 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
12503 if test "x$ac_cv_func_vprintf" = xyes
; then :
12504 cat >>confdefs.h
<<_ACEOF
12505 #define HAVE_VPRINTF 1
12508 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
12509 if test "x$ac_cv_func__doprnt" = xyes
; then :
12511 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12519 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12521 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
; then :
12523 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12527 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12528 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
; then :
12530 cat >>confdefs.h
<<_ACEOF
12531 #define HAVE_STRUCT_STAT_ST_ATIM 1
12537 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12539 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12541 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12545 ac_fn_c_check_decl
"$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12547 if test "x$ac_cv_have_decl_llseek" = xyes
; then :
12549 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12553 ac_fn_c_check_decl
"$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12554 #define _LARGEFILE64_SOURCE
12555 #include <unistd.h>
12557 if test "x$ac_cv_have_decl_lseek64" = xyes
; then :
12559 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12563 # The cast to long int works around a bug in the HP C Compiler
12564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566 # This bug is HP SR number 8606223364.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12568 $as_echo_n "checking size of short... " >&6; }
12569 if ${ac_cv_sizeof_short+:} false
; then :
12570 $as_echo_n "(cached) " >&6
12572 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12575 if test "$ac_cv_type_short" = yes; then
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578 as_fn_error
77 "cannot compute sizeof (short)
12579 See \`config.log' for more details" "$LINENO" 5; }
12581 ac_cv_sizeof_short
=0
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12587 $as_echo "$ac_cv_sizeof_short" >&6; }
12591 cat >>confdefs.h
<<_ACEOF
12592 #define SIZEOF_SHORT $ac_cv_sizeof_short
12596 # The cast to long int works around a bug in the HP C Compiler
12597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599 # This bug is HP SR number 8606223364.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12601 $as_echo_n "checking size of int... " >&6; }
12602 if ${ac_cv_sizeof_int+:} false
; then :
12603 $as_echo_n "(cached) " >&6
12605 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12608 if test "$ac_cv_type_int" = yes; then
12609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error
77 "cannot compute sizeof (int)
12612 See \`config.log' for more details" "$LINENO" 5; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12620 $as_echo "$ac_cv_sizeof_int" >&6; }
12624 cat >>confdefs.h
<<_ACEOF
12625 #define SIZEOF_INT $ac_cv_sizeof_int
12629 # The cast to long int works around a bug in the HP C Compiler
12630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12632 # This bug is HP SR number 8606223364.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12634 $as_echo_n "checking size of long... " >&6; }
12635 if ${ac_cv_sizeof_long+:} false
; then :
12636 $as_echo_n "(cached) " >&6
12638 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12641 if test "$ac_cv_type_long" = yes; then
12642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644 as_fn_error
77 "cannot compute sizeof (long)
12645 See \`config.log' for more details" "$LINENO" 5; }
12647 ac_cv_sizeof_long
=0
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12653 $as_echo "$ac_cv_sizeof_long" >&6; }
12657 cat >>confdefs.h
<<_ACEOF
12658 #define SIZEOF_LONG $ac_cv_sizeof_long
12662 # The cast to long int works around a bug in the HP C Compiler
12663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12665 # This bug is HP SR number 8606223364.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12667 $as_echo_n "checking size of long long... " >&6; }
12668 if ${ac_cv_sizeof_long_long+:} false
; then :
12669 $as_echo_n "(cached) " >&6
12671 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12674 if test "$ac_cv_type_long_long" = yes; then
12675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12677 as_fn_error
77 "cannot compute sizeof (long long)
12678 See \`config.log' for more details" "$LINENO" 5; }
12680 ac_cv_sizeof_long_long
=0
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12686 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12690 cat >>confdefs.h
<<_ACEOF
12691 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12695 # The cast to long int works around a bug in the HP C Compiler
12696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12698 # This bug is HP SR number 8606223364.
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12700 $as_echo_n "checking size of off_t... " >&6; }
12701 if ${ac_cv_sizeof_off_t+:} false
; then :
12702 $as_echo_n "(cached) " >&6
12704 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12707 if test "$ac_cv_type_off_t" = yes; then
12708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 as_fn_error
77 "cannot compute sizeof (off_t)
12711 See \`config.log' for more details" "$LINENO" 5; }
12713 ac_cv_sizeof_off_t
=0
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12719 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12723 cat >>confdefs.h
<<_ACEOF
12724 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12728 # The cast to long int works around a bug in the HP C Compiler
12729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12731 # This bug is HP SR number 8606223364.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12733 $as_echo_n "checking size of time_t... " >&6; }
12734 if ${ac_cv_sizeof_time_t+:} false
; then :
12735 $as_echo_n "(cached) " >&6
12737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12740 if test "$ac_cv_type_time_t" = yes; then
12741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12743 as_fn_error
77 "cannot compute sizeof (time_t)
12744 See \`config.log' for more details" "$LINENO" 5; }
12746 ac_cv_sizeof_time_t
=0
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12752 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12756 cat >>confdefs.h
<<_ACEOF
12757 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12761 SIZEOF_SHORT
=$ac_cv_sizeof_short
12762 SIZEOF_INT
=$ac_cv_sizeof_int
12763 SIZEOF_LONG
=$ac_cv_sizeof_long
12764 SIZEOF_LONG_LONG
=$ac_cv_sizeof_long_long
12765 SIZEOF_OFF_T
=$ac_cv_sizeof_off_t
12766 SIZEOF_TIME_T
=$ac_cv_sizeof_time_t
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12774 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12775 if ${ac_cv_c_bigendian+:} false
; then :
12776 $as_echo_n "(cached) " >&6
12778 ac_cv_c_bigendian
=unknown
12779 # See if we're dealing with a universal compiler.
12780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #ifndef __APPLE_CC__
12783 not a universal capable compiler
12788 if ac_fn_c_try_compile
"$LINENO"; then :
12790 # Check for potential -arch flags. It is not universal unless
12791 # there are at least two -arch flags with different values.
12794 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12795 if test -n "$ac_prev"; then
12797 i?
86 | x86_64 | ppc | ppc64
)
12798 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12801 ac_cv_c_bigendian
=universal
12807 elif test "x$ac_word" = "x-arch"; then
12812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12813 if test $ac_cv_c_bigendian = unknown
; then
12814 # See if sys/param.h defines the BYTE_ORDER macro.
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 #include <sys/types.h>
12818 #include <sys/param.h>
12823 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12824 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12826 bogus endian macros
12833 if ac_fn_c_try_compile
"$LINENO"; then :
12834 # It does; now see whether it defined to BIG_ENDIAN or not.
12835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837 #include <sys/types.h>
12838 #include <sys/param.h>
12843 #if BYTE_ORDER != BIG_ENDIAN
12851 if ac_fn_c_try_compile
"$LINENO"; then :
12852 ac_cv_c_bigendian
=yes
12854 ac_cv_c_bigendian
=no
12856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12860 if test $ac_cv_c_bigendian = unknown
; then
12861 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 #include <limits.h>
12869 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12870 bogus endian macros
12877 if ac_fn_c_try_compile
"$LINENO"; then :
12878 # It does; now see whether it defined to _BIG_ENDIAN or not.
12879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 #include <limits.h>
12886 #ifndef _BIG_ENDIAN
12894 if ac_fn_c_try_compile
"$LINENO"; then :
12895 ac_cv_c_bigendian
=yes
12897 ac_cv_c_bigendian
=no
12899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12903 if test $ac_cv_c_bigendian = unknown
; then
12904 # Compile a test program.
12905 if test "$cross_compiling" = yes; then :
12906 # Try to guess by grepping values from an object file.
12907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 short int ascii_mm[] =
12910 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12911 short int ascii_ii[] =
12912 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12913 int use_ascii (int i) {
12914 return ascii_mm[i] + ascii_ii[i];
12916 short int ebcdic_ii[] =
12917 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12918 short int ebcdic_mm[] =
12919 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12920 int use_ebcdic (int i) {
12921 return ebcdic_mm[i] + ebcdic_ii[i];
12928 return use_ascii (foo) == use_ebcdic (foo);
12933 if ac_fn_c_try_compile
"$LINENO"; then :
12934 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12935 ac_cv_c_bigendian
=yes
12937 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12938 if test "$ac_cv_c_bigendian" = unknown
; then
12939 ac_cv_c_bigendian
=no
12941 # finding both strings is unlikely to happen, but who knows?
12942 ac_cv_c_bigendian
=unknown
12946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 $ac_includes_default
12955 /* Are we little or big endian? From Harbison&Steele. */
12959 char c[sizeof (long int)];
12962 return u.c[sizeof (long int) - 1] == 1;
12968 if ac_fn_c_try_run
"$LINENO"; then :
12969 ac_cv_c_bigendian
=no
12971 ac_cv_c_bigendian
=yes
12973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12974 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12980 $as_echo "$ac_cv_c_bigendian" >&6; }
12981 case $ac_cv_c_bigendian in #(
12983 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12989 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12993 as_fn_error $?
"unknown endianness
12994 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12997 if test $cross_compiling = no
; then
12998 BUILD_CC
="$BUILD_CC" CPP
="$CPP" /bin
/sh
$ac_aux_dir/parse-types.sh
13000 CROSS_COMPILE
="1" BUILD_CC
="$BUILD_CC" CPP
="$CPP" /bin
/sh
$ac_aux_dir/parse-types.sh
13002 ASM_TYPES_HEADER
=.
/asm_types.h
13004 echo "/* These defines are needed for the public ext2fs.h header file */" \
13006 if grep HAVE_SYS_TYPES_H confdefs.h
> tmp_config.$$
; then
13007 uniq tmp_config.$$
>> public_config.h
13009 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13011 if grep WORDS_BIGENDIAN confdefs.h
> tmp_config.$$
; then
13012 uniq tmp_config.$$
>> public_config.h
13014 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13016 rm -f tmp_config.$$
13017 PUBLIC_CONFIG_HEADER
=.
/public_config.h
13019 for ac_header
in inttypes.h
13021 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13022 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_INTTYPES_H 1
13031 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13032 if test "x$ac_cv_type_intptr_t" = xyes
; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define HAVE_INTPTR_T 1
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13042 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13043 if ${e2fsprogs_cv_struct_st_flags+:} false
; then :
13044 $as_echo_n "(cached) " >&6
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 #include <sys/stat.h>
13052 struct stat stat; stat.st_flags = 0;
13057 if ac_fn_c_try_compile
"$LINENO"; then :
13058 e2fsprogs_cv_struct_st_flags
=yes
13060 e2fsprogs_cv_struct_st_flags
=no
13062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13066 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13067 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13069 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13070 if ${e2fsprogs_cv_struct_st_flags_immut+:} false
; then :
13071 $as_echo_n "(cached) " >&6
13073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 #include <sys/stat.h>
13079 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13084 if ac_fn_c_try_compile
"$LINENO"; then :
13085 e2fsprogs_cv_struct_st_flags_immut
=yes
13087 e2fsprogs_cv_struct_st_flags_immut
=no
13089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13093 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13094 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13096 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13100 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13101 #include <sys/socket.h>
13103 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
13105 cat >>confdefs.h
<<_ACEOF
13106 #define HAVE_SA_LEN 1
13111 if test -n "$BLKID_CMT"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13113 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13114 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13115 $as_echo_n "(cached) " >&6
13117 ac_func_search_save_LIBS
=$LIBS
13118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13121 /* Override any GCC internal prototype to avoid an error.
13122 Use char because int might match the return type of a GCC
13123 builtin and then its argument prototype would still apply. */
13127 char blkid_probe_all ();
13131 return blkid_probe_all ();
13136 for ac_lib
in '' blkid
; do
13137 if test -z "$ac_lib"; then
13138 ac_res
="none required"
13141 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13143 if ac_fn_c_try_link
"$LINENO"; then :
13144 ac_cv_search_blkid_probe_all
=$ac_res
13146 rm -f core conftest.err conftest.
$ac_objext \
13148 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13152 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13155 ac_cv_search_blkid_probe_all
=no
13157 rm conftest.
$ac_ext
13158 LIBS
=$ac_func_search_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13161 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13162 ac_res
=$ac_cv_search_blkid_probe_all
13163 if test "$ac_res" != no
; then :
13164 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13169 if test -n "$DLOPEN_LIB" ; then
13170 ac_cv_func_dlopen
=yes
13172 for ac_func
in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf
usleep utime utimes valloc
13174 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13177 cat >>confdefs.h
<<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13186 $as_echo_n "checking for socket in -lsocket... " >&6; }
13187 if ${ac_cv_lib_socket_socket+:} false
; then :
13188 $as_echo_n "(cached) " >&6
13190 ac_check_lib_save_LIBS
=$LIBS
13191 LIBS
="-lsocket $LIBS"
13192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13210 if ac_fn_c_try_link
"$LINENO"; then :
13211 ac_cv_lib_socket_socket
=yes
13213 ac_cv_lib_socket_socket
=no
13215 rm -f core conftest.err conftest.
$ac_objext \
13216 conftest
$ac_exeext conftest.
$ac_ext
13217 LIBS
=$ac_check_lib_save_LIBS
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13220 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13221 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
13222 SOCKET_LIB
=-lsocket
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13227 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13228 if ${ac_cv_lib_magic_magic_file+:} false
; then :
13229 $as_echo_n "(cached) " >&6
13231 ac_check_lib_save_LIBS
=$LIBS
13232 LIBS
="-lmagic $LIBS"
13233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13242 char magic_file ();
13246 return magic_file ();
13251 if ac_fn_c_try_link
"$LINENO"; then :
13252 ac_cv_lib_magic_magic_file
=yes
13254 ac_cv_lib_magic_magic_file
=no
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13258 LIBS
=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13261 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13262 if test "x$ac_cv_lib_magic_magic_file" = xyes
; then :
13264 for ac_header
in magic.h
13266 ac_fn_c_check_header_mongrel
"$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13267 if test "x$ac_cv_header_magic_h" = xyes
; then :
13268 cat >>confdefs.h
<<_ACEOF
13269 #define HAVE_MAGIC_H 1
13278 if test "$ac_cv_func_dlopen" = yes ; then
13279 MAGIC_LIB
=$DLOPEN_LIB
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13283 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13284 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
13285 $as_echo_n "(cached) " >&6
13287 ac_check_lib_save_LIBS
=$LIBS
13289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13298 char clock_gettime ();
13302 return clock_gettime ();
13307 if ac_fn_c_try_link
"$LINENO"; then :
13308 ac_cv_lib_rt_clock_gettime
=yes
13310 ac_cv_lib_rt_clock_gettime
=no
13312 rm -f core conftest.err conftest.
$ac_objext \
13313 conftest
$ac_exeext conftest.
$ac_ext
13314 LIBS
=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13317 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13318 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
13319 CLOCK_GETTIME_LIB
=-lrt
13325 # Check whether --enable-fuse2fs was given.
13326 if test "${enable_fuse2fs+set}" = set; then :
13327 enableval
=$enable_fuse2fs; if test "$enableval" = "no"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13331 $as_echo "Disabling fuse2fs" >&6; }
13333 for ac_header
in pthread.h fuse.h
13335 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13336 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13337 #define FUSE_USE_VERSION 29
13339 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13340 cat >>confdefs.h
<<_ACEOF
13341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $?
"Cannot find fuse2fs headers.
13348 See \`config.log' for more details" "$LINENO" 5; }
13354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #define FUSE_USE_VERSION 29
13358 #include <linux/fs.h>
13359 #include <linux/falloc.h>
13360 #include <linux/xattr.h>
13371 if ac_fn_c_try_cpp
"$LINENO"; then :
13374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13376 as_fn_error $?
"Cannot find fuse2fs Linux headers.
13377 See \`config.log' for more details" "$LINENO" 5; }
13379 rm -f conftest.err conftest.i conftest.
$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13382 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13383 if ${ac_cv_lib_osxfuse_fuse_main+:} false
; then :
13384 $as_echo_n "(cached) " >&6
13386 ac_check_lib_save_LIBS
=$LIBS
13387 LIBS
="-losxfuse $LIBS"
13388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13401 return fuse_main ();
13406 if ac_fn_c_try_link
"$LINENO"; then :
13407 ac_cv_lib_osxfuse_fuse_main
=yes
13409 ac_cv_lib_osxfuse_fuse_main
=no
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13413 LIBS
=$ac_check_lib_save_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13416 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13417 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
; then :
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13421 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13422 if ${ac_cv_lib_fuse_fuse_main+:} false
; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13426 LIBS
="-lfuse $LIBS"
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13440 return fuse_main ();
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_lib_fuse_fuse_main
=yes
13448 ac_cv_lib_fuse_fuse_main
=no
13450 rm -f core conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13452 LIBS
=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13455 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13456 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
; then :
13459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13461 as_fn_error $?
"Cannot find fuse library.
13462 See \`config.log' for more details" "$LINENO" 5; }
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13468 $as_echo "Enabling fuse2fs" >&6; }
13472 for ac_header
in pthread.h fuse.h
13474 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13476 #define FUSE_USE_VERSION 29
13478 # include <linux/fs.h>
13479 # include <linux/falloc.h>
13480 # include <linux/xattr.h>
13483 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13484 cat >>confdefs.h
<<_ACEOF
13485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13494 if test -z "$FUSE_CMT"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13497 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13498 if ${ac_cv_lib_osxfuse_fuse_main+:} false
; then :
13499 $as_echo_n "(cached) " >&6
13501 ac_check_lib_save_LIBS
=$LIBS
13502 LIBS
="-losxfuse $LIBS"
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13516 return fuse_main ();
13521 if ac_fn_c_try_link
"$LINENO"; then :
13522 ac_cv_lib_osxfuse_fuse_main
=yes
13524 ac_cv_lib_osxfuse_fuse_main
=no
13526 rm -f core conftest.err conftest.
$ac_objext \
13527 conftest
$ac_exeext conftest.
$ac_ext
13528 LIBS
=$ac_check_lib_save_LIBS
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13531 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13532 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
; then :
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13536 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13537 if ${ac_cv_lib_fuse_fuse_main+:} false
; then :
13538 $as_echo_n "(cached) " >&6
13540 ac_check_lib_save_LIBS
=$LIBS
13541 LIBS
="-lfuse $LIBS"
13542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13555 return fuse_main ();
13560 if ac_fn_c_try_link
"$LINENO"; then :
13561 ac_cv_lib_fuse_fuse_main
=yes
13563 ac_cv_lib_fuse_fuse_main
=no
13565 rm -f core conftest.err conftest.
$ac_objext \
13566 conftest
$ac_exeext conftest.
$ac_ext
13567 LIBS
=$ac_check_lib_save_LIBS
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13570 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13571 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
; then :
13580 if test -z "$FUSE_CMT"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13583 $as_echo "Enabling fuse2fs by default." >&6; }
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13591 $as_echo_n "checking for optreset... " >&6; }
13592 if ${ac_cv_have_optreset+:} false
; then :
13593 $as_echo_n "(cached) " >&6
13595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13597 #include <unistd.h>
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 $EGREP "optreset" >/dev
/null
2>&1; then :
13602 ac_cv_have_optreset
=yes
13604 ac_cv_have_optreset
=no
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13610 $as_echo "$ac_cv_have_optreset" >&6; }
13611 if test $ac_cv_have_optreset = yes; then
13613 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13618 echo GL_THREADS_API
: ${gl_threads_api}
13619 if test "${gl_threads_api}" != none
13621 ac_fn_c_check_func
"$LINENO" "sem_init" "ac_cv_func_sem_init"
13622 if test "x$ac_cv_func_sem_init" = xyes
; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13626 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13627 if ${ac_cv_lib_pthread_sem_init+:} false
; then :
13628 $as_echo_n "(cached) " >&6
13630 ac_check_lib_save_LIBS
=$LIBS
13631 LIBS
="-lpthread $LIBS"
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 /* Override any GCC internal prototype to avoid an error.
13636 Use char because int might match the return type of a GCC
13637 builtin and then its argument prototype would still apply. */
13645 return sem_init ();
13650 if ac_fn_c_try_link
"$LINENO"; then :
13651 ac_cv_lib_pthread_sem_init
=yes
13653 ac_cv_lib_pthread_sem_init
=no
13655 rm -f core conftest.err conftest.
$ac_objext \
13656 conftest
$ac_exeext conftest.
$ac_ext
13657 LIBS
=$ac_check_lib_save_LIBS
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13660 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13661 if test "x$ac_cv_lib_pthread_sem_init" = xyes
; then :
13662 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13664 SEM_INIT_LIB
=-lpthread
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13667 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13668 if ${ac_cv_lib_rt_sem_init+:} false
; then :
13669 $as_echo_n "(cached) " >&6
13671 ac_check_lib_save_LIBS
=$LIBS
13673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13686 return sem_init ();
13691 if ac_fn_c_try_link
"$LINENO"; then :
13692 ac_cv_lib_rt_sem_init
=yes
13694 ac_cv_lib_rt_sem_init
=no
13696 rm -f core conftest.err conftest.
$ac_objext \
13697 conftest
$ac_exeext conftest.
$ac_ext
13698 LIBS
=$ac_check_lib_save_LIBS
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13701 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13702 if test "x$ac_cv_lib_rt_sem_init" = xyes
; then :
13703 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13708 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13709 if ${ac_cv_lib_posix4_sem_init+:} false
; then :
13710 $as_echo_n "(cached) " >&6
13712 ac_check_lib_save_LIBS
=$LIBS
13713 LIBS
="-lposix4 $LIBS"
13714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13727 return sem_init ();
13732 if ac_fn_c_try_link
"$LINENO"; then :
13733 ac_cv_lib_posix4_sem_init
=yes
13735 ac_cv_lib_posix4_sem_init
=no
13737 rm -f core conftest.err conftest.
$ac_objext \
13738 conftest
$ac_exeext conftest.
$ac_ext
13739 LIBS
=$ac_check_lib_save_LIBS
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13742 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13743 if test "x$ac_cv_lib_posix4_sem_init" = xyes
; then :
13744 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13746 SEM_INIT_LIB
=-lposix4
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13757 $as_echo_n "checking for unified diff option... " >&6; }
13758 if diff -u $0 $0 > /dev
/null
2>&1 ; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13764 $as_echo "$UNI_DIFF_OPTS" >&6; }
13769 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13773 # Check whether --enable-lto was given.
13774 if test "${enable_lto+set}" = set; then :
13775 enableval
=$enable_lto;
13780 if test "$enable_lto" = "yes" ||
test "$enable_lto" = "probe"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13782 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13783 OLD_CFLAGS
="$CFLAGS"
13784 OLD_LDFLAGS
="$LDFLAGS"
13785 LTO_FLAGS
="-g -flto -ffat-lto-objects"
13786 CFLAGS
="$CFLAGS $LTO_FLAGS"
13787 LDFLAGS
="$LDFLAGS $LTO_FLAGS"
13788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13799 if ac_fn_c_try_link
"$LINENO"; then :
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801 $as_echo "yes" >&6; }
13802 lto_cflags
=$LTO_FLAGS
13803 lto_ldflags
=$LTO_FLAGS
13804 # Extract the first word of "gcc-ar", so it can be a program name with args.
13805 set dummy gcc-ar
; ac_word
=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_path_gcc_ar+:} false
; then :
13809 $as_echo_n "(cached) " >&6
13813 ac_cv_path_gcc_ar
="$gcc_ar" # Let the user override the test with a path.
13816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13817 for as_dir
in $PATH
13820 test -z "$as_dir" && as_dir
=.
13821 for ac_exec_ext
in '' $ac_executable_extensions; do
13822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13823 ac_cv_path_gcc_ar
="$as_dir/$ac_word$ac_exec_ext"
13824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 gcc_ar
=$ac_cv_path_gcc_ar
13835 if test -n "$gcc_ar"; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13837 $as_echo "$gcc_ar" >&6; }
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13844 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13845 set dummy gcc-ranlib
; ac_word
=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_path_gcc_ranlib+:} false
; then :
13849 $as_echo_n "(cached) " >&6
13851 case $gcc_ranlib in
13853 ac_cv_path_gcc_ranlib
="$gcc_ranlib" # Let the user override the test with a path.
13856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13857 for as_dir
in $PATH
13860 test -z "$as_dir" && as_dir
=.
13861 for ac_exec_ext
in '' $ac_executable_extensions; do
13862 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_path_gcc_ranlib
="$as_dir/$ac_word$ac_exec_ext"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 gcc_ranlib
=$ac_cv_path_gcc_ranlib
13875 if test -n "$gcc_ranlib"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13877 $as_echo "$gcc_ranlib" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886 $as_echo "no" >&6; }
13888 rm -f core conftest.err conftest.
$ac_objext \
13889 conftest
$ac_exeext conftest.
$ac_ext
13890 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13893 RANLIB
="${gcc_ranlib}"
13895 CFLAGS
="${OLD_CFLAGS}"
13896 LDFLAGS
="${OLD_LDFLAGS}"
13901 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13902 as_fn_error $?
"LTO not supported by compiler." "$LINENO" 5
13904 # Check whether --enable-ubsan was given.
13905 if test "${enable_ubsan+set}" = set; then :
13906 enableval
=$enable_ubsan;
13911 if test "$enable_ubsan" = "yes" ||
test "$enable_ubsan" = "probe"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13913 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13914 OLD_CFLAGS
="$CFLAGS"
13915 OLD_LDFLAGS
="$LDFLAGS"
13916 UBSAN_FLAGS
="-fsanitize=undefined"
13917 CFLAGS
="$CFLAGS $UBSAN_FLAGS"
13918 LDFLAGS
="$LDFLAGS $UBSAN_FLAGS"
13919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13930 if ac_fn_c_try_link
"$LINENO"; then :
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13932 $as_echo "yes" >&6; }
13933 ubsan_cflags
=$UBSAN_FLAGS
13934 ubsan_ldflags
=$UBSAN_FLAGS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13940 rm -f core conftest.err conftest.
$ac_objext \
13941 conftest
$ac_exeext conftest.
$ac_ext
13942 CFLAGS
="${OLD_CFLAGS}"
13943 LDFLAGS
="${OLD_LDFLAGS}"
13948 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13949 as_fn_error $?
"UBSAN not supported by compiler." "$LINENO" 5
13951 # Check whether --enable-addrsan was given.
13952 if test "${enable_addrsan+set}" = set; then :
13953 enableval
=$enable_addrsan;
13958 if test "$enable_addrsan" = "yes" ||
test "$enable_addrsan" = "probe"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13960 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13961 OLD_CFLAGS
="$CFLAGS"
13962 OLD_LDFLAGS
="$LDFLAGS"
13963 ADDRSAN_FLAGS
="-fsanitize=address"
13964 CFLAGS
="$CFLAGS $ADDRSAN_FLAGS"
13965 LDFLAGS
="$LDFLAGS $ADDRSAN_FLAGS"
13966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13977 if ac_fn_c_try_link
"$LINENO"; then :
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980 addrsan_cflags
=$ADDRSAN_FLAGS
13981 addrsan_ldflags
=$ADDRSAN_FLAGS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13987 rm -f core conftest.err conftest.
$ac_objext \
13988 conftest
$ac_exeext conftest.
$ac_ext
13989 CFLAGS
="${OLD_CFLAGS}"
13990 LDFLAGS
="${OLD_LDFLAGS}"
13995 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13996 as_fn_error $?
"ADDRSAN not supported by compiler." "$LINENO" 5
13998 # Check whether --enable-threadsan was given.
13999 if test "${enable_threadsan+set}" = set; then :
14000 enableval
=$enable_threadsan;
14002 enable_threadsan
=no
14005 if test "$enable_threadsan" = "yes" ||
test "$enable_threadsan" = "probe"; then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14007 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14008 OLD_CFLAGS
="$CFLAGS"
14009 OLD_LDFLAGS
="$LDFLAGS"
14010 THREADSAN_FLAGS
="-fsanitize=thread"
14011 CFLAGS
="$CFLAGS $THREADSAN_FLAGS"
14012 LDFLAGS
="$LDFLAGS $THREADSAN_FLAGS"
14013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14024 if ac_fn_c_try_link
"$LINENO"; then :
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14026 $as_echo "yes" >&6; }
14027 threadsan_cflags
=$THREADSAN_FLAGS
14028 threadsan_ldflags
=$THREADSAN_FLAGS
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14034 rm -f core conftest.err conftest.
$ac_objext \
14035 conftest
$ac_exeext conftest.
$ac_ext
14036 CFLAGS
="${OLD_CFLAGS}"
14037 LDFLAGS
="${OLD_LDFLAGS}"
14042 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14043 as_fn_error $?
"THREADSAN not supported by compiler." "$LINENO" 5
14045 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14047 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14064 E2SCRUB_CMT
="$LINUX_CMT"
14067 linux
* | gnu
* | k
*bsd
*-gnu)
14068 if test "$prefix" = NONE
-a "$root_prefix" = NONE
; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14071 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14076 linux
* | gnu
* | k
*bsd
*-gnu)
14077 if test "$prefix" = NONE
; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14080 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14081 if test "$mandir" = '${prefix}/man' ; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14083 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14084 mandir
=/usr
/share
/man
14089 if test "$root_prefix" = NONE
; then
14090 if test "$prefix" = NONE
; then
14091 root_prefix
="$ac_default_prefix"
14093 root_prefix
="$prefix"
14095 root_bindir
=$bindir
14096 root_sbindir
=$sbindir
14097 root_libdir
=$libdir
14098 root_sysconfdir
=$sysconfdir
14100 root_bindir
='${root_prefix}/bin'
14101 root_sbindir
='${root_prefix}/sbin'
14102 root_libdir
='${root_prefix}/lib'
14103 root_sysconfdir
='${root_prefix}/etc'
14105 if test "$bindir" != '${exec_prefix}/bin'; then
14106 root_bindir
=$bindir
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14108 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14110 if test "$sbindir" != '${exec_prefix}/sbin'; then
14111 root_sbindir
=$sbindir
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14113 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14115 if test "$libdir" != '${exec_prefix}/lib'; then
14116 root_libdir
=$libdir
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14118 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14120 if test "$sysconfdir" != '${prefix}/etc'; then
14121 root_sysconfdir
=$sysconfdir
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14123 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14131 # Check whether --with-multiarch was given.
14132 if test "${with_multiarch+set}" = set; then :
14133 withval
=$with_multiarch; if test "$withval" = "lib64"; then
14137 libdir
=$libdir/$withval
14138 root_libdir
=$root_libdir/$withval
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14144 $as_echo_n "checking whether we can link with -static... " >&6; }
14145 if ${ac_cv_e2fsprogs_use_static+:} false
; then :
14146 $as_echo_n "(cached) " >&6
14148 SAVE_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS_STATIC -static"
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14160 if ac_fn_c_try_link
"$LINENO"; then :
14161 ac_cv_e2fsprogs_use_static
=yes
14163 ac_cv_e2fsprogs_use_static
=no
14165 rm -f core conftest.err conftest.
$ac_objext \
14166 conftest
$ac_exeext conftest.
$ac_ext
14167 LDFLAGS
=$SAVE_LDFLAGS
14172 ac_cv_e2fsprogs_use_static
=no
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14176 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14177 if test $ac_cv_e2fsprogs_use_static = yes; then
14178 LDFLAGS_STATIC
="$LDFLAGS_STATIC -static"
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14184 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14186 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14190 if test "$cross_compiling" = yes ; then
14193 DO_TEST_SUITE
=check
14196 INCLUDES
='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14197 if test -n "$CPPFLAGS" ; then
14198 INCLUDES
="$INCLUDES $CPPFLAGS"
14200 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14201 INCLUDES
=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14203 if test -n "$WITH_DIET_LIBC" ; then
14204 INCLUDES
="$INCLUDES -D_REENTRANT"
14207 if test $cross_compiling = no
; then
14208 BUILD_CFLAGS
="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14209 BUILD_LDFLAGS
="$LDFLAGS"
14213 CFLAGS_SHLIB
=${CFLAGS_SHLIB:-$CFLAGS}
14214 CFLAGS_STLIB
=${CFLAGS_STLIB:-$CFLAGS}
14215 LDFLAGS_SHLIB
=${LDFLAGS_SHLIB:-$LDFLAGS}
14221 # Check whether --with-udev_rules_dir was given.
14222 if test "${with_udev_rules_dir+set}" = set; then :
14223 withval
=$with_udev_rules_dir;
14225 with_udev_rules_dir
=yes
14228 if test "x${with_udev_rules_dir}" != "xno"; then :
14230 if test "x${with_udev_rules_dir}" = "xyes"; then :
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14235 $as_echo_n "checking for udev... " >&6; }
14237 if test -n "$udev_CFLAGS"; then
14238 pkg_cv_udev_CFLAGS
="$udev_CFLAGS"
14239 elif test -n "$PKG_CONFIG"; then
14240 if test -n "$PKG_CONFIG" && \
14241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14242 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }; then
14246 pkg_cv_udev_CFLAGS
=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14247 test "x$?" != "x0" && pkg_failed
=yes
14254 if test -n "$udev_LIBS"; then
14255 pkg_cv_udev_LIBS
="$udev_LIBS"
14256 elif test -n "$PKG_CONFIG"; then
14257 if test -n "$PKG_CONFIG" && \
14258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14259 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14262 test $ac_status = 0; }; then
14263 pkg_cv_udev_LIBS
=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14264 test "x$?" != "x0" && pkg_failed
=yes
14274 if test $pkg_failed = yes; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14279 _pkg_short_errors_supported
=yes
14281 _pkg_short_errors_supported
=no
14283 if test $_pkg_short_errors_supported = yes; then
14284 udev_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14286 udev_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14288 # Put the nasty error message in config.log where it belongs
14289 echo "$udev_PKG_ERRORS" >&5
14292 with_udev_rules_dir
=""
14294 elif test $pkg_failed = untried
; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14298 with_udev_rules_dir
=""
14301 udev_CFLAGS
=$pkg_cv_udev_CFLAGS
14302 udev_LIBS
=$pkg_cv_udev_LIBS
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14304 $as_echo "yes" >&6; }
14306 with_udev_rules_dir
="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14312 $as_echo_n "checking for udev rules dir... " >&6; }
14313 pkg_udev_rules_dir
="${with_udev_rules_dir}"
14314 if test -n "${pkg_udev_rules_dir}"; then :
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14317 $as_echo "${pkg_udev_rules_dir}" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323 $as_echo "no" >&6; }
14330 have_udev
="disabled"
14337 # Check whether --with-crond_dir was given.
14338 if test "${with_crond_dir+set}" = set; then :
14339 withval
=$with_crond_dir;
14344 if test "x${with_crond_dir}" != "xno"; then :
14346 if test "x${with_crond_dir}" = "xyes"; then :
14348 if test -d "/etc/cron.d"; then :
14349 with_crond_dir
="/etc/cron.d"
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14354 $as_echo_n "checking for system crontab dir... " >&6; }
14355 crond_dir
="${with_crond_dir}"
14356 if test -n "${crond_dir}"; then :
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14359 $as_echo "${crond_dir}" >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14372 have_crond
="disabled"
14379 # Check whether --with-systemd_unit_dir was given.
14380 if test "${with_systemd_unit_dir+set}" = set; then :
14381 withval
=$with_systemd_unit_dir;
14383 with_systemd_unit_dir
=yes
14386 if test "x${with_systemd_unit_dir}" != "xno"; then :
14388 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14393 $as_echo_n "checking for systemd... " >&6; }
14395 if test -n "$systemd_CFLAGS"; then
14396 pkg_cv_systemd_CFLAGS
="$systemd_CFLAGS"
14397 elif test -n "$PKG_CONFIG"; then
14398 if test -n "$PKG_CONFIG" && \
14399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14400 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403 test $ac_status = 0; }; then
14404 pkg_cv_systemd_CFLAGS
=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14405 test "x$?" != "x0" && pkg_failed
=yes
14412 if test -n "$systemd_LIBS"; then
14413 pkg_cv_systemd_LIBS
="$systemd_LIBS"
14414 elif test -n "$PKG_CONFIG"; then
14415 if test -n "$PKG_CONFIG" && \
14416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14417 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420 test $ac_status = 0; }; then
14421 pkg_cv_systemd_LIBS
=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14422 test "x$?" != "x0" && pkg_failed
=yes
14432 if test $pkg_failed = yes; then
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14437 _pkg_short_errors_supported
=yes
14439 _pkg_short_errors_supported
=no
14441 if test $_pkg_short_errors_supported = yes; then
14442 systemd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14444 systemd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14446 # Put the nasty error message in config.log where it belongs
14447 echo "$systemd_PKG_ERRORS" >&5
14450 with_systemd_unit_dir
=""
14452 elif test $pkg_failed = untried
; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14456 with_systemd_unit_dir
=""
14459 systemd_CFLAGS
=$pkg_cv_systemd_CFLAGS
14460 systemd_LIBS
=$pkg_cv_systemd_LIBS
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14462 $as_echo "yes" >&6; }
14464 with_systemd_unit_dir
="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14471 $as_echo_n "checking for systemd system unit dir... " >&6; }
14472 systemd_system_unit_dir
="${with_systemd_unit_dir}"
14473 if test -n "${systemd_system_unit_dir}"; then :
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14476 $as_echo "${systemd_system_unit_dir}" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14489 have_systemd
="disabled"
14495 test -d lib || mkdir lib
14496 test -d include || mkdir include
14497 test -d include
/linux || mkdir include
/linux
14498 test -d include
/asm || mkdir include
/asm
14499 if test -z "$UUID_CMT" ; then
14500 uuid_out_list
="lib/uuid/Makefile lib/uuid/uuid.pc \
14501 lib/uuid/uuid_types.h"
14503 if test -z "$BLKID_CMT" ; then
14504 blkid_out_list
="lib/blkid/Makefile lib/blkid/blkid.pc \
14505 lib/blkid/blkid_types.h"
14507 for i
in MCONFIG Makefile \
14508 util
/Makefile util
/subst.conf util
/gen-tarball util
/install-symlink \
14509 lib
/et
/Makefile lib
/ss
/Makefile lib
/e2p
/Makefile \
14510 lib
/ext2fs
/Makefile lib
/ext2fs
/ext2_types.h \
14511 $uuid_out_list $blkid_out_list lib
/support
/Makefile \
14512 lib
/ss
/ss.pc lib
/et
/com_err.pc lib
/e2p
/e2p.pc lib
/ext2fs
/ext2fs.pc \
14513 misc
/Makefile ext2ed
/Makefile e2fsck
/Makefile \
14514 debugfs
/Makefile
tests
/Makefile
tests
/progs
/Makefile \
14515 resize
/Makefile
doc
/Makefile intl
/Makefile \
14516 intl
/libgnuintl.h po
/Makefile.
in scrub
/Makefile
; do
14517 if test -d `dirname ${srcdir}/$i` ; then
14518 outlist
="$outlist $i"
14521 ac_config_files
="$ac_config_files $outlist"
14523 cat >confcache
<<\_ACEOF
14524 # This file is a shell script that caches the results of configure
14525 # tests run on this system so they can be shared between configure
14526 # scripts and configure runs, see configure's option --config-cache.
14527 # It is not useful on other systems. If it contains results you don't
14528 # want to keep, you may remove or edit it.
14530 # config.status only pays attention to the cache file if you give it
14531 # the --recheck option to rerun configure.
14533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14535 # following values.
14539 # The following way of writing the cache mishandles newlines in values,
14540 # but we know of no workaround that is simple, portable, and efficient.
14541 # So, we kill variables containing newlines.
14542 # Ultrix sh set writes to stderr and can't be redirected directly,
14543 # and sets the high bit in the cache file unless we assign to the vars.
14545 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14546 eval ac_val
=\$
$ac_var
14550 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14554 _ | IFS | as_nl
) ;; #(
14555 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14556 *) { eval $ac_var=; unset $ac_var;} ;;
14562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14563 *${as_nl}ac_space
=\
*)
14564 # `set' does not quote correctly, so add quotes: double-quote
14565 # substitution turns \\\\ into \\, and sed turns \\ into \.
14568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14571 # `set' quotes correctly as required by POSIX, so do not add quotes.
14572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14585 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14586 if test -w "$cache_file"; then
14587 if test "x$cache_file" != "x/dev/null"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14589 $as_echo "$as_me: updating cache $cache_file" >&6;}
14590 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14591 cat confcache
>"$cache_file"
14593 case $cache_file in #(
14595 mv -f confcache
"$cache_file"$$
&&
14596 mv -f "$cache_file"$$
"$cache_file" ;; #(
14598 mv -f confcache
"$cache_file" ;;
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14609 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14610 # Let make expand exec_prefix.
14611 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14613 DEFS
=-DHAVE_CONFIG_H
14618 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14619 # 1. Remove the extension, and $U if already installed.
14620 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14621 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14623 # will be set to the directory where LIBOBJS objects are built.
14624 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14625 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14627 LIBOBJS
=$ac_libobjs
14629 LTLIBOBJS
=$ac_ltlibobjs
14634 : "${CONFIG_STATUS=./config.status}"
14636 ac_clean_files_save
=$ac_clean_files
14637 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14643 # Generated by $as_me.
14644 # Run this file to recreate the current configuration.
14645 # Compiler output produced by configure, useful for debugging
14646 # configure, is in config.log if it exists.
14649 ac_cs_recheck=false
14652 SHELL=\${CONFIG_SHELL-$SHELL}
14655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14656 ## -------------------- ##
14657 ## M4sh Initialization. ##
14658 ## -------------------- ##
14660 # Be more Bourne compatible
14661 DUALCASE
=1; export DUALCASE
# for MKS sh
14662 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14666 # is contrary to our usage. Disable this feature.
14667 alias -g '${1+"$@"}'='"$@"'
14668 setopt NO_GLOB_SUBST
14670 case `(set -o) 2>/dev/null` in #(
14682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14683 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14686 # Prefer a ksh shell builtin over an external printf program on Solaris,
14687 # but without wasting forks for bash or zsh.
14688 if test -z "$BASH_VERSION$ZSH_VERSION" \
14689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14690 as_echo='print
-r --'
14691 as_echo_n='print
-rn --'
14692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14693 as_echo='printf %s
\n'
14694 as_echo_n='printf %s
'
14696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14697 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14698 as_echo_n='/usr
/ucb
/echo -n'
14700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14701 as_echo_n_body='eval
14705 expr "X$arg" : "X\\(.*\\)$as_nl";
14706 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14708 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14710 export as_echo_n_body
14711 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14713 export as_echo_body
14714 as_echo='sh
-c $as_echo_body as_echo
'
14717 # The user is always right.
14718 if test "${PATH_SEPARATOR+set}" != set; then
14720 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14721 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14728 # We need space, tab and new line, in precisely that order. Quoting is
14729 # there to prevent editors from complaining about space-tab.
14730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14731 # splitting by setting IFS to empty value.)
14734 # Find who we are. Look in the path if we contain no directory separator.
14737 *[\\/]* ) as_myself=$0 ;;
14738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14742 test -z "$as_dir" && as_dir=.
14743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14749 # We did not find ourselves, most probably we were run as `sh COMMAND'
14750 # in which case we are not to be found in the path.
14751 if test "x$as_myself" = x
; then
14754 if test ! -f "$as_myself"; then
14755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14759 # Unset variables that we do not need and which cause bugs (e.g. in
14760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14761 # suppresses any "Segmentation fault" message there. '((' could
14762 # trigger a bug in pdksh 5.2.14.
14763 for as_var
in BASH_ENV ENV MAIL MAILPATH
14764 do eval test x\
${$as_var+set} = xset \
14765 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14778 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14782 # ----------------------------------------
14783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14785 # script with STATUS, using 1 if that was 0.
14788 as_status
=$1; test $as_status -eq 0 && as_status
=1
14790 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14793 $as_echo "$as_me: error: $2" >&2
14794 as_fn_exit
$as_status
14798 # as_fn_set_status STATUS
14799 # -----------------------
14800 # Set $? to STATUS, without forking.
14801 as_fn_set_status
()
14804 } # as_fn_set_status
14806 # as_fn_exit STATUS
14807 # -----------------
14808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14812 as_fn_set_status
$1
14818 # Portably unset VAR.
14821 { eval $1=; unset $1;}
14823 as_unset
=as_fn_unset
14824 # as_fn_append VAR VALUE
14825 # ----------------------
14826 # Append the text in VALUE to the end of the definition contained in VAR. Take
14827 # advantage of any shell optimizations that allow amortized linear growth over
14828 # repeated appends, instead of the typical quadratic growth present in naive
14830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14831 eval 'as_fn_append ()
14842 # as_fn_arith ARG...
14843 # ------------------
14844 # Perform arithmetic evaluation on the ARGs, and store the result in the
14845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14846 # must be portable across $(()) and expr.
14847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14848 eval 'as_fn_arith ()
14855 as_val
=`expr "$@" || test $? -eq 1`
14860 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14861 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14867 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14868 as_basename
=basename
14873 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14879 as_me
=`$as_basename -- "$0" ||
14880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14881 X"$0" : 'X\(//\)$' \| \
14882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14884 sed '/^.*\/\([^/][^/]*\)\/*$/{
14898 # Avoid depending upon Character Ranges.
14899 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14900 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14901 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14902 as_cr_digits
='0123456789'
14903 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14905 ECHO_C
= ECHO_N
= ECHO_T
=
14906 case `echo -n x` in #(((((
14908 case `echo 'xy\c'` in
14909 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14911 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14918 rm -f conf$$ conf$$.exe conf$$.
file
14919 if test -d conf$$.dir
; then
14920 rm -f conf$$.dir
/conf$$.
file
14923 mkdir conf$$.dir
2>/dev
/null
14925 if (echo >conf$$.
file) 2>/dev
/null
; then
14926 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14928 # ... but there are two gotchas:
14929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14931 # In both cases, we have to default to `cp -pR'.
14932 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14934 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14942 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14943 rmdir conf$$.dir
2>/dev
/null
14948 # Create "$as_dir" as a directory, including parents if necessary.
14953 -*) as_dir
=.
/$as_dir;;
14955 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14959 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14960 *) as_qdir
=$as_dir;;
14962 as_dirs
="'$as_qdir' $as_dirs"
14963 as_dir
=`$as_dirname -- "$as_dir" ||
14964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965 X"$as_dir" : 'X\(//\)[^/]' \| \
14966 X"$as_dir" : 'X\(//\)$' \| \
14967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14968 $as_echo X"$as_dir" |
14969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14973 /^X\(\/\/\)[^/].*/{
14986 test -d "$as_dir" && break
14988 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14989 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14993 if mkdir
-p .
2>/dev
/null
; then
14994 as_mkdir_p
='mkdir -p "$as_dir"'
14996 test -d .
/-p && rmdir .
/-p
15001 # as_fn_executable_p FILE
15002 # -----------------------
15003 # Test if FILE is an executable regular file.
15004 as_fn_executable_p
()
15006 test -f "$1" && test -x "$1"
15007 } # as_fn_executable_p
15008 as_test_x
='test -x'
15009 as_executable_p
=as_fn_executable_p
15011 # Sed expression to map a string onto a valid CPP name.
15012 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15014 # Sed expression to map a string onto a valid variable name.
15015 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15019 ## ----------------------------------- ##
15020 ## Main body of $CONFIG_STATUS script. ##
15021 ## ----------------------------------- ##
15023 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15026 # Save the log message, to keep $0 and so on meaningful, and to
15027 # report actual input values of CONFIG_FILES etc. instead of their
15028 # values after options handling.
15030 This file was extended by $as_me, which was
15031 generated by GNU Autoconf 2.69. Invocation command line was
15033 CONFIG_FILES = $CONFIG_FILES
15034 CONFIG_HEADERS = $CONFIG_HEADERS
15035 CONFIG_LINKS = $CONFIG_LINKS
15036 CONFIG_COMMANDS = $CONFIG_COMMANDS
15039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15044 case $ac_config_files in *"
15045 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15048 case $ac_config_headers in *"
15049 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054 # Files that config.status was made for.
15055 config_files="$ac_config_files"
15056 config_headers="$ac_config_headers"
15057 config_commands="$ac_config_commands"
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15063 \`$as_me' instantiates files and other configuration actions
15064 from templates according to the current configuration. Unless the files
15065 and actions are specified as TAGs, all are instantiated by default.
15067 Usage: $0 [OPTION]... [TAG]...
15069 -h, --help print this help, then exit
15070 -V, --version print version number and configuration settings, then exit
15071 --config print configuration, then exit
15072 -q, --quiet, --silent
15073 do not print progress messages
15074 -d, --debug don't remove temporary files
15075 --recheck update $as_me by reconfiguring in the same conditions
15076 --file=FILE[:TEMPLATE]
15077 instantiate the configuration file FILE
15078 --header=FILE[:TEMPLATE]
15079 instantiate the configuration header FILE
15081 Configuration files:
15084 Configuration headers:
15087 Configuration commands:
15090 Report bugs to the package provider."
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15097 configured by $0, generated by GNU Autoconf 2.69,
15098 with options \\"\$ac_cs_config\\"
15100 Copyright (C) 2012 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15109 test -n "\$AWK" || AWK=awk
15112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15113 # The default lists apply if the user does not specify any file.
15119 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15120 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15124 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15136 # Handling of the options.
15137 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15139 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15140 $as_echo "$ac_cs_version"; exit ;;
15141 --config |
--confi |
--conf |
--con |
--co |
--c )
15142 $as_echo "$ac_cs_config"; exit ;;
15143 --debug |
--debu |
--deb |
--de |
--d |
-d )
15145 --file |
--fil |
--fi |
--f )
15148 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15149 '') as_fn_error $?
"missing file argument" ;;
15151 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15152 ac_need_defaults
=false
;;
15153 --header |
--heade |
--head |
--hea )
15156 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15158 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15159 ac_need_defaults
=false
;;
15161 # Conflict between --help and --header
15162 as_fn_error $?
"ambiguous option: \`$1'
15163 Try \`$0 --help' for more information.";;
15164 --help |
--hel |
-h )
15165 $as_echo "$ac_cs_usage"; exit ;;
15166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15167 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15170 # This is an error.
15171 -*) as_fn_error $?
"unrecognized option: \`$1'
15172 Try \`$0 --help' for more information." ;;
15174 *) as_fn_append ac_config_targets
" $1"
15175 ac_need_defaults
=false
;;
15181 ac_configure_extra_args
=
15183 if $ac_cs_silent; then
15185 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 if \$ac_cs_recheck; then
15191 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15193 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15194 CONFIG_SHELL='$SHELL'
15195 export CONFIG_SHELL
15200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15205 ## Running $as_me. ##
15211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15215 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15216 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15217 # from automake < 1.5.
15218 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15219 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15220 LINGUAS="${LINGUAS-%UNSET%}"
15225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15227 # Handling of arguments.
15228 for ac_config_target
in $ac_config_targets
15230 case $ac_config_target in
15231 "lib/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/config.h" ;;
15232 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
15233 "$outlist") CONFIG_FILES
="$CONFIG_FILES $outlist" ;;
15235 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15240 # If the user did not use the arguments to specify the items to instantiate,
15241 # then the envvar interface is used. Set only those that are not.
15242 # We use the long form for the default assignment because of an extremely
15243 # bizarre bug on SunOS 4.1.3.
15244 if $ac_need_defaults; then
15245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15250 # Have a temporary directory for convenience. Make it in the build tree
15251 # simply because there is no reason against having it here, and in addition,
15252 # creating and moving files from /tmp can sometimes cause problems.
15253 # Hook for its removal unless debugging.
15254 # Note that there is a small window in which the directory will not be cleaned:
15255 # after its creation but before its name has been assigned to `$tmp'.
15259 trap 'exit_status=$?
15260 : "${ac_tmp:=$tmp}"
15261 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15263 trap 'as_fn_exit 1' 1 2 13 15
15265 # Create a (secure) tmp directory for tmp files.
15268 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15272 tmp
=.
/conf$$
-$RANDOM
15273 (umask 077 && mkdir
"$tmp")
15274 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15277 # Set up the scripts for CONFIG_FILES section.
15278 # No need to generate them if there are no CONFIG_FILES.
15279 # This happens for instance with `./config.status config.h'.
15280 if test -n "$CONFIG_FILES"; then
15282 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15283 ac_cs_awk_getline
=:
15284 ac_cs_awk_pipe_init
=
15285 ac_cs_awk_read_file
='
15286 while ((getline aline < (F[key])) > 0)
15289 ac_cs_awk_pipe_fini
=
15291 ac_cs_awk_getline
=false
15292 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15293 ac_cs_awk_read_file
='
15295 print "cat " F[key] " &&"
15296 '$ac_cs_awk_pipe_init
15297 # The final `:' finishes the AND list.
15298 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15300 ac_cr
=`echo X | tr X '\015'`
15301 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15302 # But we know of no other shell where ac_cr would be empty at this
15303 # point, so we can use a bashism as a fallback.
15304 if test "x$ac_cr" = x
; then
15305 eval ac_cr
=\$
\'\\r
\'
15307 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15308 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15311 ac_cs_awk_cr
=$ac_cr
15314 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15317 # Create commands to substitute file output variables.
15319 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15320 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15321 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15324 } >conf$
$files.sh
&&
15325 . .
/conf$
$files.sh ||
15326 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
15327 rm -f conf$
$files.sh
15330 echo "cat >conf$$subs.awk <<_ACEOF" &&
15331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15333 } >conf$$subs.sh ||
15334 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15337 for ac_last_try in false false false false false :; do
15338 . ./conf$$subs.sh ||
15339 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15341 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15342 if test $ac_delim_n = $ac_delim_num; then
15344 elif $ac_last_try; then
15345 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15347 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15350 rm -f conf$$subs.sh
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15357 s/^/S["/; s
/!.
*/"]=/
15367 s/\(.\{148\}\)..*/\1/
15369 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15374 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15381 s/\(.\{148\}\)..*/\1/
15383 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15387 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15392 ' <conf$$subs.awk | sed '
15397 ' >>$CONFIG_STATUS || ac_write_fail=1
15398 rm -f conf$$subs.awk
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15402 for (key in S) S_is_set[key] = 1
15404 \$ac_cs_awk_pipe_init
15408 nfields = split(line, field, "@
")
15410 len = length(field[1])
15411 for (i = 2; i < nfields; i++) {
15413 keylen = length(key)
15414 if (S_is_set[key]) {
15416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15417 len += length(value) + length(field[++i])
15422 if (nfields == 3 && !substed) {
15424 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15425 \$ac_cs_awk_read_file
15431 \$ac_cs_awk_pipe_fini
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15436 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15439 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15440 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15445 # trailing colons and then remove the whole line if VPATH becomes empty
15446 # (actually we leave an empty line to preserve line numbers).
15447 if test "x
$srcdir" = x.; then
15448 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 fi # test -n "$CONFIG_FILES"
15469 # Set up the scripts for CONFIG_HEADERS section.
15470 # No need to generate them if there are no CONFIG_HEADERS.
15471 # This happens for instance with `./config.status Makefile'.
15472 if test -n "$CONFIG_HEADERS"; then
15473 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15477 # Transform confdefs.h into an awk script `defines.awk', embedded as
15478 # here-document in config.status, that substitutes the proper values into
15479 # config.h.in to produce config.h.
15481 # Create a delimiter string that does not exist in confdefs.h, to ease
15482 # handling of long lines.
15484 for ac_last_try in false false :; do
15485 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15486 if test -z "$ac_tt"; then
15488 elif $ac_last_try; then
15489 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15491 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15495 # For the awk script, D is an array of macro values keyed by name,
15496 # likewise P contains macro parameters if any. Preserve backslash
15497 # newline sequences.
15499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15501 s/.\{148\}/&'"$ac_delim"'/g
15504 s/^[ ]*#[ ]*define[ ][ ]*/ /
15511 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15513 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15518 D["\
1"]=" \
3\\\\\\n
"\\/p
15520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15525 s/.\{148\}/&'"$ac_delim"'/g
15530 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15533 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15535 ' <confdefs.h | sed '
15536 s/'"$ac_delim"'/"\\\
15537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540 for (key in D) D_is_set[key] = 1
15543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15545 split(line, arg, " ")
15546 if (arg[1] == "#") {
15550 defundef
= substr
(arg
[1], 2)
15553 split(mac1
, mac2
, "(") #)
15555 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15556 if (D_is_set
[macro
]) {
15557 # Preserve the white space surrounding the "#".
15558 print prefix
"define", macro P
[macro
] D
[macro
]
15561 # Replace #undef with comments. This is necessary, for example,
15562 # in the case of _POSIX_SOURCE, which is predefined and required
15563 # on some systems where configure will not decide to define it.
15564 if (defundef
== "undef") {
15565 print
"/*", prefix defundef
, macro
, "*/"
15573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15574 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15575 fi # test -n "$CONFIG_HEADERS"
15578 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15583 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15585 case $ac_mode$ac_tag in
15587 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15588 :[FH
]-) ac_tag
=-:-;;
15589 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15606 -) ac_f
="$ac_tmp/stdin";;
15607 *) # Look for the file first in the build tree, then in the source tree
15608 # (if the path is not absolute). The absolute path cannot be DOS-style,
15609 # because $ac_f cannot contain `:'.
15613 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15615 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15617 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15618 as_fn_append ac_file_inputs
" '$ac_f'"
15621 # Let's still pretend it is `configure' which instantiates (i.e., don't
15622 # use $as_me), people would be surprised to read:
15623 # /* config.h. Generated by config.status. */
15624 configure_input
='Generated from '`
15625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15627 if test x
"$ac_file" != x-
; then
15628 configure_input
="$ac_file. $configure_input"
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15630 $as_echo "$as_me: creating $ac_file" >&6;}
15632 # Neutralize special characters interpreted by sed in replacement strings.
15633 case $configure_input in #(
15634 *\
&* |
*\|
* |
*\\* )
15635 ac_sed_conf_input
=`$as_echo "$configure_input" |
15636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15637 *) ac_sed_conf_input
=$configure_input;;
15641 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15642 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15647 ac_dir
=`$as_dirname -- "$ac_file" ||
15648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15649 X"$ac_file" : 'X\(//\)[^/]' \| \
15650 X"$ac_file" : 'X\(//\)$' \| \
15651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15652 $as_echo X"$ac_file" |
15653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15657 /^X\(\/\/\)[^/].*/{
15670 as_dir
="$ac_dir"; as_fn_mkdir_p
15674 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15676 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15677 # A ".." for each directory in $ac_dir_suffix.
15678 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15679 case $ac_top_builddir_sub in
15680 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15681 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15684 ac_abs_top_builddir
=$ac_pwd
15685 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15686 # for backward compatibility:
15687 ac_top_builddir
=$ac_top_build_prefix
15690 .
) # We are building in place.
15692 ac_top_srcdir
=$ac_top_builddir_sub
15693 ac_abs_top_srcdir
=$ac_pwd ;;
15694 [\\/]* | ?
:[\\/]* ) # Absolute name.
15695 ac_srcdir
=$srcdir$ac_dir_suffix;
15696 ac_top_srcdir
=$srcdir
15697 ac_abs_top_srcdir
=$srcdir ;;
15698 *) # Relative name.
15699 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15700 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15701 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15703 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15713 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15714 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15716 ac_MKDIR_P
=$MKDIR_P
15718 [\\/$
]* | ?
:[\\/]* ) ;;
15719 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15724 # If the template does not know about datarootdir, expand it.
15725 # FIXME: This hack should be removed a few years after 2.60.
15726 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15738 *datarootdir
*) ac_datarootdir_seen
=yes;;
15739 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744 ac_datarootdir_hack='
15745 s&@datadir@&$datadir&g
15746 s&@docdir@&$docdir&g
15747 s&@infodir@&$infodir&g
15748 s&@localedir@&$localedir&g
15749 s&@mandir@&$mandir&g
15750 s&\\\${datarootdir}&$datarootdir&g' ;;
15754 # Neutralize VPATH when `$srcdir' = `.'.
15755 # Shell code in configure.ac might set extrasub.
15756 # FIXME: do we really want to maintain this feature?
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 ac_sed_extra="$ac_vpsub
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15763 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15764 s|@configure_input@|
$ac_sed_conf_input|
;t t
15765 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15766 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15767 s
&@srcdir@
&$ac_srcdir&;t t
15768 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15769 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15770 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15771 s
&@builddir@
&$ac_builddir&;t t
15772 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15773 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15774 s
&@INSTALL@
&$ac_INSTALL&;t t
15775 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15776 $ac_datarootdir_hack
15778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15779 if $ac_cs_awk_getline; then
15780 $AWK -f "$ac_tmp/subs.
awk"
15782 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
15784 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15787 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15788 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15789 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15791 which seems to be undefined. Please make sure it is defined" >&5
15792 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15793 which seems to be undefined. Please make sure it is defined" >&2;}
15795 rm -f "$ac_tmp/stdin"
15797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15806 if test x"$ac_file" != x-; then
15808 $as_echo "/* $configure_input */" \
15809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15810 } >"$ac_tmp/config.h" \
15811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15812 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15817 mv "$ac_tmp/config.h" "$ac_file" \
15818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15821 $as_echo "/* $configure_input */" \
15822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15823 || as_fn_error $? "could not create -" "$LINENO" 5
15827 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15828 $as_echo "$as_me: executing $ac_file commands" >&6;}
15833 case $ac_file$ac_mode in
15834 "po-directories":C)
15835 for ac_file in $CONFIG_FILES; do
15836 # Support "outfile[:infile[:infile...]]"
15838 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
15840 # PO directories have a Makefile.in generated from Makefile.in.in.
15841 case "$ac_file" in */Makefile.in)
15842 # Adjust a relative srcdir.
15843 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
15844 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
15845 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
15846 # In autoconf-2.13 it is called $ac_given_srcdir.
15847 # In autoconf-2.50 it is called $srcdir.
15848 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15849 case "$ac_given_srcdir" in
15850 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
15851 /*) top_srcdir="$ac_given_srcdir" ;;
15852 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15854 # Treat a directory as a PO directory if and only if it has a
15855 # POTFILES.in file. This allows packages to have multiple PO
15856 # directories under different names or in different locations.
15857 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15858 rm -f "$ac_dir/POTFILES"
15859 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15860 gt_tab=`printf '\t'`
15861 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15862 POMAKEFILEDEPS="POTFILES.in"
15863 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15864 # on $ac_dir but don't depend on user-specified configuration
15866 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15867 # The LINGUAS file contains the set of available languages.
15868 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15869 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
15871 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15872 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15873 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15874 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15876 # The set of available languages was given in configure.in.
15877 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15878 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15881 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15882 # Compute UPDATEPOFILES
15883 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15884 # Compute DUMMYPOFILES
15885 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15887 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15888 case "$ac_given_srcdir" in
15890 *) srcdirpre
='$(srcdir)/' ;;
15896 for lang
in $ALL_LINGUAS; do
15897 POFILES
="$POFILES $srcdirpre$lang.po"
15898 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15899 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15900 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15902 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15903 # environment variable.
15905 if test -n "$ALL_LINGUAS"; then
15906 for presentlang
in $ALL_LINGUAS; do
15908 if test "%UNSET%" != "$LINGUAS"; then
15909 desiredlanguages
="$LINGUAS"
15911 desiredlanguages
="$ALL_LINGUAS"
15913 for desiredlang
in $desiredlanguages; do
15914 # Use the presentlang catalog if desiredlang is
15915 # a. equal to presentlang, or
15916 # b. a variant of presentlang (because in this case,
15917 # presentlang can be used as a fallback for messages
15918 # which are not translated in the desiredlang catalog).
15919 case "$desiredlang" in
15920 "$presentlang"*) useit
=yes;;
15923 if test $useit = yes; then
15924 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15929 if test -n "$INST_LINGUAS"; then
15930 for lang
in $INST_LINGUAS; do
15931 CATALOGS
="$CATALOGS $lang.gmo"
15934 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15935 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"
15936 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15937 if test -f "$f"; then
15939 *.orig |
*.bak |
*~
) ;;
15940 *) cat "$f" >> "$ac_dir/Makefile" ;;
15955 ac_clean_files
=$ac_clean_files_save
15957 test $ac_write_fail = 0 ||
15958 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15961 # configure is writing to config.log, and then calls config.status.
15962 # config.status does its own redirection, appending to config.log.
15963 # Unfortunately, on DOS this fails, as config.log is still kept open
15964 # by configure, so config.status won't be able to write to it; its
15965 # output is simply discarded. So we exec the FD to /dev/null,
15966 # effectively closing config.log, so it can be properly (re)opened and
15967 # appended to by config.status. When coming back to configure, we
15968 # need to make the FD available again.
15969 if test "$no_create" != yes; then
15971 ac_config_status_args
=
15972 test "$silent" = yes &&
15973 ac_config_status_args
="$ac_config_status_args --quiet"
15975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15978 # would make configure fail if this is the last instruction.
15979 $ac_cs_success || as_fn_exit
1
15981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15986 if test -f util
/gen-tarball
; then chmod +x util
/gen-tarball
; fi