2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
203 *) as_dir=$as_dir/ ;;
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Do nothing but, unlike ":", preserve the value of $?.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir=./$as_dir;;
331 test -d "$as_dir" || eval $as_mkdir_p || {
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 as_val=`expr "$@" || test $? -eq 1`
416 # Do nothing but, unlike ":", preserve the value of $?.
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
430 as_status=$1; test $as_status -eq 0 && as_status=1
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
516 # Exit status is that of the last command.
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
549 mkdir conf$$.dir 2>/dev/null
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
560 elif ln conf$$.file conf$$ 2>/dev/null; then
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
574 test -d ./-p && rmdir ./-p
579 as_executable_p=as_fn_executable_p
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599 ac_default_prefix=/usr/local
601 ac_config_libobj_dir=.
608 # Identity of this package.
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
651 ac_subst_vars='LTLIBOBJS
654 systemd_system_unit_dir
741 XGETTEXT_EXTRA_OPTIONS
742 MSGMERGE_FOR_MSGFMT_OPTION
749 GETTEXT_MACRO_VERSION
866 program_transform_name
877 ac_subst_files='MCONFIG
883 PUBLIC_CONFIG_HEADER'
885 enable_option_checking
891 enable_maintainer_mode
892 enable_symlink_install
893 enable_relative_symlinks
894 enable_symlink_relative_symlinks
896 enable_verbose_makecmds
905 enable_developer_features
915 enable_e2initrd_helper
922 enable_bmap_stats_ops
937 with_systemd_unit_dir
940 ac_precious_vars='build_alias
961 # Initialize some variables set by options.
963 ac_init_version=false
964 ac_unrecognized_opts=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name=s,x,x,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 runstatedir='${localstatedir}/run'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1022 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 case $ac_dashdash$ac_option in
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1077 eval enable_$ac_useropt=no ;;
1079 -docdir | --docdir | --docdi | --doc | --do)
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1248 -runstatedir | --runstatedir | --runstatedi | --runstated \
1249 | --runstate | --runstat | --runsta | --runst | --runs \
1250 | --run | --ru | --r)
1251 ac_prev=runstatedir ;;
1252 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1253 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1254 | --run=* | --ru=* | --r=*)
1255 runstatedir=$ac_optarg ;;
1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 sbindir=$ac_optarg ;;
1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265 | --sharedst | --shareds | --shared | --share | --shar \
1267 ac_prev=sharedstatedir ;;
1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 sharedstatedir=$ac_optarg ;;
1274 -site | --site | --sit)
1276 -site=* | --site=* | --sit=*)
1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282 srcdir=$ac_optarg ;;
1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285 | --syscon | --sysco | --sysc | --sys | --sy)
1286 ac_prev=sysconfdir ;;
1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289 sysconfdir=$ac_optarg ;;
1291 -target | --target | --targe | --targ | --tar | --ta | --t)
1292 ac_prev=target_alias ;;
1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294 target_alias=$ac_optarg ;;
1296 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299 -version | --version | --versio | --versi | --vers | -V)
1300 ac_init_version=: ;;
1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid package name: \`$ac_useropt'"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1316 eval with_$ac_useropt=\$ac_optarg ;;
1318 -without-* | --without-*)
1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error $? "invalid package name: \`$ac_useropt'"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1332 eval with_$ac_useropt=no ;;
1335 # Obsolete; use --with-x.
1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339 | --x-incl | --x-inc | --x-in | --x-i)
1340 ac_prev=x_includes ;;
1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343 x_includes=$ac_optarg ;;
1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347 ac_prev=x_libraries ;;
1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350 x_libraries=$ac_optarg ;;
1352 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1353 Try \`$0 --help' for more information"
1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 case $ac_envvar in #(
1360 '' | [0-9]* | *[!_$as_cr_alnum]* )
1361 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1363 eval $ac_envvar=\$ac_optarg
1364 export $ac_envvar ;;
1367 # FIXME: should be removed in autoconf 3.0.
1368 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1371 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 if test -n "$ac_prev"; then
1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379 as_fn_error $? "missing argument to $ac_option"
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1385 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 # Check all directory arguments for consistency.
1391 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir runstatedir
1396 eval ac_val=\$$ac_var
1397 # Remove trailing slashes.
1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\$ac_val;;
1403 # Be sure to have absolute directory names.
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1416 target=$target_alias
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420 if test "x$build_alias" = x; then
1421 cross_compiling=maybe
1422 elif test "x$build_alias" != "x$host_alias"; then
1428 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430 test "$silent" = yes && exec 6>/dev/null
1433 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434 ac_ls_di=`ls -di .` &&
1435 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436 as_fn_error $? "working directory cannot be determined"
1437 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438 as_fn_error $? "pwd does not report name of working directory"
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443 ac_srcdir_defaulted=yes
1444 # Try the directory containing this script, then the parent directory.
1445 ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447 X"$as_myself" : 'X\(//\)[^/]' \| \
1448 X"$as_myself" : 'X\(//\)$' \| \
1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 printf "%s\n" X"$as_myself" |
1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1473 ac_srcdir_defaulted=no
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483 # When building in place, set srcdir=.
1484 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 # Remove unnecessary trailing slashes from srcdir.
1488 # Double slashes in file names in object file debugging info
1489 # mess up M-x gdb in Emacs.
1491 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 for ac_var in $ac_precious_vars; do
1494 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_env_${ac_var}_value=\$${ac_var}
1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 # Report the --help message.
1503 if test "$ac_init_help" = "long"; then
1504 # Omit some internal or obsolete options to make the list less imposing.
1505 # This message is too long to be a string in the A/UX 3.1 sh.
1507 \`configure' configures this package to adapt to many kinds of systems.
1509 Usage: $0 [OPTION]... [VAR=VALUE]...
1511 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512 VAR=VALUE. See below for descriptions of some of the useful variables.
1514 Defaults for the options are specified in brackets.
1517 -h, --help display this help and exit
1518 --help=short display options specific to this package
1519 --help=recursive display the short help of all the included packages
1520 -V, --version display version information and exit
1521 -q, --quiet, --silent do not print \`checking ...' messages
1522 --cache-file=FILE cache test results in FILE [disabled]
1523 -C, --config-cache alias for \`--cache-file=config.cache'
1524 -n, --no-create do not create output files
1525 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527 Installation directories:
1528 --prefix=PREFIX install architecture-independent files in PREFIX
1529 [$ac_default_prefix]
1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 By default, \`make install' will install all the files in
1534 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1535 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536 for instance \`--prefix=\$HOME'.
1538 For better control, use the options below.
1540 Fine tuning of the installation directories:
1541 --bindir=DIR user executables [EPREFIX/bin]
1542 --sbindir=DIR system admin executables [EPREFIX/sbin]
1543 --libexecdir=DIR program executables [EPREFIX/libexec]
1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1547 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 if test -n "$ac_init_help"; then
1576 --disable-option-checking ignore unrecognized --enable/--with options
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-maintainer-mode
1580 enable makefile rules useful for maintainers
1581 --enable-symlink-install
1582 use symlinks when installing instead of hard links
1583 --enable-relative-symlinks
1584 use relative symlinks when installing
1586 --enable-symlink-build use symlinks while building instead of hard links
1587 --enable-verbose-makecmds
1588 enable verbose make command output
1589 --enable-elf-shlibs select ELF shared libraries
1590 --enable-bsd-shlibs select BSD shared libraries
1591 --enable-profile build profiling libraries
1592 --enable-gcov build for coverage testing using gcov
1593 --enable-hardening build for coverage testing using gcov
1594 --enable-jbd-debug enable journal debugging
1595 --enable-blkid-debug enable blkid debugging
1596 --disable-testio-debug disable the use of the test I/O manager for
1598 --enable-developer-features
1599 enable features for use by ext4 developers
1600 --enable-libuuid build and use private uuid library
1601 --enable-libblkid build and use private blkid library
1602 --enable-subset enable subset-only build
1603 --disable-backtrace disable use backtrace
1604 --disable-debugfs disable support of debugfs program
1605 --disable-imager disable support of e2image program
1606 --disable-resizer disable support of e2resize program
1607 --disable-defrag disable support of e4defrag program
1608 --enable-fsck build fsck wrapper program
1609 --enable-e2initrd-helper
1610 build e2initrd-helper program
1611 --disable-tls disable use of thread local support
1612 --disable-uuidd disable building the uuid daemon
1613 --disable-mmp disable support mmp, Multi Mount Protection
1614 --disable-tdb disable tdb support
1615 --disable-bmap-stats disable collection of bitmap stats
1616 --enable-bmap-stats-ops enable collection of additional bitmap stats
1617 --disable-nls do not use Native Language Support
1618 --disable-rpath do not hardcode runtime library paths
1619 --disable-fuse2fs do not build fuse2fs
1620 --enable-lto enable link time optimization
1621 --enable-ubsan enable undefined behavior sanitizer
1622 --enable-addrsan enable address sanitizer
1623 --enable-threadsan enable thread sanitizer
1624 --enable-fuzzing enable fuzzing sanitizer
1625 --disable-largefile omit support for large files
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-diet-libc use diet libc
1631 --with-cc no longer supported, use CC= instead
1632 --with-ccopts no longer supported, use CFLAGS= instead
1633 --with-ldopts no longer supported, use LDFLAGS= instead
1634 --with-root-prefix=PREFIX
1635 override prefix variable for files to be placed in
1637 --without-pthread disable use of pthread support
1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1639 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1640 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1641 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1642 --without-libintl-prefix don't search for libintl in includedir and libdir
1643 --with-multiarch=ARCH specify the multiarch triplet
1644 --with-udev-rules-dir[=DIR]
1645 Install udev rules into DIR.
1646 --with-crond-dir[=DIR] Install system crontabs into DIR.
1647 --with-systemd-unit-dir[=DIR]
1648 Install systemd system units into DIR.
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1659 PKG_CONFIG path to pkg-config utility
1661 directories to add to pkg-config's search path
1663 path overriding pkg-config's built-in search path
1664 CXX C++ compiler command
1665 CXXFLAGS C++ compiler flags
1666 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1667 udev_LIBS linker flags for udev, overriding pkg-config
1669 C compiler flags for systemd, overriding pkg-config
1671 linker flags for systemd, overriding pkg-config
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1676 Report bugs to the package provider.
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1706 .) # We are building in place.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for configure.gnu first; this name is used for a wrapper for
1723 # Metaconfig's "Configure" on case-insensitive file systems.
1724 if test -f "$ac_srcdir/configure.gnu"; then
1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727 elif test -f "$ac_srcdir/configure"; then
1729 $SHELL "$ac_srcdir/configure" --help=recursive
1731 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1733 cd "$ac_pwd" || { ac_status=$?; break; }
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1741 generated by GNU Autoconf 2.71
1743 Copyright (C) 2021 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext conftest.beam
1761 if { { ac_try="$ac_compile"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 printf "%s\n" "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext
1783 printf "%s\n" "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_c_try_compile
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 printf %s "checking for $2... " >&6; }
1802 if eval test \${$3+y}
1804 printf %s "(cached) " >&6
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 printf "%s\n" "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_header_compile
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 printf "%s\n" "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 test -x conftest$ac_exeext
1858 printf "%s\n" "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 printf "%s\n" "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1901 printf "%s\n" "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1911 # ac_fn_c_try_run LINENO
1912 # ----------------------
1913 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1914 # executables *can* be run.
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_link"
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 printf "%s\n" "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>&5
1927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1929 { { case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 printf "%s\n" "$ac_try_echo"; } >&5
1935 (eval "$ac_try") 2>&5
1937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; }; }
1942 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1943 printf "%s\n" "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 printf %s "checking for $2... " >&6; }
1962 if eval test \${$3+y}
1964 printf %s "(cached) " >&6
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below. */
1978 /* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined __stub_$2 || defined __stub___$2
2000 if ac_fn_c_try_link "$LINENO"
2006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2007 conftest$ac_exeext conftest.$ac_ext
2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 printf "%s\n" "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_func
2016 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2017 # ----------------------------------------------------
2018 # Tries to find if the field MEMBER exists in type AGGR, after including
2019 # INCLUDES, setting cache variable VAR accordingly.
2020 ac_fn_c_check_member ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2024 printf %s "checking for $2.$3... " >&6; }
2025 if eval test \${$4+y}
2027 printf %s "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2053 if (sizeof ac_aggr.$3)
2059 if ac_fn_c_try_compile "$LINENO"
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 printf "%s\n" "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_member
2076 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2077 # -------------------------------------------
2078 # Tests whether TYPE exists after having included INCLUDES, setting cache
2079 # variable VAR accordingly.
2080 ac_fn_c_check_type ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 printf %s "checking for $2... " >&6; }
2085 if eval test \${$3+y}
2087 printf %s "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2102 if ac_fn_c_try_compile "$LINENO"
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2116 if ac_fn_c_try_compile "$LINENO"
2122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 printf "%s\n" "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_type
2133 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2134 # ------------------------------------------------------------------
2135 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2136 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 as_decl_name=`echo $2|sed 's/ *(.*//'`
2141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2142 printf %s "checking whether $as_decl_name is declared... " >&6; }
2143 if eval test \${$3+y}
2145 printf %s "(cached) " >&6
2147 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2148 eval ac_save_FLAGS=\$$6
2149 as_fn_append $6 " $5"
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 #ifndef $as_decl_name
2158 (void) $as_decl_use;
2160 (void) $as_decl_name;
2168 if ac_fn_c_try_compile "$LINENO"
2174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2175 eval $6=\$ac_save_FLAGS
2179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 printf "%s\n" "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_check_decl
2185 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2186 # --------------------------------------------
2187 # Tries to find the compile-time value of EXPR in a program that includes
2188 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2190 ac_fn_c_compute_int ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if test "$cross_compiling" = yes; then
2194 # Depending upon the size, compute the lo and hi bounds.
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 static int test_array [1 - 2 * !(($2) >= 0)];
2203 return test_array [0];
2209 if ac_fn_c_try_compile "$LINENO"
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 return test_array [0];
2227 if ac_fn_c_try_compile "$LINENO"
2229 ac_hi=$ac_mid; break
2231 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2232 if test $ac_lo -le $ac_mid; then
2236 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) < 0)];
2249 return test_array [0];
2255 if ac_fn_c_try_compile "$LINENO"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2267 return test_array [0];
2273 if ac_fn_c_try_compile "$LINENO"
2275 ac_lo=$ac_mid; break
2277 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2278 if test $ac_mid -le $ac_hi; then
2282 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"
2313 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2318 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2325 static long int longval (void) { return $2; }
2326 static unsigned long int ulongval (void) { return $2; }
2333 FILE *f = fopen ("conftest.val", "w");
2338 long int i = longval ();
2341 fprintf (f, "%ld", i);
2345 unsigned long int i = ulongval ();
2348 fprintf (f, "%lu", i);
2350 /* Do not output a trailing newline, as this causes \r\n confusion
2351 on some platforms. */
2352 return ferror (f) || fclose (f) != 0;
2358 if ac_fn_c_try_run "$LINENO"
2360 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2365 conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 as_fn_set_status $ac_retval
2372 } # ac_fn_c_compute_int
2374 # ac_fn_cxx_try_compile LINENO
2375 # ----------------------------
2376 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2377 ac_fn_cxx_try_compile ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest.beam
2381 if { { ac_try="$ac_compile"
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 printf "%s\n" "$ac_try_echo"; } >&5
2388 (eval "$ac_compile") 2>conftest.err
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_cxx_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest.$ac_objext
2403 printf "%s\n" "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 as_fn_set_status $ac_retval
2411 } # ac_fn_cxx_try_compile
2412 ac_configure_args_raw=
2417 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 as_fn_append ac_configure_args_raw " '$ac_arg'"
2422 case $ac_configure_args_raw in
2426 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2427 ac_unsafe_a="$ac_unsafe_z#~"
2428 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2429 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2432 cat >config.log <<_ACEOF
2433 This file contains any messages produced by compilers while
2434 running configure, to aid debugging if configure makes a mistake.
2436 It was created by $as_me, which was
2437 generated by GNU Autoconf 2.71. Invocation command line was
2439 $ $0$ac_configure_args_raw
2449 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2450 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2451 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2452 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2453 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2456 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2458 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2459 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2461 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2462 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2464 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 case $as_dir in #(((
2475 *) as_dir=$as_dir/ ;;
2477 printf "%s\n" "PATH: $as_dir"
2493 # Keep a trace of the command line.
2494 # Strip out --no-create and --no-recursion so they do not pile up.
2495 # Strip out --silent because we don't want to record it for future runs.
2496 # Also quote any args containing shell meta-characters.
2497 # Make two passes to allow for proper duplicate-argument suppression.
2501 ac_must_keep_next=false
2507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2509 | -silent | --silent | --silen | --sile | --sil)
2512 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2517 as_fn_append ac_configure_args1 " '$ac_arg'"
2518 if test $ac_must_keep_next = true; then
2519 ac_must_keep_next=false # Got value, back to normal.
2522 *=* | --config-cache | -C | -disable-* | --disable-* \
2523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2525 | -with-* | --with-* | -without-* | --without-* | --x)
2526 case "$ac_configure_args0 " in
2527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2530 -* ) ac_must_keep_next=true ;;
2533 as_fn_append ac_configure_args " '$ac_arg'"
2538 { ac_configure_args0=; unset ac_configure_args0;}
2539 { ac_configure_args1=; unset ac_configure_args1;}
2541 # When interrupted or exit'd, cleanup temporary files, and complete
2542 # config.log. We remove comments because anyway the quotes in there
2543 # would cause problems or look ugly.
2544 # WARNING: Use '\'' to represent an apostrophe within the trap.
2545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2546 trap 'exit_status=$?
2549 # Save into config.log some information that might help in debugging.
2553 printf "%s\n" "## ---------------- ##
2554 ## Cache variables. ##
2555 ## ---------------- ##"
2557 # The following way of writing the cache mishandles newlines in values,
2559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2560 eval ac_val=\$$ac_var
2564 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2565 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2568 _ | IFS | as_nl) ;; #(
2569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2570 *) { eval $ac_var=; unset $ac_var;} ;;
2575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2576 *${as_nl}ac_space=\ *)
2578 "s/'\''/'\''\\\\'\'''\''/g;
2579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589 printf "%s\n" "## ----------------- ##
2590 ## Output variables. ##
2591 ## ----------------- ##"
2593 for ac_var in $ac_subst_vars
2595 eval ac_val=\$$ac_var
2597 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599 printf "%s\n" "$ac_var='\''$ac_val'\''"
2603 if test -n "$ac_subst_files"; then
2604 printf "%s\n" "## ------------------- ##
2605 ## File substitutions. ##
2606 ## ------------------- ##"
2608 for ac_var in $ac_subst_files
2610 eval ac_val=\$$ac_var
2612 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 printf "%s\n" "$ac_var='\''$ac_val'\''"
2619 if test -s confdefs.h; then
2620 printf "%s\n" "## ----------- ##
2627 test "$ac_signal" != 0 &&
2628 printf "%s\n" "$as_me: caught signal $ac_signal"
2629 printf "%s\n" "$as_me: exit $exit_status"
2631 rm -f core *.core core.conftest.* &&
2632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2635 for ac_signal in 1 2 13 15; do
2636 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2641 rm -f -r conftest* confdefs.h
2643 printf "%s\n" "/* confdefs.h */" > confdefs.h
2645 # Predefined preprocessor variables.
2647 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2649 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2651 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2653 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2655 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2657 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2660 # Let the site file select an alternate cache file if it wants to.
2661 # Prefer an explicitly selected file to automatically selected ones.
2662 if test -n "$CONFIG_SITE"; then
2663 ac_site_files="$CONFIG_SITE"
2664 elif test "x$prefix" != xNONE; then
2665 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2667 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2670 for ac_site_file in $ac_site_files
2672 case $ac_site_file in #(
2676 ac_site_file=./$ac_site_file ;;
2678 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2680 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2681 sed 's/^/| /' "$ac_site_file" >&5
2683 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2685 as_fn_error $? "failed to load site script $ac_site_file
2686 See \`config.log' for more details" "$LINENO" 5; }
2690 if test -r "$cache_file"; then
2691 # Some versions of bash will fail to source /dev/null (special files
2692 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2693 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2695 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2698 *) . "./$cache_file";;
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2703 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2707 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2708 # Test code for whether the C compiler supports C89 (global declarations)
2709 ac_c_conftest_c89_globals='
2710 /* Does the compiler advertise C89 conformance?
2711 Do not test the value of __STDC__, because some compilers set it to 0
2712 while being otherwise adequately conformant. */
2713 #if !defined __STDC__
2714 # error "Compiler does not advertise C89 conformance"
2720 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2721 struct buf { int x; };
2722 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2734 s = g (p, va_arg (v,int));
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not \xHH hex character constants.
2741 These do not provoke an error unfortunately, instead are silently treated
2742 as an "x". The following induces an error, until -std is added to get
2743 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2744 array size at least. It is necessary to write \x00 == 0 to get something
2745 that is true only with -std. */
2746 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2749 inside strings and character constants. */
2750 #define FOO(x) '\''x'\''
2751 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2753 int test (int i, double x);
2754 struct s1 {int (*f) (int a);};
2755 struct s2 {int (*f) (double a);};
2756 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2759 # Test code for whether the C compiler supports C89 (body of main).
2760 ac_c_conftest_c89_main='
2761 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2764 # Test code for whether the C compiler supports C99 (global declarations)
2765 ac_c_conftest_c99_globals='
2766 // Does the compiler advertise C99 conformance?
2767 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2768 # error "Compiler does not advertise C99 conformance"
2771 #include <stdbool.h>
2772 extern int puts (const char *);
2773 extern int printf (const char *, ...);
2774 extern int dprintf (int, const char *, ...);
2775 extern void *malloc (size_t);
2777 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2778 // dprintf is used instead of fprintf to avoid needing to declare
2780 #define debug(...) dprintf (2, __VA_ARGS__)
2781 #define showlist(...) puts (#__VA_ARGS__)
2782 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2784 test_varargs_macros (void)
2789 debug ("X = %d\n", x);
2790 showlist (The first, second, and third items.);
2791 report (x>y, "x is %d but y is %d", x, y);
2794 // Check long long types.
2795 #define BIG64 18446744073709551615ull
2796 #define BIG32 4294967295ul
2797 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2799 #error "your preprocessor is broken"
2803 #error "your preprocessor is broken"
2805 static long long int bignum = -9223372036854775807LL;
2806 static unsigned long long int ubignum = BIG64;
2808 struct incomplete_array
2816 const wchar_t *name;
2820 typedef const char *ccp;
2823 test_restrict (ccp restrict text)
2825 // See if C++-style comments work.
2826 // Iterate through items via the restricted pointer.
2827 // Also check for declarations in for loops.
2828 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2833 // Check varargs and va_copy.
2835 test_varargs (const char *format, ...)
2838 va_start (args, format);
2840 va_copy (args_copy, args);
2842 const char *str = "";
2850 case '\''s'\'': // string
2851 str = va_arg (args_copy, const char *);
2853 case '\''d'\'': // int
2854 number = va_arg (args_copy, int);
2856 case '\''f'\'': // float
2857 fnumber = va_arg (args_copy, double);
2866 return *str && number && fnumber;
2870 # Test code for whether the C compiler supports C99 (body of main).
2871 ac_c_conftest_c99_main='
2873 _Bool success = false;
2874 success |= (argc != 0);
2877 if (test_restrict ("String literal") == 0)
2879 char *restrict newvar = "Another string";
2882 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2883 test_varargs_macros ();
2885 // Check flexible array members.
2886 struct incomplete_array *ia =
2887 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2889 for (int i = 0; i < ia->datasize; ++i)
2890 ia->data[i] = i * 1.234;
2892 // Check named initializers.
2893 struct named_init ni = {
2895 .name = L"Test wide string",
2896 .average = 543.34343,
2901 int dynamic_array[ni.number];
2902 dynamic_array[0] = argv[0][0];
2903 dynamic_array[ni.number - 1] = 543;
2905 // work around unused variable warnings
2906 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2907 || dynamic_array[ni.number - 1] != 543);
2910 # Test code for whether the C compiler supports C11 (global declarations)
2911 ac_c_conftest_c11_globals='
2912 // Does the compiler advertise C11 conformance?
2913 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2914 # error "Compiler does not advertise C11 conformance"
2918 char _Alignas (double) aligned_as_double;
2919 char _Alignas (0) no_special_alignment;
2920 extern char aligned_as_int;
2921 char _Alignas (0) _Alignas (int) aligned_as_int;
2926 int_alignment = _Alignof (int),
2927 int_array_alignment = _Alignof (int[100]),
2928 char_alignment = _Alignof (char)
2930 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2933 int _Noreturn does_not_return (void) { for (;;) continue; }
2935 // Check _Static_assert.
2936 struct test_static_assert
2939 _Static_assert (sizeof (int) <= sizeof (long int),
2940 "_Static_assert does not work in struct");
2944 // Check UTF-8 literals.
2945 #define u8 syntax error!
2946 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2948 // Check duplicate typedefs.
2949 typedef long *long_ptr;
2950 typedef long int *long_ptr;
2951 typedef long_ptr long_ptr;
2953 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2957 struct { int i; int j; };
2958 struct { int k; long int l; } w;
2964 # Test code for whether the C compiler supports C11 (body of main).
2965 ac_c_conftest_c11_main='
2966 _Static_assert ((offsetof (struct anonymous, i)
2967 == offsetof (struct anonymous, w.k)),
2968 "Anonymous union alignment botch");
2974 # Test code for whether the C compiler supports C11 (complete).
2975 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2976 ${ac_c_conftest_c99_globals}
2977 ${ac_c_conftest_c11_globals}
2980 main (int argc, char **argv)
2983 ${ac_c_conftest_c89_main}
2984 ${ac_c_conftest_c99_main}
2985 ${ac_c_conftest_c11_main}
2990 # Test code for whether the C compiler supports C99 (complete).
2991 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2992 ${ac_c_conftest_c99_globals}
2995 main (int argc, char **argv)
2998 ${ac_c_conftest_c89_main}
2999 ${ac_c_conftest_c99_main}
3004 # Test code for whether the C compiler supports C89 (complete).
3005 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3008 main (int argc, char **argv)
3011 ${ac_c_conftest_c89_main}
3016 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3017 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3018 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3019 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3020 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3021 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3022 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3023 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3024 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3025 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3026 gt_needs="$gt_needs "
3027 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3028 # Test code for whether the C++ compiler supports C++98 (global declarations)
3029 ac_cxx_conftest_cxx98_globals='
3030 // Does the compiler advertise C++98 conformance?
3031 #if !defined __cplusplus || __cplusplus < 199711L
3032 # error "Compiler does not advertise C++98 conformance"
3035 // These inclusions are to reject old compilers that
3036 // lack the unsuffixed header files.
3038 #include <exception>
3040 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3041 extern void assert (int);
3043 extern int strcmp (const char *, const char *);
3046 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3047 using std::exception;
3052 void test_exception_syntax()
3056 } catch (const char *s) {
3057 // Extra parentheses suppress a warning when building autoconf itself,
3058 // due to lint rules shared with more typical C programs.
3059 assert (!(strcmp) (s, "test"));
3063 template <typename T> struct test_template
3066 explicit test_template(T t) : val(t) {}
3067 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3070 } // anonymous namespace
3073 # Test code for whether the C++ compiler supports C++98 (body of main)
3074 ac_cxx_conftest_cxx98_main='
3078 test_exception_syntax ();
3079 test_template<double> tt (2.0);
3080 assert (tt.add (4) == 6.0);
3081 assert (true && !false);
3085 # Test code for whether the C++ compiler supports C++11 (global declarations)
3086 ac_cxx_conftest_cxx11_globals='
3087 // Does the compiler advertise C++ 2011 conformance?
3088 #if !defined __cplusplus || __cplusplus < 201103L
3089 # error "Compiler does not advertise C++11 conformance"
3094 constexpr int get_val() { return 20; }
3105 delegate(int n) : n(n) {}
3106 delegate(): delegate(2354) {}
3108 virtual int getval() { return this->n; };
3113 class overridden : public delegate
3116 overridden(int n): delegate(n) {}
3117 virtual int getval() override final { return this->n * 2; }
3123 nocopy(int i): i(i) {}
3125 nocopy(const nocopy&) = delete;
3126 nocopy & operator=(const nocopy&) = delete;
3131 // for testing lambda expressions
3132 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3137 // for testing variadic templates and trailing return types
3138 template <typename V> auto sum(V first) -> V
3142 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3144 return first + sum(rest...);
3149 # Test code for whether the C++ compiler supports C++11 (body of main)
3150 ac_cxx_conftest_cxx11_main='
3152 // Test auto and decltype
3154 auto a2 = 48573953.4;
3155 auto a3 = "String literal";
3158 for (auto i = a3; *i; ++i) { total += *i; }
3160 decltype(a2) a4 = 34895.034;
3164 short sa[cxx11test::get_val()] = { 0 };
3167 // Test initializer lists
3168 cxx11test::testinit il = { 4323, 435234.23544 };
3171 // Test range-based for
3172 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3173 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3174 for (auto &x : array) { x += 23; }
3177 // Test lambda expressions
3178 using cxx11test::eval;
3179 assert (eval ([](int x) { return x*2; }, 21) == 42);
3181 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3183 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3187 // Test use of variadic templates
3188 using cxx11test::sum;
3191 auto c = sum(1.0, 2.0, 3.0);
3194 // Test constructor delegation
3195 cxx11test::delegate d1;
3196 cxx11test::delegate d2();
3197 cxx11test::delegate d3(45);
3200 // Test override and final
3201 cxx11test::overridden o1(55464);
3208 // Test template brackets
3209 test_template<::test_template<int>> v(test_template<int>(12));
3213 char const *utf8 = u8"UTF-8 string \u2500";
3214 char16_t const *utf16 = u"UTF-8 string \u2500";
3215 char32_t const *utf32 = U"UTF-32 string \u2500";
3219 # Test code for whether the C compiler supports C++11 (complete).
3220 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3221 ${ac_cxx_conftest_cxx11_globals}
3224 main (int argc, char **argv)
3227 ${ac_cxx_conftest_cxx98_main}
3228 ${ac_cxx_conftest_cxx11_main}
3233 # Test code for whether the C compiler supports C++98 (complete).
3234 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3236 main (int argc, char **argv)
3239 ${ac_cxx_conftest_cxx98_main}
3245 # Auxiliary files required by this configure script.
3246 ac_aux_files="config.rpath install-sh config.guess config.sub"
3248 # Locations in which to look for auxiliary files.
3249 ac_aux_dir_candidates="${srcdir}/config"
3251 # Search for a directory containing all of the required auxiliary files,
3252 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3253 # If we don't find one directory that contains all the files we need,
3254 # we report the set of missing files from the *first* directory in
3255 # $ac_aux_dir_candidates and give up.
3256 ac_missing_aux_files=""
3257 ac_first_candidate=:
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $ac_aux_dir_candidates
3264 case $as_dir in #(((
3267 *) as_dir=$as_dir/ ;;
3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3272 ac_aux_dir_found=yes
3274 for ac_aux in $ac_aux_files
3276 # As a special case, if "install-sh" is required, that requirement
3277 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3278 # and $ac_install_sh is set appropriately for whichever one is found.
3279 if test x"$ac_aux" = x"install-sh"
3281 if test -f "${as_dir}install-sh"; then
3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3283 ac_install_sh="${as_dir}install-sh -c"
3284 elif test -f "${as_dir}install.sh"; then
3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3286 ac_install_sh="${as_dir}install.sh -c"
3287 elif test -f "${as_dir}shtool"; then
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3289 ac_install_sh="${as_dir}shtool install -c"
3292 if $ac_first_candidate; then
3293 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3299 if test -f "${as_dir}${ac_aux}"; then
3300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3303 if $ac_first_candidate; then
3304 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3311 if test "$ac_aux_dir_found" = yes; then
3312 ac_aux_dir="$as_dir"
3315 ac_first_candidate=false
3324 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3328 # These three variables are undocumented and unsupported,
3329 # and are intended to be withdrawn in a future Autoconf release.
3330 # They can cause serious problems if a builder's source tree is in a directory
3331 # whose full name contains unusual characters.
3332 if test -f "${ac_aux_dir}config.guess"; then
3333 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3335 if test -f "${ac_aux_dir}config.sub"; then
3336 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3338 if test -f "$ac_aux_dir/configure"; then
3339 ac_configure="$SHELL ${ac_aux_dir}configure"
3342 # Check that the precious variables saved in the cache have kept the same
3344 ac_cache_corrupted=false
3345 for ac_var in $ac_precious_vars; do
3346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3347 eval ac_new_set=\$ac_env_${ac_var}_set
3348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3349 eval ac_new_val=\$ac_env_${ac_var}_value
3350 case $ac_old_set,$ac_new_set in
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3353 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3354 ac_cache_corrupted=: ;;
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3357 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3358 ac_cache_corrupted=: ;;
3361 if test "x$ac_old_val" != "x$ac_new_val"; then
3362 # differences in whitespace do not lead to failure.
3363 ac_old_val_w=`echo x $ac_old_val`
3364 ac_new_val_w=`echo x $ac_new_val`
3365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3367 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3368 ac_cache_corrupted=:
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3371 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3372 eval $ac_var=\$ac_old_val
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3375 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3377 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3380 # Pass precious variables to config.status.
3381 if test "$ac_new_set" = set; then
3383 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3384 *) ac_arg=$ac_var=$ac_new_val ;;
3386 case " $ac_configure_args " in
3387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3392 if $ac_cache_corrupted; then
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3396 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3397 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3398 and start over" "$LINENO" 5
3400 ## -------------------- ##
3401 ## Main body of script. ##
3402 ## -------------------- ##
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 ac_config_headers="$ac_config_headers lib/config.h"
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 printf %s "checking for $ac_word... " >&6; }
3436 if test ${ac_cv_prog_CC+y}
3438 printf %s "(cached) " >&6
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 case $as_dir in #(((
3450 *) as_dir=$as_dir/ ;;
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3465 if test -n "$CC"; then
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 printf "%s\n" "$CC" >&6; }
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 printf "%s\n" "no" >&6; }
3475 if test -z "$ac_cv_prog_CC"; then
3477 # Extract the first word of "gcc", so it can be a program name with args.
3478 set dummy gcc; ac_word=$2
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 printf %s "checking for $ac_word... " >&6; }
3481 if test ${ac_cv_prog_ac_ct_CC+y}
3483 printf %s "(cached) " >&6
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 case $as_dir in #(((
3495 *) as_dir=$as_dir/ ;;
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_ac_ct_CC="gcc"
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512 printf "%s\n" "$ac_ct_CC" >&6; }
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 printf "%s\n" "no" >&6; }
3518 if test "x$ac_ct_CC" = x; then
3521 case $cross_compiling:$ac_tool_warned in
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}cc; ac_word=$2
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 printf %s "checking for $ac_word... " >&6; }
3539 if test ${ac_cv_prog_CC+y}
3541 printf %s "(cached) " >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 case $as_dir in #(((
3553 *) as_dir=$as_dir/ ;;
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="${ac_tool_prefix}cc"
3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3579 if test -z "$CC"; then
3580 # Extract the first word of "cc", so it can be a program name with args.
3581 set dummy cc; ac_word=$2
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 printf %s "checking for $ac_word... " >&6; }
3584 if test ${ac_cv_prog_CC+y}
3586 printf %s "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 case $as_dir in #(((
3599 *) as_dir=$as_dir/ ;;
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected=yes
3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy $ac_cv_prog_CC
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3624 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3630 if test -n "$CC"; then
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 printf "%s\n" "$CC" >&6; }
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 printf "%s\n" "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 printf %s "checking for $ac_word... " >&6; }
3648 if test ${ac_cv_prog_CC+y}
3650 printf %s "(cached) " >&6
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 case $as_dir in #(((
3662 *) as_dir=$as_dir/ ;;
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3677 if test -n "$CC"; then
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 printf "%s\n" "$CC" >&6; }
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3686 test -n "$CC" && break
3689 if test -z "$CC"; then
3691 for ac_prog in cl.exe
3693 # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy $ac_prog; ac_word=$2
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 printf %s "checking for $ac_word... " >&6; }
3697 if test ${ac_cv_prog_ac_ct_CC+y}
3699 printf %s "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 case $as_dir in #(((
3711 *) as_dir=$as_dir/ ;;
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_ac_ct_CC="$ac_prog"
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3726 if test -n "$ac_ct_CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3728 printf "%s\n" "$ac_ct_CC" >&6; }
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3735 test -n "$ac_ct_CC" && break
3738 if test "x$ac_ct_CC" = x; then
3741 case $cross_compiling:$ac_tool_warned in
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}clang; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_CC+y}
3760 printf %s "(cached) " >&6
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 case $as_dir in #(((
3772 *) as_dir=$as_dir/ ;;
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="${ac_tool_prefix}clang"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3787 if test -n "$CC"; then
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 printf "%s\n" "$CC" >&6; }
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3797 if test -z "$ac_cv_prog_CC"; then
3799 # Extract the first word of "clang", so it can be a program name with args.
3800 set dummy clang; ac_word=$2
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 printf %s "checking for $ac_word... " >&6; }
3803 if test ${ac_cv_prog_ac_ct_CC+y}
3805 printf %s "(cached) " >&6
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 case $as_dir in #(((
3817 *) as_dir=$as_dir/ ;;
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CC="clang"
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3832 if test -n "$ac_ct_CC"; then
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3834 printf "%s\n" "$ac_ct_CC" >&6; }
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 printf "%s\n" "no" >&6; }
3840 if test "x$ac_ct_CC" = x; then
3843 case $cross_compiling:$ac_tool_warned in
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847 ac_tool_warned=yes ;;
3858 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error $? "no acceptable C compiler found in \$PATH
3861 See \`config.log' for more details" "$LINENO" 5; }
3863 # Provide some information about the compiler.
3864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3867 for ac_option in --version -v -V -qversion -version; do
3868 { { ac_try="$ac_compiler $ac_option >&5"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 printf "%s\n" "$ac_try_echo"; } >&5
3875 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3877 if test -s conftest.err; then
3879 ... rest of stderr output deleted ...
3880 10q' conftest.err >conftest.er1
3881 cat conftest.er1 >&5
3883 rm -f conftest.er1 conftest.err
3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3899 ac_clean_files_save=$ac_clean_files
3900 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3901 # Try to create an executable without -o first, disregard a.out.
3902 # It will help us diagnose broken compilers, and finding out an intuition
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3905 printf %s "checking whether the C compiler works... " >&6; }
3906 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908 # The possible output files:
3909 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3912 for ac_file in $ac_files
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3916 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3921 if { { ac_try="$ac_link_default"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 printf "%s\n" "$ac_try_echo"; } >&5
3928 (eval "$ac_link_default") 2>&5
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }
3933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3936 # so that the user can short-circuit this test for compilers unknown to
3938 for ac_file in $ac_files ''
3940 test -f "$ac_file" || continue
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3945 # We found the default executable, but exeext='' is most
3949 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953 # We set ac_cv_exeext here because the later test for it is not
3954 # safe: cross compilers may not add the suffix if given an `-o'
3955 # argument, so we may need to know it at that point already.
3956 # Even if this section looks crufty: it has the advantage of
3963 test "$ac_cv_exeext" = no && ac_cv_exeext=
3968 if test -z "$ac_file"
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 printf "%s\n" "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error 77 "C compiler cannot create executables
3978 See \`config.log' for more details" "$LINENO" 5; }
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 printf "%s\n" "yes" >&6; }
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3984 printf %s "checking for C compiler default output file name... " >&6; }
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3986 printf "%s\n" "$ac_file" >&6; }
3987 ac_exeext=$ac_cv_exeext
3989 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3990 ac_clean_files=$ac_clean_files_save
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3992 printf %s "checking for suffix of executables... " >&6; }
3993 if { { ac_try="$ac_link"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 printf "%s\n" "$ac_try_echo"; } >&5
4000 (eval "$ac_link") 2>&5
4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details" "$LINENO" 5; }
4024 rm -f conftest conftest$ac_cv_exeext
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 printf "%s\n" "$ac_cv_exeext" >&6; }
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4037 FILE *f = fopen ("conftest.out", "w");
4038 return ferror (f) || fclose (f) != 0;
4044 ac_clean_files="$ac_clean_files conftest.out"
4045 # Check that the compiler produces executables we can run. If not, either
4046 # the compiler is broken, or we cross compile.
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4048 printf %s "checking whether we are cross compiling... " >&6; }
4049 if test "$cross_compiling" != yes; then
4050 { { ac_try="$ac_link"
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_link") 2>&5
4059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }
4061 if { ac_try='./conftest$ac_cv_exeext'
4062 { { case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 printf "%s\n" "$ac_try_echo"; } >&5
4068 (eval "$ac_try") 2>&5
4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071 test $ac_status = 0; }; }; then
4074 if test "$cross_compiling" = maybe; then
4077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error 77 "cannot run C compiled programs.
4080 If you meant to cross compile, use \`--host'.
4081 See \`config.log' for more details" "$LINENO" 5; }
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4086 printf "%s\n" "$cross_compiling" >&6; }
4088 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4089 ac_clean_files=$ac_clean_files_save
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4091 printf %s "checking for suffix of object files... " >&6; }
4092 if test ${ac_cv_objext+y}
4094 printf %s "(cached) " >&6
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 rm -f conftest.o conftest.obj
4108 if { { ac_try="$ac_compile"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114 printf "%s\n" "$ac_try_echo"; } >&5
4115 (eval "$ac_compile") 2>&5
4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }
4120 for ac_file in conftest.o conftest.obj conftest.*; do
4121 test -f "$ac_file" || continue;
4123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129 printf "%s\n" "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "cannot compute suffix of object files: cannot compile
4135 See \`config.log' for more details" "$LINENO" 5; }
4137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4140 printf "%s\n" "$ac_cv_objext" >&6; }
4141 OBJEXT=$ac_cv_objext
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4144 printf %s "checking whether the compiler supports GNU C... " >&6; }
4145 if test ${ac_cv_c_compiler_gnu+y}
4147 printf %s "(cached) " >&6
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"
4169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4174 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test $ac_compiler_gnu = yes; then
4182 ac_test_CFLAGS=${CFLAGS+y}
4183 ac_save_CFLAGS=$CFLAGS
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185 printf %s "checking whether $CC accepts -g... " >&6; }
4186 if test ${ac_cv_prog_cc_g+y}
4188 printf %s "(cached) " >&6
4190 ac_save_c_werror_flag=$ac_c_werror_flag
4191 ac_c_werror_flag=yes
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4205 if ac_fn_c_try_compile "$LINENO"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4238 if ac_fn_c_try_compile "$LINENO"
4242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4251 if test $ac_test_CFLAGS; then
4252 CFLAGS=$ac_save_CFLAGS
4253 elif test $ac_cv_prog_cc_g = yes; then
4254 if test "$GCC" = yes; then
4260 if test "$GCC" = yes; then
4267 if test x$ac_prog_cc_stdc = xno
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4270 printf %s "checking for $CC option to enable C11 features... " >&6; }
4271 if test ${ac_cv_prog_cc_c11+y}
4273 printf %s "(cached) " >&6
4275 ac_cv_prog_cc_c11=no
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 $ac_c_conftest_c11_program
4281 for ac_arg in '' -std=gnu11
4283 CC="$ac_save_CC $ac_arg"
4284 if ac_fn_c_try_compile "$LINENO"
4286 ac_cv_prog_cc_c11=$ac_arg
4288 rm -f core conftest.err conftest.$ac_objext conftest.beam
4289 test "x$ac_cv_prog_cc_c11" != "xno" && break
4291 rm -f conftest.$ac_ext
4295 if test "x$ac_cv_prog_cc_c11" = xno
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4298 printf "%s\n" "unsupported" >&6; }
4300 if test "x$ac_cv_prog_cc_c11" = x
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 printf "%s\n" "none needed" >&6; }
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4306 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4307 CC="$CC $ac_cv_prog_cc_c11"
4309 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4313 if test x$ac_prog_cc_stdc = xno
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4316 printf %s "checking for $CC option to enable C99 features... " >&6; }
4317 if test ${ac_cv_prog_cc_c99+y}
4319 printf %s "(cached) " >&6
4321 ac_cv_prog_cc_c99=no
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 $ac_c_conftest_c99_program
4327 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4329 CC="$ac_save_CC $ac_arg"
4330 if ac_fn_c_try_compile "$LINENO"
4332 ac_cv_prog_cc_c99=$ac_arg
4334 rm -f core conftest.err conftest.$ac_objext conftest.beam
4335 test "x$ac_cv_prog_cc_c99" != "xno" && break
4337 rm -f conftest.$ac_ext
4341 if test "x$ac_cv_prog_cc_c99" = xno
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4344 printf "%s\n" "unsupported" >&6; }
4346 if test "x$ac_cv_prog_cc_c99" = x
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4349 printf "%s\n" "none needed" >&6; }
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4352 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4353 CC="$CC $ac_cv_prog_cc_c99"
4355 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4359 if test x$ac_prog_cc_stdc = xno
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4362 printf %s "checking for $CC option to enable C89 features... " >&6; }
4363 if test ${ac_cv_prog_cc_c89+y}
4365 printf %s "(cached) " >&6
4367 ac_cv_prog_cc_c89=no
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 $ac_c_conftest_c89_program
4373 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4375 CC="$ac_save_CC $ac_arg"
4376 if ac_fn_c_try_compile "$LINENO"
4378 ac_cv_prog_cc_c89=$ac_arg
4380 rm -f core conftest.err conftest.$ac_objext conftest.beam
4381 test "x$ac_cv_prog_cc_c89" != "xno" && break
4383 rm -f conftest.$ac_ext
4387 if test "x$ac_cv_prog_cc_c89" = xno
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4390 printf "%s\n" "unsupported" >&6; }
4392 if test "x$ac_cv_prog_cc_c89" = x
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4395 printf "%s\n" "none needed" >&6; }
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4398 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4399 CC="$CC $ac_cv_prog_cc_c89"
4401 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4407 ac_cpp='$CPP $CPPFLAGS'
4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413 ac_header= ac_cache=
4414 for ac_item in $ac_header_c_list
4416 if test $ac_cache; then
4417 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4418 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4419 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4421 ac_header= ac_cache=
4422 elif test $ac_header; then
4436 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4439 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4449 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4450 if test ${ac_cv_safe_to_define___extensions__+y}
4452 printf %s "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4457 # define __EXTENSIONS__ 1
4458 $ac_includes_default
4467 if ac_fn_c_try_compile "$LINENO"
4469 ac_cv_safe_to_define___extensions__=yes
4471 ac_cv_safe_to_define___extensions__=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4476 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4479 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4480 if test ${ac_cv_should_define__xopen_source+y}
4482 printf %s "(cached) " >&6
4484 ac_cv_should_define__xopen_source=no
4485 if test $ac_cv_header_wchar_h = yes
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4500 if ac_fn_c_try_compile "$LINENO"
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4507 #define _XOPEN_SOURCE 500
4518 if ac_fn_c_try_compile "$LINENO"
4520 ac_cv_should_define__xopen_source=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4528 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4530 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4532 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4534 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4536 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4538 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4540 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4542 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4544 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4546 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4548 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4556 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4558 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4560 if test $ac_cv_header_minix_config_h = yes
4563 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4565 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4567 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4572 if test $ac_cv_safe_to_define___extensions__ = yes
4574 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4577 if test $ac_cv_should_define__xopen_source = yes
4579 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4586 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
4587 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
4588 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
4589 | tr \" " " | awk '{print $1}'`
4590 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
4591 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4592 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4594 if expr $YEAR ">" 1900 > /dev/null ; then
4595 E2FSPROGS_YEAR=$YEAR
4596 elif expr $YEAR ">" 90 >/dev/null ; then
4597 E2FSPROGS_YEAR=19$YEAR
4599 E2FSPROGS_YEAR=20$YEAR
4603 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4604 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4605 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4606 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4607 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4608 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4609 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4610 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4611 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4612 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4613 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4614 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4616 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4619 base_ver=`echo $E2FSPROGS_VERSION | \
4620 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
4622 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4624 case $E2FSPROGS_VERSION in
4626 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
4629 E2FSPROGS_PKGVER="$base_ver"
4633 unset DATE MONTH YEAR base_ver pre_vers date_spec
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4635 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4637 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4646 # Check whether --with-diet-libc was given.
4647 if test ${with_diet_libc+y}
4649 withval=$with_diet_libc; CC="diet cc -nostdinc"
4655 LIBS="$LIBS -lcompat"
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4658 printf "%s\n" "CC=$CC" >&6; }
4663 # Make sure we can run config.sub.
4664 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4665 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4668 printf %s "checking build system type... " >&6; }
4669 if test ${ac_cv_build+y}
4671 printf %s "(cached) " >&6
4673 ac_build_alias=$build_alias
4674 test "x$ac_build_alias" = x &&
4675 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4676 test "x$ac_build_alias" = x &&
4677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4678 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4679 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4683 printf "%s\n" "$ac_cv_build" >&6; }
4684 case $ac_cv_build in
4686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4689 ac_save_IFS=$IFS; IFS='-'
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4703 printf %s "checking host system type... " >&6; }
4704 if test ${ac_cv_host+y}
4706 printf %s "(cached) " >&6
4708 if test "x$host_alias" = x; then
4709 ac_cv_host=$ac_cv_build
4711 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4712 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4717 printf "%s\n" "$ac_cv_host" >&6; }
4720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4723 ac_save_IFS=$IFS; IFS='-'
4729 # Remember, the first character of IFS is used to create $*,
4730 # except with old shells:
4733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4738 printf %s "checking for dlopen in -ldl... " >&6; }
4739 if test ${ac_cv_lib_dl_dlopen+y}
4741 printf %s "(cached) " >&6
4743 ac_check_lib_save_LIBS=$LIBS
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4748 /* Override any GCC internal prototype to avoid an error.
4749 Use char because int might match the return type of a GCC
4750 builtin and then its argument prototype would still apply. */
4760 if ac_fn_c_try_link "$LINENO"
4762 ac_cv_lib_dl_dlopen=yes
4764 ac_cv_lib_dl_dlopen=no
4766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4767 conftest$ac_exeext conftest.$ac_ext
4768 LIBS=$ac_check_lib_save_LIBS
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4771 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4772 if test "x$ac_cv_lib_dl_dlopen" = xyes
4779 # Check whether --with-cc was given.
4780 if test ${with_cc+y}
4782 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4786 # Check whether --with-ccopts was given.
4787 if test ${with_ccopts+y}
4789 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4793 # Check whether --with-ldopts was given.
4794 if test ${with_ldopts+y}
4796 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 printf %s "checking for $ac_word... " >&6; }
4809 if test ${ac_cv_prog_CC+y}
4811 printf %s "(cached) " >&6
4813 if test -n "$CC"; then
4814 ac_cv_prog_CC="$CC" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 case $as_dir in #(((
4823 *) as_dir=$as_dir/ ;;
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4838 if test -n "$CC"; then
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 printf "%s\n" "$CC" >&6; }
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 printf "%s\n" "no" >&6; }
4848 if test -z "$ac_cv_prog_CC"; then
4850 # Extract the first word of "gcc", so it can be a program name with args.
4851 set dummy gcc; ac_word=$2
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 printf %s "checking for $ac_word... " >&6; }
4854 if test ${ac_cv_prog_ac_ct_CC+y}
4856 printf %s "(cached) " >&6
4858 if test -n "$ac_ct_CC"; then
4859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 case $as_dir in #(((
4868 *) as_dir=$as_dir/ ;;
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_ac_ct_CC="gcc"
4873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 printf "%s\n" "$ac_ct_CC" >&6; }
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 printf "%s\n" "no" >&6; }
4891 if test "x$ac_ct_CC" = x; then
4894 case $cross_compiling:$ac_tool_warned in
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned=yes ;;
4906 if test -z "$CC"; then
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}cc; ac_word=$2
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 printf %s "checking for $ac_word... " >&6; }
4912 if test ${ac_cv_prog_CC+y}
4914 printf %s "(cached) " >&6
4916 if test -n "$CC"; then
4917 ac_cv_prog_CC="$CC" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 case $as_dir in #(((
4926 *) as_dir=$as_dir/ ;;
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_CC="${ac_tool_prefix}cc"
4931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4941 if test -n "$CC"; then
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943 printf "%s\n" "$CC" >&6; }
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 printf "%s\n" "no" >&6; }
4952 if test -z "$CC"; then
4953 # Extract the first word of "cc", so it can be a program name with args.
4954 set dummy cc; ac_word=$2
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 printf %s "checking for $ac_word... " >&6; }
4957 if test ${ac_cv_prog_CC+y}
4959 printf %s "(cached) " >&6
4961 if test -n "$CC"; then
4962 ac_cv_prog_CC="$CC" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 case $as_dir in #(((
4972 *) as_dir=$as_dir/ ;;
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4977 ac_prog_rejected=yes
4981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4988 if test $ac_prog_rejected = yes; then
4989 # We found a bogon in the path, so make sure we never use it.
4990 set dummy $ac_cv_prog_CC
4992 if test $# != 0; then
4993 # We chose a different compiler from the bogus one.
4994 # However, it has the same basename, so the bogon will be chosen
4995 # first if we set CC to just the basename; use the full file name.
4997 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5003 if test -n "$CC"; then
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5005 printf "%s\n" "$CC" >&6; }
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 printf "%s\n" "no" >&6; }
5013 if test -z "$CC"; then
5014 if test -n "$ac_tool_prefix"; then
5015 for ac_prog in cl.exe
5017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 printf %s "checking for $ac_word... " >&6; }
5021 if test ${ac_cv_prog_CC+y}
5023 printf %s "(cached) " >&6
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 case $as_dir in #(((
5035 *) as_dir=$as_dir/ ;;
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5050 if test -n "$CC"; then
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5052 printf "%s\n" "$CC" >&6; }
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 printf "%s\n" "no" >&6; }
5059 test -n "$CC" && break
5062 if test -z "$CC"; then
5064 for ac_prog in cl.exe
5066 # Extract the first word of "$ac_prog", so it can be a program name with args.
5067 set dummy $ac_prog; ac_word=$2
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 printf %s "checking for $ac_word... " >&6; }
5070 if test ${ac_cv_prog_ac_ct_CC+y}
5072 printf %s "(cached) " >&6
5074 if test -n "$ac_ct_CC"; then
5075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 case $as_dir in #(((
5084 *) as_dir=$as_dir/ ;;
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_CC="$ac_prog"
5089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5099 if test -n "$ac_ct_CC"; then
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5101 printf "%s\n" "$ac_ct_CC" >&6; }
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 printf "%s\n" "no" >&6; }
5108 test -n "$ac_ct_CC" && break
5111 if test "x$ac_ct_CC" = x; then
5114 case $cross_compiling:$ac_tool_warned in
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118 ac_tool_warned=yes ;;
5125 if test -z "$CC"; then
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}clang; ac_word=$2
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 printf %s "checking for $ac_word... " >&6; }
5131 if test ${ac_cv_prog_CC+y}
5133 printf %s "(cached) " >&6
5135 if test -n "$CC"; then
5136 ac_cv_prog_CC="$CC" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 case $as_dir in #(((
5145 *) as_dir=$as_dir/ ;;
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_CC="${ac_tool_prefix}clang"
5150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5160 if test -n "$CC"; then
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5162 printf "%s\n" "$CC" >&6; }
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 printf "%s\n" "no" >&6; }
5170 if test -z "$ac_cv_prog_CC"; then
5172 # Extract the first word of "clang", so it can be a program name with args.
5173 set dummy clang; ac_word=$2
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 printf %s "checking for $ac_word... " >&6; }
5176 if test ${ac_cv_prog_ac_ct_CC+y}
5178 printf %s "(cached) " >&6
5180 if test -n "$ac_ct_CC"; then
5181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 case $as_dir in #(((
5190 *) as_dir=$as_dir/ ;;
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_ac_ct_CC="clang"
5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5205 if test -n "$ac_ct_CC"; then
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5207 printf "%s\n" "$ac_ct_CC" >&6; }
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 printf "%s\n" "no" >&6; }
5213 if test "x$ac_ct_CC" = x; then
5216 case $cross_compiling:$ac_tool_warned in
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5220 ac_tool_warned=yes ;;
5231 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5232 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5233 as_fn_error $? "no acceptable C compiler found in \$PATH
5234 See \`config.log' for more details" "$LINENO" 5; }
5236 # Provide some information about the compiler.
5237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5240 for ac_option in --version -v -V -qversion -version; do
5241 { { ac_try="$ac_compiler $ac_option >&5"
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5247 printf "%s\n" "$ac_try_echo"; } >&5
5248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5250 if test -s conftest.err; then
5252 ... rest of stderr output deleted ...
5253 10q' conftest.err >conftest.er1
5254 cat conftest.er1 >&5
5256 rm -f conftest.er1 conftest.err
5257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5258 test $ac_status = 0; }
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5262 printf %s "checking whether the compiler supports GNU C... " >&6; }
5263 if test ${ac_cv_c_compiler_gnu+y}
5265 printf %s "(cached) " >&6
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5281 if ac_fn_c_try_compile "$LINENO"
5287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5292 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295 if test $ac_compiler_gnu = yes; then
5300 ac_test_CFLAGS=${CFLAGS+y}
5301 ac_save_CFLAGS=$CFLAGS
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5303 printf %s "checking whether $CC accepts -g... " >&6; }
5304 if test ${ac_cv_prog_cc_g+y}
5306 printf %s "(cached) " >&6
5308 ac_save_c_werror_flag=$ac_c_werror_flag
5309 ac_c_werror_flag=yes
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5323 if ac_fn_c_try_compile "$LINENO"
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5339 if ac_fn_c_try_compile "$LINENO"
5343 ac_c_werror_flag=$ac_save_c_werror_flag
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5356 if ac_fn_c_try_compile "$LINENO"
5360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 ac_c_werror_flag=$ac_save_c_werror_flag
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5368 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5369 if test $ac_test_CFLAGS; then
5370 CFLAGS=$ac_save_CFLAGS
5371 elif test $ac_cv_prog_cc_g = yes; then
5372 if test "$GCC" = yes; then
5378 if test "$GCC" = yes; then
5385 if test x$ac_prog_cc_stdc = xno
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5388 printf %s "checking for $CC option to enable C11 features... " >&6; }
5389 if test ${ac_cv_prog_cc_c11+y}
5391 printf %s "(cached) " >&6
5393 ac_cv_prog_cc_c11=no
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 $ac_c_conftest_c11_program
5399 for ac_arg in '' -std=gnu11
5401 CC="$ac_save_CC $ac_arg"
5402 if ac_fn_c_try_compile "$LINENO"
5404 ac_cv_prog_cc_c11=$ac_arg
5406 rm -f core conftest.err conftest.$ac_objext conftest.beam
5407 test "x$ac_cv_prog_cc_c11" != "xno" && break
5409 rm -f conftest.$ac_ext
5413 if test "x$ac_cv_prog_cc_c11" = xno
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5416 printf "%s\n" "unsupported" >&6; }
5418 if test "x$ac_cv_prog_cc_c11" = x
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5421 printf "%s\n" "none needed" >&6; }
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5424 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5425 CC="$CC $ac_cv_prog_cc_c11"
5427 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5431 if test x$ac_prog_cc_stdc = xno
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5434 printf %s "checking for $CC option to enable C99 features... " >&6; }
5435 if test ${ac_cv_prog_cc_c99+y}
5437 printf %s "(cached) " >&6
5439 ac_cv_prog_cc_c99=no
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 $ac_c_conftest_c99_program
5445 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5447 CC="$ac_save_CC $ac_arg"
5448 if ac_fn_c_try_compile "$LINENO"
5450 ac_cv_prog_cc_c99=$ac_arg
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam
5453 test "x$ac_cv_prog_cc_c99" != "xno" && break
5455 rm -f conftest.$ac_ext
5459 if test "x$ac_cv_prog_cc_c99" = xno
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5462 printf "%s\n" "unsupported" >&6; }
5464 if test "x$ac_cv_prog_cc_c99" = x
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5467 printf "%s\n" "none needed" >&6; }
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5470 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5471 CC="$CC $ac_cv_prog_cc_c99"
5473 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5477 if test x$ac_prog_cc_stdc = xno
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5480 printf %s "checking for $CC option to enable C89 features... " >&6; }
5481 if test ${ac_cv_prog_cc_c89+y}
5483 printf %s "(cached) " >&6
5485 ac_cv_prog_cc_c89=no
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 $ac_c_conftest_c89_program
5491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5493 CC="$ac_save_CC $ac_arg"
5494 if ac_fn_c_try_compile "$LINENO"
5496 ac_cv_prog_cc_c89=$ac_arg
5498 rm -f core conftest.err conftest.$ac_objext conftest.beam
5499 test "x$ac_cv_prog_cc_c89" != "xno" && break
5501 rm -f conftest.$ac_ext
5505 if test "x$ac_cv_prog_cc_c89" = xno
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5508 printf "%s\n" "unsupported" >&6; }
5510 if test "x$ac_cv_prog_cc_c89" = x
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5513 printf "%s\n" "none needed" >&6; }
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5516 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5517 CC="$CC $ac_cv_prog_cc_c89"
5519 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530 if test "$GCC" = yes; then
5531 RDYNAMIC="-rdynamic"
5535 ac_cpp='$CPP $CPPFLAGS'
5536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5540 printf %s "checking how to run the C preprocessor... " >&6; }
5541 # On Suns, sometimes $CPP names a directory.
5542 if test -n "$CPP" && test -d "$CPP"; then
5545 if test -z "$CPP"; then
5546 if test ${ac_cv_prog_CPP+y}
5548 printf %s "(cached) " >&6
5550 # Double quotes because $CC needs to be expanded
5551 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5554 for ac_c_preproc_warn_flag in '' yes
5556 # Use a header file that comes with gcc, so configuring glibc
5557 # with a fresh cross-compiler works.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5565 if ac_fn_c_try_cpp "$LINENO"
5569 # Broken: fails on valid input.
5572 rm -f conftest.err conftest.i conftest.$ac_ext
5574 # OK, works on sane cases. Now check whether nonexistent headers
5575 # can be detected and how.
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #include <ac_nonexistent.h>
5580 if ac_fn_c_try_cpp "$LINENO"
5582 # Broken: success on invalid input.
5585 # Passes both tests.
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.$ac_ext
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5608 printf "%s\n" "$CPP" >&6; }
5610 for ac_c_preproc_warn_flag in '' yes
5612 # Use a header file that comes with gcc, so configuring glibc
5613 # with a fresh cross-compiler works.
5614 # On the NeXT, cc -E runs the code through the compiler's parser,
5615 # not just through cpp. "Syntax error" is here to catch this case.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5621 if ac_fn_c_try_cpp "$LINENO"
5625 # Broken: fails on valid input.
5628 rm -f conftest.err conftest.i conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <ac_nonexistent.h>
5636 if ac_fn_c_try_cpp "$LINENO"
5638 # Broken: success on invalid input.
5641 # Passes both tests.
5645 rm -f conftest.err conftest.i conftest.$ac_ext
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.i conftest.err conftest.$ac_ext
5654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5657 See \`config.log' for more details" "$LINENO" 5; }
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5667 printf %s "checking for additional special compiler flags... " >&6; }
5668 if test "$GCC" = yes
5671 alpha) addcflags="-mieee" ;;
5674 if test "x$addcflags" != x
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5677 printf "%s\n" "$addcflags" >&6; }
5678 CFLAGS="$addcflags $CFLAGS"
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5681 printf "%s\n" "(none)" >&6; }
5687 # Check whether --with-root-prefix was given.
5688 if test ${with_root_prefix+y}
5690 withval=$with_root_prefix; root_prefix=$withval
5694 # Check whether --enable-maintainer-mode was given.
5695 if test ${enable_maintainer_mode+y}
5697 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5701 printf "%s\n" "Disabling maintainer mode" >&6; }
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5705 printf "%s\n" "Enabling maintainer mode" >&6; }
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5711 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5716 # Check whether --enable-symlink-install was given.
5717 if test ${enable_symlink_install+y}
5719 enableval=$enable_symlink_install; if test "$enableval" = "no"
5721 LINK_INSTALL_FLAGS=-f
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5723 printf "%s\n" "Disabling symlinks for install" >&6; }
5725 LINK_INSTALL_FLAGS=-sf
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5727 printf "%s\n" "Enabling symlinks for install" >&6; }
5731 LINK_INSTALL_FLAGS=-f
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5733 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5738 relative_symlink_defined=
5739 # Check whether --enable-relative-symlinks was given.
5740 if test ${enable_relative_symlinks+y}
5742 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5745 relative_symlink_defined=yes
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5747 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5749 SYMLINK_RELATIVE=--relative
5750 relative_symlink_defined=yes
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5752 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5756 # Check whether --enable-symlink-relative-symlinks was given.
5757 if test ${enable_symlink_relative_symlinks+y}
5759 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5761 SYMLINK_RELATIVE=yes
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5763 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5765 SYMLINK_RELATIVE=--relative
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5767 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5771 if test -z "$relative_symlink_defined"
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5775 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5781 # Check whether --enable-symlink-build was given.
5782 if test ${enable_symlink_build+y}
5784 enableval=$enable_symlink_build; if test "$enableval" = "no"
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5788 printf "%s\n" "Disabling symlinks for build" >&6; }
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5792 printf "%s\n" "Enabling symlinks for build" >&6; }
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5798 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5803 # Check whether --enable-verbose-makecmds was given.
5804 if test ${enable_verbose_makecmds+y}
5806 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5809 printf "%s\n" "Disabling verbose make commands" >&6; }
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5815 printf "%s\n" "Enabling verbose make commands" >&6; }
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5823 printf "%s\n" "Disabling verbose make commands" >&6; }
5833 E2_PKG_CONFIG_STATIC=--static
5836 # Check whether --enable-elf-shlibs was given.
5837 if test ${enable_elf_shlibs+y}
5839 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5842 MAKEFILE_ELF=/dev/null
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5844 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5846 E2_PKG_CONFIG_STATIC=
5848 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5851 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5857 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5859 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5863 MAKEFILE_ELF=/dev/null
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5866 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5872 # Check whether --enable-bsd-shlibs was given.
5873 if test ${enable_bsd_shlibs+y}
5875 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5878 MAKEFILE_BSDLIB=/dev/null
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5880 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5882 E2_PKG_CONFIG_STATIC=
5884 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5888 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5893 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5897 MAKEFILE_BSDLIB=/dev/null
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5900 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5906 # Check whether --enable-profile was given.
5907 if test ${enable_profile+y}
5909 enableval=$enable_profile; if test "$enableval" = "no"
5912 MAKEFILE_PROFILE=/dev/null
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5914 printf "%s\n" "Disabling profiling libraries" >&6; }
5917 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5918 PROFILED_LIB_EXT=_p.a
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5920 printf "%s\n" "Building profiling libraries" >&6; }
5925 MAKEFILE_PROFILE=/dev/null
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5927 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5933 # Check whether --enable-gcov was given.
5934 if test ${enable_gcov+y}
5936 enableval=$enable_gcov; if test "$enableval" = "yes"
5938 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5939 LDFLAGS="-fprofile-arcs -ftest-coverage"
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5941 printf "%s\n" "Enabling gcov support" >&6; }
5946 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5947 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5948 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5949 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5950 # Check whether --enable-hardening was given.
5951 if test ${enable_hardening+y}
5953 enableval=$enable_hardening; if test "$enableval" = "yes"
5955 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5956 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5957 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5958 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5959 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5960 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5961 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5962 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5964 printf "%s\n" "Enabling hardening support" >&6; }
5974 # Check whether --enable-jbd-debug was given.
5975 if test ${enable_jbd_debug+y}
5977 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5980 printf "%s\n" "Disabling journal debugging" >&6; }
5983 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5986 printf "%s\n" "Enabling journal debugging" >&6; }
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5991 printf "%s\n" "Disabling journal debugging by default" >&6; }
5995 # Check whether --enable-blkid-debug was given.
5996 if test ${enable_blkid_debug+y}
5998 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6001 printf "%s\n" "Disabling blkid debugging" >&6; }
6004 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6007 printf "%s\n" "Enabling blkid debugging" >&6; }
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6012 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6016 # Check whether --enable-testio-debug was given.
6017 if test ${enable_testio_debug+y}
6019 enableval=$enable_testio_debug;
6020 if test "$enableval" = "no"
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6023 printf "%s\n" "Disabling testio debugging" >&6; }
6027 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6030 printf "%s\n" "Enabling testio debugging" >&6; }
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6035 printf "%s\n" "Enabling testio debugging by default" >&6; }
6036 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6043 # Check whether --enable-developer-features was given.
6044 if test ${enable_developer_features+y}
6046 enableval=$enable_developer_features;
6047 if test "$enableval" = "yes"
6050 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6053 printf "%s\n" "Enabling ext4 developer features" >&6; }
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6056 printf "%s\n" "Disabling ext4 developer features" >&6; }
6057 DEV_FEATURES_CMT="#"
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6062 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6075 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 printf %s "checking for $ac_word... " >&6; }
6081 if test ${ac_cv_path_PKG_CONFIG+y}
6083 printf %s "(cached) " >&6
6087 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 case $as_dir in #(((
6097 *) as_dir=$as_dir/ ;;
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6101 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6112 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6113 if test -n "$PKG_CONFIG"; then
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6115 printf "%s\n" "$PKG_CONFIG" >&6; }
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 printf "%s\n" "no" >&6; }
6123 if test -z "$ac_cv_path_PKG_CONFIG"; then
6124 ac_pt_PKG_CONFIG=$PKG_CONFIG
6125 # Extract the first word of "pkg-config", so it can be a program name with args.
6126 set dummy pkg-config; ac_word=$2
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 printf %s "checking for $ac_word... " >&6; }
6129 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6131 printf %s "(cached) " >&6
6133 case $ac_pt_PKG_CONFIG in
6135 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 case $as_dir in #(((
6145 *) as_dir=$as_dir/ ;;
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6149 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6160 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6161 if test -n "$ac_pt_PKG_CONFIG"; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6163 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 printf "%s\n" "no" >&6; }
6169 if test "x$ac_pt_PKG_CONFIG" = x; then
6172 case $cross_compiling:$ac_tool_warned in
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6178 PKG_CONFIG=$ac_pt_PKG_CONFIG
6181 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6185 if test -n "$PKG_CONFIG"; then
6186 _pkg_min_version=0.9.0
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6188 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6189 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6191 printf "%s\n" "yes" >&6; }
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 printf "%s\n" "no" >&6; }
6203 DEPPROFILED_LIBUUID=
6205 # Check whether --enable-libuuid was given.
6206 if test ${enable_libuuid+y}
6208 enableval=$enable_libuuid; if test "$enableval" = "no"
6210 if test -z "$PKG_CONFIG"; then
6211 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6215 printf %s "checking for uuid_generate in -luuid... " >&6; }
6216 if test ${ac_cv_lib_uuid_uuid_generate+y}
6218 printf %s "(cached) " >&6
6220 ac_check_lib_save_LIBS=$LIBS
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6228 char uuid_generate ();
6232 return uuid_generate ();
6237 if ac_fn_c_try_link "$LINENO"
6239 ac_cv_lib_uuid_uuid_generate=yes
6241 ac_cv_lib_uuid_uuid_generate=no
6243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LIBS=$ac_check_lib_save_LIBS
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6248 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6249 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6251 LIBUUID=`$PKG_CONFIG --libs uuid`;
6252 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6254 as_fn_error $? "external uuid library not found" "$LINENO" 5
6257 PROFILED_LIBUUID=$LIBUUID
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6260 printf "%s\n" "Disabling private uuid library" >&6; }
6262 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6264 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6265 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6266 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6267 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6269 printf "%s\n" "Enabling private uuid library" >&6; }
6273 if test -n "$PKG_CONFIG"; then
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6275 printf %s "checking for uuid_generate in -luuid... " >&6; }
6276 if test ${ac_cv_lib_uuid_uuid_generate+y}
6278 printf %s "(cached) " >&6
6280 ac_check_lib_save_LIBS=$LIBS
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply. */
6288 char uuid_generate ();
6292 return uuid_generate ();
6297 if ac_fn_c_try_link "$LINENO"
6299 ac_cv_lib_uuid_uuid_generate=yes
6301 ac_cv_lib_uuid_uuid_generate=no
6303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6308 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6309 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6311 LIBUUID=`$PKG_CONFIG --libs uuid`;
6312 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6316 if test -n "$LIBUUID"; then
6317 PROFILED_LIBUUID=$LIBUUID
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6320 printf "%s\n" "Using system uuid by default" >&6; }
6322 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6324 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6325 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6326 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6327 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6329 printf "%s\n" "Enabling private uuid library by default" >&6; }
6348 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 printf %s "checking for $ac_word... " >&6; }
6354 if test ${ac_cv_path_PKG_CONFIG+y}
6356 printf %s "(cached) " >&6
6360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 case $as_dir in #(((
6370 *) as_dir=$as_dir/ ;;
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6374 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6386 if test -n "$PKG_CONFIG"; then
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6388 printf "%s\n" "$PKG_CONFIG" >&6; }
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 printf "%s\n" "no" >&6; }
6396 if test -z "$ac_cv_path_PKG_CONFIG"; then
6397 ac_pt_PKG_CONFIG=$PKG_CONFIG
6398 # Extract the first word of "pkg-config", so it can be a program name with args.
6399 set dummy pkg-config; ac_word=$2
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 printf %s "checking for $ac_word... " >&6; }
6402 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6404 printf %s "(cached) " >&6
6406 case $ac_pt_PKG_CONFIG in
6408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 case $as_dir in #(((
6418 *) as_dir=$as_dir/ ;;
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6434 if test -n "$ac_pt_PKG_CONFIG"; then
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6436 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 printf "%s\n" "no" >&6; }
6442 if test "x$ac_pt_PKG_CONFIG" = x; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6451 PKG_CONFIG=$ac_pt_PKG_CONFIG
6454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6458 if test -n "$PKG_CONFIG"; then
6459 _pkg_min_version=0.9.0
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6461 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 printf "%s\n" "yes" >&6; }
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 printf "%s\n" "no" >&6; }
6476 DEPPROFILED_LIBBLKID=
6479 # Check whether --enable-libblkid was given.
6480 if test ${enable_libblkid+y}
6482 enableval=$enable_libblkid; if test "$enableval" = "no"
6484 if test -z "$PKG_CONFIG"; then
6485 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6489 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6490 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6492 printf %s "(cached) " >&6
6494 ac_check_lib_save_LIBS=$LIBS
6495 LIBS="-lblkid -luuid $LIBS"
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6499 /* Override any GCC internal prototype to avoid an error.
6500 Use char because int might match the return type of a GCC
6501 builtin and then its argument prototype would still apply. */
6502 char blkid_get_cache ();
6506 return blkid_get_cache ();
6511 if ac_fn_c_try_link "$LINENO"
6513 ac_cv_lib_blkid_blkid_get_cache=yes
6515 ac_cv_lib_blkid_blkid_get_cache=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6518 conftest$ac_exeext conftest.$ac_ext
6519 LIBS=$ac_check_lib_save_LIBS
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6522 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6523 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6525 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6526 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6528 as_fn_error $? "external blkid library not found" "$LINENO" 5
6532 PROFILED_LIBBLKID=$LIBBLKID
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6534 printf "%s\n" "Disabling private blkid library" >&6; }
6536 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6537 DEPLIBBLKID=$LIBBLKID
6538 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6539 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6540 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6541 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6542 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6545 printf "%s\n" "Enabling private blkid library" >&6; }
6549 if test -n "$PKG_CONFIG"; then
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6551 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6552 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6554 printf %s "(cached) " >&6
6556 ac_check_lib_save_LIBS=$LIBS
6557 LIBS="-lblkid $LIBS"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6561 /* Override any GCC internal prototype to avoid an error.
6562 Use char because int might match the return type of a GCC
6563 builtin and then its argument prototype would still apply. */
6564 char blkid_get_cache ();
6568 return blkid_get_cache ();
6573 if ac_fn_c_try_link "$LINENO"
6575 ac_cv_lib_blkid_blkid_get_cache=yes
6577 ac_cv_lib_blkid_blkid_get_cache=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6580 conftest$ac_exeext conftest.$ac_ext
6581 LIBS=$ac_check_lib_save_LIBS
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6584 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6585 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6587 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6588 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6592 if test -n "$LIBBLKID"; then
6594 PROFILED_LIBBLKID=$LIBBLKID
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6596 printf "%s\n" "Using system blkid library by default" >&6; }
6598 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6599 DEPLIBBLKID=$LIBBLKID
6600 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6601 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6602 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6603 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6604 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6607 printf "%s\n" "Enabling private blkid library by default" >&6; }
6621 # Check whether --enable-subset was given.
6622 if test ${enable_subset+y}
6624 enableval=$enable_subset; if test "$enableval" = "no"
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6628 printf "%s\n" "Disabling subset-only build" >&6; }
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6632 printf "%s\n" "Enabling subset-only-build" >&6; }
6640 # Check whether --enable-backtrace was given.
6641 if test ${enable_backtrace+y}
6643 enableval=$enable_backtrace; if test "$enableval" = "no"
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6646 printf "%s\n" "Disabling use of backtrace" >&6; }
6647 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6651 printf "%s\n" "Enabling use of backtrace" >&6; }
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6656 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6660 # Check whether --enable-debugfs was given.
6661 if test ${enable_debugfs+y}
6663 enableval=$enable_debugfs; if test "$enableval" = "no"
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6666 printf "%s\n" "Disabling debugfs support" >&6; }
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6671 printf "%s\n" "Enabling debugfs support" >&6; }
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6676 printf "%s\n" "Enabling debugfs support by default" >&6; }
6682 # Check whether --enable-imager was given.
6683 if test ${enable_imager+y}
6685 enableval=$enable_imager; if test "$enableval" = "no"
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6688 printf "%s\n" "Disabling e2image support" >&6; }
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6693 printf "%s\n" "Enabling e2image support" >&6; }
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6698 printf "%s\n" "Enabling e2image support by default" >&6; }
6704 # Check whether --enable-resizer was given.
6705 if test ${enable_resizer+y}
6707 enableval=$enable_resizer; if test "$enableval" = "no"
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6710 printf "%s\n" "Disabling e2resize support" >&6; }
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6715 printf "%s\n" "Enabling e2resize support" >&6; }
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6720 printf "%s\n" "Enabling e2resize support by default" >&6; }
6726 # Check whether --enable-defrag was given.
6727 if test ${enable_defrag+y}
6729 enableval=$enable_defrag; if test "$enableval" = "no"
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6732 printf "%s\n" "Disabling e4defrag support" >&6; }
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6737 printf "%s\n" "Enabling e4defrag support" >&6; }
6741 if test -z "$WITH_DIET_LIBC"
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6744 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6748 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6755 # Check whether --enable-fsck was given.
6756 if test ${enable_fsck+y}
6758 enableval=$enable_fsck; if test "$enableval" = "no"
6760 FSCK_PROG='' FSCK_MAN=''
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6762 printf "%s\n" "Not building fsck wrapper" >&6; }
6764 FSCK_PROG=fsck FSCK_MAN=fsck.8
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6766 printf "%s\n" "Building fsck wrapper" >&6; }
6772 FSCK_PROG='' FSCK_MAN=''
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6774 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6777 FSCK_PROG=fsck FSCK_MAN=fsck.8
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6779 printf "%s\n" "Building fsck wrapper by default" >&6; }
6786 # Check whether --enable-e2initrd-helper was given.
6787 if test ${enable_e2initrd_helper+y}
6789 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6791 E2INITRD_PROG='' E2INITRD_MAN=''
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6793 printf "%s\n" "Not building e2initrd helper" >&6; }
6795 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6797 printf "%s\n" "Building e2initrd helper" >&6; }
6801 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6803 printf "%s\n" "Building e2initrd helper by default" >&6; }
6809 # Check whether --enable-tls was given.
6810 if test ${enable_tls+y}
6812 enableval=$enable_tls; if test "$enableval" = "no"
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6816 printf "%s\n" "Disabling thread local support" >&6; }
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6820 printf "%s\n" "Enabling thread local support" >&6; }
6824 if test -n "$WITH_DIET_LIBC"
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6828 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6832 printf "%s\n" "Try using thread local support by default" >&6; }
6837 if test "$try_tls" = "yes"
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6841 printf %s "checking for thread local storage (TLS) class... " >&6; }
6842 if test ${ac_cv_tls+y}
6844 printf %s "(cached) " >&6
6847 ax_tls_keywords="__thread __declspec(thread) none"
6848 for ax_tls_keyword in $ax_tls_keywords; do
6849 case $ax_tls_keyword in
6850 none) ac_cv_tls=none ; break ;;
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6857 static $ax_tls_keyword int bar;
6868 if ac_fn_c_try_compile "$LINENO"
6870 ac_cv_tls=$ax_tls_keyword ; break
6875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 if test "$ac_cv_tls" != "none"; then
6884 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6888 printf "%s\n" "$ac_cv_tls" >&6; }
6892 # Check whether --with-pthread was given.
6893 if test ${with_pthread+y}
6895 withval=$with_pthread; if test "$withval" = "no"
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6899 printf "%s\n" "Disabling pthread support" >&6; }
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6903 printf "%s\n" "Testing for pthread support" >&6; }
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6909 printf "%s\n" "Try testing for pthread support by default" >&6; }
6913 if test "$try_pthread" = "yes"
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6916 printf %s "checking for a sed that does not truncate output... " >&6; }
6917 if test ${ac_cv_path_SED+y}
6919 printf %s "(cached) " >&6
6921 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6922 for ac_i in 1 2 3 4 5 6 7; do
6923 ac_script="$ac_script$as_nl$ac_script"
6925 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6926 { ac_script=; unset ac_script;}
6927 if test -z "$SED"; then
6928 ac_path_SED_found=false
6929 # Loop through the user's path and test for each of PROGNAME-LIST
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 case $as_dir in #(((
6937 *) as_dir=$as_dir/ ;;
6939 for ac_prog in sed gsed
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6943 as_fn_executable_p "$ac_path_SED" || continue
6944 # Check for GNU ac_path_SED and select it if it is found.
6945 # Check for GNU $ac_path_SED
6946 case `"$ac_path_SED" --version 2>&1` in
6948 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6951 printf %s 0123456789 >"conftest.in"
6954 cat "conftest.in" "conftest.in" >"conftest.tmp"
6955 mv "conftest.tmp" "conftest.in"
6956 cp "conftest.in" "conftest.nl"
6957 printf "%s\n" '' >> "conftest.nl"
6958 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6960 as_fn_arith $ac_count + 1 && ac_count=$as_val
6961 if test $ac_count -gt ${ac_path_SED_max-0}; then
6962 # Best one so far, save it but keep looking for a better one
6963 ac_cv_path_SED="$ac_path_SED"
6964 ac_path_SED_max=$ac_count
6966 # 10*(2^10) chars as input seems more than enough
6967 test $ac_count -gt 10 && break
6969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6972 $ac_path_SED_found && break 3
6977 if test -z "$ac_cv_path_SED"; then
6978 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6986 printf "%s\n" "$ac_cv_path_SED" >&6; }
6987 SED="$ac_cv_path_SED"
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6992 printf %s "checking for grep that handles long lines and -e... " >&6; }
6993 if test ${ac_cv_path_GREP+y}
6995 printf %s "(cached) " >&6
6997 if test -z "$GREP"; then
6998 ac_path_GREP_found=false
6999 # Loop through the user's path and test for each of PROGNAME-LIST
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7004 case $as_dir in #(((
7007 *) as_dir=$as_dir/ ;;
7009 for ac_prog in grep ggrep
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7013 as_fn_executable_p "$ac_path_GREP" || continue
7014 # Check for GNU ac_path_GREP and select it if it is found.
7015 # Check for GNU $ac_path_GREP
7016 case `"$ac_path_GREP" --version 2>&1` in
7018 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7021 printf %s 0123456789 >"conftest.in"
7024 cat "conftest.in" "conftest.in" >"conftest.tmp"
7025 mv "conftest.tmp" "conftest.in"
7026 cp "conftest.in" "conftest.nl"
7027 printf "%s\n" 'GREP' >> "conftest.nl"
7028 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7030 as_fn_arith $ac_count + 1 && ac_count=$as_val
7031 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7032 # Best one so far, save it but keep looking for a better one
7033 ac_cv_path_GREP="$ac_path_GREP"
7034 ac_path_GREP_max=$ac_count
7036 # 10*(2^10) chars as input seems more than enough
7037 test $ac_count -gt 10 && break
7039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7042 $ac_path_GREP_found && break 3
7047 if test -z "$ac_cv_path_GREP"; then
7048 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7051 ac_cv_path_GREP=$GREP
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7056 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7057 GREP="$ac_cv_path_GREP"
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7061 printf %s "checking for egrep... " >&6; }
7062 if test ${ac_cv_path_EGREP+y}
7064 printf %s "(cached) " >&6
7066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7067 then ac_cv_path_EGREP="$GREP -E"
7069 if test -z "$EGREP"; then
7070 ac_path_EGREP_found=false
7071 # Loop through the user's path and test for each of PROGNAME-LIST
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7076 case $as_dir in #(((
7079 *) as_dir=$as_dir/ ;;
7081 for ac_prog in egrep
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7085 as_fn_executable_p "$ac_path_EGREP" || continue
7086 # Check for GNU ac_path_EGREP and select it if it is found.
7087 # Check for GNU $ac_path_EGREP
7088 case `"$ac_path_EGREP" --version 2>&1` in
7090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7093 printf %s 0123456789 >"conftest.in"
7096 cat "conftest.in" "conftest.in" >"conftest.tmp"
7097 mv "conftest.tmp" "conftest.in"
7098 cp "conftest.in" "conftest.nl"
7099 printf "%s\n" 'EGREP' >> "conftest.nl"
7100 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7102 as_fn_arith $ac_count + 1 && ac_count=$as_val
7103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7104 # Best one so far, save it but keep looking for a better one
7105 ac_cv_path_EGREP="$ac_path_EGREP"
7106 ac_path_EGREP_max=$ac_count
7108 # 10*(2^10) chars as input seems more than enough
7109 test $ac_count -gt 10 && break
7111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7114 $ac_path_EGREP_found && break 3
7119 if test -z "$ac_cv_path_EGREP"; then
7120 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7123 ac_cv_path_EGREP=$EGREP
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7129 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7130 EGREP="$ac_cv_path_EGREP"
7138 ac_cpp='$CPP $CPPFLAGS'
7139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145 # We used to check for pthread.h first, but this fails if pthread.h
7146 # requires special compiler flags (e.g. on Tru64 or Sequent).
7147 # It gets checked for in the link test anyway.
7149 # First of all, check if the user has set any of the PTHREAD_LIBS,
7150 # etcetera environment variables, and if threads linking works using
7152 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7153 ax_pthread_save_CC="$CC"
7154 ax_pthread_save_CFLAGS="$CFLAGS"
7155 ax_pthread_save_LIBS="$LIBS"
7156 if test "x$PTHREAD_CC" != "x"
7160 if test "x$PTHREAD_CXX" != "x"
7164 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7165 LIBS="$PTHREAD_LIBS $LIBS"
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7167 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7171 /* Override any GCC internal prototype to avoid an error.
7172 Use char because int might match the return type of a GCC
7173 builtin and then its argument prototype would still apply. */
7174 char pthread_join ();
7178 return pthread_join ();
7183 if ac_fn_c_try_link "$LINENO"
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7188 conftest$ac_exeext conftest.$ac_ext
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7190 printf "%s\n" "$ax_pthread_ok" >&6; }
7191 if test "x$ax_pthread_ok" = "xno"; then
7195 CC="$ax_pthread_save_CC"
7196 CFLAGS="$ax_pthread_save_CFLAGS"
7197 LIBS="$ax_pthread_save_LIBS"
7200 # We must check for the threads library under a number of different
7201 # names; the ordering is very important because some systems
7202 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7203 # libraries is broken (non-POSIX).
7205 # Create a list of thread flags to try. Items with a "," contain both
7206 # C compiler flags (before ",") and linker flags (after ","). Other items
7207 # starting with a "-" are C compiler flags, and remaining items are
7208 # library names, except for "none" which indicates that we try without
7209 # any flags at all, and "pthread-config" which is a program returning
7210 # the flags for the Pth emulation library.
7212 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7214 # The ordering *is* (sometimes) important. Some notes on the
7215 # individual items follow:
7217 # pthreads: AIX (must check this before -lpthread)
7218 # none: in case threads are in libc; should be tried before -Kthread and
7219 # other compiler flags to prevent continual compiler warnings
7220 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7221 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7222 # (Note: HP C rejects this with "bad form for `-t' option")
7223 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7224 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7225 # doesn't hurt to check since this sometimes defines pthreads and
7226 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7227 # is present but should not be used directly; and before -mthreads,
7228 # because the compiler interprets this as "-mt" + "-hreads")
7229 # -mthreads: Mingw32/gcc, Lynx/gcc
7230 # pthread: Linux, etcetera
7231 # --thread-safe: KAI C++
7232 # pthread-config: use pthread-config program (for GNU Pth library)
7238 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7239 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7241 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7246 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7247 # multi-threading and also sets -lpthread."
7249 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7254 # IBM z/OS requires a feature-test macro to be defined in order to
7255 # enable POSIX threads at all, so give the user a hint if this is
7256 # not set. (We don't define these ourselves, as they can affect
7257 # other portions of the system API in unpredictable ways.)
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7262 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7263 AX_PTHREAD_ZOS_MISSING
7267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7268 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7271 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7279 # On Solaris (at least, for some versions), libc contains stubbed
7280 # (non-functional) versions of the pthreads routines, so link-based
7281 # tests will erroneously succeed. (N.B.: The stubs are missing
7282 # pthread_cleanup_push, or rather a function called by this macro,
7283 # so we could check for that, but who knows whether they'll stub
7284 # that too in a future libc.) So we'll check first for the
7285 # standard Solaris way of linking pthreads (-mt -lpthread).
7287 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7291 # Are we compiling with Clang?
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7294 printf %s "checking whether $CC is Clang... " >&6; }
7295 if test ${ax_cv_PTHREAD_CLANG+y}
7297 printf %s "(cached) " >&6
7299 ax_cv_PTHREAD_CLANG=no
7300 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7301 if test "x$GCC" = "xyes"; then
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7305 # if defined(__clang__) && defined(__llvm__)
7306 AX_PTHREAD_CC_IS_CLANG
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7313 ax_cv_PTHREAD_CLANG=yes
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7321 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7322 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7325 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7327 # Note that for GCC and Clang -pthread generally implies -lpthread,
7328 # except when -nostdlib is passed.
7329 # This is problematic using libtool to build C++ shared libraries with pthread:
7330 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7331 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7332 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7333 # To solve this, first try -pthread together with -lpthread for GCC
7335 if test "x$GCC" = "xyes"
7337 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7340 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7342 if test "x$ax_pthread_clang" = "xyes"
7344 ax_pthread_flags="-pthread,-lpthread -pthread"
7348 # The presence of a feature test macro requesting re-entrant function
7349 # definitions is, on some systems, a strong hint that pthreads support is
7353 darwin* | hpux* | linux* | osf* | solaris*)
7354 ax_pthread_check_macro="_REENTRANT"
7358 ax_pthread_check_macro="_THREAD_SAFE"
7362 ax_pthread_check_macro="--"
7365 if test "x$ax_pthread_check_macro" = "x--"
7367 ax_pthread_check_cond=0
7369 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7373 if test "x$ax_pthread_ok" = "xno"; then
7374 for ax_pthread_try_flag in $ax_pthread_flags; do
7376 case $ax_pthread_try_flag in
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7379 printf %s "checking whether pthreads work without any flags... " >&6; }
7383 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7384 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7386 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7391 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7392 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7396 # Extract the first word of "pthread-config", so it can be a program name with args.
7397 set dummy pthread-config; ac_word=$2
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 printf %s "checking for $ac_word... " >&6; }
7400 if test ${ac_cv_prog_ax_pthread_config+y}
7402 printf %s "(cached) " >&6
7404 if test -n "$ax_pthread_config"; then
7405 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 case $as_dir in #(((
7414 *) as_dir=$as_dir/ ;;
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_ax_pthread_config="yes"
7419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7426 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7429 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7430 if test -n "$ax_pthread_config"; then
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7432 printf "%s\n" "$ax_pthread_config" >&6; }
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 printf "%s\n" "no" >&6; }
7439 if test "x$ax_pthread_config" = "xno"
7443 PTHREAD_CFLAGS="`pthread-config --cflags`"
7444 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7449 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7450 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7454 ax_pthread_save_CFLAGS="$CFLAGS"
7455 ax_pthread_save_LIBS="$LIBS"
7456 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7457 LIBS="$PTHREAD_LIBS $LIBS"
7459 # Check for various functions. We must include pthread.h,
7460 # since some functions may be macros. (On the Sequent, we
7461 # need a special flag -Kthread to make this header compile.)
7462 # We check for pthread_join because it is in -lpthread on IRIX
7463 # while pthread_create is in libc. We check for pthread_attr_init
7464 # due to DEC craziness with -lpthreads. We check for
7465 # pthread_cleanup_push because it is one of the few pthread
7466 # functions on Solaris that doesn't have a non-functional libc stub.
7467 # We try pthread_create on general principles.
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <pthread.h>
7472 # if $ax_pthread_check_cond
7473 # error "$ax_pthread_check_macro must be defined"
7475 static void *some_global = NULL;
7476 static void routine(void *a)
7478 /* To avoid any unused-parameter or
7479 unused-but-set-parameter warning. */
7482 static void *start_routine(void *a) { return a; }
7486 pthread_t th; pthread_attr_t attr;
7487 pthread_create(&th, 0, start_routine, 0);
7488 pthread_join(th, 0);
7489 pthread_attr_init(&attr);
7490 pthread_cleanup_push(routine, 0);
7491 pthread_cleanup_pop(0) /* ; */
7496 if ac_fn_c_try_link "$LINENO"
7500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7501 conftest$ac_exeext conftest.$ac_ext
7503 CFLAGS="$ax_pthread_save_CFLAGS"
7504 LIBS="$ax_pthread_save_LIBS"
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7507 printf "%s\n" "$ax_pthread_ok" >&6; }
7508 if test "x$ax_pthread_ok" = "xyes"
7519 # Clang needs special handling, because older versions handle the -pthread
7520 # option in a rather... idiosyncratic way
7522 if test "x$ax_pthread_clang" = "xyes"; then
7524 # Clang takes -pthread; it has never supported any other flag
7526 # (Note 1: This will need to be revisited if a system that Clang
7527 # supports has POSIX threads in a separate library. This tends not
7528 # to be the way of modern systems, but it's conceivable.)
7530 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7531 # to get POSIX threads support; the API is always present and
7532 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7533 # -pthread does define _REENTRANT, and while the Darwin headers
7534 # ignore this macro, third-party headers might not.)
7536 # However, older versions of Clang make a point of warning the user
7537 # that, in an invocation where only linking and no compilation is
7538 # taking place, the -pthread option has no effect ("argument unused
7539 # during compilation"). They expect -pthread to be passed in only
7540 # when source code is being compiled.
7542 # Problem is, this is at odds with the way Automake and most other
7543 # C build frameworks function, which is that the same flags used in
7544 # compilation (CFLAGS) are also used in linking. Many systems
7545 # supported by AX_PTHREAD require exactly this for POSIX threads
7546 # support, and in fact it is often not straightforward to specify a
7547 # flag that is used only in the compilation phase and not in
7548 # linking. Such a scenario is extremely rare in practice.
7550 # Even though use of the -pthread flag in linking would only print
7551 # a warning, this can be a nuisance for well-run software projects
7552 # that build with -Werror. So if the active version of Clang has
7553 # this misfeature, we search for an option to squash it.
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7556 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7557 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7559 printf %s "(cached) " >&6
7561 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7562 # Create an alternate version of $ac_link that compiles and
7563 # links in two steps (.c -> .o, .o -> exe) instead of one
7564 # (.c -> exe), because the warning occurs only in the second
7566 ax_pthread_save_ac_link="$ac_link"
7567 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7568 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7569 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7570 ax_pthread_save_CFLAGS="$CFLAGS"
7571 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7572 if test "x$ax_pthread_try" = "xunknown"
7576 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7577 ac_link="$ax_pthread_save_ac_link"
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 int main(void){return 0;}
7582 if ac_fn_c_try_link "$LINENO"
7584 ac_link="$ax_pthread_2step_ac_link"
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int main(void){return 0;}
7589 if ac_fn_c_try_link "$LINENO"
7593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7594 conftest$ac_exeext conftest.$ac_ext
7597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7598 conftest$ac_exeext conftest.$ac_ext
7600 ac_link="$ax_pthread_save_ac_link"
7601 CFLAGS="$ax_pthread_save_CFLAGS"
7602 if test "x$ax_pthread_try" = "x"
7606 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7610 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7612 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7614 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7617 fi # $ax_pthread_clang = yes
7621 # Various other checks:
7622 if test "x$ax_pthread_ok" = "xyes"; then
7623 ax_pthread_save_CFLAGS="$CFLAGS"
7624 ax_pthread_save_LIBS="$LIBS"
7625 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7626 LIBS="$PTHREAD_LIBS $LIBS"
7628 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7630 printf %s "checking for joinable pthread attribute... " >&6; }
7631 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7633 printf %s "(cached) " >&6
7635 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7636 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <pthread.h>
7643 int attr = $ax_pthread_attr; return attr /* ; */
7648 if ac_fn_c_try_link "$LINENO"
7650 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7653 conftest$ac_exeext conftest.$ac_ext
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7658 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7659 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7660 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7661 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7664 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7666 ax_pthread_joinable_attr_defined=yes
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7671 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7672 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7674 printf %s "(cached) " >&6
7676 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7679 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7685 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7686 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7687 test "x$ax_pthread_special_flags_added" != "xyes"
7689 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7690 ax_pthread_special_flags_added=yes
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7694 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7695 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7697 printf %s "(cached) " >&6
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #include <pthread.h>
7705 int i = PTHREAD_PRIO_INHERIT;
7711 if ac_fn_c_try_link "$LINENO"
7713 ax_cv_PTHREAD_PRIO_INHERIT=yes
7715 ax_cv_PTHREAD_PRIO_INHERIT=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7722 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7723 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7724 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7727 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7729 ax_pthread_prio_inherit_defined=yes
7733 CFLAGS="$ax_pthread_save_CFLAGS"
7734 LIBS="$ax_pthread_save_LIBS"
7736 # More AIX lossage: compile with *_r variant
7737 if test "x$GCC" != "xyes"; then
7741 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7742 #handle absolute path differently from PATH based program lookup
7746 if as_fn_executable_p ${CC}_r
7748 PTHREAD_CC="${CC}_r"
7750 if test "x${CXX}" != "x"
7752 if as_fn_executable_p ${CXX}_r
7754 PTHREAD_CXX="${CXX}_r"
7760 for ac_prog in ${CC}_r
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 printf %s "checking for $ac_word... " >&6; }
7766 if test ${ac_cv_prog_PTHREAD_CC+y}
7768 printf %s "(cached) " >&6
7770 if test -n "$PTHREAD_CC"; then
7771 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 case $as_dir in #(((
7780 *) as_dir=$as_dir/ ;;
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_PTHREAD_CC="$ac_prog"
7785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7795 if test -n "$PTHREAD_CC"; then
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7797 printf "%s\n" "$PTHREAD_CC" >&6; }
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 printf "%s\n" "no" >&6; }
7804 test -n "$PTHREAD_CC" && break
7806 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7808 if test "x${CXX}" != "x"
7810 for ac_prog in ${CXX}_r
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 printf %s "checking for $ac_word... " >&6; }
7816 if test ${ac_cv_prog_PTHREAD_CXX+y}
7818 printf %s "(cached) " >&6
7820 if test -n "$PTHREAD_CXX"; then
7821 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 case $as_dir in #(((
7830 *) as_dir=$as_dir/ ;;
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7844 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7845 if test -n "$PTHREAD_CXX"; then
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7847 printf "%s\n" "$PTHREAD_CXX" >&6; }
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 printf "%s\n" "no" >&6; }
7854 test -n "$PTHREAD_CXX" && break
7856 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7871 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7872 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7879 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7880 if test "x$ax_pthread_ok" = "xyes"; then
7882 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7897 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7901 # Check whether --enable-uuidd was given.
7902 if test ${enable_uuidd+y}
7904 enableval=$enable_uuidd; if test "$enableval" = "no"
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7907 printf "%s\n" "Not building uuidd" >&6; }
7910 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7914 printf "%s\n" "Building uuidd" >&6; }
7918 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7920 if test -z "$UUID_CMT"
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7924 printf "%s\n" "Building uuidd by default" >&6; }
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7928 printf "%s\n" "Disabling uuidd by default" >&6; }
7935 # Check whether --enable-mmp was given.
7936 if test ${enable_mmp+y}
7938 enableval=$enable_mmp; if test "$enableval" = "no"
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7941 printf "%s\n" "Disabling mmp support" >&6; }
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7944 printf "%s\n" "Enabling mmp support" >&6; }
7945 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7951 printf "%s\n" "Enabling mmp support by default" >&6; }
7952 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7958 # Check whether --enable-tdb was given.
7959 if test ${enable_tdb+y}
7961 enableval=$enable_tdb;
7962 if test "$enableval" = "no"
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7965 printf "%s\n" "Disabling tdb support" >&6; }
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7969 printf "%s\n" "Enabling tdb support" >&6; }
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7979 printf "%s\n" "Disabling tdb support by default" >&6; }
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7984 printf "%s\n" "Enabling tdb support by default" >&6; }
7992 if test "$CONFIG_TDB" = "1"
7994 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8000 TDB_MAN_COMMENT='.\"'
8005 # Check whether --enable-bmap-stats was given.
8006 if test ${enable_bmap_stats+y}
8008 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8011 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8014 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8015 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8021 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8022 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8028 # Check whether --enable-bmap-stats-ops was given.
8029 if test ${enable_bmap_stats_ops+y}
8031 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8034 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8036 if test "x${enable_bmap_stats}" = "xno"
8038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8040 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8041 See \`config.log' for more details" "$LINENO" 5; }
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8045 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8046 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8052 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8056 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8058 GETTEXT_PACKAGE=e2fsprogs
8060 VERSION="$E2FSPROGS_VERSION"
8063 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8066 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8073 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8075 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8076 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8078 printf %s "(cached) " >&6
8080 cat >conftest.make <<\_ACEOF
8083 @echo '@@@%%%=$(MAKE)=@@@%%%'
8085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8088 eval ac_cv_prog_make_${ac_make}_set=yes;;
8090 eval ac_cv_prog_make_${ac_make}_set=no;;
8094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 printf "%s\n" "yes" >&6; }
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 printf "%s\n" "no" >&6; }
8101 SET_MAKE="MAKE=${MAKE-make}"
8105 # Find a good install program. We prefer a C program (faster),
8106 # so one script is as good as another. But avoid the broken or
8107 # incompatible versions:
8108 # SysV /etc/install, /usr/sbin/install
8109 # SunOS /usr/etc/install
8110 # IRIX /sbin/install
8112 # AmigaOS /C/install, which installs bootblocks on floppy discs
8113 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8114 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8115 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8116 # OS/2's system install, which has a completely different semantic
8117 # ./install, which can be erroneously created by make from ./install.sh.
8118 # Reject install programs that cannot install multiple files.
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8120 printf %s "checking for a BSD-compatible install... " >&6; }
8121 if test -z "$INSTALL"; then
8122 if test ${ac_cv_path_install+y}
8124 printf %s "(cached) " >&6
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 case $as_dir in #(((
8133 *) as_dir=$as_dir/ ;;
8135 # Account for fact that we put trailing slashes in our PATH walk.
8138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8139 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8142 # OSF1 and SCO ODT 3.0 have their own names for install.
8143 # Don't use installbsd from OSF since it installs stuff as root
8145 for ac_prog in ginstall scoinst install; do
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8148 if test $ac_prog = install &&
8149 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8150 # AIX install. It has an incompatible calling convention.
8152 elif test $ac_prog = install &&
8153 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8154 # program-specific install script used by HP pwplus--don't use.
8157 rm -rf conftest.one conftest.two conftest.dir
8158 echo one > conftest.one
8159 echo two > conftest.two
8161 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8162 test -s conftest.one && test -s conftest.two &&
8163 test -s conftest.dir/conftest.one &&
8164 test -s conftest.dir/conftest.two
8166 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8179 rm -rf conftest.one conftest.two conftest.dir
8182 if test ${ac_cv_path_install+y}; then
8183 INSTALL=$ac_cv_path_install
8185 # As a last resort, use the slow shell script. Don't cache a
8186 # value for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the value is a relative name.
8189 INSTALL=$ac_install_sh
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8193 printf "%s\n" "$INSTALL" >&6; }
8195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196 # It thinks the first close brace ends the variable substitution.
8197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8205 printf %s "checking for a race-free mkdir -p... " >&6; }
8206 if test -z "$MKDIR_P"; then
8207 if test ${ac_cv_path_mkdir+y}
8209 printf %s "(cached) " >&6
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8215 case $as_dir in #(((
8218 *) as_dir=$as_dir/ ;;
8220 for ac_prog in mkdir gmkdir; do
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8223 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8224 'mkdir ('*'coreutils) '* | \
8226 'mkdir (fileutils) '4.1*)
8227 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8237 test -d ./--version && rmdir ./--version
8238 if test ${ac_cv_path_mkdir+y}; then
8239 MKDIR_P="$ac_cv_path_mkdir -p"
8241 # As a last resort, use the slow shell script. Don't cache a
8242 # value for MKDIR_P within a source directory, because that will
8243 # break other packages using the cache if that directory is
8244 # removed, or if the value is a relative name.
8245 MKDIR_P="$ac_install_sh -d"
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8249 printf "%s\n" "$MKDIR_P" >&6; }
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8253 printf %s "checking whether NLS is requested... " >&6; }
8254 # Check whether --enable-nls was given.
8255 if test ${enable_nls+y}
8257 enableval=$enable_nls; USE_NLS=$enableval
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8263 printf "%s\n" "$USE_NLS" >&6; }
8268 GETTEXT_MACRO_VERSION=0.20
8273 # Prepare PATH_SEPARATOR.
8274 # The user is always right.
8275 if test "${PATH_SEPARATOR+set}" != set; then
8276 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8277 # contains only /bin. Note that ksh looks also at the FPATH variable,
8278 # so we have to set that as well for the test.
8280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8281 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8282 || PATH_SEPARATOR=';'
8286 # Find out how to test for executable files. Don't use a zero-byte file,
8287 # as systems may use methods other than mode bits to determine executability.
8288 cat >conf$$.file <<_ASEOF
8292 chmod +x conf$$.file
8293 if test -x conf$$.file >/dev/null 2>&1; then
8294 ac_executable_p="test -x"
8296 ac_executable_p="test -f"
8300 # Extract the first word of "msgfmt", so it can be a program name with args.
8301 set dummy msgfmt; ac_word=$2
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 printf %s "checking for $ac_word... " >&6; }
8304 if test ${ac_cv_path_MSGFMT+y}
8306 printf %s "(cached) " >&6
8310 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8313 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8314 for ac_dir in $PATH; do
8316 test -z "$ac_dir" && ac_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8319 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8320 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8321 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8322 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8329 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8333 MSGFMT="$ac_cv_path_MSGFMT"
8334 if test "$MSGFMT" != ":"; then
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8336 printf "%s\n" "$MSGFMT" >&6; }
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 printf "%s\n" "no" >&6; }
8342 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8343 set dummy gmsgfmt; ac_word=$2
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 printf %s "checking for $ac_word... " >&6; }
8346 if test ${ac_cv_path_GMSGFMT+y}
8348 printf %s "(cached) " >&6
8352 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 case $as_dir in #(((
8362 *) as_dir=$as_dir/ ;;
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8366 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8374 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8378 GMSGFMT=$ac_cv_path_GMSGFMT
8379 if test -n "$GMSGFMT"; then
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8381 printf "%s\n" "$GMSGFMT" >&6; }
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 printf "%s\n" "no" >&6; }
8389 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8390 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8391 *) GMSGFMT_015=$GMSGFMT ;;
8396 # Prepare PATH_SEPARATOR.
8397 # The user is always right.
8398 if test "${PATH_SEPARATOR+set}" != set; then
8399 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8400 # contains only /bin. Note that ksh looks also at the FPATH variable,
8401 # so we have to set that as well for the test.
8403 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8404 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8405 || PATH_SEPARATOR=';'
8409 # Find out how to test for executable files. Don't use a zero-byte file,
8410 # as systems may use methods other than mode bits to determine executability.
8411 cat >conf$$.file <<_ASEOF
8415 chmod +x conf$$.file
8416 if test -x conf$$.file >/dev/null 2>&1; then
8417 ac_executable_p="test -x"
8419 ac_executable_p="test -f"
8423 # Extract the first word of "xgettext", so it can be a program name with args.
8424 set dummy xgettext; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_path_XGETTEXT+y}
8429 printf %s "(cached) " >&6
8433 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8436 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8437 for ac_dir in $PATH; do
8439 test -z "$ac_dir" && ac_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8442 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8443 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8444 (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
8445 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8452 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8456 XGETTEXT="$ac_cv_path_XGETTEXT"
8457 if test "$XGETTEXT" != ":"; then
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8459 printf "%s\n" "$XGETTEXT" >&6; }
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 printf "%s\n" "no" >&6; }
8467 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8468 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8469 *) XGETTEXT_015=$XGETTEXT ;;
8474 # Prepare PATH_SEPARATOR.
8475 # The user is always right.
8476 if test "${PATH_SEPARATOR+set}" != set; then
8477 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8478 # contains only /bin. Note that ksh looks also at the FPATH variable,
8479 # so we have to set that as well for the test.
8481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8482 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8483 || PATH_SEPARATOR=';'
8487 # Find out how to test for executable files. Don't use a zero-byte file,
8488 # as systems may use methods other than mode bits to determine executability.
8489 cat >conf$$.file <<_ASEOF
8493 chmod +x conf$$.file
8494 if test -x conf$$.file >/dev/null 2>&1; then
8495 ac_executable_p="test -x"
8497 ac_executable_p="test -f"
8501 # Extract the first word of "msgmerge", so it can be a program name with args.
8502 set dummy msgmerge; ac_word=$2
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504 printf %s "checking for $ac_word... " >&6; }
8505 if test ${ac_cv_path_MSGMERGE+y}
8507 printf %s "(cached) " >&6
8511 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8514 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8515 for ac_dir in $PATH; do
8517 test -z "$ac_dir" && ac_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8520 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8521 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8522 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8529 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8533 MSGMERGE="$ac_cv_path_MSGMERGE"
8534 if test "$MSGMERGE" != ":"; then
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8536 printf "%s\n" "$MSGMERGE" >&6; }
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 printf "%s\n" "no" >&6; }
8543 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8544 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8546 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8547 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8549 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8554 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8557 ac_config_commands="$ac_config_commands po-directories"
8561 if test "X$prefix" = "XNONE"; then
8562 acl_final_prefix="$ac_default_prefix"
8564 acl_final_prefix="$prefix"
8566 if test "X$exec_prefix" = "XNONE"; then
8567 acl_final_exec_prefix='${prefix}'
8569 acl_final_exec_prefix="$exec_prefix"
8571 acl_save_prefix="$prefix"
8572 prefix="$acl_final_prefix"
8573 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8574 prefix="$acl_save_prefix"
8578 # Check whether --with-gnu-ld was given.
8579 if test ${with_gnu_ld+y}
8581 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8586 # Prepare PATH_SEPARATOR.
8587 # The user is always right.
8588 if test "${PATH_SEPARATOR+set}" != set; then
8589 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8590 # contains only /bin. Note that ksh looks also at the FPATH variable,
8591 # so we have to set that as well for the test.
8593 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8594 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8595 || PATH_SEPARATOR=';'
8599 if test -n "$LD"; then
8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8601 printf %s "checking for ld... " >&6; }
8602 elif test "$GCC" = yes; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8604 printf %s "checking for ld used by $CC... " >&6; }
8605 elif test "$with_gnu_ld" = yes; then
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8607 printf %s "checking for GNU ld... " >&6; }
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8610 printf %s "checking for non-GNU ld... " >&6; }
8612 if test -n "$LD"; then
8613 # Let the user override the test with a path.
8616 if test ${acl_cv_path_LD+y}
8618 printf %s "(cached) " >&6
8621 acl_cv_path_LD= # Final result of this test
8622 ac_prog=ld # Program to search in $PATH
8623 if test "$GCC" = yes; then
8624 # Check if gcc -print-prog-name=ld gives a path.
8627 # gcc leaves a trailing carriage return which upsets mingw
8628 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8630 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8633 # Accept absolute paths.
8635 re_direlt='/[^/][^/]*/\.\./'
8636 # Canonicalize the pathname of ld
8637 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8638 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8639 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8641 # Got the pathname. No search in PATH is needed.
8642 acl_cv_path_LD="$acl_output"
8646 # If it fails, then pretend we aren't using GCC.
8649 # If it is relative, then search for the first ld in PATH.
8654 if test -n "$ac_prog"; then
8655 # Search for $ac_prog in $PATH.
8656 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8657 for ac_dir in $PATH; do
8659 test -z "$ac_dir" && ac_dir=.
8660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8661 acl_cv_path_LD="$ac_dir/$ac_prog"
8662 # Check to see if the program is GNU ld. I'd rather use --version,
8663 # but apparently some variants of GNU ld only accept -v.
8664 # Break only if it was the GNU/non-GNU ld that we prefer.
8665 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8666 *GNU* | *'with BFD'*)
8667 test "$with_gnu_ld" != no && break
8670 test "$with_gnu_ld" != yes && break
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #if defined __powerpc64__ || defined _ARCH_PPC64
8688 if ac_fn_c_try_compile "$LINENO"
8690 # The compiler produces 64-bit code. Add option '-b64' so that the
8691 # linker groks 64-bit object files.
8692 case "$acl_cv_path_LD " in
8694 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #if defined __sparcv9 || defined __arch64__
8710 if ac_fn_c_try_compile "$LINENO"
8714 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8715 # so that the linker groks 32-bit object files.
8716 case "$acl_cv_path_LD " in
8717 *" -m elf32_sparc "*) ;;
8718 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 LD="$acl_cv_path_LD"
8730 if test -n "$LD"; then
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8732 printf "%s\n" "$LD" >&6; }
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 printf "%s\n" "no" >&6; }
8736 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8739 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8740 if test ${acl_cv_prog_gnu_ld+y}
8742 printf %s "(cached) " >&6
8744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8745 case `$LD -v 2>&1 </dev/null` in
8746 *GNU* | *'with BFD'*)
8747 acl_cv_prog_gnu_ld=yes
8750 acl_cv_prog_gnu_ld=no
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8755 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8756 with_gnu_ld=$acl_cv_prog_gnu_ld
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8764 printf %s "checking for shared library run path origin... " >&6; }
8765 if test ${acl_cv_rpath+y}
8767 printf %s "(cached) " >&6
8770 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8771 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8778 printf "%s\n" "$acl_cv_rpath" >&6; }
8780 acl_libext="$acl_cv_libext"
8781 acl_shlibext="$acl_cv_shlibext"
8782 acl_libname_spec="$acl_cv_libname_spec"
8783 acl_library_names_spec="$acl_cv_library_names_spec"
8784 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8785 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8786 acl_hardcode_direct="$acl_cv_hardcode_direct"
8787 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8788 # Check whether --enable-rpath was given.
8789 if test ${enable_rpath+y}
8791 enableval=$enable_rpath; :
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8800 printf %s "checking 32-bit host C ABI... " >&6; }
8801 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8803 printf %s "(cached) " >&6
8805 if test -n "$gl_cv_host_cpu_c_abi"; then
8806 case "$gl_cv_host_cpu_c_abi" in
8807 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8808 gl_cv_host_cpu_c_abi_32bit=yes ;;
8809 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8810 gl_cv_host_cpu_c_abi_32bit=no ;;
8812 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8817 # CPUs that only support a 32-bit ABI.
8826 | microblaze | microblazeel \
8827 | nds32 | nds32le | nds32be \
8828 | nios2 | nios2eb | nios2el \
8831 | sh | sh1234 | sh1234elb \
8834 gl_cv_host_cpu_c_abi_32bit=yes
8837 # CPUs that only support a 64-bit ABI.
8838 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8840 gl_cv_host_cpu_c_abi_32bit=no
8844 gl_cv_host_cpu_c_abi_32bit=yes
8848 # On x86_64 systems, the C compiler may be generating code in one of
8850 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8851 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8852 # with native Windows (mingw, MSVC).
8853 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8854 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #if (defined __x86_64__ || defined __amd64__ \
8858 || defined _M_X64 || defined _M_AMD64) \
8859 && !(defined __ILP32__ || defined _ILP32)
8866 if ac_fn_c_try_compile "$LINENO"
8868 gl_cv_host_cpu_c_abi_32bit=no
8870 gl_cv_host_cpu_c_abi_32bit=yes
8872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8876 # Assume arm with EABI.
8877 # On arm64 systems, the C compiler may be generating code in one of
8879 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8880 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8881 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8891 if ac_fn_c_try_compile "$LINENO"
8893 gl_cv_host_cpu_c_abi_32bit=no
8895 gl_cv_host_cpu_c_abi_32bit=yes
8897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8900 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8901 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8902 # code. In the latter case, it defines _LP64 and __LP64__.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8912 if ac_fn_c_try_compile "$LINENO"
8914 gl_cv_host_cpu_c_abi_32bit=no
8916 gl_cv_host_cpu_c_abi_32bit=yes
8918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8922 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8923 # 32-bit code. In the latter case, it defines _ILP32.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8933 if ac_fn_c_try_compile "$LINENO"
8935 gl_cv_host_cpu_c_abi_32bit=yes
8937 gl_cv_host_cpu_c_abi_32bit=no
8939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8943 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8954 if ac_fn_c_try_compile "$LINENO"
8956 gl_cv_host_cpu_c_abi_32bit=no
8958 gl_cv_host_cpu_c_abi_32bit=yes
8960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8964 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8965 # No need to distinguish them here; the caller may distinguish
8966 # them based on the OS.
8967 # On powerpc64 systems, the C compiler may still be generating
8968 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8969 # be generating 64-bit code.
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #if defined __powerpc64__ || defined _ARCH_PPC64
8979 if ac_fn_c_try_compile "$LINENO"
8981 gl_cv_host_cpu_c_abi_32bit=no
8983 gl_cv_host_cpu_c_abi_32bit=yes
8985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8989 gl_cv_host_cpu_c_abi_32bit=yes
8993 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8994 # Size of 'long' and 'void *':
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #if defined __LP64__
9004 if ac_fn_c_try_compile "$LINENO"
9006 gl_cv_host_cpu_c_abi_32bit=no
9008 gl_cv_host_cpu_c_abi_32bit=yes
9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9014 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9015 # or 31-bit (= s390) code.
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 #if defined __LP64__ || defined __s390x__
9025 if ac_fn_c_try_compile "$LINENO"
9027 gl_cv_host_cpu_c_abi_32bit=no
9029 gl_cv_host_cpu_c_abi_32bit=yes
9031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9035 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9036 # C compiler still generates 32-bit code.
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 #if defined __sparcv9 || defined __arch64__
9046 if ac_fn_c_try_compile "$LINENO"
9048 gl_cv_host_cpu_c_abi_32bit=no
9050 gl_cv_host_cpu_c_abi_32bit=yes
9052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9056 gl_cv_host_cpu_c_abi_32bit=unknown
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9063 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9065 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9072 printf %s "checking for ELF binary format... " >&6; }
9073 if test ${gl_cv_elf+y}
9075 printf %s "(cached) " >&6
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 Extensible Linking Format
9084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9085 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9096 printf "%s\n" "$gl_cv_elf" >&6; }
9097 if test $gl_cv_elf; then
9098 # Extract the ELF class of a file (5th byte) in decimal.
9099 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9100 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9104 od -A n -t d1 -j 4 -N 1
9110 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9114 case $HOST_CPU_C_ABI_32BIT in
9117 acl_is_expected_elfclass ()
9119 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9124 acl_is_expected_elfclass ()
9126 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9131 acl_is_expected_elfclass ()
9138 acl_is_expected_elfclass ()
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9145 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9146 if test ${acl_cv_libdirstems+y}
9148 printf %s "(cached) " >&6
9155 if test $HOST_CPU_C_ABI_32BIT = no; then
9156 acl_libdirstem2=lib/64
9158 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9159 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9164 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9165 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9166 if test $HOST_CPU_C_ABI_32BIT != no; then
9167 # 32-bit or unknown ABI.
9168 if test -d /usr/lib32; then
9169 acl_libdirstem2=lib32
9172 if test $HOST_CPU_C_ABI_32BIT != yes; then
9173 # 64-bit or unknown ABI.
9174 if test -d /usr/lib64; then
9175 acl_libdirstem3=lib64
9178 if test -n "$searchpath"; then
9179 acl_save_IFS="${IFS= }"; IFS=":"
9180 for searchdir in $searchpath; do
9181 if test -d "$searchdir"; then
9182 case "$searchdir" in
9183 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9184 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9186 # Better ignore directories of this form. They are misleading.
9188 *) searchdir=`cd "$searchdir" && pwd`
9189 case "$searchdir" in
9190 */lib32 ) acl_libdirstem2=lib32 ;;
9191 */lib64 ) acl_libdirstem3=lib64 ;;
9197 if test $HOST_CPU_C_ABI_32BIT = yes; then
9201 if test $HOST_CPU_C_ABI_32BIT = no; then
9208 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9209 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9210 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9214 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9215 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9216 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9217 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9231 acl_save_prefix="$prefix"
9232 prefix="$acl_final_prefix"
9233 acl_save_exec_prefix="$exec_prefix"
9234 exec_prefix="$acl_final_exec_prefix"
9236 eval additional_includedir=\"$includedir\"
9237 eval additional_libdir=\"$libdir\"
9238 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9239 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9245 # Check whether --with-libiconv-prefix was given.
9246 if test ${with_libiconv_prefix+y}
9248 withval=$with_libiconv_prefix;
9249 if test "X$withval" = "Xno"; then
9252 if test "X$withval" = "X"; then
9254 acl_save_prefix="$prefix"
9255 prefix="$acl_final_prefix"
9256 acl_save_exec_prefix="$exec_prefix"
9257 exec_prefix="$acl_final_exec_prefix"
9259 eval additional_includedir=\"$includedir\"
9260 eval additional_libdir=\"$libdir\"
9261 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9262 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9264 exec_prefix="$acl_save_exec_prefix"
9265 prefix="$acl_save_prefix"
9268 additional_includedir="$withval/include"
9269 additional_libdir="$withval/$acl_libdirstem"
9270 additional_libdir2="$withval/$acl_libdirstem2"
9271 additional_libdir3="$withval/$acl_libdirstem3"
9277 if test "X$additional_libdir2" = "X$additional_libdir"; then
9280 if test "X$additional_libdir3" = "X$additional_libdir"; then
9290 names_already_handled=
9291 names_next_round='iconv '
9292 while test -n "$names_next_round"; do
9293 names_this_round="$names_next_round"
9295 for name in $names_this_round; do
9297 for n in $names_already_handled; do
9298 if test "$n" = "$name"; then
9303 if test -z "$already_handled"; then
9304 names_already_handled="$names_already_handled $name"
9305 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9306 eval value=\"\$HAVE_LIB$uppername\"
9307 if test -n "$value"; then
9308 if test "$value" = yes; then
9309 eval value=\"\$LIB$uppername\"
9310 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9311 eval value=\"\$LTLIB$uppername\"
9312 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9321 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9322 if test -n "$acl_shlibext"; then
9323 shrext=".$acl_shlibext" # typically: shrext=.so
9327 if test $use_additional = yes; then
9328 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9329 if test "X$found_dir" = "X"; then
9330 eval dir=\$$additional_libdir_variable
9331 if test -n "$dir"; then
9332 if test -n "$acl_shlibext"; then
9333 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9335 found_so="$dir/$libname$shrext"
9337 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9338 ver=`(cd "$dir" && \
9339 for f in "$libname$shrext".*; do echo "$f"; done \
9340 | sed -e "s,^$libname$shrext\\\\.,," \
9341 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9342 | sed 1q ) 2>/dev/null`
9343 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9345 found_so="$dir/$libname$shrext.$ver"
9348 eval library_names=\"$acl_library_names_spec\"
9349 for f in $library_names; do
9350 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9359 if test "X$found_dir" = "X"; then
9360 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9362 found_a="$dir/$libname.$acl_libext"
9365 if test "X$found_dir" != "X"; then
9366 if test -f "$dir/$libname.la"; then
9367 found_la="$dir/$libname.la"
9374 if test "X$found_dir" = "X"; then
9375 for x in $LDFLAGS $LTLIBICONV; do
9377 acl_save_prefix="$prefix"
9378 prefix="$acl_final_prefix"
9379 acl_save_exec_prefix="$exec_prefix"
9380 exec_prefix="$acl_final_exec_prefix"
9382 exec_prefix="$acl_save_exec_prefix"
9383 prefix="$acl_save_prefix"
9387 dir=`echo "X$x" | sed -e 's/^X-L//'`
9388 if test -n "$acl_shlibext"; then
9389 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9391 found_so="$dir/$libname$shrext"
9393 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9394 ver=`(cd "$dir" && \
9395 for f in "$libname$shrext".*; do echo "$f"; done \
9396 | sed -e "s,^$libname$shrext\\\\.,," \
9397 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9398 | sed 1q ) 2>/dev/null`
9399 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9401 found_so="$dir/$libname$shrext.$ver"
9404 eval library_names=\"$acl_library_names_spec\"
9405 for f in $library_names; do
9406 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9415 if test "X$found_dir" = "X"; then
9416 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9418 found_a="$dir/$libname.$acl_libext"
9421 if test "X$found_dir" != "X"; then
9422 if test -f "$dir/$libname.la"; then
9423 found_la="$dir/$libname.la"
9428 if test "X$found_dir" != "X"; then
9433 if test "X$found_dir" != "X"; then
9434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9435 if test "X$found_so" != "X"; then
9436 if test "$enable_rpath" = no \
9437 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9438 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9439 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9443 for x in $ltrpathdirs; do
9444 if test "X$x" = "X$found_dir"; then
9449 if test -z "$haveit"; then
9450 ltrpathdirs="$ltrpathdirs $found_dir"
9452 if test "$acl_hardcode_direct" = yes; then
9453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9455 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9458 for x in $rpathdirs; do
9459 if test "X$x" = "X$found_dir"; then
9464 if test -z "$haveit"; then
9465 rpathdirs="$rpathdirs $found_dir"
9469 for x in $LDFLAGS $LIBICONV; do
9471 acl_save_prefix="$prefix"
9472 prefix="$acl_final_prefix"
9473 acl_save_exec_prefix="$exec_prefix"
9474 exec_prefix="$acl_final_exec_prefix"
9476 exec_prefix="$acl_save_exec_prefix"
9477 prefix="$acl_save_prefix"
9479 if test "X$x" = "X-L$found_dir"; then
9484 if test -z "$haveit"; then
9485 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9487 if test "$acl_hardcode_minus_L" != no; then
9488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9490 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9496 if test "X$found_a" != "X"; then
9497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9502 additional_includedir=
9503 case "$found_dir" in
9504 */$acl_libdirstem | */$acl_libdirstem/)
9505 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9506 if test "$name" = 'iconv'; then
9507 LIBICONV_PREFIX="$basedir"
9509 additional_includedir="$basedir/include"
9511 */$acl_libdirstem2 | */$acl_libdirstem2/)
9512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9513 if test "$name" = 'iconv'; then
9514 LIBICONV_PREFIX="$basedir"
9516 additional_includedir="$basedir/include"
9518 */$acl_libdirstem3 | */$acl_libdirstem3/)
9519 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9520 if test "$name" = 'iconv'; then
9521 LIBICONV_PREFIX="$basedir"
9523 additional_includedir="$basedir/include"
9526 if test "X$additional_includedir" != "X"; then
9527 if test "X$additional_includedir" != "X/usr/include"; then
9529 if test "X$additional_includedir" = "X/usr/local/include"; then
9530 if test -n "$GCC"; then
9532 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9536 if test -z "$haveit"; then
9537 for x in $CPPFLAGS $INCICONV; do
9539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9547 if test "X$x" = "X-I$additional_includedir"; then
9552 if test -z "$haveit"; then
9553 if test -d "$additional_includedir"; then
9554 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9560 if test -n "$found_la"; then
9561 save_libdir="$libdir"
9563 */* | *\\*) . "$found_la" ;;
9564 *) . "./$found_la" ;;
9566 libdir="$save_libdir"
9567 for dep in $dependency_libs; do
9570 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9571 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9572 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9573 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9575 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9576 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9577 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9578 if test -n "$GCC"; then
9580 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9584 if test -z "$haveit"; then
9586 for x in $LDFLAGS $LIBICONV; do
9588 acl_save_prefix="$prefix"
9589 prefix="$acl_final_prefix"
9590 acl_save_exec_prefix="$exec_prefix"
9591 exec_prefix="$acl_final_exec_prefix"
9593 exec_prefix="$acl_save_exec_prefix"
9594 prefix="$acl_save_prefix"
9596 if test "X$x" = "X-L$dependency_libdir"; then
9601 if test -z "$haveit"; then
9602 if test -d "$dependency_libdir"; then
9603 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9607 for x in $LDFLAGS $LTLIBICONV; do
9609 acl_save_prefix="$prefix"
9610 prefix="$acl_final_prefix"
9611 acl_save_exec_prefix="$exec_prefix"
9612 exec_prefix="$acl_final_exec_prefix"
9614 exec_prefix="$acl_save_exec_prefix"
9615 prefix="$acl_save_prefix"
9617 if test "X$x" = "X-L$dependency_libdir"; then
9622 if test -z "$haveit"; then
9623 if test -d "$dependency_libdir"; then
9624 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9631 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9632 if test "$enable_rpath" != no; then
9634 for x in $rpathdirs; do
9635 if test "X$x" = "X$dir"; then
9640 if test -z "$haveit"; then
9641 rpathdirs="$rpathdirs $dir"
9644 for x in $ltrpathdirs; do
9645 if test "X$x" = "X$dir"; then
9650 if test -z "$haveit"; then
9651 ltrpathdirs="$ltrpathdirs $dir"
9656 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9662 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9669 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9670 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9676 if test "X$rpathdirs" != "X"; then
9677 if test -n "$acl_hardcode_libdir_separator"; then
9679 for found_dir in $rpathdirs; do
9680 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9682 acl_save_libdir="$libdir"
9684 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9685 libdir="$acl_save_libdir"
9686 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9688 for found_dir in $rpathdirs; do
9689 acl_save_libdir="$libdir"
9691 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9692 libdir="$acl_save_libdir"
9693 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9697 if test "X$ltrpathdirs" != "X"; then
9698 for found_dir in $ltrpathdirs; do
9699 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9732 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9733 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9735 printf %s "(cached) " >&6
9737 gt_save_LIBS="$LIBS"
9738 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <CoreFoundation/CFPreferences.h>
9745 CFPreferencesCopyAppValue(NULL, NULL)
9750 if ac_fn_c_try_link "$LINENO"
9752 gt_cv_func_CFPreferencesCopyAppValue=yes
9754 gt_cv_func_CFPreferencesCopyAppValue=no
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LIBS="$gt_save_LIBS"
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9761 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9762 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9764 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9768 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9769 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9771 printf %s "(cached) " >&6
9773 gt_save_LIBS="$LIBS"
9774 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 #include <CoreFoundation/CFLocale.h>
9781 CFLocaleCopyPreferredLanguages();
9786 if ac_fn_c_try_link "$LINENO"
9788 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9790 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS="$gt_save_LIBS"
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9797 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9798 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9800 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9804 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9805 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9806 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9818 case " $gt_needs " in
9819 *" need-formatstring-macros "*) gt_api_version=3 ;;
9820 *" need-ngettext "*) gt_api_version=2 ;;
9821 *) gt_api_version=1 ;;
9823 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9824 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9826 if test "$USE_NLS" = "yes"; then
9827 gt_use_preinstalled_gnugettext=no
9830 if test $gt_api_version -ge 3; then
9831 gt_revision_test_code='
9832 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9833 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9835 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9838 gt_revision_test_code=
9840 if test $gt_api_version -ge 2; then
9841 gt_expression_test_code=' + * ngettext ("", "", 0)'
9843 gt_expression_test_code=
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9847 printf %s "checking for GNU gettext in libc... " >&6; }
9848 if eval test \${$gt_func_gnugettext_libc+y}
9850 printf %s "(cached) " >&6
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 #include <libintl.h>
9856 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9857 extern int _nl_msg_cat_cntr;
9858 extern int *_nl_domain_bindings;
9859 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9861 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9863 $gt_revision_test_code
9869 bindtextdomain ("", "");
9870 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9876 if ac_fn_c_try_link "$LINENO"
9878 eval "$gt_func_gnugettext_libc=yes"
9880 eval "$gt_func_gnugettext_libc=no"
9882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9883 conftest$ac_exeext conftest.$ac_ext
9885 eval ac_res=\$$gt_func_gnugettext_libc
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9887 printf "%s\n" "$ac_res" >&6; }
9889 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9895 am_save_CPPFLAGS="$CPPFLAGS"
9897 for element in $INCICONV; do
9899 for x in $CPPFLAGS; do
9901 acl_save_prefix="$prefix"
9902 prefix="$acl_final_prefix"
9903 acl_save_exec_prefix="$exec_prefix"
9904 exec_prefix="$acl_final_exec_prefix"
9906 exec_prefix="$acl_save_exec_prefix"
9907 prefix="$acl_save_prefix"
9909 if test "X$x" = "X$element"; then
9914 if test -z "$haveit"; then
9915 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9921 printf %s "checking for iconv... " >&6; }
9922 if test ${am_cv_func_iconv+y}
9924 printf %s "(cached) " >&6
9927 am_cv_func_iconv="no, consider installing GNU libiconv"
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9938 iconv_t cd = iconv_open("","");
9939 iconv(cd,NULL,NULL,NULL,NULL);
9945 if ac_fn_c_try_link "$LINENO"
9947 am_cv_func_iconv=yes
9949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9950 conftest$ac_exeext conftest.$ac_ext
9951 if test "$am_cv_func_iconv" != yes; then
9952 am_save_LIBS="$LIBS"
9953 LIBS="$LIBS $LIBICONV"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9963 iconv_t cd = iconv_open("","");
9964 iconv(cd,NULL,NULL,NULL,NULL);
9970 if ac_fn_c_try_link "$LINENO"
9973 am_cv_func_iconv=yes
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9976 conftest$ac_exeext conftest.$ac_ext
9977 LIBS="$am_save_LIBS"
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9982 printf "%s\n" "$am_cv_func_iconv" >&6; }
9983 if test "$am_cv_func_iconv" = yes; then
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9985 printf %s "checking for working iconv... " >&6; }
9986 if test ${am_cv_func_iconv_works+y}
9988 printf %s "(cached) " >&6
9991 am_save_LIBS="$LIBS"
9992 if test $am_cv_lib_iconv = yes; then
9993 LIBS="$LIBS $LIBICONV"
9995 am_cv_func_iconv_works=no
9996 for ac_iconv_const in '' 'const'; do
9997 if test "$cross_compiling" = yes
10000 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10001 *) am_cv_func_iconv_works="guessing yes" ;;
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10008 #include <string.h>
10010 #ifndef ICONV_CONST
10011 # define ICONV_CONST $ac_iconv_const
10018 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10021 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10022 if (cd_utf8_to_88591 != (iconv_t)(-1))
10024 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10026 ICONV_CONST char *inptr = input;
10027 size_t inbytesleft = strlen (input);
10028 char *outptr = buf;
10029 size_t outbytesleft = sizeof (buf);
10030 size_t res = iconv (cd_utf8_to_88591,
10031 &inptr, &inbytesleft,
10032 &outptr, &outbytesleft);
10035 iconv_close (cd_utf8_to_88591);
10038 /* Test against Solaris 10 bug: Failures are not distinguishable from
10039 successful returns. */
10041 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10042 if (cd_ascii_to_88591 != (iconv_t)(-1))
10044 static ICONV_CONST char input[] = "\263";
10046 ICONV_CONST char *inptr = input;
10047 size_t inbytesleft = strlen (input);
10048 char *outptr = buf;
10049 size_t outbytesleft = sizeof (buf);
10050 size_t res = iconv (cd_ascii_to_88591,
10051 &inptr, &inbytesleft,
10052 &outptr, &outbytesleft);
10055 iconv_close (cd_ascii_to_88591);
10058 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10060 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10061 if (cd_88591_to_utf8 != (iconv_t)(-1))
10063 static ICONV_CONST char input[] = "\304";
10064 static char buf[2] = { (char)0xDE, (char)0xAD };
10065 ICONV_CONST char *inptr = input;
10066 size_t inbytesleft = 1;
10067 char *outptr = buf;
10068 size_t outbytesleft = 1;
10069 size_t res = iconv (cd_88591_to_utf8,
10070 &inptr, &inbytesleft,
10071 &outptr, &outbytesleft);
10072 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10074 iconv_close (cd_88591_to_utf8);
10077 #if 0 /* This bug could be worked around by the caller. */
10078 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10080 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10081 if (cd_88591_to_utf8 != (iconv_t)(-1))
10083 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10085 ICONV_CONST char *inptr = input;
10086 size_t inbytesleft = strlen (input);
10087 char *outptr = buf;
10088 size_t outbytesleft = sizeof (buf);
10089 size_t res = iconv (cd_88591_to_utf8,
10090 &inptr, &inbytesleft,
10091 &outptr, &outbytesleft);
10094 iconv_close (cd_88591_to_utf8);
10098 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10101 /* Try standardized names. */
10102 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10103 /* Try IRIX, OSF/1 names. */
10104 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10105 /* Try AIX names. */
10106 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10107 /* Try HP-UX names. */
10108 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10109 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10110 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10112 if (cd1 != (iconv_t)(-1))
10114 if (cd2 != (iconv_t)(-1))
10116 if (cd3 != (iconv_t)(-1))
10118 if (cd4 != (iconv_t)(-1))
10127 if ac_fn_c_try_run "$LINENO"
10129 am_cv_func_iconv_works=yes
10131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10132 conftest.$ac_objext conftest.beam conftest.$ac_ext
10135 test "$am_cv_func_iconv_works" = no || break
10137 LIBS="$am_save_LIBS"
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10141 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10142 case "$am_cv_func_iconv_works" in
10143 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10144 *) am_func_iconv=yes ;;
10147 am_func_iconv=no am_cv_lib_iconv=no
10149 if test "$am_func_iconv" = yes; then
10151 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10154 if test "$am_cv_lib_iconv" = yes; then
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10156 printf %s "checking how to link with libiconv... " >&6; }
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10158 printf "%s\n" "$LIBICONV" >&6; }
10160 CPPFLAGS="$am_save_CPPFLAGS"
10176 acl_save_prefix="$prefix"
10177 prefix="$acl_final_prefix"
10178 acl_save_exec_prefix="$exec_prefix"
10179 exec_prefix="$acl_final_exec_prefix"
10181 eval additional_includedir=\"$includedir\"
10182 eval additional_libdir=\"$libdir\"
10183 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10184 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10186 exec_prefix="$acl_save_exec_prefix"
10187 prefix="$acl_save_prefix"
10190 # Check whether --with-libintl-prefix was given.
10191 if test ${with_libintl_prefix+y}
10193 withval=$with_libintl_prefix;
10194 if test "X$withval" = "Xno"; then
10197 if test "X$withval" = "X"; then
10199 acl_save_prefix="$prefix"
10200 prefix="$acl_final_prefix"
10201 acl_save_exec_prefix="$exec_prefix"
10202 exec_prefix="$acl_final_exec_prefix"
10204 eval additional_includedir=\"$includedir\"
10205 eval additional_libdir=\"$libdir\"
10206 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10207 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10213 additional_includedir="$withval/include"
10214 additional_libdir="$withval/$acl_libdirstem"
10215 additional_libdir2="$withval/$acl_libdirstem2"
10216 additional_libdir3="$withval/$acl_libdirstem3"
10222 if test "X$additional_libdir2" = "X$additional_libdir"; then
10223 additional_libdir2=
10225 if test "X$additional_libdir3" = "X$additional_libdir"; then
10226 additional_libdir3=
10235 names_already_handled=
10236 names_next_round='intl '
10237 while test -n "$names_next_round"; do
10238 names_this_round="$names_next_round"
10240 for name in $names_this_round; do
10242 for n in $names_already_handled; do
10243 if test "$n" = "$name"; then
10244 already_handled=yes
10248 if test -z "$already_handled"; then
10249 names_already_handled="$names_already_handled $name"
10250 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10251 eval value=\"\$HAVE_LIB$uppername\"
10252 if test -n "$value"; then
10253 if test "$value" = yes; then
10254 eval value=\"\$LIB$uppername\"
10255 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10256 eval value=\"\$LTLIB$uppername\"
10257 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10266 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10267 if test -n "$acl_shlibext"; then
10268 shrext=".$acl_shlibext" # typically: shrext=.so
10272 if test $use_additional = yes; then
10273 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10274 if test "X$found_dir" = "X"; then
10275 eval dir=\$$additional_libdir_variable
10276 if test -n "$dir"; then
10277 if test -n "$acl_shlibext"; then
10278 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10280 found_so="$dir/$libname$shrext"
10282 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10283 ver=`(cd "$dir" && \
10284 for f in "$libname$shrext".*; do echo "$f"; done \
10285 | sed -e "s,^$libname$shrext\\\\.,," \
10286 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10287 | sed 1q ) 2>/dev/null`
10288 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10290 found_so="$dir/$libname$shrext.$ver"
10293 eval library_names=\"$acl_library_names_spec\"
10294 for f in $library_names; do
10295 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10304 if test "X$found_dir" = "X"; then
10305 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10307 found_a="$dir/$libname.$acl_libext"
10310 if test "X$found_dir" != "X"; then
10311 if test -f "$dir/$libname.la"; then
10312 found_la="$dir/$libname.la"
10319 if test "X$found_dir" = "X"; then
10320 for x in $LDFLAGS $LTLIBINTL; do
10322 acl_save_prefix="$prefix"
10323 prefix="$acl_final_prefix"
10324 acl_save_exec_prefix="$exec_prefix"
10325 exec_prefix="$acl_final_exec_prefix"
10327 exec_prefix="$acl_save_exec_prefix"
10328 prefix="$acl_save_prefix"
10332 dir=`echo "X$x" | sed -e 's/^X-L//'`
10333 if test -n "$acl_shlibext"; then
10334 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10336 found_so="$dir/$libname$shrext"
10338 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10339 ver=`(cd "$dir" && \
10340 for f in "$libname$shrext".*; do echo "$f"; done \
10341 | sed -e "s,^$libname$shrext\\\\.,," \
10342 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10343 | sed 1q ) 2>/dev/null`
10344 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10346 found_so="$dir/$libname$shrext.$ver"
10349 eval library_names=\"$acl_library_names_spec\"
10350 for f in $library_names; do
10351 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10360 if test "X$found_dir" = "X"; then
10361 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10363 found_a="$dir/$libname.$acl_libext"
10366 if test "X$found_dir" != "X"; then
10367 if test -f "$dir/$libname.la"; then
10368 found_la="$dir/$libname.la"
10373 if test "X$found_dir" != "X"; then
10378 if test "X$found_dir" != "X"; then
10379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10380 if test "X$found_so" != "X"; then
10381 if test "$enable_rpath" = no \
10382 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10383 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10384 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10385 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10388 for x in $ltrpathdirs; do
10389 if test "X$x" = "X$found_dir"; then
10394 if test -z "$haveit"; then
10395 ltrpathdirs="$ltrpathdirs $found_dir"
10397 if test "$acl_hardcode_direct" = yes; then
10398 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10400 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10401 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10403 for x in $rpathdirs; do
10404 if test "X$x" = "X$found_dir"; then
10409 if test -z "$haveit"; then
10410 rpathdirs="$rpathdirs $found_dir"
10414 for x in $LDFLAGS $LIBINTL; do
10416 acl_save_prefix="$prefix"
10417 prefix="$acl_final_prefix"
10418 acl_save_exec_prefix="$exec_prefix"
10419 exec_prefix="$acl_final_exec_prefix"
10421 exec_prefix="$acl_save_exec_prefix"
10422 prefix="$acl_save_prefix"
10424 if test "X$x" = "X-L$found_dir"; then
10429 if test -z "$haveit"; then
10430 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10432 if test "$acl_hardcode_minus_L" != no; then
10433 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10435 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10441 if test "X$found_a" != "X"; then
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10444 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10447 additional_includedir=
10448 case "$found_dir" in
10449 */$acl_libdirstem | */$acl_libdirstem/)
10450 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10451 if test "$name" = 'intl'; then
10452 LIBINTL_PREFIX="$basedir"
10454 additional_includedir="$basedir/include"
10456 */$acl_libdirstem2 | */$acl_libdirstem2/)
10457 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10458 if test "$name" = 'intl'; then
10459 LIBINTL_PREFIX="$basedir"
10461 additional_includedir="$basedir/include"
10463 */$acl_libdirstem3 | */$acl_libdirstem3/)
10464 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10465 if test "$name" = 'intl'; then
10466 LIBINTL_PREFIX="$basedir"
10468 additional_includedir="$basedir/include"
10471 if test "X$additional_includedir" != "X"; then
10472 if test "X$additional_includedir" != "X/usr/include"; then
10474 if test "X$additional_includedir" = "X/usr/local/include"; then
10475 if test -n "$GCC"; then
10477 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10481 if test -z "$haveit"; then
10482 for x in $CPPFLAGS $INCINTL; do
10484 acl_save_prefix="$prefix"
10485 prefix="$acl_final_prefix"
10486 acl_save_exec_prefix="$exec_prefix"
10487 exec_prefix="$acl_final_exec_prefix"
10489 exec_prefix="$acl_save_exec_prefix"
10490 prefix="$acl_save_prefix"
10492 if test "X$x" = "X-I$additional_includedir"; then
10497 if test -z "$haveit"; then
10498 if test -d "$additional_includedir"; then
10499 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10505 if test -n "$found_la"; then
10506 save_libdir="$libdir"
10507 case "$found_la" in
10508 */* | *\\*) . "$found_la" ;;
10509 *) . "./$found_la" ;;
10511 libdir="$save_libdir"
10512 for dep in $dependency_libs; do
10515 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10516 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10517 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10518 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10520 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10521 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10522 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10523 if test -n "$GCC"; then
10525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10529 if test -z "$haveit"; then
10531 for x in $LDFLAGS $LIBINTL; do
10533 acl_save_prefix="$prefix"
10534 prefix="$acl_final_prefix"
10535 acl_save_exec_prefix="$exec_prefix"
10536 exec_prefix="$acl_final_exec_prefix"
10538 exec_prefix="$acl_save_exec_prefix"
10539 prefix="$acl_save_prefix"
10541 if test "X$x" = "X-L$dependency_libdir"; then
10546 if test -z "$haveit"; then
10547 if test -d "$dependency_libdir"; then
10548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10552 for x in $LDFLAGS $LTLIBINTL; do
10554 acl_save_prefix="$prefix"
10555 prefix="$acl_final_prefix"
10556 acl_save_exec_prefix="$exec_prefix"
10557 exec_prefix="$acl_final_exec_prefix"
10559 exec_prefix="$acl_save_exec_prefix"
10560 prefix="$acl_save_prefix"
10562 if test "X$x" = "X-L$dependency_libdir"; then
10567 if test -z "$haveit"; then
10568 if test -d "$dependency_libdir"; then
10569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10577 if test "$enable_rpath" != no; then
10579 for x in $rpathdirs; do
10580 if test "X$x" = "X$dir"; then
10585 if test -z "$haveit"; then
10586 rpathdirs="$rpathdirs $dir"
10589 for x in $ltrpathdirs; do
10590 if test "X$x" = "X$dir"; then
10595 if test -z "$haveit"; then
10596 ltrpathdirs="$ltrpathdirs $dir"
10601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10607 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10608 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10614 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10621 if test "X$rpathdirs" != "X"; then
10622 if test -n "$acl_hardcode_libdir_separator"; then
10624 for found_dir in $rpathdirs; do
10625 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10627 acl_save_libdir="$libdir"
10629 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10630 libdir="$acl_save_libdir"
10631 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10633 for found_dir in $rpathdirs; do
10634 acl_save_libdir="$libdir"
10635 libdir="$found_dir"
10636 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10637 libdir="$acl_save_libdir"
10638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10642 if test "X$ltrpathdirs" != "X"; then
10643 for found_dir in $ltrpathdirs; do
10644 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10653 printf %s "checking for GNU gettext in libintl... " >&6; }
10654 if eval test \${$gt_func_gnugettext_libintl+y}
10656 printf %s "(cached) " >&6
10658 gt_save_CPPFLAGS="$CPPFLAGS"
10659 CPPFLAGS="$CPPFLAGS $INCINTL"
10660 gt_save_LIBS="$LIBS"
10661 LIBS="$LIBS $LIBINTL"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 #include <libintl.h>
10666 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10667 extern int _nl_msg_cat_cntr;
10672 const char *_nl_expand_alias (const char *);
10673 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10675 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10677 $gt_revision_test_code
10683 bindtextdomain ("", "");
10684 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10690 if ac_fn_c_try_link "$LINENO"
10692 eval "$gt_func_gnugettext_libintl=yes"
10694 eval "$gt_func_gnugettext_libintl=no"
10696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10697 conftest$ac_exeext conftest.$ac_ext
10698 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10699 LIBS="$LIBS $LIBICONV"
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10703 #include <libintl.h>
10704 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10705 extern int _nl_msg_cat_cntr;
10710 const char *_nl_expand_alias (const char *);
10711 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10713 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10715 $gt_revision_test_code
10721 bindtextdomain ("", "");
10722 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10728 if ac_fn_c_try_link "$LINENO"
10730 LIBINTL="$LIBINTL $LIBICONV"
10731 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10732 eval "$gt_func_gnugettext_libintl=yes"
10735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10736 conftest$ac_exeext conftest.$ac_ext
10738 CPPFLAGS="$gt_save_CPPFLAGS"
10739 LIBS="$gt_save_LIBS"
10741 eval ac_res=\$$gt_func_gnugettext_libintl
10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10743 printf "%s\n" "$ac_res" >&6; }
10746 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10747 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10748 && test "$PACKAGE" != gettext-runtime \
10749 && test "$PACKAGE" != gettext-tools; }; then
10750 gt_use_preinstalled_gnugettext=yes
10759 if test -n "$INTL_MACOSX_LIBS"; then
10760 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10761 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10762 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10763 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10767 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10768 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10778 printf %s "checking whether to use NLS... " >&6; }
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10780 printf "%s\n" "$USE_NLS" >&6; }
10781 if test "$USE_NLS" = "yes"; then
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10783 printf %s "checking where the gettext function comes from... " >&6; }
10784 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10785 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10786 gt_source="external libintl"
10791 gt_source="included intl directory"
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10794 printf "%s\n" "$gt_source" >&6; }
10797 if test "$USE_NLS" = "yes"; then
10799 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10800 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10802 printf %s "checking how to link with libintl... " >&6; }
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10804 printf "%s\n" "$LIBINTL" >&6; }
10806 for element in $INCINTL; do
10808 for x in $CPPFLAGS; do
10810 acl_save_prefix="$prefix"
10811 prefix="$acl_final_prefix"
10812 acl_save_exec_prefix="$exec_prefix"
10813 exec_prefix="$acl_final_exec_prefix"
10815 exec_prefix="$acl_save_exec_prefix"
10816 prefix="$acl_save_prefix"
10818 if test "X$x" = "X$element"; then
10823 if test -z "$haveit"; then
10824 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10831 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10834 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10843 INTLLIBS="$LIBINTL"
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10852 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10854 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10855 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10857 printf %s "(cached) " >&6
10859 cat >conftest.make <<\_ACEOF
10862 @echo '@@@%%%=$(MAKE)=@@@%%%'
10864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10866 *@@@%%%=?*=@@@%%%*)
10867 eval ac_cv_prog_make_${ac_make}_set=yes;;
10869 eval ac_cv_prog_make_${ac_make}_set=no;;
10871 rm -f conftest.make
10873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 printf "%s\n" "yes" >&6; }
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 printf "%s\n" "no" >&6; }
10880 SET_MAKE="MAKE=${MAKE-make}"
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10884 printf %s "checking for GNU make... " >&6; }
10885 if test ${_cv_gnu_make_command+y}
10887 printf %s "(cached) " >&6
10889 _cv_gnu_make_command='' ;
10890 if test -n "$FORCE_NATIVE_MAKE" ; then
10893 MAKES="make gmake gnumake"
10895 for a in "$MAKE" $MAKES ; do
10896 if test -z "$a" ; then continue ; fi ;
10897 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10898 _cv_gnu_make_command=$a ;
10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10905 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10906 if test "x$_cv_gnu_make_command" != "x" ; then
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10913 printf "%s\n" "\"Not found\"" >&6; };
10918 # Extract the first word of "ln", so it can be a program name with args.
10919 set dummy ln; ac_word=$2
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921 printf %s "checking for $ac_word... " >&6; }
10922 if test ${ac_cv_path_LN+y}
10924 printf %s "(cached) " >&6
10928 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10935 case $as_dir in #(((
10938 *) as_dir=$as_dir/ ;;
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10942 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10950 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10955 if test -n "$LN"; then
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10957 printf "%s\n" "$LN" >&6; }
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 printf "%s\n" "no" >&6; }
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10968 printf %s "checking whether ln -s works... " >&6; }
10970 if test "$LN_S" = "ln -s"; then
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972 printf "%s\n" "yes" >&6; }
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10975 printf "%s\n" "no, using $LN_S" >&6; }
10978 # Extract the first word of "mv", so it can be a program name with args.
10979 set dummy mv; ac_word=$2
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981 printf %s "checking for $ac_word... " >&6; }
10982 if test ${ac_cv_path_MV+y}
10984 printf %s "(cached) " >&6
10988 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10995 case $as_dir in #(((
10998 *) as_dir=$as_dir/ ;;
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11002 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11010 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11015 if test -n "$MV"; then
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11017 printf "%s\n" "$MV" >&6; }
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 printf "%s\n" "no" >&6; }
11024 # Extract the first word of "cp", so it can be a program name with args.
11025 set dummy cp; ac_word=$2
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 printf %s "checking for $ac_word... " >&6; }
11028 if test ${ac_cv_path_CP+y}
11030 printf %s "(cached) " >&6
11034 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11041 case $as_dir in #(((
11044 *) as_dir=$as_dir/ ;;
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11048 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11056 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11061 if test -n "$CP"; then
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11063 printf "%s\n" "$CP" >&6; }
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 printf "%s\n" "no" >&6; }
11070 # Extract the first word of "rm", so it can be a program name with args.
11071 set dummy rm; ac_word=$2
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 printf %s "checking for $ac_word... " >&6; }
11074 if test ${ac_cv_path_RM+y}
11076 printf %s "(cached) " >&6
11080 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11087 case $as_dir in #(((
11090 *) as_dir=$as_dir/ ;;
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11094 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11102 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11107 if test -n "$RM"; then
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11109 printf "%s\n" "$RM" >&6; }
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 printf "%s\n" "no" >&6; }
11116 # Extract the first word of "chmod", so it can be a program name with args.
11117 set dummy chmod; ac_word=$2
11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 printf %s "checking for $ac_word... " >&6; }
11120 if test ${ac_cv_path_CHMOD+y}
11122 printf %s "(cached) " >&6
11126 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11133 case $as_dir in #(((
11136 *) as_dir=$as_dir/ ;;
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11140 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11148 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11152 CHMOD=$ac_cv_path_CHMOD
11153 if test -n "$CHMOD"; then
11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11155 printf "%s\n" "$CHMOD" >&6; }
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 printf "%s\n" "no" >&6; }
11162 for ac_prog in gawk mawk nawk awk
11164 # Extract the first word of "$ac_prog", so it can be a program name with args.
11165 set dummy $ac_prog; ac_word=$2
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 printf %s "checking for $ac_word... " >&6; }
11168 if test ${ac_cv_prog_AWK+y}
11170 printf %s "(cached) " >&6
11172 if test -n "$AWK"; then
11173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11179 case $as_dir in #(((
11182 *) as_dir=$as_dir/ ;;
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11186 ac_cv_prog_AWK="$ac_prog"
11187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11196 AWK=$ac_cv_prog_AWK
11197 if test -n "$AWK"; then
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11199 printf "%s\n" "$AWK" >&6; }
11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 printf "%s\n" "no" >&6; }
11206 test -n "$AWK" && break
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11210 printf %s "checking for egrep... " >&6; }
11211 if test ${ac_cv_path_EGREP+y}
11213 printf %s "(cached) " >&6
11215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11216 then ac_cv_path_EGREP="$GREP -E"
11218 if test -z "$EGREP"; then
11219 ac_path_EGREP_found=false
11220 # Loop through the user's path and test for each of PROGNAME-LIST
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11225 case $as_dir in #(((
11228 *) as_dir=$as_dir/ ;;
11230 for ac_prog in egrep
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11234 as_fn_executable_p "$ac_path_EGREP" || continue
11235 # Check for GNU ac_path_EGREP and select it if it is found.
11236 # Check for GNU $ac_path_EGREP
11237 case `"$ac_path_EGREP" --version 2>&1` in
11239 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11242 printf %s 0123456789 >"conftest.in"
11245 cat "conftest.in" "conftest.in" >"conftest.tmp"
11246 mv "conftest.tmp" "conftest.in"
11247 cp "conftest.in" "conftest.nl"
11248 printf "%s\n" 'EGREP' >> "conftest.nl"
11249 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11251 as_fn_arith $ac_count + 1 && ac_count=$as_val
11252 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11253 # Best one so far, save it but keep looking for a better one
11254 ac_cv_path_EGREP="$ac_path_EGREP"
11255 ac_path_EGREP_max=$ac_count
11257 # 10*(2^10) chars as input seems more than enough
11258 test $ac_count -gt 10 && break
11260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11263 $ac_path_EGREP_found && break 3
11268 if test -z "$ac_cv_path_EGREP"; then
11269 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11272 ac_cv_path_EGREP=$EGREP
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11278 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11279 EGREP="$ac_cv_path_EGREP"
11282 # Extract the first word of "sed", so it can be a program name with args.
11283 set dummy sed; ac_word=$2
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 printf %s "checking for $ac_word... " >&6; }
11286 if test ${ac_cv_path_SED+y}
11288 printf %s "(cached) " >&6
11292 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11299 case $as_dir in #(((
11302 *) as_dir=$as_dir/ ;;
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11306 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11314 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11318 SED=$ac_cv_path_SED
11319 if test -n "$SED"; then
11320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11321 printf "%s\n" "$SED" >&6; }
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 printf "%s\n" "no" >&6; }
11328 # Extract the first word of "perl", so it can be a program name with args.
11329 set dummy perl; ac_word=$2
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 printf %s "checking for $ac_word... " >&6; }
11332 if test ${ac_cv_path_PERL+y}
11334 printf %s "(cached) " >&6
11338 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11345 case $as_dir in #(((
11348 *) as_dir=$as_dir/ ;;
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11352 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11360 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11364 PERL=$ac_cv_path_PERL
11365 if test -n "$PERL"; then
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11367 printf "%s\n" "$PERL" >&6; }
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 printf "%s\n" "no" >&6; }
11374 # Extract the first word of "ldconfig", so it can be a program name with args.
11375 set dummy ldconfig; ac_word=$2
11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11377 printf %s "checking for $ac_word... " >&6; }
11378 if test ${ac_cv_path_LDCONFIG+y}
11380 printf %s "(cached) " >&6
11384 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11391 case $as_dir in #(((
11394 *) as_dir=$as_dir/ ;;
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11398 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11406 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11410 LDCONFIG=$ac_cv_path_LDCONFIG
11411 if test -n "$LDCONFIG"; then
11412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11413 printf "%s\n" "$LDCONFIG" >&6; }
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 printf "%s\n" "no" >&6; }
11420 if test -n "$ac_tool_prefix"; then
11421 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11422 set dummy ${ac_tool_prefix}ar; ac_word=$2
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 printf %s "checking for $ac_word... " >&6; }
11425 if test ${ac_cv_prog_AR+y}
11427 printf %s "(cached) " >&6
11429 if test -n "$AR"; then
11430 ac_cv_prog_AR="$AR" # Let the user override the test.
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11436 case $as_dir in #(((
11439 *) as_dir=$as_dir/ ;;
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_AR="${ac_tool_prefix}ar"
11444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11454 if test -n "$AR"; then
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11456 printf "%s\n" "$AR" >&6; }
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 printf "%s\n" "no" >&6; }
11464 if test -z "$ac_cv_prog_AR"; then
11466 # Extract the first word of "ar", so it can be a program name with args.
11467 set dummy ar; ac_word=$2
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 printf %s "checking for $ac_word... " >&6; }
11470 if test ${ac_cv_prog_ac_ct_AR+y}
11472 printf %s "(cached) " >&6
11474 if test -n "$ac_ct_AR"; then
11475 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11481 case $as_dir in #(((
11484 *) as_dir=$as_dir/ ;;
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11488 ac_cv_prog_ac_ct_AR="ar"
11489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11498 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11499 if test -n "$ac_ct_AR"; then
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11501 printf "%s\n" "$ac_ct_AR" >&6; }
11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 printf "%s\n" "no" >&6; }
11507 if test "x$ac_ct_AR" = x; then
11510 case $cross_compiling:$ac_tool_warned in
11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11513 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11514 ac_tool_warned=yes ;;
11519 AR="$ac_cv_prog_AR"
11522 if test -n "$ac_tool_prefix"; then
11523 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11524 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 printf %s "checking for $ac_word... " >&6; }
11527 if test ${ac_cv_prog_RANLIB+y}
11529 printf %s "(cached) " >&6
11531 if test -n "$RANLIB"; then
11532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11538 case $as_dir in #(((
11541 *) as_dir=$as_dir/ ;;
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11555 RANLIB=$ac_cv_prog_RANLIB
11556 if test -n "$RANLIB"; then
11557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11558 printf "%s\n" "$RANLIB" >&6; }
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 printf "%s\n" "no" >&6; }
11566 if test -z "$ac_cv_prog_RANLIB"; then
11567 ac_ct_RANLIB=$RANLIB
11568 # Extract the first word of "ranlib", so it can be a program name with args.
11569 set dummy ranlib; ac_word=$2
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 printf %s "checking for $ac_word... " >&6; }
11572 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11574 printf %s "(cached) " >&6
11576 if test -n "$ac_ct_RANLIB"; then
11577 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11583 case $as_dir in #(((
11586 *) as_dir=$as_dir/ ;;
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_ac_ct_RANLIB="ranlib"
11591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11601 if test -n "$ac_ct_RANLIB"; then
11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11603 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 printf "%s\n" "no" >&6; }
11609 if test "x$ac_ct_RANLIB" = x; then
11612 case $cross_compiling:$ac_tool_warned in
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11616 ac_tool_warned=yes ;;
11618 RANLIB=$ac_ct_RANLIB
11621 RANLIB="$ac_cv_prog_RANLIB"
11624 if test -n "$ac_tool_prefix"; then
11625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11626 set dummy ${ac_tool_prefix}strip; ac_word=$2
11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 printf %s "checking for $ac_word... " >&6; }
11629 if test ${ac_cv_prog_STRIP+y}
11631 printf %s "(cached) " >&6
11633 if test -n "$STRIP"; then
11634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11640 case $as_dir in #(((
11643 *) as_dir=$as_dir/ ;;
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11657 STRIP=$ac_cv_prog_STRIP
11658 if test -n "$STRIP"; then
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11660 printf "%s\n" "$STRIP" >&6; }
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 printf "%s\n" "no" >&6; }
11668 if test -z "$ac_cv_prog_STRIP"; then
11670 # Extract the first word of "strip", so it can be a program name with args.
11671 set dummy strip; ac_word=$2
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 printf %s "checking for $ac_word... " >&6; }
11674 if test ${ac_cv_prog_ac_ct_STRIP+y}
11676 printf %s "(cached) " >&6
11678 if test -n "$ac_ct_STRIP"; then
11679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 case $as_dir in #(((
11688 *) 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_prog_ac_ct_STRIP="strip"
11693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11703 if test -n "$ac_ct_STRIP"; then
11704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11705 printf "%s\n" "$ac_ct_STRIP" >&6; }
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 printf "%s\n" "no" >&6; }
11711 if test "x$ac_ct_STRIP" = x; then
11714 case $cross_compiling:$ac_tool_warned in
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11718 ac_tool_warned=yes ;;
11723 STRIP="$ac_cv_prog_STRIP"
11726 # Extract the first word of "makeinfo", so it can be a program name with args.
11727 set dummy makeinfo; ac_word=$2
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 printf %s "checking for $ac_word... " >&6; }
11730 if test ${ac_cv_prog_MAKEINFO+y}
11732 printf %s "(cached) " >&6
11734 if test -n "$MAKEINFO"; then
11735 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11741 case $as_dir in #(((
11744 *) as_dir=$as_dir/ ;;
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_MAKEINFO="makeinfo"
11749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11758 MAKEINFO=$ac_cv_prog_MAKEINFO
11759 if test -n "$MAKEINFO"; then
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11761 printf "%s\n" "$MAKEINFO" >&6; }
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 printf "%s\n" "no" >&6; }
11768 if test "_$MAKEINFO" = "_"; then
11769 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11771 case "$MAKEINFO" in
11773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11774 *** Makeinfo is missing. Info documentation will not be built." >&5
11775 printf "%s\n" "$as_me: WARNING:
11776 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11784 # See if we need a separate native compiler.
11785 if test $cross_compiling = no; then
11789 for ac_prog in gcc cc
11791 # Extract the first word of "$ac_prog", so it can be a program name with args.
11792 set dummy $ac_prog; ac_word=$2
11793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 printf %s "checking for $ac_word... " >&6; }
11795 if test ${ac_cv_prog_BUILD_CC+y}
11797 printf %s "(cached) " >&6
11799 if test -n "$BUILD_CC"; then
11800 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11806 case $as_dir in #(((
11809 *) as_dir=$as_dir/ ;;
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11813 ac_cv_prog_BUILD_CC="$ac_prog"
11814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11823 BUILD_CC=$ac_cv_prog_BUILD_CC
11824 if test -n "$BUILD_CC"; then
11825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11826 printf "%s\n" "$BUILD_CC" >&6; }
11828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 printf "%s\n" "no" >&6; }
11833 test -n "$BUILD_CC" && break
11837 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11838 if test "x$ac_cv_header_dirent_h" = xyes
11840 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11843 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11844 if test "x$ac_cv_header_errno_h" = xyes
11846 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11849 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11850 if test "x$ac_cv_header_execinfo_h" = xyes
11852 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11855 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11856 if test "x$ac_cv_header_getopt_h" = xyes
11858 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11861 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11862 if test "x$ac_cv_header_malloc_h" = xyes
11864 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11867 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11868 if test "x$ac_cv_header_mntent_h" = xyes
11870 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11873 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11874 if test "x$ac_cv_header_paths_h" = xyes
11876 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11879 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_pthread_h" = xyes
11882 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11885 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11886 if test "x$ac_cv_header_semaphore_h" = xyes
11888 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11891 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11892 if test "x$ac_cv_header_setjmp_h" = xyes
11894 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11897 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11898 if test "x$ac_cv_header_signal_h" = xyes
11900 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11903 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11904 if test "x$ac_cv_header_stdarg_h" = xyes
11906 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11909 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11910 if test "x$ac_cv_header_stdint_h" = xyes
11912 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11915 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11916 if test "x$ac_cv_header_stdlib_h" = xyes
11918 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11921 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11922 if test "x$ac_cv_header_termios_h" = xyes
11924 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11927 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11928 if test "x$ac_cv_header_termio_h" = xyes
11930 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11933 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11934 if test "x$ac_cv_header_unistd_h" = xyes
11936 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11939 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11940 if test "x$ac_cv_header_utime_h" = xyes
11942 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11945 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11946 if test "x$ac_cv_header_attr_xattr_h" = xyes
11948 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11951 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11952 if test "x$ac_cv_header_linux_falloc_h" = xyes
11954 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11957 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11958 if test "x$ac_cv_header_linux_fd_h" = xyes
11960 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11963 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11964 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11966 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11969 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11970 if test "x$ac_cv_header_linux_major_h" = xyes
11972 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11975 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11976 if test "x$ac_cv_header_linux_loop_h" = xyes
11978 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11981 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11982 if test "x$ac_cv_header_linux_types_h" = xyes
11984 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11987 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11988 if test "x$ac_cv_header_net_if_dl_h" = xyes
11990 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11993 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11994 if test "x$ac_cv_header_netinet_in_h" = xyes
11996 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
11999 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12000 if test "x$ac_cv_header_sys_acl_h" = xyes
12002 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12005 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12006 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12008 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12011 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12012 if test "x$ac_cv_header_sys_disk_h" = xyes
12014 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12017 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12018 if test "x$ac_cv_header_sys_file_h" = xyes
12020 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12023 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12024 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12026 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12029 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12030 if test "x$ac_cv_header_sys_key_h" = xyes
12032 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12035 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12036 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12038 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12041 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12042 if test "x$ac_cv_header_sys_mman_h" = xyes
12044 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12047 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12048 if test "x$ac_cv_header_sys_mount_h" = xyes
12050 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12053 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12054 if test "x$ac_cv_header_sys_prctl_h" = xyes
12056 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12059 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_sys_random_h" = xyes
12062 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12065 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12066 if test "x$ac_cv_header_sys_resource_h" = xyes
12068 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12071 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12072 if test "x$ac_cv_header_sys_select_h" = xyes
12074 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12077 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12078 if test "x$ac_cv_header_sys_socket_h" = xyes
12080 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12083 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12084 if test "x$ac_cv_header_sys_sockio_h" = xyes
12086 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12089 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12090 if test "x$ac_cv_header_sys_stat_h" = xyes
12092 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12095 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12096 if test "x$ac_cv_header_sys_syscall_h" = xyes
12098 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12101 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12102 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12104 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12107 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12108 if test "x$ac_cv_header_sys_time_h" = xyes
12110 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12113 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12114 if test "x$ac_cv_header_sys_types_h" = xyes
12116 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12119 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12120 if test "x$ac_cv_header_sys_un_h" = xyes
12122 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12125 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12126 if test "x$ac_cv_header_sys_wait_h" = xyes
12128 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12131 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_sys_xattr_h" = xyes
12134 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12140 # The above checks only detect system headers, not the headers in
12141 # ./include/mingw/, so explicitly define them to be available.
12142 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12144 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12146 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12148 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12150 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12155 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12157 for i in dd gdd ; do
12158 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12163 if test -n "$DD" ; then
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12165 printf "%s\n" "$DD" >&6; }
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12168 printf "%s\n" "not found, using dd" >&6; }
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12171 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12175 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12176 #if HAVE_SYS_TYPES_H
12177 #include <sys/types.h>
12179 #if HAVE_SYS_SOCKET
12180 #include <sys/socket.h>
12184 if test "x$ac_cv_header_net_if_h" = xyes
12186 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12191 for ac_item in $ac_func_c_list
12193 if test $ac_func; then
12194 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12195 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12196 echo "#define $ac_item 1" >> confdefs.h
12204 if test "x$ac_cv_func_vprintf" = xno
12206 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12207 if test "x$ac_cv_func__doprnt" = xyes
12210 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12215 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12217 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12220 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12224 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12225 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12228 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12233 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12235 if test "x$ac_cv_type_ssize_t" = xyes
12238 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12243 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12244 if test ${ac_cv_c_undeclared_builtin_options+y}
12246 printf %s "(cached) " >&6
12248 ac_save_CFLAGS=$CFLAGS
12249 ac_cv_c_undeclared_builtin_options='cannot detect'
12250 for ac_arg in '' -fno-builtin; do
12251 CFLAGS="$ac_save_CFLAGS $ac_arg"
12252 # This test program should *not* compile successfully.
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12264 if ac_fn_c_try_compile "$LINENO"
12268 # This test program should compile successfully.
12269 # No library function is consistently available on
12270 # freestanding implementations, so test against a dummy
12271 # declaration. Include always-available headers on the
12272 # off chance that they somehow elicit warnings.
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 #include <limits.h>
12277 #include <stdarg.h>
12278 #include <stddef.h>
12279 extern void ac_decl (int, char *);
12284 (void) ac_decl (0, (char *) 0);
12291 if ac_fn_c_try_compile "$LINENO"
12293 if test x"$ac_arg" = x
12295 ac_cv_c_undeclared_builtin_options='none needed'
12297 ac_cv_c_undeclared_builtin_options=$ac_arg
12301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12305 CFLAGS=$ac_save_CFLAGS
12308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12309 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12310 case $ac_cv_c_undeclared_builtin_options in #(
12312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12314 as_fn_error $? "cannot make $CC report undeclared builtins
12315 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12317 ac_c_undeclared_builtin_options='' ;; #(
12319 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12322 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12323 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12324 if test "x$ac_cv_have_decl_llseek" = xyes
12327 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12330 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12331 #define _LARGEFILE64_SOURCE
12332 #include <unistd.h>
12333 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12334 if test "x$ac_cv_have_decl_lseek64" = xyes
12337 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12340 # The cast to long int works around a bug in the HP C Compiler
12341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12343 # This bug is HP SR number 8606223364.
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12345 printf %s "checking size of short... " >&6; }
12346 if test ${ac_cv_sizeof_short+y}
12348 printf %s "(cached) " >&6
12350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12354 if test "$ac_cv_type_short" = yes; then
12355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12357 as_fn_error 77 "cannot compute sizeof (short)
12358 See \`config.log' for more details" "$LINENO" 5; }
12360 ac_cv_sizeof_short=0
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12366 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12370 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12373 # The cast to long int works around a bug in the HP C Compiler
12374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12376 # This bug is HP SR number 8606223364.
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12378 printf %s "checking size of int... " >&6; }
12379 if test ${ac_cv_sizeof_int+y}
12381 printf %s "(cached) " >&6
12383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12387 if test "$ac_cv_type_int" = yes; then
12388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12390 as_fn_error 77 "cannot compute sizeof (int)
12391 See \`config.log' for more details" "$LINENO" 5; }
12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12399 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12403 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12406 # The cast to long int works around a bug in the HP C Compiler
12407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12409 # This bug is HP SR number 8606223364.
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12411 printf %s "checking size of long... " >&6; }
12412 if test ${ac_cv_sizeof_long+y}
12414 printf %s "(cached) " >&6
12416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12420 if test "$ac_cv_type_long" = yes; then
12421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12423 as_fn_error 77 "cannot compute sizeof (long)
12424 See \`config.log' for more details" "$LINENO" 5; }
12426 ac_cv_sizeof_long=0
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12432 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12436 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12439 # The cast to long int works around a bug in the HP C Compiler
12440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12442 # This bug is HP SR number 8606223364.
12443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12444 printf %s "checking size of long long... " >&6; }
12445 if test ${ac_cv_sizeof_long_long+y}
12447 printf %s "(cached) " >&6
12449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12453 if test "$ac_cv_type_long_long" = yes; then
12454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12456 as_fn_error 77 "cannot compute sizeof (long long)
12457 See \`config.log' for more details" "$LINENO" 5; }
12459 ac_cv_sizeof_long_long=0
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12465 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12469 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12472 # The cast to long int works around a bug in the HP C Compiler
12473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12475 # This bug is HP SR number 8606223364.
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12477 printf %s "checking size of off_t... " >&6; }
12478 if test ${ac_cv_sizeof_off_t+y}
12480 printf %s "(cached) " >&6
12482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12486 if test "$ac_cv_type_off_t" = yes; then
12487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12489 as_fn_error 77 "cannot compute sizeof (off_t)
12490 See \`config.log' for more details" "$LINENO" 5; }
12492 ac_cv_sizeof_off_t=0
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12498 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12502 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12505 # The cast to long int works around a bug in the HP C Compiler
12506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12508 # This bug is HP SR number 8606223364.
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12510 printf %s "checking size of time_t... " >&6; }
12511 if test ${ac_cv_sizeof_time_t+y}
12513 printf %s "(cached) " >&6
12515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12519 if test "$ac_cv_type_time_t" = yes; then
12520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12522 as_fn_error 77 "cannot compute sizeof (time_t)
12523 See \`config.log' for more details" "$LINENO" 5; }
12525 ac_cv_sizeof_time_t=0
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12531 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12535 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12538 SIZEOF_SHORT=$ac_cv_sizeof_short
12539 SIZEOF_INT=$ac_cv_sizeof_int
12540 SIZEOF_LONG=$ac_cv_sizeof_long
12541 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12542 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12543 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12551 printf %s "checking whether byte ordering is bigendian... " >&6; }
12552 if test ${ac_cv_c_bigendian+y}
12554 printf %s "(cached) " >&6
12556 ac_cv_c_bigendian=unknown
12557 # See if we're dealing with a universal compiler.
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #ifndef __APPLE_CC__
12561 not a universal capable compiler
12566 if ac_fn_c_try_compile "$LINENO"
12569 # Check for potential -arch flags. It is not universal unless
12570 # there are at least two -arch flags with different values.
12573 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12574 if test -n "$ac_prev"; then
12576 i?86 | x86_64 | ppc | ppc64)
12577 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12580 ac_cv_c_bigendian=universal
12586 elif test "x$ac_word" = "x-arch"; then
12591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12592 if test $ac_cv_c_bigendian = unknown; then
12593 # See if sys/param.h defines the BYTE_ORDER macro.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #include <sys/types.h>
12597 #include <sys/param.h>
12602 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12603 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12605 bogus endian macros
12612 if ac_fn_c_try_compile "$LINENO"
12614 # It does; now see whether it defined to BIG_ENDIAN or not.
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #include <sys/types.h>
12618 #include <sys/param.h>
12623 #if BYTE_ORDER != BIG_ENDIAN
12631 if ac_fn_c_try_compile "$LINENO"
12633 ac_cv_c_bigendian=yes
12635 ac_cv_c_bigendian=no
12637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12641 if test $ac_cv_c_bigendian = unknown; then
12642 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <limits.h>
12650 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12651 bogus endian macros
12658 if ac_fn_c_try_compile "$LINENO"
12660 # It does; now see whether it defined to _BIG_ENDIAN or not.
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663 #include <limits.h>
12668 #ifndef _BIG_ENDIAN
12676 if ac_fn_c_try_compile "$LINENO"
12678 ac_cv_c_bigendian=yes
12680 ac_cv_c_bigendian=no
12682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12686 if test $ac_cv_c_bigendian = unknown; then
12687 # Compile a test program.
12688 if test "$cross_compiling" = yes
12690 # Try to guess by grepping values from an object file.
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 unsigned short int ascii_mm[] =
12694 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12695 unsigned short int ascii_ii[] =
12696 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12697 int use_ascii (int i) {
12698 return ascii_mm[i] + ascii_ii[i];
12700 unsigned short int ebcdic_ii[] =
12701 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12702 unsigned short int ebcdic_mm[] =
12703 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12704 int use_ebcdic (int i) {
12705 return ebcdic_mm[i] + ebcdic_ii[i];
12712 return use_ascii (foo) == use_ebcdic (foo);
12717 if ac_fn_c_try_compile "$LINENO"
12719 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12720 ac_cv_c_bigendian=yes
12722 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12723 if test "$ac_cv_c_bigendian" = unknown; then
12724 ac_cv_c_bigendian=no
12726 # finding both strings is unlikely to happen, but who knows?
12727 ac_cv_c_bigendian=unknown
12731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 $ac_includes_default
12740 /* Are we little or big endian? From Harbison&Steele. */
12744 char c[sizeof (long int)];
12747 return u.c[sizeof (long int) - 1] == 1;
12753 if ac_fn_c_try_run "$LINENO"
12755 ac_cv_c_bigendian=no
12757 ac_cv_c_bigendian=yes
12759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12760 conftest.$ac_objext conftest.beam conftest.$ac_ext
12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12766 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12767 case $ac_cv_c_bigendian in #(
12769 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12775 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12779 as_fn_error $? "unknown endianness
12780 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12783 if test $cross_compiling = no; then
12784 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12786 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12788 ASM_TYPES_HEADER=./asm_types.h
12790 echo "/* These defines are needed for the public ext2fs.h header file */" \
12792 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12793 uniq tmp_config.$$ >> public_config.h
12795 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12797 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12798 uniq tmp_config.$$ >> public_config.h
12800 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12802 rm -f tmp_config.$$
12803 PUBLIC_CONFIG_HEADER=./public_config.h
12805 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12806 if test "x$ac_cv_header_inttypes_h" = xyes
12808 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12812 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12813 if test "x$ac_cv_type_intptr_t" = xyes
12816 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12822 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12823 if test ${e2fsprogs_cv_struct_st_flags+y}
12825 printf %s "(cached) " >&6
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include <sys/stat.h>
12833 struct stat stat; stat.st_flags = 0;
12838 if ac_fn_c_try_compile "$LINENO"
12840 e2fsprogs_cv_struct_st_flags=yes
12842 e2fsprogs_cv_struct_st_flags=no
12844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12848 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12849 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12851 printf %s "checking whether st_flags field is useful... " >&6; }
12852 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12854 printf %s "(cached) " >&6
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 #include <sys/stat.h>
12862 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12867 if ac_fn_c_try_compile "$LINENO"
12869 e2fsprogs_cv_struct_st_flags_immut=yes
12871 e2fsprogs_cv_struct_st_flags_immut=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12877 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12878 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12880 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12884 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12885 #include <sys/socket.h>
12887 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12890 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12894 if test -n "$BLKID_CMT"; then
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12896 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12897 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12899 printf %s "(cached) " >&6
12901 ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-lblkid $LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12909 char blkid_probe_get_topology ();
12913 return blkid_probe_get_topology ();
12918 if ac_fn_c_try_link "$LINENO"
12920 ac_cv_lib_blkid_blkid_probe_get_topology=yes
12922 ac_cv_lib_blkid_blkid_probe_get_topology=no
12924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12925 conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_check_lib_save_LIBS
12928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12929 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12930 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12933 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12938 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12939 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12941 printf %s "(cached) " >&6
12943 ac_check_lib_save_LIBS=$LIBS
12944 LIBS="-lblkid $LIBS"
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951 char blkid_topology_get_dax ();
12955 return blkid_topology_get_dax ();
12960 if ac_fn_c_try_link "$LINENO"
12962 ac_cv_lib_blkid_blkid_topology_get_dax=yes
12964 ac_cv_lib_blkid_blkid_topology_get_dax=no
12966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12967 conftest$ac_exeext conftest.$ac_ext
12968 LIBS=$ac_check_lib_save_LIBS
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12971 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12972 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12975 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12980 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12981 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
12983 printf %s "(cached) " >&6
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lblkid $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 char blkid_probe_enable_partitions ();
12997 return blkid_probe_enable_partitions ();
13002 if ac_fn_c_try_link "$LINENO"
13004 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13006 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13013 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13014 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13017 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13022 if test -n "$DLOPEN_LIB" ; then
13023 ac_cv_func_dlopen=yes
13025 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13026 if test "x$ac_cv_func___secure_getenv" = xyes
13028 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13031 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13032 if test "x$ac_cv_func_add_key" = xyes
13034 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13037 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13038 if test "x$ac_cv_func_backtrace" = xyes
13040 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13043 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13044 if test "x$ac_cv_func_chflags" = xyes
13046 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13049 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13050 if test "x$ac_cv_func_dlopen" = xyes
13052 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13055 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13056 if test "x$ac_cv_func_fadvise64" = xyes
13058 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13061 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13062 if test "x$ac_cv_func_fallocate" = xyes
13064 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13067 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13068 if test "x$ac_cv_func_fallocate64" = xyes
13070 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13073 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13074 if test "x$ac_cv_func_fchown" = xyes
13076 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13079 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13080 if test "x$ac_cv_func_fcntl" = xyes
13082 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13085 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13086 if test "x$ac_cv_func_fdatasync" = xyes
13088 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13091 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13092 if test "x$ac_cv_func_fstat64" = xyes
13094 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13097 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13098 if test "x$ac_cv_func_fsync" = xyes
13100 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13103 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13104 if test "x$ac_cv_func_ftruncate64" = xyes
13106 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13109 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13110 if test "x$ac_cv_func_futimes" = xyes
13112 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13115 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13116 if test "x$ac_cv_func_getcwd" = xyes
13118 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13121 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13122 if test "x$ac_cv_func_getdtablesize" = xyes
13124 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13127 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13128 if test "x$ac_cv_func_getentropy" = xyes
13130 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13133 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13134 if test "x$ac_cv_func_gethostname" = xyes
13136 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13139 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13140 if test "x$ac_cv_func_getmntinfo" = xyes
13142 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13145 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13146 if test "x$ac_cv_func_getpwuid_r" = xyes
13148 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13151 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13152 if test "x$ac_cv_func_getrandom" = xyes
13154 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13157 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13158 if test "x$ac_cv_func_getrlimit" = xyes
13160 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13163 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13164 if test "x$ac_cv_func_getrusage" = xyes
13166 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13169 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13170 if test "x$ac_cv_func_jrand48" = xyes
13172 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13175 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13176 if test "x$ac_cv_func_keyctl" = xyes
13178 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13181 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13182 if test "x$ac_cv_func_llistxattr" = xyes
13184 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13187 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13188 if test "x$ac_cv_func_llseek" = xyes
13190 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13193 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13194 if test "x$ac_cv_func_lseek64" = xyes
13196 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13199 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13200 if test "x$ac_cv_func_mallinfo" = xyes
13202 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13205 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13206 if test "x$ac_cv_func_mallinfo2" = xyes
13208 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13211 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13212 if test "x$ac_cv_func_mbstowcs" = xyes
13214 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13217 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13218 if test "x$ac_cv_func_memalign" = xyes
13220 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13223 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13224 if test "x$ac_cv_func_mempcpy" = xyes
13226 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13229 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13230 if test "x$ac_cv_func_mmap" = xyes
13232 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13235 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13236 if test "x$ac_cv_func_msync" = xyes
13238 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13241 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13242 if test "x$ac_cv_func_nanosleep" = xyes
13244 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13247 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13248 if test "x$ac_cv_func_open64" = xyes
13250 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13253 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13254 if test "x$ac_cv_func_pathconf" = xyes
13256 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13259 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13260 if test "x$ac_cv_func_posix_fadvise" = xyes
13262 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13265 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13266 if test "x$ac_cv_func_posix_fadvise64" = xyes
13268 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13271 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13272 if test "x$ac_cv_func_posix_memalign" = xyes
13274 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13277 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13278 if test "x$ac_cv_func_prctl" = xyes
13280 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13283 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13284 if test "x$ac_cv_func_pread" = xyes
13286 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13289 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13290 if test "x$ac_cv_func_pwrite" = xyes
13292 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13295 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13296 if test "x$ac_cv_func_pread64" = xyes
13298 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13301 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13302 if test "x$ac_cv_func_pwrite64" = xyes
13304 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13307 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13308 if test "x$ac_cv_func_qsort_r" = xyes
13310 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13313 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13314 if test "x$ac_cv_func_secure_getenv" = xyes
13316 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13319 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13320 if test "x$ac_cv_func_setmntent" = xyes
13322 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13325 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13326 if test "x$ac_cv_func_setresgid" = xyes
13328 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13331 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13332 if test "x$ac_cv_func_setresuid" = xyes
13334 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13337 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13338 if test "x$ac_cv_func_snprintf" = xyes
13340 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13343 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13344 if test "x$ac_cv_func_srandom" = xyes
13346 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13349 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13350 if test "x$ac_cv_func_stpcpy" = xyes
13352 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13355 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13356 if test "x$ac_cv_func_strcasecmp" = xyes
13358 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13361 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13362 if test "x$ac_cv_func_strdup" = xyes
13364 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13367 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13368 if test "x$ac_cv_func_strnlen" = xyes
13370 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13373 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13374 if test "x$ac_cv_func_strptime" = xyes
13376 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13379 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13380 if test "x$ac_cv_func_strtoull" = xyes
13382 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13385 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13386 if test "x$ac_cv_func_sync_file_range" = xyes
13388 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13391 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13392 if test "x$ac_cv_func_sysconf" = xyes
13394 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13397 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13398 if test "x$ac_cv_func_usleep" = xyes
13400 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13403 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13404 if test "x$ac_cv_func_utime" = xyes
13406 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13409 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13410 if test "x$ac_cv_func_utimes" = xyes
13412 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13415 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13416 if test "x$ac_cv_func_valloc" = xyes
13418 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13424 printf %s "checking for socket in -lsocket... " >&6; }
13425 if test ${ac_cv_lib_socket_socket+y}
13427 printf %s "(cached) " >&6
13429 ac_check_lib_save_LIBS=$LIBS
13430 LIBS="-lsocket $LIBS"
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13434 /* Override any GCC internal prototype to avoid an error.
13435 Use char because int might match the return type of a GCC
13436 builtin and then its argument prototype would still apply. */
13446 if ac_fn_c_try_link "$LINENO"
13448 ac_cv_lib_socket_socket=yes
13450 ac_cv_lib_socket_socket=no
13452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LIBS=$ac_check_lib_save_LIBS
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13457 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13458 if test "x$ac_cv_lib_socket_socket" = xyes
13460 SOCKET_LIB=-lsocket
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13465 printf %s "checking for magic_file in -lmagic... " >&6; }
13466 if test ${ac_cv_lib_magic_magic_file+y}
13468 printf %s "(cached) " >&6
13470 ac_check_lib_save_LIBS=$LIBS
13471 LIBS="-lmagic $LIBS"
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13478 char magic_file ();
13482 return magic_file ();
13487 if ac_fn_c_try_link "$LINENO"
13489 ac_cv_lib_magic_magic_file=yes
13491 ac_cv_lib_magic_magic_file=no
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LIBS=$ac_check_lib_save_LIBS
13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13498 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13499 if test "x$ac_cv_lib_magic_magic_file" = xyes
13502 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13503 if test "x$ac_cv_header_magic_h" = xyes
13505 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13511 if test "$ac_cv_func_dlopen" = yes ; then
13512 MAGIC_LIB=$DLOPEN_LIB
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13516 printf %s "checking for clock_gettime in -lrt... " >&6; }
13517 if test ${ac_cv_lib_rt_clock_gettime+y}
13519 printf %s "(cached) " >&6
13521 ac_check_lib_save_LIBS=$LIBS
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 /* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13529 char clock_gettime ();
13533 return clock_gettime ();
13538 if ac_fn_c_try_link "$LINENO"
13540 ac_cv_lib_rt_clock_gettime=yes
13542 ac_cv_lib_rt_clock_gettime=no
13544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13545 conftest$ac_exeext conftest.$ac_ext
13546 LIBS=$ac_check_lib_save_LIBS
13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13549 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13550 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13552 CLOCK_GETTIME_LIB=-lrt
13558 # Check whether --enable-fuse2fs was given.
13559 if test ${enable_fuse2fs+y}
13561 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13565 printf "%s\n" "Disabling fuse2fs" >&6; }
13567 for ac_header in pthread.h fuse.h
13569 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13571 #define FUSE_USE_VERSION 29
13573 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13575 cat >>confdefs.h <<_ACEOF
13576 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13582 as_fn_error $? "Cannot find fuse2fs headers.
13583 See \`config.log' for more details" "$LINENO" 5; }
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #define FUSE_USE_VERSION 29
13592 #include <linux/fs.h>
13593 #include <linux/falloc.h>
13594 #include <linux/xattr.h>
13605 if ac_fn_c_try_cpp "$LINENO"
13609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13611 as_fn_error $? "Cannot find fuse2fs Linux headers.
13612 See \`config.log' for more details" "$LINENO" 5; }
13614 rm -f conftest.err conftest.i conftest.$ac_ext
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13617 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13618 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13620 printf %s "(cached) " >&6
13622 ac_check_lib_save_LIBS=$LIBS
13623 LIBS="-losxfuse $LIBS"
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13627 /* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
13634 return fuse_main ();
13639 if ac_fn_c_try_link "$LINENO"
13641 ac_cv_lib_osxfuse_fuse_main=yes
13643 ac_cv_lib_osxfuse_fuse_main=no
13645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13650 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13651 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13656 printf %s "checking for fuse_main in -lfuse... " >&6; }
13657 if test ${ac_cv_lib_fuse_fuse_main+y}
13659 printf %s "(cached) " >&6
13661 ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-lfuse $LIBS"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13673 return fuse_main ();
13678 if ac_fn_c_try_link "$LINENO"
13680 ac_cv_lib_fuse_fuse_main=yes
13682 ac_cv_lib_fuse_fuse_main=no
13684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13689 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13690 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13696 as_fn_error $? "Cannot find fuse library.
13697 See \`config.log' for more details" "$LINENO" 5; }
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13703 printf "%s\n" "Enabling fuse2fs" >&6; }
13707 for ac_header in pthread.h fuse.h
13709 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13711 #define FUSE_USE_VERSION 29
13713 # include <linux/fs.h>
13714 # include <linux/falloc.h>
13715 # include <linux/xattr.h>
13718 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13720 cat >>confdefs.h <<_ACEOF
13721 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13729 if test -z "$FUSE_CMT"
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13732 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13733 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13735 printf %s "(cached) " >&6
13737 ac_check_lib_save_LIBS=$LIBS
13738 LIBS="-losxfuse $LIBS"
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13749 return fuse_main ();
13754 if ac_fn_c_try_link "$LINENO"
13756 ac_cv_lib_osxfuse_fuse_main=yes
13758 ac_cv_lib_osxfuse_fuse_main=no
13760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13761 conftest$ac_exeext conftest.$ac_ext
13762 LIBS=$ac_check_lib_save_LIBS
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13765 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13766 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13771 printf %s "checking for fuse_main in -lfuse... " >&6; }
13772 if test ${ac_cv_lib_fuse_fuse_main+y}
13774 printf %s "(cached) " >&6
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-lfuse $LIBS"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13781 /* Override any GCC internal prototype to avoid an error.
13782 Use char because int might match the return type of a GCC
13783 builtin and then its argument prototype would still apply. */
13788 return fuse_main ();
13793 if ac_fn_c_try_link "$LINENO"
13795 ac_cv_lib_fuse_fuse_main=yes
13797 ac_cv_lib_fuse_fuse_main=no
13799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13800 conftest$ac_exeext conftest.$ac_ext
13801 LIBS=$ac_check_lib_save_LIBS
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13804 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13805 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13815 if test -z "$FUSE_CMT"
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13818 printf "%s\n" "Enabling fuse2fs by default." >&6; }
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13826 printf %s "checking for optreset... " >&6; }
13827 if test ${ac_cv_have_optreset+y}
13829 printf %s "(cached) " >&6
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 #include <unistd.h>
13836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13837 $EGREP "optreset" >/dev/null 2>&1
13839 ac_cv_have_optreset=yes
13841 ac_cv_have_optreset=no
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13847 printf "%s\n" "$ac_cv_have_optreset" >&6; }
13848 if test $ac_cv_have_optreset = yes; then
13850 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
13855 echo GL_THREADS_API: ${gl_threads_api}
13856 if test "${gl_threads_api}" != none
13858 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13859 if test "x$ac_cv_func_sem_init" = xyes
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13864 printf %s "checking for sem_init in -lpthread... " >&6; }
13865 if test ${ac_cv_lib_pthread_sem_init+y}
13867 printf %s "(cached) " >&6
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lpthread $LIBS"
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13874 /* Override any GCC internal prototype to avoid an error.
13875 Use char because int might match the return type of a GCC
13876 builtin and then its argument prototype would still apply. */
13881 return sem_init ();
13886 if ac_fn_c_try_link "$LINENO"
13888 ac_cv_lib_pthread_sem_init=yes
13890 ac_cv_lib_pthread_sem_init=no
13892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13893 conftest$ac_exeext conftest.$ac_ext
13894 LIBS=$ac_check_lib_save_LIBS
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13897 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
13898 if test "x$ac_cv_lib_pthread_sem_init" = xyes
13900 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13902 SEM_INIT_LIB=-lpthread
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13905 printf %s "checking for sem_init in -lrt... " >&6; }
13906 if test ${ac_cv_lib_rt_sem_init+y}
13908 printf %s "(cached) " >&6
13910 ac_check_lib_save_LIBS=$LIBS
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13922 return sem_init ();
13927 if ac_fn_c_try_link "$LINENO"
13929 ac_cv_lib_rt_sem_init=yes
13931 ac_cv_lib_rt_sem_init=no
13933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13938 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
13939 if test "x$ac_cv_lib_rt_sem_init" = xyes
13941 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13946 printf %s "checking for sem_init in -lposix4... " >&6; }
13947 if test ${ac_cv_lib_posix4_sem_init+y}
13949 printf %s "(cached) " >&6
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lposix4 $LIBS"
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13963 return sem_init ();
13968 if ac_fn_c_try_link "$LINENO"
13970 ac_cv_lib_posix4_sem_init=yes
13972 ac_cv_lib_posix4_sem_init=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13975 conftest$ac_exeext conftest.$ac_ext
13976 LIBS=$ac_check_lib_save_LIBS
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13979 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
13980 if test "x$ac_cv_lib_posix4_sem_init" = xyes
13982 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13984 SEM_INIT_LIB=-lposix4
13994 if test "$ac_cv_func_qsort_r" != no
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
13998 printf %s "checking whether qsort_r is GNU version... " >&6; }
13999 if test ${e2_cv_gnu_qsort_r+y}
14001 printf %s "(cached) " >&6
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14006 #include <stdlib.h>
14007 void (qsort_r)(void *base, size_t nmemb, size_t size,
14008 int (*compar)(const void *, const void *, void *),
14019 if ac_fn_c_try_compile "$LINENO"
14021 e2_cv_gnu_qsort_r=yes
14023 e2_cv_gnu_qsort_r=no
14025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14029 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14031 printf %s "checking whether qsort_r is BSD version... " >&6; }
14032 if test ${e2_cv_bsd_qsort_r+y}
14034 printf %s "(cached) " >&6
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14039 #include <stdlib.h>
14040 void (qsort_r)(void *base, size_t nmemb, size_t size,
14041 void *arg, int (*compar)(void *, const void *, const void *));
14051 if ac_fn_c_try_compile "$LINENO"
14053 e2_cv_bsd_qsort_r=yes
14055 e2_cv_bsd_qsort_r=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14061 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14062 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14066 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14072 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14081 printf %s "checking for unified diff option... " >&6; }
14082 if diff -u $0 $0 > /dev/null 2>&1 ; then
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14088 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14093 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14098 printf %s "checking for mount 'nosuid' option... "
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 #include <sys/mount.h>
14105 void *temp = (void *)(MS_NOSUID); (void) temp;
14110 if ac_fn_c_try_compile "$LINENO"
14113 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14115 ac_cv_mount_nosuid=yes
14116 printf "%s\n" "yes"
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 #include <sys/mount.h>
14124 void *temp = (void *)(MNT_NOSUID); (void) temp;
14129 if ac_fn_c_try_compile "$LINENO"
14132 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14134 ac_cv_mount_nosuid=yes
14135 printf "%s\n" "yes"
14137 ac_cv_mount_nosuid=no
14141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14147 printf %s "checking for mount 'nodev' option... "
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <sys/mount.h>
14154 void *temp = (void *)(MS_NODEV); (void) temp;
14159 if ac_fn_c_try_compile "$LINENO"
14162 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14164 ac_cv_mount_nodev=yes
14165 printf "%s\n" "yes"
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #include <sys/mount.h>
14173 void *temp = (void *)(MNT_NODEV); (void) temp;
14178 if ac_fn_c_try_compile "$LINENO"
14181 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14183 ac_cv_mount_nodev=yes
14184 printf "%s\n" "yes"
14186 ac_cv_mount_nodev=no
14190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14195 # Check whether --enable-lto was given.
14196 if test ${enable_lto+y}
14198 enableval=$enable_lto;
14203 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14205 printf %s "checking if C compiler supports LTO... " >&6; }
14206 OLD_CFLAGS="$CFLAGS"
14207 OLD_LDFLAGS="$LDFLAGS"
14208 LTO_FLAGS="-g -flto -ffat-lto-objects"
14209 CFLAGS="$CFLAGS $LTO_FLAGS"
14210 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14222 if ac_fn_c_try_link "$LINENO"
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225 printf "%s\n" "yes" >&6; }
14226 lto_cflags=$LTO_FLAGS
14227 lto_ldflags=$LTO_FLAGS
14228 # Extract the first word of "gcc-ar", so it can be a program name with args.
14229 set dummy gcc-ar; ac_word=$2
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231 printf %s "checking for $ac_word... " >&6; }
14232 if test ${ac_cv_path_gcc_ar+y}
14234 printf %s "(cached) " >&6
14238 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14245 case $as_dir in #(((
14248 *) as_dir=$as_dir/ ;;
14250 for ac_exec_ext in '' $ac_executable_extensions; do
14251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14252 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14263 gcc_ar=$ac_cv_path_gcc_ar
14264 if test -n "$gcc_ar"; then
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14266 printf "%s\n" "$gcc_ar" >&6; }
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 printf "%s\n" "no" >&6; }
14273 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14274 set dummy gcc-ranlib; ac_word=$2
14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 printf %s "checking for $ac_word... " >&6; }
14277 if test ${ac_cv_path_gcc_ranlib+y}
14279 printf %s "(cached) " >&6
14281 case $gcc_ranlib in
14283 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14290 case $as_dir in #(((
14293 *) as_dir=$as_dir/ ;;
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14297 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14308 gcc_ranlib=$ac_cv_path_gcc_ranlib
14309 if test -n "$gcc_ranlib"; then
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14311 printf "%s\n" "$gcc_ranlib" >&6; }
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 printf "%s\n" "no" >&6; }
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 printf "%s\n" "no" >&6; }
14322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14323 conftest$ac_exeext conftest.$ac_ext
14324 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14327 RANLIB="${gcc_ranlib}"
14329 CFLAGS="${OLD_CFLAGS}"
14330 LDFLAGS="${OLD_LDFLAGS}"
14335 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14336 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14338 # Check whether --enable-ubsan was given.
14339 if test ${enable_ubsan+y}
14341 enableval=$enable_ubsan;
14346 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14348 printf %s "checking if C compiler supports UBSAN... " >&6; }
14349 OLD_CFLAGS="$CFLAGS"
14350 OLD_LDFLAGS="$LDFLAGS"
14351 UBSAN_FLAGS="-fsanitize=undefined"
14352 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14353 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14365 if ac_fn_c_try_link "$LINENO"
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368 printf "%s\n" "yes" >&6; }
14369 ubsan_cflags=$UBSAN_FLAGS
14370 ubsan_ldflags=$UBSAN_FLAGS
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374 printf "%s\n" "no" >&6; }
14376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14377 conftest$ac_exeext conftest.$ac_ext
14378 CFLAGS="${OLD_CFLAGS}"
14379 LDFLAGS="${OLD_LDFLAGS}"
14384 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14385 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14387 # Check whether --enable-addrsan was given.
14388 if test ${enable_addrsan+y}
14390 enableval=$enable_addrsan;
14395 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14397 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14398 OLD_CFLAGS="$CFLAGS"
14399 OLD_LDFLAGS="$LDFLAGS"
14400 ADDRSAN_FLAGS="-fsanitize=address"
14401 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14402 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14414 if ac_fn_c_try_link "$LINENO"
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14417 printf "%s\n" "yes" >&6; }
14418 addrsan_cflags=$ADDRSAN_FLAGS
14419 addrsan_ldflags=$ADDRSAN_FLAGS
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 printf "%s\n" "no" >&6; }
14425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14426 conftest$ac_exeext conftest.$ac_ext
14427 CFLAGS="${OLD_CFLAGS}"
14428 LDFLAGS="${OLD_LDFLAGS}"
14433 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14434 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14436 # Check whether --enable-threadsan was given.
14437 if test ${enable_threadsan+y}
14439 enableval=$enable_threadsan;
14441 enable_threadsan=no
14444 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14446 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14447 OLD_CFLAGS="$CFLAGS"
14448 OLD_LDFLAGS="$LDFLAGS"
14449 THREADSAN_FLAGS="-fsanitize=thread"
14450 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14451 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14463 if ac_fn_c_try_link "$LINENO"
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14466 printf "%s\n" "yes" >&6; }
14467 threadsan_cflags=$THREADSAN_FLAGS
14468 threadsan_ldflags=$THREADSAN_FLAGS
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 printf "%s\n" "no" >&6; }
14474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14475 conftest$ac_exeext conftest.$ac_ext
14476 CFLAGS="${OLD_CFLAGS}"
14477 LDFLAGS="${OLD_LDFLAGS}"
14482 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14483 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14485 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14487 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14490 # Check whether --enable-fuzzing was given.
14491 if test ${enable_fuzzing+y}
14493 enableval=$enable_fuzzing;
14498 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14506 ac_cpp='$CXXCPP $CPPFLAGS'
14507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14510 if test -z "$CXX"; then
14511 if test -n "$CCC"; then
14514 if test -n "$ac_tool_prefix"; then
14515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14520 printf %s "checking for $ac_word... " >&6; }
14521 if test ${ac_cv_prog_CXX+y}
14523 printf %s "(cached) " >&6
14525 if test -n "$CXX"; then
14526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529 for as_dir in $PATH
14532 case $as_dir in #(((
14535 *) as_dir=$as_dir/ ;;
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14539 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14549 CXX=$ac_cv_prog_CXX
14550 if test -n "$CXX"; then
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14552 printf "%s\n" "$CXX" >&6; }
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 printf "%s\n" "no" >&6; }
14559 test -n "$CXX" && break
14562 if test -z "$CXX"; then
14564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14566 # Extract the first word of "$ac_prog", so it can be a program name with args.
14567 set dummy $ac_prog; ac_word=$2
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 printf %s "checking for $ac_word... " >&6; }
14570 if test ${ac_cv_prog_ac_ct_CXX+y}
14572 printf %s "(cached) " >&6
14574 if test -n "$ac_ct_CXX"; then
14575 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14581 case $as_dir in #(((
14584 *) as_dir=$as_dir/ ;;
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14588 ac_cv_prog_ac_ct_CXX="$ac_prog"
14589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14599 if test -n "$ac_ct_CXX"; then
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14601 printf "%s\n" "$ac_ct_CXX" >&6; }
14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604 printf "%s\n" "no" >&6; }
14608 test -n "$ac_ct_CXX" && break
14611 if test "x$ac_ct_CXX" = x; then
14614 case $cross_compiling:$ac_tool_warned in
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14618 ac_tool_warned=yes ;;
14626 # Provide some information about the compiler.
14627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14630 for ac_option in --version -v -V -qversion; do
14631 { { ac_try="$ac_compiler $ac_option >&5"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14637 printf "%s\n" "$ac_try_echo"; } >&5
14638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14640 if test -s conftest.err; then
14642 ... rest of stderr output deleted ...
14643 10q' conftest.err >conftest.er1
14644 cat conftest.er1 >&5
14646 rm -f conftest.er1 conftest.err
14647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14648 test $ac_status = 0; }
14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14652 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14653 if test ${ac_cv_cxx_compiler_gnu+y}
14655 printf %s "(cached) " >&6
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14671 if ac_fn_cxx_try_compile "$LINENO"
14673 ac_compiler_gnu=yes
14677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14682 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14685 if test $ac_compiler_gnu = yes; then
14690 ac_test_CXXFLAGS=${CXXFLAGS+y}
14691 ac_save_CXXFLAGS=$CXXFLAGS
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14693 printf %s "checking whether $CXX accepts -g... " >&6; }
14694 if test ${ac_cv_prog_cxx_g+y}
14696 printf %s "(cached) " >&6
14698 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14699 ac_cxx_werror_flag=yes
14700 ac_cv_prog_cxx_g=no
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14713 if ac_fn_cxx_try_compile "$LINENO"
14715 ac_cv_prog_cxx_g=yes
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14729 if ac_fn_cxx_try_compile "$LINENO"
14733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14746 if ac_fn_cxx_try_compile "$LINENO"
14748 ac_cv_prog_cxx_g=yes
14750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14755 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14758 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14759 if test $ac_test_CXXFLAGS; then
14760 CXXFLAGS=$ac_save_CXXFLAGS
14761 elif test $ac_cv_prog_cxx_g = yes; then
14762 if test "$GXX" = yes; then
14768 if test "$GXX" = yes; then
14774 ac_prog_cxx_stdcxx=no
14775 if test x$ac_prog_cxx_stdcxx = xno
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14778 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14779 if test ${ac_cv_prog_cxx_cxx11+y}
14781 printf %s "(cached) " >&6
14783 ac_cv_prog_cxx_cxx11=no
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 $ac_cxx_conftest_cxx11_program
14789 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14791 CXX="$ac_save_CXX $ac_arg"
14792 if ac_fn_cxx_try_compile "$LINENO"
14794 ac_cv_prog_cxx_cxx11=$ac_arg
14796 rm -f core conftest.err conftest.$ac_objext conftest.beam
14797 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14799 rm -f conftest.$ac_ext
14803 if test "x$ac_cv_prog_cxx_cxx11" = xno
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14806 printf "%s\n" "unsupported" >&6; }
14808 if test "x$ac_cv_prog_cxx_cxx11" = x
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14811 printf "%s\n" "none needed" >&6; }
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14814 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14815 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14817 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14818 ac_prog_cxx_stdcxx=cxx11
14821 if test x$ac_prog_cxx_stdcxx = xno
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14824 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14825 if test ${ac_cv_prog_cxx_cxx98+y}
14827 printf %s "(cached) " >&6
14829 ac_cv_prog_cxx_cxx98=no
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 $ac_cxx_conftest_cxx98_program
14835 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14837 CXX="$ac_save_CXX $ac_arg"
14838 if ac_fn_cxx_try_compile "$LINENO"
14840 ac_cv_prog_cxx_cxx98=$ac_arg
14842 rm -f core conftest.err conftest.$ac_objext conftest.beam
14843 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14845 rm -f conftest.$ac_ext
14849 if test "x$ac_cv_prog_cxx_cxx98" = xno
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14852 printf "%s\n" "unsupported" >&6; }
14854 if test "x$ac_cv_prog_cxx_cxx98" = x
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14857 printf "%s\n" "none needed" >&6; }
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14860 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14861 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14863 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14864 ac_prog_cxx_stdcxx=cxx98
14869 ac_cpp='$CPP $CPPFLAGS'
14870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
14875 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
14877 ac_cpp='$CXXCPP $CPPFLAGS'
14878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14882 OLD_CXXFLAGS="$CXXFLAGS"
14883 OLD_LDFLAGS="$LDFLAGS"
14884 FUZZER_FLAGS="-fsanitize=fuzzer"
14885 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
14886 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 #include <stddef.h>
14892 #include <stdint.h>
14902 if ac_fn_cxx_try_compile "$LINENO"
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14905 printf "%s\n" "yes" >&6; }
14906 fuzzer_cflags=$FUZZER_FLAGS
14907 fuzzer_ldflags=$FUZZER_FLAGS
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 printf "%s\n" "no" >&6; }
14913 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
14915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14916 CXXFLAGS="${OLD_CXXFLAGS}"
14917 LDFLAGS="${OLD_LDFLAGS}"
14919 ac_cpp='$CPP $CPPFLAGS'
14920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14928 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
14929 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
14947 E2SCRUB_CMT="$LINUX_CMT"
14950 linux* | gnu* | k*bsd*-gnu)
14951 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14954 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
14959 linux* | gnu* | k*bsd*-gnu)
14960 if test "$prefix" = NONE ; then
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14963 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
14964 if test "$mandir" = '${prefix}/man' ; then
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14966 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
14967 mandir=/usr/share/man
14972 if test "$root_prefix" = NONE ; then
14973 if test "$prefix" = NONE ; then
14974 root_prefix="$ac_default_prefix"
14976 root_prefix="$prefix"
14978 root_bindir=$bindir
14979 root_sbindir=$sbindir
14980 root_libdir=$libdir
14981 root_sysconfdir=$sysconfdir
14983 root_bindir='${root_prefix}/bin'
14984 root_sbindir='${root_prefix}/sbin'
14985 root_libdir='${root_prefix}/lib'
14986 root_sysconfdir='${root_prefix}/etc'
14988 if test "$bindir" != '${exec_prefix}/bin'; then
14989 root_bindir=$bindir
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14991 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
14993 if test "$sbindir" != '${exec_prefix}/sbin'; then
14994 root_sbindir=$sbindir
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14996 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
14998 if test "$libdir" != '${exec_prefix}/lib'; then
14999 root_libdir=$libdir
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15001 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15003 if test "$sysconfdir" != '${prefix}/etc'; then
15004 root_sysconfdir=$sysconfdir
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15006 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15014 # Check whether --with-multiarch was given.
15015 if test ${with_multiarch+y}
15017 withval=$with_multiarch; if test "$withval" = "lib64"; then
15021 libdir=$libdir/$withval
15022 root_libdir=$root_libdir/$withval
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15028 printf %s "checking whether we can link with -static... " >&6; }
15029 if test ${ac_cv_e2fsprogs_use_static+y}
15031 printf %s "(cached) " >&6
15033 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15045 if ac_fn_c_try_link "$LINENO"
15047 ac_cv_e2fsprogs_use_static=yes
15049 ac_cv_e2fsprogs_use_static=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LDFLAGS=$SAVE_LDFLAGS
15058 ac_cv_e2fsprogs_use_static=no
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15062 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15063 if test $ac_cv_e2fsprogs_use_static = yes; then
15064 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15070 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15072 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15076 if test "$cross_compiling" = yes ; then
15079 DO_TEST_SUITE=check
15082 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15083 if test -n "$CPPFLAGS" ; then
15084 INCLUDES="$INCLUDES $CPPFLAGS"
15086 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15087 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15089 if test -n "$WITH_DIET_LIBC" ; then
15090 INCLUDES="$INCLUDES -D_REENTRANT"
15094 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15098 if test $cross_compiling = no; then
15099 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15100 BUILD_LDFLAGS="$LDFLAGS"
15104 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15105 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15106 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15112 # Check whether --with-udev_rules_dir was given.
15113 if test ${with_udev_rules_dir+y}
15115 withval=$with_udev_rules_dir;
15117 with_udev_rules_dir=yes
15120 if test "x${with_udev_rules_dir}" != "xno"
15123 if test "x${with_udev_rules_dir}" = "xyes"
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15129 printf %s "checking for udev... " >&6; }
15131 if test -n "$udev_CFLAGS"; then
15132 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15133 elif test -n "$PKG_CONFIG"; then
15134 if test -n "$PKG_CONFIG" && \
15135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15136 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15139 test $ac_status = 0; }; then
15140 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15141 test "x$?" != "x0" && pkg_failed=yes
15148 if test -n "$udev_LIBS"; then
15149 pkg_cv_udev_LIBS="$udev_LIBS"
15150 elif test -n "$PKG_CONFIG"; then
15151 if test -n "$PKG_CONFIG" && \
15152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15153 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 test $ac_status = 0; }; then
15157 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15158 test "x$?" != "x0" && pkg_failed=yes
15168 if test $pkg_failed = yes; then
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 printf "%s\n" "no" >&6; }
15172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15173 _pkg_short_errors_supported=yes
15175 _pkg_short_errors_supported=no
15177 if test $_pkg_short_errors_supported = yes; then
15178 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15180 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15182 # Put the nasty error message in config.log where it belongs
15183 echo "$udev_PKG_ERRORS" >&5
15186 with_udev_rules_dir=""
15188 elif test $pkg_failed = untried; then
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 printf "%s\n" "no" >&6; }
15192 with_udev_rules_dir=""
15195 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15196 udev_LIBS=$pkg_cv_udev_LIBS
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15198 printf "%s\n" "yes" >&6; }
15200 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15206 printf %s "checking for udev rules dir... " >&6; }
15207 pkg_udev_rules_dir="${with_udev_rules_dir}"
15208 if test -n "${pkg_udev_rules_dir}"
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15212 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 printf "%s\n" "no" >&6; }
15225 have_udev="disabled"
15232 # Check whether --with-crond_dir was given.
15233 if test ${with_crond_dir+y}
15235 withval=$with_crond_dir;
15240 if test "x${with_crond_dir}" != "xno"
15243 if test "x${with_crond_dir}" = "xyes"
15246 if test -d "/etc/cron.d"
15248 with_crond_dir="/etc/cron.d"
15250 have_crond="no"; with_crond_dir=""
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15255 printf %s "checking for system crontab dir... " >&6; }
15256 crond_dir="${with_crond_dir}"
15257 if test -n "${crond_dir}"
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15261 printf "%s\n" "${crond_dir}" >&6; }
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 printf "%s\n" "no" >&6; }
15274 have_crond="disabled"
15281 # Check whether --with-systemd_unit_dir was given.
15282 if test ${with_systemd_unit_dir+y}
15284 withval=$with_systemd_unit_dir;
15286 with_systemd_unit_dir=yes
15289 if test "x${with_systemd_unit_dir}" != "xno"
15292 if test "x${with_systemd_unit_dir}" = "xyes"
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15298 printf %s "checking for systemd... " >&6; }
15300 if test -n "$systemd_CFLAGS"; then
15301 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15302 elif test -n "$PKG_CONFIG"; then
15303 if test -n "$PKG_CONFIG" && \
15304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15305 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15308 test $ac_status = 0; }; then
15309 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15310 test "x$?" != "x0" && pkg_failed=yes
15317 if test -n "$systemd_LIBS"; then
15318 pkg_cv_systemd_LIBS="$systemd_LIBS"
15319 elif test -n "$PKG_CONFIG"; then
15320 if test -n "$PKG_CONFIG" && \
15321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15322 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; }; then
15326 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15327 test "x$?" != "x0" && pkg_failed=yes
15337 if test $pkg_failed = yes; then
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339 printf "%s\n" "no" >&6; }
15341 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15342 _pkg_short_errors_supported=yes
15344 _pkg_short_errors_supported=no
15346 if test $_pkg_short_errors_supported = yes; then
15347 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15349 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15351 # Put the nasty error message in config.log where it belongs
15352 echo "$systemd_PKG_ERRORS" >&5
15355 with_systemd_unit_dir=""
15357 elif test $pkg_failed = untried; then
15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 printf "%s\n" "no" >&6; }
15361 with_systemd_unit_dir=""
15364 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15365 systemd_LIBS=$pkg_cv_systemd_LIBS
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15367 printf "%s\n" "yes" >&6; }
15369 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15376 printf %s "checking for systemd system unit dir... " >&6; }
15377 systemd_system_unit_dir="${with_systemd_unit_dir}"
15378 if test -n "${systemd_system_unit_dir}"
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15382 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388 printf "%s\n" "no" >&6; }
15395 have_systemd="disabled"
15403 OS_IO_FILE=windows_io
15411 # Check whether --enable-largefile was given.
15412 if test ${enable_largefile+y}
15414 enableval=$enable_largefile;
15417 if test "$enable_largefile" != no; then
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15420 printf %s "checking for special C compiler options needed for large files... " >&6; }
15421 if test ${ac_cv_sys_largefile_CC+y}
15423 printf %s "(cached) " >&6
15425 ac_cv_sys_largefile_CC=no
15426 if test "$GCC" != yes; then
15429 # IRIX 6.2 and later do not support large files by default,
15430 # so use the C compiler's -n32 option if that helps.
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 #include <sys/types.h>
15434 /* Check that off_t can represent 2**63 - 1 correctly.
15435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15436 since some C++ compilers masquerading as C compilers
15437 incorrectly reject 9223372036854775807. */
15438 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15440 && LARGE_OFF_T % 2147483647 == 1)
15450 if ac_fn_c_try_compile "$LINENO"
15454 rm -f core conftest.err conftest.$ac_objext conftest.beam
15456 if ac_fn_c_try_compile "$LINENO"
15458 ac_cv_sys_largefile_CC=' -n32'; break
15460 rm -f core conftest.err conftest.$ac_objext conftest.beam
15464 rm -f conftest.$ac_ext
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15468 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15469 if test "$ac_cv_sys_largefile_CC" != no; then
15470 CC=$CC$ac_cv_sys_largefile_CC
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15474 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15475 if test ${ac_cv_sys_file_offset_bits+y}
15477 printf %s "(cached) " >&6
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #include <sys/types.h>
15483 /* Check that off_t can represent 2**63 - 1 correctly.
15484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15485 since some C++ compilers masquerading as C compilers
15486 incorrectly reject 9223372036854775807. */
15487 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15489 && LARGE_OFF_T % 2147483647 == 1)
15499 if ac_fn_c_try_compile "$LINENO"
15501 ac_cv_sys_file_offset_bits=no; break
15503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 #define _FILE_OFFSET_BITS 64
15507 #include <sys/types.h>
15508 /* Check that off_t can represent 2**63 - 1 correctly.
15509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15510 since some C++ compilers masquerading as C compilers
15511 incorrectly reject 9223372036854775807. */
15512 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15514 && LARGE_OFF_T % 2147483647 == 1)
15524 if ac_fn_c_try_compile "$LINENO"
15526 ac_cv_sys_file_offset_bits=64; break
15528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15529 ac_cv_sys_file_offset_bits=unknown
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15534 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15535 case $ac_cv_sys_file_offset_bits in #(
15538 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15542 if test $ac_cv_sys_file_offset_bits = unknown; then
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15544 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15545 if test ${ac_cv_sys_large_files+y}
15547 printf %s "(cached) " >&6
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 #include <sys/types.h>
15553 /* Check that off_t can represent 2**63 - 1 correctly.
15554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15555 since some C++ compilers masquerading as C compilers
15556 incorrectly reject 9223372036854775807. */
15557 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15559 && LARGE_OFF_T % 2147483647 == 1)
15569 if ac_fn_c_try_compile "$LINENO"
15571 ac_cv_sys_large_files=no; break
15573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15576 #define _LARGE_FILES 1
15577 #include <sys/types.h>
15578 /* Check that off_t can represent 2**63 - 1 correctly.
15579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15580 since some C++ compilers masquerading as C compilers
15581 incorrectly reject 9223372036854775807. */
15582 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15584 && LARGE_OFF_T % 2147483647 == 1)
15594 if ac_fn_c_try_compile "$LINENO"
15596 ac_cv_sys_large_files=1; break
15598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15599 ac_cv_sys_large_files=unknown
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15604 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
15605 case $ac_cv_sys_large_files in #(
15608 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
15616 test -d lib || mkdir lib
15617 test -d include || mkdir include
15618 test -d include/linux || mkdir include/linux
15619 test -d include/asm || mkdir include/asm
15620 if test -z "$UUID_CMT" ; then
15621 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15622 lib/uuid/uuid_types.h"
15624 if test -z "$BLKID_CMT" ; then
15625 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15626 lib/blkid/blkid_types.h"
15628 for i in MCONFIG Makefile \
15629 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15630 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15631 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15632 $uuid_out_list $blkid_out_list lib/support/Makefile \
15633 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15634 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15635 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15636 tests/fuzz/Makefile resize/Makefile doc/Makefile \
15637 po/Makefile.in scrub/Makefile; do
15638 if test -d `dirname ${srcdir}/$i` ; then
15639 outlist="$outlist $i"
15642 ac_config_files="$ac_config_files $outlist"
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems. If it contains results you don't
15649 # want to keep, you may remove or edit it.
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, we kill variables containing newlines.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15667 eval ac_val=\$$ac_var
15671 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15672 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15675 _ | IFS | as_nl) ;; #(
15676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15677 *) { eval $ac_var=; unset $ac_var;} ;;
15683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15684 *${as_nl}ac_space=\ *)
15685 # `set' does not quote correctly, so add quotes: double-quote
15686 # substitution turns \\\\ into \\, and sed turns \\ into \.
15689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15692 # `set' quotes correctly as required by POSIX, so do not add quotes.
15693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15702 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15707 if test -w "$cache_file"; then
15708 if test "x$cache_file" != "x/dev/null"; then
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15710 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15711 if test ! -f "$cache_file" || test -h "$cache_file"; then
15712 cat confcache >"$cache_file"
15714 case $cache_file in #(
15716 mv -f confcache "$cache_file"$$ &&
15717 mv -f "$cache_file"$$ "$cache_file" ;; #(
15719 mv -f confcache "$cache_file" ;;
15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15725 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15731 # Let make expand exec_prefix.
15732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15734 DEFS=-DHAVE_CONFIG_H
15739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15740 # 1. Remove the extension, and $U if already installed.
15741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15742 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15744 # will be set to the directory where LIBOBJS objects are built.
15745 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15746 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15748 LIBOBJS=$ac_libobjs
15750 LTLIBOBJS=$ac_ltlibobjs
15755 : "${CONFIG_STATUS=./config.status}"
15757 ac_clean_files_save=$ac_clean_files
15758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15760 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15762 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15764 # Generated by $as_me.
15765 # Run this file to recreate the current configuration.
15766 # Compiler output produced by configure, useful for debugging
15767 # configure, is in config.log if it exists.
15770 ac_cs_recheck=false
15773 SHELL=\${CONFIG_SHELL-$SHELL}
15776 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15777 ## -------------------- ##
15778 ## M4sh Initialization. ##
15779 ## -------------------- ##
15781 # Be more Bourne compatible
15782 DUALCASE=1; export DUALCASE # for MKS sh
15784 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15788 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15789 # is contrary to our usage. Disable this feature.
15790 alias -g '${1+"$@"}'='"$@"'
15791 setopt NO_GLOB_SUBST
15793 case `(set -o) 2>/dev/null` in #(
15803 # Reset variables that may have inherited troublesome values from
15806 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15807 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15808 # side effect of setting IFS to empty, thus disabling word splitting.)
15809 # Quoting is to prevent editors from complaining about space-tab.
15819 # Ensure predictable behavior from utilities with locale-dependent output.
15825 # We cannot yet rely on "unset" to work, but we need these variables
15826 # to be unset--not just set to an empty or harmless value--now, to
15827 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15828 # also avoids known problems related to "unset" and subshell syntax
15829 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15830 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15831 do eval test \${$as_var+y} \
15832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15835 # Ensure that fds 0, 1, and 2 are open.
15836 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15837 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15838 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15840 # The user is always right.
15841 if ${PATH_SEPARATOR+false} :; then
15843 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15844 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15850 # Find who we are. Look in the path if we contain no directory separator.
15853 *[\\/]* ) as_myself=$0 ;;
15854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15855 for as_dir in $PATH
15858 case $as_dir in #(((
15861 *) as_dir=$as_dir/ ;;
15863 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15869 # We did not find ourselves, most probably we were run as `sh COMMAND'
15870 # in which case we are not to be found in the path.
15871 if test "x$as_myself" = x; then
15874 if test ! -f "$as_myself"; then
15875 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15881 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15882 # ----------------------------------------
15883 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15884 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15885 # script with STATUS, using 1 if that was 0.
15888 as_status=$1; test $as_status -eq 0 && as_status=1
15890 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15893 printf "%s\n" "$as_me: error: $2" >&2
15894 as_fn_exit $as_status
15899 # as_fn_set_status STATUS
15900 # -----------------------
15901 # Set $? to STATUS, without forking.
15902 as_fn_set_status ()
15905 } # as_fn_set_status
15907 # as_fn_exit STATUS
15908 # -----------------
15909 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15913 as_fn_set_status $1
15919 # Portably unset VAR.
15922 { eval $1=; unset $1;}
15924 as_unset=as_fn_unset
15926 # as_fn_append VAR VALUE
15927 # ----------------------
15928 # Append the text in VALUE to the end of the definition contained in VAR. Take
15929 # advantage of any shell optimizations that allow amortized linear growth over
15930 # repeated appends, instead of the typical quadratic growth present in naive
15932 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15934 eval 'as_fn_append ()
15945 # as_fn_arith ARG...
15946 # ------------------
15947 # Perform arithmetic evaluation on the ARGs, and store the result in the
15948 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15949 # must be portable across $(()) and expr.
15950 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15952 eval 'as_fn_arith ()
15959 as_val=`expr "$@" || test $? -eq 1`
15964 if expr a : '\(a\)' >/dev/null 2>&1 &&
15965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15971 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15972 as_basename=basename
15977 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15983 as_me=`$as_basename -- "$0" ||
15984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15985 X"$0" : 'X\(//\)$' \| \
15986 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15987 printf "%s\n" X/"$0" |
15988 sed '/^.*\/\([^/][^/]*\)\/*$/{
16002 # Avoid depending upon Character Ranges.
16003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16006 as_cr_digits='0123456789'
16007 as_cr_alnum=$as_cr_Letters$as_cr_digits
16010 # Determine whether it's possible to make 'echo' print without a newline.
16011 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16012 # for compatibility with existing Makefiles.
16013 ECHO_C= ECHO_N= ECHO_T=
16014 case `echo -n x` in #(((((
16016 case `echo 'xy\c'` in
16017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16026 # For backward compatibility with old third-party macros, we provide
16027 # the shell variables $as_echo and $as_echo_n. New code should use
16028 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16029 as_echo='printf %s\n'
16030 as_echo_n='printf %s'
16032 rm -f conf$$ conf$$.exe conf$$.file
16033 if test -d conf$$.dir; then
16034 rm -f conf$$.dir/conf$$.file
16037 mkdir conf$$.dir 2>/dev/null
16039 if (echo >conf$$.file) 2>/dev/null; then
16040 if ln -s conf$$.file conf$$ 2>/dev/null; then
16042 # ... but there are two gotchas:
16043 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16044 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16045 # In both cases, we have to default to `cp -pR'.
16046 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16048 elif ln conf$$.file conf$$ 2>/dev/null; then
16056 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16057 rmdir conf$$.dir 2>/dev/null
16062 # Create "$as_dir" as a directory, including parents if necessary.
16067 -*) as_dir=./$as_dir;;
16069 test -d "$as_dir" || eval $as_mkdir_p || {
16073 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16074 *) as_qdir=$as_dir;;
16076 as_dirs="'$as_qdir' $as_dirs"
16077 as_dir=`$as_dirname -- "$as_dir" ||
16078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16079 X"$as_dir" : 'X\(//\)[^/]' \| \
16080 X"$as_dir" : 'X\(//\)$' \| \
16081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16082 printf "%s\n" X"$as_dir" |
16083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16087 /^X\(\/\/\)[^/].*/{
16100 test -d "$as_dir" && break
16102 test -z "$as_dirs" || eval "mkdir $as_dirs"
16103 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16107 if mkdir -p . 2>/dev/null; then
16108 as_mkdir_p='mkdir -p "$as_dir"'
16110 test -d ./-p && rmdir ./-p
16115 # as_fn_executable_p FILE
16116 # -----------------------
16117 # Test if FILE is an executable regular file.
16118 as_fn_executable_p ()
16120 test -f "$1" && test -x "$1"
16121 } # as_fn_executable_p
16122 as_test_x='test -x'
16123 as_executable_p=as_fn_executable_p
16125 # Sed expression to map a string onto a valid CPP name.
16126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16128 # Sed expression to map a string onto a valid variable name.
16129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16133 ## ----------------------------------- ##
16134 ## Main body of $CONFIG_STATUS script. ##
16135 ## ----------------------------------- ##
16137 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 # Save the log message, to keep $0 and so on meaningful, and to
16141 # report actual input values of CONFIG_FILES etc. instead of their
16142 # values after options handling.
16144 This file was extended by $as_me, which was
16145 generated by GNU Autoconf 2.71. Invocation command line was
16147 CONFIG_FILES = $CONFIG_FILES
16148 CONFIG_HEADERS = $CONFIG_HEADERS
16149 CONFIG_LINKS = $CONFIG_LINKS
16150 CONFIG_COMMANDS = $CONFIG_COMMANDS
16153 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16158 case $ac_config_files in *"
16159 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16162 case $ac_config_headers in *"
16163 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168 # Files that config.status was made for.
16169 config_files="$ac_config_files"
16170 config_headers="$ac_config_headers"
16171 config_commands="$ac_config_commands"
16175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16177 \`$as_me' instantiates files and other configuration actions
16178 from templates according to the current configuration. Unless the files
16179 and actions are specified as TAGs, all are instantiated by default.
16181 Usage: $0 [OPTION]... [TAG]...
16183 -h, --help print this help, then exit
16184 -V, --version print version number and configuration settings, then exit
16185 --config print configuration, then exit
16186 -q, --quiet, --silent
16187 do not print progress messages
16188 -d, --debug don't remove temporary files
16189 --recheck update $as_me by reconfiguring in the same conditions
16190 --file=FILE[:TEMPLATE]
16191 instantiate the configuration file FILE
16192 --header=FILE[:TEMPLATE]
16193 instantiate the configuration header FILE
16195 Configuration files:
16198 Configuration headers:
16201 Configuration commands:
16204 Report bugs to the package provider."
16207 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16208 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16210 ac_cs_config='$ac_cs_config_escaped'
16213 configured by $0, generated by GNU Autoconf 2.71,
16214 with options \\"\$ac_cs_config\\"
16216 Copyright (C) 2021 Free Software Foundation, Inc.
16217 This config.status script is free software; the Free Software Foundation
16218 gives unlimited permission to copy, distribute and modify it."
16225 test -n "\$AWK" || AWK=awk
16228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 # The default lists apply if the user does not specify any file.
16235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16252 # Handling of the options.
16253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16256 printf "%s\n" "$ac_cs_version"; exit ;;
16257 --config | --confi | --conf | --con | --co | --c )
16258 printf "%s\n" "$ac_cs_config"; exit ;;
16259 --debug | --debu | --deb | --de | --d | -d )
16261 --file | --fil | --fi | --f )
16264 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16265 '') as_fn_error $? "missing file argument" ;;
16267 as_fn_append CONFIG_FILES " '$ac_optarg'"
16268 ac_need_defaults=false;;
16269 --header | --heade | --head | --hea )
16272 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16275 ac_need_defaults=false;;
16277 # Conflict between --help and --header
16278 as_fn_error $? "ambiguous option: \`$1'
16279 Try \`$0 --help' for more information.";;
16280 --help | --hel | -h )
16281 printf "%s\n" "$ac_cs_usage"; exit ;;
16282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16286 # This is an error.
16287 -*) as_fn_error $? "unrecognized option: \`$1'
16288 Try \`$0 --help' for more information." ;;
16290 *) as_fn_append ac_config_targets " $1"
16291 ac_need_defaults=false ;;
16297 ac_configure_extra_args=
16299 if $ac_cs_silent; then
16301 ac_configure_extra_args="$ac_configure_extra_args --silent"
16305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16306 if \$ac_cs_recheck; then
16307 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16309 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16310 CONFIG_SHELL='$SHELL'
16311 export CONFIG_SHELL
16316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16321 ## Running $as_me. ##
16323 printf "%s\n" "$ac_log"
16327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16332 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16333 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16334 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16335 LINGUAS="${LINGUAS-%UNSET%}"
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 # Handling of arguments.
16343 for ac_config_target in $ac_config_targets
16345 case $ac_config_target in
16346 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16347 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16348 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16350 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16355 # If the user did not use the arguments to specify the items to instantiate,
16356 # then the envvar interface is used. Set only those that are not.
16357 # We use the long form for the default assignment because of an extremely
16358 # bizarre bug on SunOS 4.1.3.
16359 if $ac_need_defaults; then
16360 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16361 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16362 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16365 # Have a temporary directory for convenience. Make it in the build tree
16366 # simply because there is no reason against having it here, and in addition,
16367 # creating and moving files from /tmp can sometimes cause problems.
16368 # Hook for its removal unless debugging.
16369 # Note that there is a small window in which the directory will not be cleaned:
16370 # after its creation but before its name has been assigned to `$tmp'.
16374 trap 'exit_status=$?
16375 : "${ac_tmp:=$tmp}"
16376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16378 trap 'as_fn_exit 1' 1 2 13 15
16380 # Create a (secure) tmp directory for tmp files.
16383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16387 tmp=./conf$$-$RANDOM
16388 (umask 077 && mkdir "$tmp")
16389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16392 # Set up the scripts for CONFIG_FILES section.
16393 # No need to generate them if there are no CONFIG_FILES.
16394 # This happens for instance with `./config.status config.h'.
16395 if test -n "$CONFIG_FILES"; then
16397 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16398 ac_cs_awk_getline=:
16399 ac_cs_awk_pipe_init=
16400 ac_cs_awk_read_file='
16401 while ((getline aline < (F[key])) > 0)
16404 ac_cs_awk_pipe_fini=
16406 ac_cs_awk_getline=false
16407 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16408 ac_cs_awk_read_file='
16410 print "cat " F[key] " &&"
16411 '$ac_cs_awk_pipe_init
16412 # The final `:' finishes the AND list.
16413 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16415 ac_cr=`echo X | tr X '\015'`
16416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16417 # But we know of no other shell where ac_cr would be empty at this
16418 # point, so we can use a bashism as a fallback.
16419 if test "x$ac_cr" = x; then
16420 eval ac_cr=\$\'\\r\'
16422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16426 ac_cs_awk_cr=$ac_cr
16429 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16432 # Create commands to substitute file output variables.
16434 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16435 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16436 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16439 } >conf$$files.sh &&
16440 . ./conf$$files.sh ||
16441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16442 rm -f conf$$files.sh
16445 echo "cat >conf$$subs.awk <<_ACEOF" &&
16446 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16448 } >conf$$subs.sh ||
16449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16450 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16452 for ac_last_try in false false false false false :; do
16453 . ./conf$$subs.sh ||
16454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16456 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16457 if test $ac_delim_n = $ac_delim_num; then
16459 elif $ac_last_try; then
16460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16465 rm -f conf$$subs.sh
16467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16468 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16472 s/^/S["/; s/!.*/"]=/
16482 s/\(.\{148\}\)..*/\1/
16484 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16496 s/\(.\{148\}\)..*/\1/
16498 s/["\\]/\\&/g; s/^/"/; s/$/"/
16502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16507 ' <conf$$subs.awk | sed '
16512 ' >>$CONFIG_STATUS || ac_write_fail=1
16513 rm -f conf$$subs.awk
16514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16517 for (key in S) S_is_set[key] = 1
16519 \$ac_cs_awk_pipe_init
16523 nfields = split(line, field, "@")
16525 len = length(field[1])
16526 for (i = 2; i < nfields; i++) {
16528 keylen = length(key)
16529 if (S_is_set[key]) {
16531 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16532 len += length(value) + length(field[++i])
16537 if (nfields == 3 && !substed) {
16539 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16540 \$ac_cs_awk_read_file
16546 \$ac_cs_awk_pipe_fini
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16550 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16551 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16554 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16555 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16558 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16559 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16560 # trailing colons and then remove the whole line if VPATH becomes empty
16561 # (actually we leave an empty line to preserve line numbers).
16562 if test "x$srcdir" = x.; then
16563 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16582 fi # test -n "$CONFIG_FILES"
16584 # Set up the scripts for CONFIG_HEADERS section.
16585 # No need to generate them if there are no CONFIG_HEADERS.
16586 # This happens for instance with `./config.status Makefile'.
16587 if test -n "$CONFIG_HEADERS"; then
16588 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16592 # Transform confdefs.h into an awk script `defines.awk', embedded as
16593 # here-document in config.status, that substitutes the proper values into
16594 # config.h.in to produce config.h.
16596 # Create a delimiter string that does not exist in confdefs.h, to ease
16597 # handling of long lines.
16599 for ac_last_try in false false :; do
16600 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16601 if test -z "$ac_tt"; then
16603 elif $ac_last_try; then
16604 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16610 # For the awk script, D is an array of macro values keyed by name,
16611 # likewise P contains macro parameters if any. Preserve backslash
16612 # newline sequences.
16614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16616 s/.\{148\}/&'"$ac_delim"'/g
16619 s/^[ ]*#[ ]*define[ ][ ]*/ /
16626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16633 D["\1"]=" \3\\\\\\n"\\/p
16635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16640 s/.\{148\}/&'"$ac_delim"'/g
16645 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16648 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16650 ' <confdefs.h | sed '
16651 s/'"$ac_delim"'/"\\\
16652 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16655 for (key in D) D_is_set[key] = 1
16658 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16660 split(line, arg, " ")
16661 if (arg[1] == "#") {
16665 defundef = substr(arg[1], 2)
16668 split(mac1, mac2, "(") #)
16670 prefix = substr(line, 1, index(line, defundef) - 1)
16671 if (D_is_set[macro]) {
16672 # Preserve the white space surrounding the "#".
16673 print prefix "define", macro P[macro] D[macro]
16676 # Replace #undef with comments. This is necessary, for example,
16677 # in the case of _POSIX_SOURCE, which is predefined and required
16678 # on some systems where configure will not decide to define it.
16679 if (defundef == "undef") {
16680 print "/*", prefix defundef, macro, "*/"
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16690 fi # test -n "$CONFIG_HEADERS"
16693 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16698 :[FHLC]) ac_mode=$ac_tag; continue;;
16700 case $ac_mode$ac_tag in
16702 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16703 :[FH]-) ac_tag=-:-;;
16704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16721 -) ac_f="$ac_tmp/stdin";;
16722 *) # Look for the file first in the build tree, then in the source tree
16723 # (if the path is not absolute). The absolute path cannot be DOS-style,
16724 # because $ac_f cannot contain `:'.
16728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16730 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16732 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16733 as_fn_append ac_file_inputs " '$ac_f'"
16736 # Let's still pretend it is `configure' which instantiates (i.e., don't
16737 # use $as_me), people would be surprised to read:
16738 # /* config.h. Generated by config.status. */
16739 configure_input='Generated from '`
16740 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16742 if test x"$ac_file" != x-; then
16743 configure_input="$ac_file. $configure_input"
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16745 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16747 # Neutralize special characters interpreted by sed in replacement strings.
16748 case $configure_input in #(
16749 *\&* | *\|* | *\\* )
16750 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16752 *) ac_sed_conf_input=$configure_input;;
16756 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16762 ac_dir=`$as_dirname -- "$ac_file" ||
16763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764 X"$ac_file" : 'X\(//\)[^/]' \| \
16765 X"$ac_file" : 'X\(//\)$' \| \
16766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16767 printf "%s\n" X"$ac_file" |
16768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16772 /^X\(\/\/\)[^/].*/{
16785 as_dir="$ac_dir"; as_fn_mkdir_p
16789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16791 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16792 # A ".." for each directory in $ac_dir_suffix.
16793 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16794 case $ac_top_builddir_sub in
16795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16799 ac_abs_top_builddir=$ac_pwd
16800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16801 # for backward compatibility:
16802 ac_top_builddir=$ac_top_build_prefix
16805 .) # We are building in place.
16807 ac_top_srcdir=$ac_top_builddir_sub
16808 ac_abs_top_srcdir=$ac_pwd ;;
16809 [\\/]* | ?:[\\/]* ) # Absolute name.
16810 ac_srcdir=$srcdir$ac_dir_suffix;
16811 ac_top_srcdir=$srcdir
16812 ac_abs_top_srcdir=$srcdir ;;
16813 *) # Relative name.
16814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16815 ac_top_srcdir=$ac_top_build_prefix$srcdir
16816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16831 ac_MKDIR_P=$MKDIR_P
16833 [\\/$]* | ?:[\\/]* ) ;;
16834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839 # If the template does not know about datarootdir, expand it.
16840 # FIXME: This hack should be removed a few years after 2.60.
16841 ac_datarootdir_hack=; ac_datarootdir_seen=
16852 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16853 *datarootdir*) ac_datarootdir_seen=yes;;
16854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16856 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16859 ac_datarootdir_hack='
16860 s&@datadir@&$datadir&g
16861 s&@docdir@&$docdir&g
16862 s&@infodir@&$infodir&g
16863 s&@localedir@&$localedir&g
16864 s&@mandir@&$mandir&g
16865 s&\\\${datarootdir}&$datarootdir&g' ;;
16869 # Neutralize VPATH when `$srcdir' = `.'.
16870 # Shell code in configure.ac might set extrasub.
16871 # FIXME: do we really want to maintain this feature?
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 ac_sed_extra="$ac_vpsub
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16879 s|@configure_input@|$ac_sed_conf_input|;t t
16880 s&@top_builddir@&$ac_top_builddir_sub&;t t
16881 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16882 s&@srcdir@&$ac_srcdir&;t t
16883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16884 s&@top_srcdir@&$ac_top_srcdir&;t t
16885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16886 s&@builddir@&$ac_builddir&;t t
16887 s&@abs_builddir@&$ac_abs_builddir&;t t
16888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16889 s&@INSTALL@&$ac_INSTALL&;t t
16890 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16891 $ac_datarootdir_hack
16893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16894 if $ac_cs_awk_getline; then
16895 $AWK -f "$ac_tmp/subs.awk"
16897 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16904 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16906 which seems to be undefined. Please make sure it is defined" >&5
16907 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16908 which seems to be undefined. Please make sure it is defined" >&2;}
16910 rm -f "$ac_tmp/stdin"
16912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16921 if test x"$ac_file" != x-; then
16923 printf "%s\n" "/* $configure_input */" >&1 \
16924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16925 } >"$ac_tmp/config.h" \
16926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16929 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16932 mv "$ac_tmp/config.h" "$ac_file" \
16933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16936 printf "%s\n" "/* $configure_input */" >&1 \
16937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16938 || as_fn_error $? "could not create -" "$LINENO" 5
16942 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16943 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16948 case $ac_file$ac_mode in
16949 "po-directories":C)
16950 for ac_file in $CONFIG_FILES; do
16951 # Support "outfile[:infile[:infile...]]"
16953 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16955 # PO directories have a Makefile.in generated from Makefile.in.in.
16956 case "$ac_file" in */Makefile.in)
16957 # Adjust a relative srcdir.
16958 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16959 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16960 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16961 # In autoconf-2.13 it is called $ac_given_srcdir.
16962 # In autoconf-2.50 it is called $srcdir.
16963 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16964 case "$ac_given_srcdir" in
16965 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16966 /*) top_srcdir="$ac_given_srcdir" ;;
16967 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16969 # Treat a directory as a PO directory if and only if it has a
16970 # POTFILES.in file. This allows packages to have multiple PO
16971 # directories under different names or in different locations.
16972 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16973 rm -f "$ac_dir/POTFILES"
16974 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16975 gt_tab=`printf '\t'`
16976 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"
16977 POMAKEFILEDEPS="POTFILES.in"
16978 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16979 # on $ac_dir but don't depend on user-specified configuration
16981 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16982 # The LINGUAS file contains the set of available languages.
16983 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16984 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16986 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16987 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16989 # The set of available languages was given in configure.in.
16990 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
16993 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16994 # Compute UPDATEPOFILES
16995 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16996 # Compute DUMMYPOFILES
16997 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16999 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17000 case "$ac_given_srcdir" in
17002 *) srcdirpre='$(srcdir)/' ;;
17008 for lang in $ALL_LINGUAS; do
17009 POFILES="$POFILES $srcdirpre$lang.po"
17010 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17011 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17012 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17014 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17015 # environment variable.
17017 if test -n "$ALL_LINGUAS"; then
17018 for presentlang in $ALL_LINGUAS; do
17020 if test "%UNSET%" != "$LINGUAS"; then
17021 desiredlanguages="$LINGUAS"
17023 desiredlanguages="$ALL_LINGUAS"
17025 for desiredlang in $desiredlanguages; do
17026 # Use the presentlang catalog if desiredlang is
17027 # a. equal to presentlang, or
17028 # b. a variant of presentlang (because in this case,
17029 # presentlang can be used as a fallback for messages
17030 # which are not translated in the desiredlang catalog).
17031 case "$desiredlang" in
17032 "$presentlang"*) useit=yes;;
17035 if test $useit = yes; then
17036 INST_LINGUAS="$INST_LINGUAS $presentlang"
17041 if test -n "$INST_LINGUAS"; then
17042 for lang in $INST_LINGUAS; do
17043 CATALOGS="$CATALOGS $lang.gmo"
17046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17047 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"
17048 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17049 if test -f "$f"; then
17051 *.orig | *.bak | *~) ;;
17052 *) cat "$f" >> "$ac_dir/Makefile" ;;
17067 ac_clean_files=$ac_clean_files_save
17069 test $ac_write_fail = 0 ||
17070 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17073 # configure is writing to config.log, and then calls config.status.
17074 # config.status does its own redirection, appending to config.log.
17075 # Unfortunately, on DOS this fails, as config.log is still kept open
17076 # by configure, so config.status won't be able to write to it; its
17077 # output is simply discarded. So we exec the FD to /dev/null,
17078 # effectively closing config.log, so it can be properly (re)opened and
17079 # appended to by config.status. When coming back to configure, we
17080 # need to make the FD available again.
17081 if test "$no_create" != yes; then
17083 ac_config_status_args=
17084 test "$silent" = yes &&
17085 ac_config_status_args="$ac_config_status_args --quiet"
17087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17090 # would make configure fail if this is the last instruction.
17091 $ac_cs_success || as_fn_exit 1
17093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17095 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17098 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi