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
867 program_transform_name
878 ac_subst_files='MCONFIG
884 PUBLIC_CONFIG_HEADER'
886 enable_option_checking
892 enable_maintainer_mode
893 enable_symlink_install
894 enable_relative_symlinks
895 enable_symlink_relative_symlinks
897 enable_verbose_makecmds
906 enable_developer_features
916 enable_e2initrd_helper
923 enable_bmap_stats_ops
938 with_systemd_unit_dir
941 ac_precious_vars='build_alias
962 # Initialize some variables set by options.
964 ac_init_version=false
965 ac_unrecognized_opts=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name=s,x,x,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 runstatedir='${localstatedir}/run'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE}'
1002 infodir='${datarootdir}/info'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1023 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 case $ac_dashdash$ac_option in
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval enable_$ac_useropt=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval enable_$ac_useropt=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1249 -runstatedir | --runstatedir | --runstatedi | --runstated \
1250 | --runstate | --runstat | --runsta | --runst | --runs \
1251 | --run | --ru | --r)
1252 ac_prev=runstatedir ;;
1253 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1254 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1255 | --run=* | --ru=* | --r=*)
1256 runstatedir=$ac_optarg ;;
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1277 -site=* | --site=* | --sit=*)
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error $? "invalid package name: \`$ac_useropt'"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid package name: \`$ac_useropt'"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1333 eval with_$ac_useropt=no ;;
1336 # Obsolete; use --with-x.
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information"
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error $? "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1386 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir runstatedir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1404 # Be sure to have absolute directory names.
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 elif test "x$build_alias" != "x$host_alias"; then
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431 test "$silent" = yes && exec 6>/dev/null
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 as_fn_error $? "working directory cannot be determined"
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439 as_fn_error $? "pwd does not report name of working directory"
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444 ac_srcdir_defaulted=yes
1445 # Try the directory containing this script, then the parent directory.
1446 ac_confdir=`$as_dirname -- "$as_myself" ||
1447 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448 X"$as_myself" : 'X\(//\)[^/]' \| \
1449 X"$as_myself" : 'X\(//\)$' \| \
1450 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451 printf "%s\n" X"$as_myself" |
1452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1474 ac_srcdir_defaulted=no
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1482 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502 # Report the --help message.
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1508 \`configure' configures this package to adapt to many kinds of systems.
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1515 Defaults for the options are specified in brackets.
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking ...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1539 For better control, use the options below.
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1549 --libdir=DIR object code libraries [EPREFIX/lib]
1550 --includedir=DIR C header files [PREFIX/include]
1551 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1554 --infodir=DIR info documentation [DATAROOTDIR/info]
1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1556 --mandir=DIR man documentation [DATAROOTDIR/man]
1557 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1558 --htmldir=DIR html documentation [DOCDIR]
1559 --dvidir=DIR dvi documentation [DOCDIR]
1560 --pdfdir=DIR pdf documentation [DOCDIR]
1561 --psdir=DIR ps documentation [DOCDIR]
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1572 if test -n "$ac_init_help"; then
1577 --disable-option-checking ignore unrecognized --enable/--with options
1578 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1579 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1580 --enable-maintainer-mode
1581 enable makefile rules useful for maintainers
1582 --enable-symlink-install
1583 use symlinks when installing instead of hard links
1584 --enable-relative-symlinks
1585 use relative symlinks when installing
1587 --enable-symlink-build use symlinks while building instead of hard links
1588 --enable-verbose-makecmds
1589 enable verbose make command output
1590 --enable-elf-shlibs select ELF shared libraries
1591 --enable-bsd-shlibs select BSD shared libraries
1592 --enable-profile build profiling libraries
1593 --enable-gcov build for coverage testing using gcov
1594 --enable-hardening build for coverage testing using gcov
1595 --enable-jbd-debug enable journal debugging
1596 --enable-blkid-debug enable blkid debugging
1597 --disable-testio-debug disable the use of the test I/O manager for
1599 --enable-developer-features
1600 enable features for use by ext4 developers
1601 --enable-libuuid build and use private uuid library
1602 --enable-libblkid build and use private blkid library
1603 --enable-subset enable subset-only build
1604 --disable-backtrace disable use backtrace
1605 --disable-debugfs disable support of debugfs program
1606 --disable-imager disable support of e2image program
1607 --disable-resizer disable support of e2resize program
1608 --disable-defrag disable support of e4defrag program
1609 --enable-fsck build fsck wrapper program
1610 --enable-e2initrd-helper
1611 build e2initrd-helper program
1612 --disable-tls disable use of thread local support
1613 --disable-uuidd disable building the uuid daemon
1614 --disable-mmp disable support mmp, Multi Mount Protection
1615 --disable-tdb disable tdb support
1616 --disable-bmap-stats disable collection of bitmap stats
1617 --enable-bmap-stats-ops enable collection of additional bitmap stats
1618 --disable-nls do not use Native Language Support
1619 --disable-rpath do not hardcode runtime library paths
1620 --disable-fuse2fs do not build fuse2fs
1621 --enable-lto enable link time optimization
1622 --enable-ubsan enable undefined behavior sanitizer
1623 --enable-addrsan enable address sanitizer
1624 --enable-threadsan enable thread sanitizer
1625 --enable-fuzzing enable fuzzing sanitizer
1626 --disable-largefile omit support for large files
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-diet-libc use diet libc
1632 --with-cc no longer supported, use CC= instead
1633 --with-ccopts no longer supported, use CFLAGS= instead
1634 --with-ldopts no longer supported, use LDFLAGS= instead
1635 --with-root-prefix=PREFIX
1636 override prefix variable for files to be placed in
1638 --without-pthread disable use of pthread support
1639 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1640 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1641 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1642 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1643 --without-libintl-prefix don't search for libintl in includedir and libdir
1644 --with-multiarch=ARCH specify the multiarch triplet
1645 --with-udev-rules-dir[=DIR]
1646 Install udev rules into DIR.
1647 --with-crond-dir[=DIR] Install system crontabs into DIR.
1648 --with-systemd-unit-dir[=DIR]
1649 Install systemd system units into DIR.
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1660 PKG_CONFIG path to pkg-config utility
1662 directories to add to pkg-config's search path
1664 path overriding pkg-config's built-in search path
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1668 udev_LIBS linker flags for udev, overriding pkg-config
1670 C compiler flags for systemd, overriding pkg-config
1672 linker flags for systemd, overriding pkg-config
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1677 Report bugs to the package provider.
1682 if test "$ac_init_help" = "recursive"; then
1683 # If there are subdirs, report their specific --help.
1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685 test -d "$ac_dir" ||
1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1694 # A ".." for each directory in $ac_dir_suffix.
1695 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696 case $ac_top_builddir_sub in
1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1707 .) # We are building in place.
1709 ac_top_srcdir=$ac_top_builddir_sub
1710 ac_abs_top_srcdir=$ac_pwd ;;
1711 [\\/]* | ?:[\\/]* ) # Absolute name.
1712 ac_srcdir=$srcdir$ac_dir_suffix;
1713 ac_top_srcdir=$srcdir
1714 ac_abs_top_srcdir=$srcdir ;;
1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717 ac_top_srcdir=$ac_top_build_prefix$srcdir
1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722 cd "$ac_dir" || { ac_status=$?; continue; }
1723 # Check for configure.gnu first; this name is used for a wrapper for
1724 # Metaconfig's "Configure" on case-insensitive file systems.
1725 if test -f "$ac_srcdir/configure.gnu"; then
1727 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1728 elif test -f "$ac_srcdir/configure"; then
1730 $SHELL "$ac_srcdir/configure" --help=recursive
1732 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734 cd "$ac_pwd" || { ac_status=$?; break; }
1738 test -n "$ac_init_help" && exit $ac_status
1739 if $ac_init_version; then
1742 generated by GNU Autoconf 2.71
1744 Copyright (C) 2021 Free Software Foundation, Inc.
1745 This configure script is free software; the Free Software Foundation
1746 gives unlimited permission to copy, distribute and modify it.
1751 ## ------------------------ ##
1752 ## Autoconf initialization. ##
1753 ## ------------------------ ##
1755 # ac_fn_c_try_compile LINENO
1756 # --------------------------
1757 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_compile ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 rm -f conftest.$ac_objext conftest.beam
1762 if { { ac_try="$ac_compile"
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769 (eval "$ac_compile") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && {
1778 test -z "$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 } && test -s conftest.$ac_objext
1784 printf "%s\n" "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_compile
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 printf %s "checking for $2... " >&6; }
1803 if eval test \${$3+y}
1805 printf %s "(cached) " >&6
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 printf "%s\n" "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 test -x conftest$ac_exeext
1859 printf "%s\n" "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_link
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 printf "%s\n" "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } > conftest.i && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1902 printf "%s\n" "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1915 # executables *can* be run.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 printf "%s\n" "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 printf "%s\n" "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }
1943 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1944 printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=$ac_status
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1965 printf %s "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below. */
1979 /* Override any GCC internal prototype to avoid an error.
1980 Use char because int might match the return type of a GCC
1981 builtin and then its argument prototype would still apply. */
1986 /* The GNU C library defines this for functions which it implements
1987 to always fail with ENOSYS. Some functions are actually named
1988 something starting with __ and the normal name is an alias. */
1989 #if defined __stub_$2 || defined __stub___$2
2001 if ac_fn_c_try_link "$LINENO"
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2008 conftest$ac_exeext conftest.$ac_ext
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 printf "%s\n" "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_func
2017 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2018 # ----------------------------------------------------
2019 # Tries to find if the field MEMBER exists in type AGGR, after including
2020 # INCLUDES, setting cache variable VAR accordingly.
2021 ac_fn_c_check_member ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2025 printf %s "checking for $2.$3... " >&6; }
2026 if eval test \${$4+y}
2028 printf %s "(cached) " >&6
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2054 if (sizeof ac_aggr.$3)
2060 if ac_fn_c_try_compile "$LINENO"
2066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 printf "%s\n" "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_member
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 printf %s "checking for $2... " >&6; }
2086 if eval test \${$3+y}
2088 printf %s "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2117 if ac_fn_c_try_compile "$LINENO"
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_type
2134 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2135 # ------------------------------------------------------------------
2136 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 as_decl_name=`echo $2|sed 's/ *(.*//'`
2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 printf %s "checking whether $as_decl_name is declared... " >&6; }
2144 if eval test \${$3+y}
2146 printf %s "(cached) " >&6
2148 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2149 eval ac_save_FLAGS=\$$6
2150 as_fn_append $6 " $5"
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 #ifndef $as_decl_name
2159 (void) $as_decl_use;
2161 (void) $as_decl_name;
2169 if ac_fn_c_try_compile "$LINENO"
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 eval $6=\$ac_save_FLAGS
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 printf "%s\n" "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_check_decl
2186 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2187 # --------------------------------------------
2188 # Tries to find the compile-time value of EXPR in a program that includes
2189 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2191 ac_fn_c_compute_int ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 if test "$cross_compiling" = yes; then
2195 # Depending upon the size, compute the lo and hi bounds.
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) >= 0)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"
2230 ac_hi=$ac_mid; break
2232 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2233 if test $ac_lo -le $ac_mid; then
2237 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2248 static int test_array [1 - 2 * !(($2) < 0)];
2250 return test_array [0];
2256 if ac_fn_c_try_compile "$LINENO"
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile "$LINENO"
2276 ac_lo=$ac_mid; break
2278 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2279 if test $ac_mid -le $ac_hi; then
2283 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 # Binary search between lo and hi bounds.
2294 while test "x$ac_lo" != "x$ac_hi"; do
2295 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2302 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2304 return test_array [0];
2310 if ac_fn_c_try_compile "$LINENO"
2314 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2326 static long int longval (void) { return $2; }
2327 static unsigned long int ulongval (void) { return $2; }
2334 FILE *f = fopen ("conftest.val", "w");
2339 long int i = longval ();
2342 fprintf (f, "%ld", i);
2346 unsigned long int i = ulongval ();
2349 fprintf (f, "%lu", i);
2351 /* Do not output a trailing newline, as this causes \r\n confusion
2352 on some platforms. */
2353 return ferror (f) || fclose (f) != 0;
2359 if ac_fn_c_try_run "$LINENO"
2361 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2366 conftest.$ac_objext conftest.beam conftest.$ac_ext
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 as_fn_set_status $ac_retval
2373 } # ac_fn_c_compute_int
2375 # ac_fn_cxx_try_compile LINENO
2376 # ----------------------------
2377 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_cxx_try_compile ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest.beam
2382 if { { ac_try="$ac_compile"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 printf "%s\n" "$ac_try_echo"; } >&5
2389 (eval "$ac_compile") 2>conftest.err
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_cxx_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest.$ac_objext
2404 printf "%s\n" "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_cxx_try_compile
2413 ac_configure_args_raw=
2418 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 as_fn_append ac_configure_args_raw " '$ac_arg'"
2423 case $ac_configure_args_raw in
2427 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2428 ac_unsafe_a="$ac_unsafe_z#~"
2429 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2430 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2437 It was created by $as_me, which was
2438 generated by GNU Autoconf 2.71. Invocation command line was
2440 $ $0$ac_configure_args_raw
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 case $as_dir in #(((
2476 *) as_dir=$as_dir/ ;;
2478 printf "%s\n" "PATH: $as_dir"
2494 # Keep a trace of the command line.
2495 # Strip out --no-create and --no-recursion so they do not pile up.
2496 # Strip out --silent because we don't want to record it for future runs.
2497 # Also quote any args containing shell meta-characters.
2498 # Make two passes to allow for proper duplicate-argument suppression.
2502 ac_must_keep_next=false
2508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2510 | -silent | --silent | --silen | --sile | --sil)
2513 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2518 as_fn_append ac_configure_args1 " '$ac_arg'"
2519 if test $ac_must_keep_next = true; then
2520 ac_must_keep_next=false # Got value, back to normal.
2523 *=* | --config-cache | -C | -disable-* | --disable-* \
2524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2526 | -with-* | --with-* | -without-* | --without-* | --x)
2527 case "$ac_configure_args0 " in
2528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2531 -* ) ac_must_keep_next=true ;;
2534 as_fn_append ac_configure_args " '$ac_arg'"
2539 { ac_configure_args0=; unset ac_configure_args0;}
2540 { ac_configure_args1=; unset ac_configure_args1;}
2542 # When interrupted or exit'd, cleanup temporary files, and complete
2543 # config.log. We remove comments because anyway the quotes in there
2544 # would cause problems or look ugly.
2545 # WARNING: Use '\'' to represent an apostrophe within the trap.
2546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2547 trap 'exit_status=$?
2550 # Save into config.log some information that might help in debugging.
2554 printf "%s\n" "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2558 # The following way of writing the cache mishandles newlines in values,
2560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2561 eval ac_val=\$$ac_var
2565 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569 _ | IFS | as_nl) ;; #(
2570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571 *) { eval $ac_var=; unset $ac_var;} ;;
2576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2577 *${as_nl}ac_space=\ *)
2579 "s/'\''/'\''\\\\'\'''\''/g;
2580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590 printf "%s\n" "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2594 for ac_var in $ac_subst_vars
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 printf "%s\n" "$ac_var='\''$ac_val'\''"
2604 if test -n "$ac_subst_files"; then
2605 printf "%s\n" "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2609 for ac_var in $ac_subst_files
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 printf "%s\n" "$ac_var='\''$ac_val'\''"
2620 if test -s confdefs.h; then
2621 printf "%s\n" "## ----------- ##
2628 test "$ac_signal" != 0 &&
2629 printf "%s\n" "$as_me: caught signal $ac_signal"
2630 printf "%s\n" "$as_me: exit $exit_status"
2632 rm -f core *.core core.conftest.* &&
2633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636 for ac_signal in 1 2 13 15; do
2637 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2644 printf "%s\n" "/* confdefs.h */" > confdefs.h
2646 # Predefined preprocessor variables.
2648 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2650 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2652 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2654 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2656 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2658 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2661 # Let the site file select an alternate cache file if it wants to.
2662 # Prefer an explicitly selected file to automatically selected ones.
2663 if test -n "$CONFIG_SITE"; then
2664 ac_site_files="$CONFIG_SITE"
2665 elif test "x$prefix" != xNONE; then
2666 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2668 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2671 for ac_site_file in $ac_site_files
2673 case $ac_site_file in #(
2677 ac_site_file=./$ac_site_file ;;
2679 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
2684 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site script $ac_site_file
2687 See \`config.log' for more details" "$LINENO" 5; }
2691 if test -r "$cache_file"; then
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2708 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2709 # Test code for whether the C compiler supports C89 (global declarations)
2710 ac_c_conftest_c89_globals='
2711 /* Does the compiler advertise C89 conformance?
2712 Do not test the value of __STDC__, because some compilers set it to 0
2713 while being otherwise adequately conformant. */
2714 #if !defined __STDC__
2715 # error "Compiler does not advertise C89 conformance"
2721 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2722 struct buf { int x; };
2723 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2724 static char *e (p, i)
2730 static char *f (char * (*g) (char **, int), char **p, ...)
2735 s = g (p, va_arg (v,int));
2740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2741 function prototypes and stuff, but not \xHH hex character constants.
2742 These do not provoke an error unfortunately, instead are silently treated
2743 as an "x". The following induces an error, until -std is added to get
2744 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2745 array size at least. It is necessary to write \x00 == 0 to get something
2746 that is true only with -std. */
2747 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2750 inside strings and character constants. */
2751 #define FOO(x) '\''x'\''
2752 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2760 # Test code for whether the C compiler supports C89 (body of main).
2761 ac_c_conftest_c89_main='
2762 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2765 # Test code for whether the C compiler supports C99 (global declarations)
2766 ac_c_conftest_c99_globals='
2767 // Does the compiler advertise C99 conformance?
2768 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2769 # error "Compiler does not advertise C99 conformance"
2772 #include <stdbool.h>
2773 extern int puts (const char *);
2774 extern int printf (const char *, ...);
2775 extern int dprintf (int, const char *, ...);
2776 extern void *malloc (size_t);
2778 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2779 // dprintf is used instead of fprintf to avoid needing to declare
2781 #define debug(...) dprintf (2, __VA_ARGS__)
2782 #define showlist(...) puts (#__VA_ARGS__)
2783 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2785 test_varargs_macros (void)
2790 debug ("X = %d\n", x);
2791 showlist (The first, second, and third items.);
2792 report (x>y, "x is %d but y is %d", x, y);
2795 // Check long long types.
2796 #define BIG64 18446744073709551615ull
2797 #define BIG32 4294967295ul
2798 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2800 #error "your preprocessor is broken"
2804 #error "your preprocessor is broken"
2806 static long long int bignum = -9223372036854775807LL;
2807 static unsigned long long int ubignum = BIG64;
2809 struct incomplete_array
2817 const wchar_t *name;
2821 typedef const char *ccp;
2824 test_restrict (ccp restrict text)
2826 // See if C++-style comments work.
2827 // Iterate through items via the restricted pointer.
2828 // Also check for declarations in for loops.
2829 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2834 // Check varargs and va_copy.
2836 test_varargs (const char *format, ...)
2839 va_start (args, format);
2841 va_copy (args_copy, args);
2843 const char *str = "";
2851 case '\''s'\'': // string
2852 str = va_arg (args_copy, const char *);
2854 case '\''d'\'': // int
2855 number = va_arg (args_copy, int);
2857 case '\''f'\'': // float
2858 fnumber = va_arg (args_copy, double);
2867 return *str && number && fnumber;
2871 # Test code for whether the C compiler supports C99 (body of main).
2872 ac_c_conftest_c99_main='
2874 _Bool success = false;
2875 success |= (argc != 0);
2878 if (test_restrict ("String literal") == 0)
2880 char *restrict newvar = "Another string";
2883 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2884 test_varargs_macros ();
2886 // Check flexible array members.
2887 struct incomplete_array *ia =
2888 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2890 for (int i = 0; i < ia->datasize; ++i)
2891 ia->data[i] = i * 1.234;
2893 // Check named initializers.
2894 struct named_init ni = {
2896 .name = L"Test wide string",
2897 .average = 543.34343,
2902 int dynamic_array[ni.number];
2903 dynamic_array[0] = argv[0][0];
2904 dynamic_array[ni.number - 1] = 543;
2906 // work around unused variable warnings
2907 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2908 || dynamic_array[ni.number - 1] != 543);
2911 # Test code for whether the C compiler supports C11 (global declarations)
2912 ac_c_conftest_c11_globals='
2913 // Does the compiler advertise C11 conformance?
2914 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2915 # error "Compiler does not advertise C11 conformance"
2919 char _Alignas (double) aligned_as_double;
2920 char _Alignas (0) no_special_alignment;
2921 extern char aligned_as_int;
2922 char _Alignas (0) _Alignas (int) aligned_as_int;
2927 int_alignment = _Alignof (int),
2928 int_array_alignment = _Alignof (int[100]),
2929 char_alignment = _Alignof (char)
2931 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2934 int _Noreturn does_not_return (void) { for (;;) continue; }
2936 // Check _Static_assert.
2937 struct test_static_assert
2940 _Static_assert (sizeof (int) <= sizeof (long int),
2941 "_Static_assert does not work in struct");
2945 // Check UTF-8 literals.
2946 #define u8 syntax error!
2947 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2949 // Check duplicate typedefs.
2950 typedef long *long_ptr;
2951 typedef long int *long_ptr;
2952 typedef long_ptr long_ptr;
2954 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2958 struct { int i; int j; };
2959 struct { int k; long int l; } w;
2965 # Test code for whether the C compiler supports C11 (body of main).
2966 ac_c_conftest_c11_main='
2967 _Static_assert ((offsetof (struct anonymous, i)
2968 == offsetof (struct anonymous, w.k)),
2969 "Anonymous union alignment botch");
2975 # Test code for whether the C compiler supports C11 (complete).
2976 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2977 ${ac_c_conftest_c99_globals}
2978 ${ac_c_conftest_c11_globals}
2981 main (int argc, char **argv)
2984 ${ac_c_conftest_c89_main}
2985 ${ac_c_conftest_c99_main}
2986 ${ac_c_conftest_c11_main}
2991 # Test code for whether the C compiler supports C99 (complete).
2992 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2993 ${ac_c_conftest_c99_globals}
2996 main (int argc, char **argv)
2999 ${ac_c_conftest_c89_main}
3000 ${ac_c_conftest_c99_main}
3005 # Test code for whether the C compiler supports C89 (complete).
3006 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3009 main (int argc, char **argv)
3012 ${ac_c_conftest_c89_main}
3017 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3018 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3019 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3020 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3021 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3022 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3023 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3024 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3025 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3026 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3027 gt_needs="$gt_needs "
3028 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3029 # Test code for whether the C++ compiler supports C++98 (global declarations)
3030 ac_cxx_conftest_cxx98_globals='
3031 // Does the compiler advertise C++98 conformance?
3032 #if !defined __cplusplus || __cplusplus < 199711L
3033 # error "Compiler does not advertise C++98 conformance"
3036 // These inclusions are to reject old compilers that
3037 // lack the unsuffixed header files.
3039 #include <exception>
3041 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3042 extern void assert (int);
3044 extern int strcmp (const char *, const char *);
3047 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3048 using std::exception;
3053 void test_exception_syntax()
3057 } catch (const char *s) {
3058 // Extra parentheses suppress a warning when building autoconf itself,
3059 // due to lint rules shared with more typical C programs.
3060 assert (!(strcmp) (s, "test"));
3064 template <typename T> struct test_template
3067 explicit test_template(T t) : val(t) {}
3068 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3071 } // anonymous namespace
3074 # Test code for whether the C++ compiler supports C++98 (body of main)
3075 ac_cxx_conftest_cxx98_main='
3079 test_exception_syntax ();
3080 test_template<double> tt (2.0);
3081 assert (tt.add (4) == 6.0);
3082 assert (true && !false);
3086 # Test code for whether the C++ compiler supports C++11 (global declarations)
3087 ac_cxx_conftest_cxx11_globals='
3088 // Does the compiler advertise C++ 2011 conformance?
3089 #if !defined __cplusplus || __cplusplus < 201103L
3090 # error "Compiler does not advertise C++11 conformance"
3095 constexpr int get_val() { return 20; }
3106 delegate(int n) : n(n) {}
3107 delegate(): delegate(2354) {}
3109 virtual int getval() { return this->n; };
3114 class overridden : public delegate
3117 overridden(int n): delegate(n) {}
3118 virtual int getval() override final { return this->n * 2; }
3124 nocopy(int i): i(i) {}
3126 nocopy(const nocopy&) = delete;
3127 nocopy & operator=(const nocopy&) = delete;
3132 // for testing lambda expressions
3133 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3138 // for testing variadic templates and trailing return types
3139 template <typename V> auto sum(V first) -> V
3143 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3145 return first + sum(rest...);
3150 # Test code for whether the C++ compiler supports C++11 (body of main)
3151 ac_cxx_conftest_cxx11_main='
3153 // Test auto and decltype
3155 auto a2 = 48573953.4;
3156 auto a3 = "String literal";
3159 for (auto i = a3; *i; ++i) { total += *i; }
3161 decltype(a2) a4 = 34895.034;
3165 short sa[cxx11test::get_val()] = { 0 };
3168 // Test initializer lists
3169 cxx11test::testinit il = { 4323, 435234.23544 };
3172 // Test range-based for
3173 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3174 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3175 for (auto &x : array) { x += 23; }
3178 // Test lambda expressions
3179 using cxx11test::eval;
3180 assert (eval ([](int x) { return x*2; }, 21) == 42);
3182 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3184 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3188 // Test use of variadic templates
3189 using cxx11test::sum;
3192 auto c = sum(1.0, 2.0, 3.0);
3195 // Test constructor delegation
3196 cxx11test::delegate d1;
3197 cxx11test::delegate d2();
3198 cxx11test::delegate d3(45);
3201 // Test override and final
3202 cxx11test::overridden o1(55464);
3209 // Test template brackets
3210 test_template<::test_template<int>> v(test_template<int>(12));
3214 char const *utf8 = u8"UTF-8 string \u2500";
3215 char16_t const *utf16 = u"UTF-8 string \u2500";
3216 char32_t const *utf32 = U"UTF-32 string \u2500";
3220 # Test code for whether the C compiler supports C++11 (complete).
3221 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3222 ${ac_cxx_conftest_cxx11_globals}
3225 main (int argc, char **argv)
3228 ${ac_cxx_conftest_cxx98_main}
3229 ${ac_cxx_conftest_cxx11_main}
3234 # Test code for whether the C compiler supports C++98 (complete).
3235 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3237 main (int argc, char **argv)
3240 ${ac_cxx_conftest_cxx98_main}
3246 # Auxiliary files required by this configure script.
3247 ac_aux_files="config.rpath install-sh config.guess config.sub"
3249 # Locations in which to look for auxiliary files.
3250 ac_aux_dir_candidates="${srcdir}/config"
3252 # Search for a directory containing all of the required auxiliary files,
3253 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3254 # If we don't find one directory that contains all the files we need,
3255 # we report the set of missing files from the *first* directory in
3256 # $ac_aux_dir_candidates and give up.
3257 ac_missing_aux_files=""
3258 ac_first_candidate=:
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $ac_aux_dir_candidates
3265 case $as_dir in #(((
3268 *) as_dir=$as_dir/ ;;
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3273 ac_aux_dir_found=yes
3275 for ac_aux in $ac_aux_files
3277 # As a special case, if "install-sh" is required, that requirement
3278 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3279 # and $ac_install_sh is set appropriately for whichever one is found.
3280 if test x"$ac_aux" = x"install-sh"
3282 if test -f "${as_dir}install-sh"; then
3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3284 ac_install_sh="${as_dir}install-sh -c"
3285 elif test -f "${as_dir}install.sh"; then
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3287 ac_install_sh="${as_dir}install.sh -c"
3288 elif test -f "${as_dir}shtool"; then
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3290 ac_install_sh="${as_dir}shtool install -c"
3293 if $ac_first_candidate; then
3294 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3300 if test -f "${as_dir}${ac_aux}"; then
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3304 if $ac_first_candidate; then
3305 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3312 if test "$ac_aux_dir_found" = yes; then
3313 ac_aux_dir="$as_dir"
3316 ac_first_candidate=false
3325 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3329 # These three variables are undocumented and unsupported,
3330 # and are intended to be withdrawn in a future Autoconf release.
3331 # They can cause serious problems if a builder's source tree is in a directory
3332 # whose full name contains unusual characters.
3333 if test -f "${ac_aux_dir}config.guess"; then
3334 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3336 if test -f "${ac_aux_dir}config.sub"; then
3337 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3339 if test -f "$ac_aux_dir/configure"; then
3340 ac_configure="$SHELL ${ac_aux_dir}configure"
3343 # Check that the precious variables saved in the cache have kept the same
3345 ac_cache_corrupted=false
3346 for ac_var in $ac_precious_vars; do
3347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3348 eval ac_new_set=\$ac_env_${ac_var}_set
3349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3350 eval ac_new_val=\$ac_env_${ac_var}_value
3351 case $ac_old_set,$ac_new_set in
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3354 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3355 ac_cache_corrupted=: ;;
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3358 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3362 if test "x$ac_old_val" != "x$ac_new_val"; then
3363 # differences in whitespace do not lead to failure.
3364 ac_old_val_w=`echo x $ac_old_val`
3365 ac_new_val_w=`echo x $ac_new_val`
3366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3368 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3369 ac_cache_corrupted=:
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3372 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3373 eval $ac_var=\$ac_old_val
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3376 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3378 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3381 # Pass precious variables to config.status.
3382 if test "$ac_new_set" = set; then
3384 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3385 *) ac_arg=$ac_var=$ac_new_val ;;
3387 case " $ac_configure_args " in
3388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3393 if $ac_cache_corrupted; then
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3397 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3398 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3399 and start over" "$LINENO" 5
3401 ## -------------------- ##
3402 ## Main body of script. ##
3403 ## -------------------- ##
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 ac_config_headers="$ac_config_headers lib/config.h"
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_CC+y}
3439 printf %s "(cached) " >&6
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 case $as_dir in #(((
3451 *) as_dir=$as_dir/ ;;
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 printf "%s\n" "$CC" >&6; }
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3476 if test -z "$ac_cv_prog_CC"; then
3478 # Extract the first word of "gcc", so it can be a program name with args.
3479 set dummy gcc; ac_word=$2
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 printf %s "checking for $ac_word... " >&6; }
3482 if test ${ac_cv_prog_ac_ct_CC+y}
3484 printf %s "(cached) " >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 case $as_dir in #(((
3496 *) as_dir=$as_dir/ ;;
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_ac_ct_CC="gcc"
3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3513 printf "%s\n" "$ac_ct_CC" >&6; }
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 printf "%s\n" "no" >&6; }
3519 if test "x$ac_ct_CC" = x; then
3522 case $cross_compiling:$ac_tool_warned in
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3534 if test -z "$CC"; then
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}cc; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_CC+y}
3542 printf %s "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 case $as_dir in #(((
3554 *) as_dir=$as_dir/ ;;
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC="${ac_tool_prefix}cc"
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3569 if test -n "$CC"; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 printf "%s\n" "$CC" >&6; }
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3580 if test -z "$CC"; then
3581 # Extract the first word of "cc", so it can be a program name with args.
3582 set dummy cc; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_CC+y}
3587 printf %s "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 case $as_dir in #(((
3600 *) as_dir=$as_dir/ ;;
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3605 ac_prog_rejected=yes
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3616 if test $ac_prog_rejected = yes; then
3617 # We found a bogon in the path, so make sure we never use it.
3618 set dummy $ac_cv_prog_CC
3620 if test $# != 0; then
3621 # We chose a different compiler from the bogus one.
3622 # However, it has the same basename, so the bogon will be chosen
3623 # first if we set CC to just the basename; use the full file name.
3625 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3631 if test -n "$CC"; then
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 printf "%s\n" "$CC" >&6; }
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 printf "%s\n" "no" >&6; }
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 for ac_prog in cl.exe
3645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3651 printf %s "(cached) " >&6
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 case $as_dir in #(((
3663 *) as_dir=$as_dir/ ;;
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_ac_ct_CC+y}
3700 printf %s "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 case $as_dir in #(((
3712 *) as_dir=$as_dir/ ;;
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_ac_ct_CC="$ac_prog"
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 printf "%s\n" "$ac_ct_CC" >&6; }
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 printf "%s\n" "no" >&6; }
3736 test -n "$ac_ct_CC" && break
3739 if test "x$ac_ct_CC" = x; then
3742 case $cross_compiling:$ac_tool_warned in
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3753 if test -z "$CC"; then
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}clang; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CC+y}
3761 printf %s "(cached) " >&6
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 case $as_dir in #(((
3773 *) as_dir=$as_dir/ ;;
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CC="${ac_tool_prefix}clang"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3788 if test -n "$CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3798 if test -z "$ac_cv_prog_CC"; then
3800 # Extract the first word of "clang", so it can be a program name with args.
3801 set dummy clang; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_ac_ct_CC+y}
3806 printf %s "(cached) " >&6
3808 if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 case $as_dir in #(((
3818 *) as_dir=$as_dir/ ;;
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CC="clang"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3833 if test -n "$ac_ct_CC"; then
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3835 printf "%s\n" "$ac_ct_CC" >&6; }
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3841 if test "x$ac_ct_CC" = x; then
3844 case $cross_compiling:$ac_tool_warned in
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3848 ac_tool_warned=yes ;;
3859 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "no acceptable C compiler found in \$PATH
3862 See \`config.log' for more details" "$LINENO" 5; }
3864 # Provide some information about the compiler.
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3868 for ac_option in --version -v -V -qversion -version; do
3869 { { ac_try="$ac_compiler $ac_option >&5"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3878 if test -s conftest.err; then
3880 ... rest of stderr output deleted ...
3881 10q' conftest.err >conftest.er1
3882 cat conftest.er1 >&5
3884 rm -f conftest.er1 conftest.err
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 ac_clean_files_save=$ac_clean_files
3901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3902 # Try to create an executable without -o first, disregard a.out.
3903 # It will help us diagnose broken compilers, and finding out an intuition
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 printf %s "checking whether the C compiler works... " >&6; }
3907 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3909 # The possible output files:
3910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3913 for ac_file in $ac_files
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3922 if { { ac_try="$ac_link_default"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 printf "%s\n" "$ac_try_echo"; } >&5
3929 (eval "$ac_link_default") 2>&5
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3936 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3937 # so that the user can short-circuit this test for compilers unknown to
3939 for ac_file in $ac_files ''
3941 test -f "$ac_file" || continue
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3946 # We found the default executable, but exeext='' is most
3950 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954 # We set ac_cv_exeext here because the later test for it is not
3955 # safe: cross compilers may not add the suffix if given an `-o'
3956 # argument, so we may need to know it at that point already.
3957 # Even if this section looks crufty: it has the advantage of
3964 test "$ac_cv_exeext" = no && ac_cv_exeext=
3969 if test -z "$ac_file"
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3973 printf "%s\n" "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error 77 "C compiler cannot create executables
3979 See \`config.log' for more details" "$LINENO" 5; }
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 printf "%s\n" "yes" >&6; }
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3985 printf %s "checking for C compiler default output file name... " >&6; }
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 printf "%s\n" "$ac_file" >&6; }
3988 ac_exeext=$ac_cv_exeext
3990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3991 ac_clean_files=$ac_clean_files_save
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 printf %s "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 printf "%s\n" "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4010 for ac_file in conftest.exe conftest conftest.*; do
4011 test -f "$ac_file" || continue
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest conftest$ac_cv_exeext
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 printf "%s\n" "$ac_cv_exeext" >&6; }
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4038 FILE *f = fopen ("conftest.out", "w");
4039 return ferror (f) || fclose (f) != 0;
4045 ac_clean_files="$ac_clean_files conftest.out"
4046 # Check that the compiler produces executables we can run. If not, either
4047 # the compiler is broken, or we cross compile.
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4049 printf %s "checking whether we are cross compiling... " >&6; }
4050 if test "$cross_compiling" != yes; then
4051 { { ac_try="$ac_link"
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 printf "%s\n" "$ac_try_echo"; } >&5
4058 (eval "$ac_link") 2>&5
4060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4062 if { ac_try='./conftest$ac_cv_exeext'
4063 { { case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 printf "%s\n" "$ac_try_echo"; } >&5
4069 (eval "$ac_try") 2>&5
4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; }; then
4075 if test "$cross_compiling" = maybe; then
4078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error 77 "cannot run C compiled programs.
4081 If you meant to cross compile, use \`--host'.
4082 See \`config.log' for more details" "$LINENO" 5; }
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4087 printf "%s\n" "$cross_compiling" >&6; }
4089 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4090 ac_clean_files=$ac_clean_files_save
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4092 printf %s "checking for suffix of object files... " >&6; }
4093 if test ${ac_cv_objext+y}
4095 printf %s "(cached) " >&6
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 rm -f conftest.o conftest.obj
4109 if { { ac_try="$ac_compile"
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 printf "%s\n" "$ac_try_echo"; } >&5
4116 (eval "$ac_compile") 2>&5
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }
4121 for ac_file in conftest.o conftest.obj conftest.*; do
4122 test -f "$ac_file" || continue;
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4130 printf "%s\n" "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error $? "cannot compute suffix of object files: cannot compile
4136 See \`config.log' for more details" "$LINENO" 5; }
4138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4141 printf "%s\n" "$ac_cv_objext" >&6; }
4142 OBJEXT=$ac_cv_objext
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4145 printf %s "checking whether the compiler supports GNU C... " >&6; }
4146 if test ${ac_cv_c_compiler_gnu+y}
4148 printf %s "(cached) " >&6
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4164 if ac_fn_c_try_compile "$LINENO"
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 if test $ac_compiler_gnu = yes; then
4183 ac_test_CFLAGS=${CFLAGS+y}
4184 ac_save_CFLAGS=$CFLAGS
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4186 printf %s "checking whether $CC accepts -g... " >&6; }
4187 if test ${ac_cv_prog_cc_g+y}
4189 printf %s "(cached) " >&6
4191 ac_save_c_werror_flag=$ac_c_werror_flag
4192 ac_c_werror_flag=yes
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_c_try_compile "$LINENO"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4222 if ac_fn_c_try_compile "$LINENO"
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4239 if ac_fn_c_try_compile "$LINENO"
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4252 if test $ac_test_CFLAGS; then
4253 CFLAGS=$ac_save_CFLAGS
4254 elif test $ac_cv_prog_cc_g = yes; then
4255 if test "$GCC" = yes; then
4261 if test "$GCC" = yes; then
4268 if test x$ac_prog_cc_stdc = xno
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4271 printf %s "checking for $CC option to enable C11 features... " >&6; }
4272 if test ${ac_cv_prog_cc_c11+y}
4274 printf %s "(cached) " >&6
4276 ac_cv_prog_cc_c11=no
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 $ac_c_conftest_c11_program
4282 for ac_arg in '' -std=gnu11
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"
4287 ac_cv_prog_cc_c11=$ac_arg
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam
4290 test "x$ac_cv_prog_cc_c11" != "xno" && break
4292 rm -f conftest.$ac_ext
4296 if test "x$ac_cv_prog_cc_c11" = xno
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4299 printf "%s\n" "unsupported" >&6; }
4301 if test "x$ac_cv_prog_cc_c11" = x
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 printf "%s\n" "none needed" >&6; }
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4307 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4308 CC="$CC $ac_cv_prog_cc_c11"
4310 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4314 if test x$ac_prog_cc_stdc = xno
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4317 printf %s "checking for $CC option to enable C99 features... " >&6; }
4318 if test ${ac_cv_prog_cc_c99+y}
4320 printf %s "(cached) " >&6
4322 ac_cv_prog_cc_c99=no
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 $ac_c_conftest_c99_program
4328 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4330 CC="$ac_save_CC $ac_arg"
4331 if ac_fn_c_try_compile "$LINENO"
4333 ac_cv_prog_cc_c99=$ac_arg
4335 rm -f core conftest.err conftest.$ac_objext conftest.beam
4336 test "x$ac_cv_prog_cc_c99" != "xno" && break
4338 rm -f conftest.$ac_ext
4342 if test "x$ac_cv_prog_cc_c99" = xno
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4345 printf "%s\n" "unsupported" >&6; }
4347 if test "x$ac_cv_prog_cc_c99" = x
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4350 printf "%s\n" "none needed" >&6; }
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4353 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4354 CC="$CC $ac_cv_prog_cc_c99"
4356 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4360 if test x$ac_prog_cc_stdc = xno
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4363 printf %s "checking for $CC option to enable C89 features... " >&6; }
4364 if test ${ac_cv_prog_cc_c89+y}
4366 printf %s "(cached) " >&6
4368 ac_cv_prog_cc_c89=no
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 $ac_c_conftest_c89_program
4374 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4376 CC="$ac_save_CC $ac_arg"
4377 if ac_fn_c_try_compile "$LINENO"
4379 ac_cv_prog_cc_c89=$ac_arg
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam
4382 test "x$ac_cv_prog_cc_c89" != "xno" && break
4384 rm -f conftest.$ac_ext
4388 if test "x$ac_cv_prog_cc_c89" = xno
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4391 printf "%s\n" "unsupported" >&6; }
4393 if test "x$ac_cv_prog_cc_c89" = x
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 printf "%s\n" "none needed" >&6; }
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4399 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4400 CC="$CC $ac_cv_prog_cc_c89"
4402 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 ac_header= ac_cache=
4415 for ac_item in $ac_header_c_list
4417 if test $ac_cache; then
4418 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4419 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4420 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4422 ac_header= ac_cache=
4423 elif test $ac_header; then
4437 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4440 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4450 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4451 if test ${ac_cv_safe_to_define___extensions__+y}
4453 printf %s "(cached) " >&6
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4458 # define __EXTENSIONS__ 1
4459 $ac_includes_default
4468 if ac_fn_c_try_compile "$LINENO"
4470 ac_cv_safe_to_define___extensions__=yes
4472 ac_cv_safe_to_define___extensions__=no
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4480 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4481 if test ${ac_cv_should_define__xopen_source+y}
4483 printf %s "(cached) " >&6
4485 ac_cv_should_define__xopen_source=no
4486 if test $ac_cv_header_wchar_h = yes
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4501 if ac_fn_c_try_compile "$LINENO"
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4508 #define _XOPEN_SOURCE 500
4519 if ac_fn_c_try_compile "$LINENO"
4521 ac_cv_should_define__xopen_source=yes
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4529 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4531 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4533 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4535 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4537 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4539 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4541 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4543 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4545 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4547 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4549 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4551 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4553 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4555 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4557 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4559 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4561 if test $ac_cv_header_minix_config_h = yes
4564 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4566 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4568 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4573 if test $ac_cv_safe_to_define___extensions__ = yes
4575 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4578 if test $ac_cv_should_define__xopen_source = yes
4580 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4587 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4588 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4589 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4590 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4591 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4593 if expr $YEAR ">" 1900 > /dev/null ; then
4594 E2FSPROGS_YEAR=$YEAR
4595 elif expr $YEAR ">" 90 >/dev/null ; then
4596 E2FSPROGS_YEAR=19$YEAR
4598 E2FSPROGS_YEAR=20$YEAR
4602 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4603 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4604 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4605 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4606 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4607 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4608 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4609 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4610 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4611 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4612 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4613 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4614 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4615 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4618 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4619 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4621 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4623 case $E2FSPROGS_VERSION in
4625 E2FSPROGS_PKGVER="$base_ver"
4626 E2FSPROGS_PKGREL="WIP.$date_spec"
4629 E2FSPROGS_PKGVER="$base_ver"
4630 E2FSPROGS_PKGREL="$base_rel"
4634 unset DATE MONTH YEAR base_ver pre_vers date_spec
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4636 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4638 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4647 # Check whether --with-diet-libc was given.
4648 if test ${with_diet_libc+y}
4650 withval=$with_diet_libc; CC="diet cc -nostdinc"
4656 LIBS="$LIBS -lcompat"
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4659 printf "%s\n" "CC=$CC" >&6; }
4664 # Make sure we can run config.sub.
4665 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4666 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4669 printf %s "checking build system type... " >&6; }
4670 if test ${ac_cv_build+y}
4672 printf %s "(cached) " >&6
4674 ac_build_alias=$build_alias
4675 test "x$ac_build_alias" = x &&
4676 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4677 test "x$ac_build_alias" = x &&
4678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4679 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4680 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4684 printf "%s\n" "$ac_cv_build" >&6; }
4685 case $ac_cv_build in
4687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4690 ac_save_IFS=$IFS; IFS='-'
4696 # Remember, the first character of IFS is used to create $*,
4697 # except with old shells:
4700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4704 printf %s "checking host system type... " >&6; }
4705 if test ${ac_cv_host+y}
4707 printf %s "(cached) " >&6
4709 if test "x$host_alias" = x; then
4710 ac_cv_host=$ac_cv_build
4712 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4713 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 printf "%s\n" "$ac_cv_host" >&6; }
4721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4724 ac_save_IFS=$IFS; IFS='-'
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4739 printf %s "checking for dlopen in -ldl... " >&6; }
4740 if test ${ac_cv_lib_dl_dlopen+y}
4742 printf %s "(cached) " >&6
4744 ac_check_lib_save_LIBS=$LIBS
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4749 /* Override any GCC internal prototype to avoid an error.
4750 Use char because int might match the return type of a GCC
4751 builtin and then its argument prototype would still apply. */
4761 if ac_fn_c_try_link "$LINENO"
4763 ac_cv_lib_dl_dlopen=yes
4765 ac_cv_lib_dl_dlopen=no
4767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4768 conftest$ac_exeext conftest.$ac_ext
4769 LIBS=$ac_check_lib_save_LIBS
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4772 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4773 if test "x$ac_cv_lib_dl_dlopen" = xyes
4780 # Check whether --with-cc was given.
4781 if test ${with_cc+y}
4783 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4787 # Check whether --with-ccopts was given.
4788 if test ${with_ccopts+y}
4790 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4794 # Check whether --with-ldopts was given.
4795 if test ${with_ldopts+y}
4797 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 printf %s "checking for $ac_word... " >&6; }
4810 if test ${ac_cv_prog_CC+y}
4812 printf %s "(cached) " >&6
4814 if test -n "$CC"; then
4815 ac_cv_prog_CC="$CC" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 case $as_dir in #(((
4824 *) as_dir=$as_dir/ ;;
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4839 if test -n "$CC"; then
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 printf "%s\n" "$CC" >&6; }
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4849 if test -z "$ac_cv_prog_CC"; then
4851 # Extract the first word of "gcc", so it can be a program name with args.
4852 set dummy gcc; ac_word=$2
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 printf %s "checking for $ac_word... " >&6; }
4855 if test ${ac_cv_prog_ac_ct_CC+y}
4857 printf %s "(cached) " >&6
4859 if test -n "$ac_ct_CC"; then
4860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 case $as_dir in #(((
4869 *) as_dir=$as_dir/ ;;
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CC="gcc"
4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 printf "%s\n" "$ac_ct_CC" >&6; }
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 printf "%s\n" "no" >&6; }
4892 if test "x$ac_ct_CC" = x; then
4895 case $cross_compiling:$ac_tool_warned in
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4907 if test -z "$CC"; then
4908 if test -n "$ac_tool_prefix"; then
4909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4910 set dummy ${ac_tool_prefix}cc; ac_word=$2
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 printf %s "checking for $ac_word... " >&6; }
4913 if test ${ac_cv_prog_CC+y}
4915 printf %s "(cached) " >&6
4917 if test -n "$CC"; then
4918 ac_cv_prog_CC="$CC" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 case $as_dir in #(((
4927 *) as_dir=$as_dir/ ;;
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_CC="${ac_tool_prefix}cc"
4932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4942 if test -n "$CC"; then
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944 printf "%s\n" "$CC" >&6; }
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 printf "%s\n" "no" >&6; }
4953 if test -z "$CC"; then
4954 # Extract the first word of "cc", so it can be a program name with args.
4955 set dummy cc; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_CC+y}
4960 printf %s "(cached) " >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 case $as_dir in #(((
4973 *) as_dir=$as_dir/ ;;
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4977 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4978 ac_prog_rejected=yes
4982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4989 if test $ac_prog_rejected = yes; then
4990 # We found a bogon in the path, so make sure we never use it.
4991 set dummy $ac_cv_prog_CC
4993 if test $# != 0; then
4994 # We chose a different compiler from the bogus one.
4995 # However, it has the same basename, so the bogon will be chosen
4996 # first if we set CC to just the basename; use the full file name.
4998 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5004 if test -n "$CC"; then
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 printf "%s\n" "$CC" >&6; }
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 printf "%s\n" "no" >&6; }
5014 if test -z "$CC"; then
5015 if test -n "$ac_tool_prefix"; then
5016 for ac_prog in cl.exe
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 printf %s "checking for $ac_word... " >&6; }
5022 if test ${ac_cv_prog_CC+y}
5024 printf %s "(cached) " >&6
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 case $as_dir in #(((
5036 *) as_dir=$as_dir/ ;;
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5051 if test -n "$CC"; then
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5053 printf "%s\n" "$CC" >&6; }
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 printf "%s\n" "no" >&6; }
5060 test -n "$CC" && break
5063 if test -z "$CC"; then
5065 for ac_prog in cl.exe
5067 # Extract the first word of "$ac_prog", so it can be a program name with args.
5068 set dummy $ac_prog; ac_word=$2
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 printf %s "checking for $ac_word... " >&6; }
5071 if test ${ac_cv_prog_ac_ct_CC+y}
5073 printf %s "(cached) " >&6
5075 if test -n "$ac_ct_CC"; then
5076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 case $as_dir in #(((
5085 *) as_dir=$as_dir/ ;;
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_ac_ct_CC="$ac_prog"
5090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5102 printf "%s\n" "$ac_ct_CC" >&6; }
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 printf "%s\n" "no" >&6; }
5109 test -n "$ac_ct_CC" && break
5112 if test "x$ac_ct_CC" = x; then
5115 case $cross_compiling:$ac_tool_warned in
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5126 if test -z "$CC"; then
5127 if test -n "$ac_tool_prefix"; then
5128 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5129 set dummy ${ac_tool_prefix}clang; ac_word=$2
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 printf %s "checking for $ac_word... " >&6; }
5132 if test ${ac_cv_prog_CC+y}
5134 printf %s "(cached) " >&6
5136 if test -n "$CC"; then
5137 ac_cv_prog_CC="$CC" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 case $as_dir in #(((
5146 *) as_dir=$as_dir/ ;;
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_CC="${ac_tool_prefix}clang"
5151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5161 if test -n "$CC"; then
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163 printf "%s\n" "$CC" >&6; }
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 printf "%s\n" "no" >&6; }
5171 if test -z "$ac_cv_prog_CC"; then
5173 # Extract the first word of "clang", so it can be a program name with args.
5174 set dummy clang; ac_word=$2
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 printf %s "checking for $ac_word... " >&6; }
5177 if test ${ac_cv_prog_ac_ct_CC+y}
5179 printf %s "(cached) " >&6
5181 if test -n "$ac_ct_CC"; then
5182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 case $as_dir in #(((
5191 *) as_dir=$as_dir/ ;;
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_CC="clang"
5196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5206 if test -n "$ac_ct_CC"; then
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5208 printf "%s\n" "$ac_ct_CC" >&6; }
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 printf "%s\n" "no" >&6; }
5214 if test "x$ac_ct_CC" = x; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5232 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5234 as_fn_error $? "no acceptable C compiler found in \$PATH
5235 See \`config.log' for more details" "$LINENO" 5; }
5237 # Provide some information about the compiler.
5238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5241 for ac_option in --version -v -V -qversion -version; do
5242 { { ac_try="$ac_compiler $ac_option >&5"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5248 printf "%s\n" "$ac_try_echo"; } >&5
5249 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5251 if test -s conftest.err; then
5253 ... rest of stderr output deleted ...
5254 10q' conftest.err >conftest.er1
5255 cat conftest.er1 >&5
5257 rm -f conftest.er1 conftest.err
5258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5263 printf %s "checking whether the compiler supports GNU C... " >&6; }
5264 if test ${ac_cv_c_compiler_gnu+y}
5266 printf %s "(cached) " >&6
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5282 if ac_fn_c_try_compile "$LINENO"
5288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5293 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 if test $ac_compiler_gnu = yes; then
5301 ac_test_CFLAGS=${CFLAGS+y}
5302 ac_save_CFLAGS=$CFLAGS
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5304 printf %s "checking whether $CC accepts -g... " >&6; }
5305 if test ${ac_cv_prog_cc_g+y}
5307 printf %s "(cached) " >&6
5309 ac_save_c_werror_flag=$ac_c_werror_flag
5310 ac_c_werror_flag=yes
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5324 if ac_fn_c_try_compile "$LINENO"
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5340 if ac_fn_c_try_compile "$LINENO"
5344 ac_c_werror_flag=$ac_save_c_werror_flag
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5357 if ac_fn_c_try_compile "$LINENO"
5361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5366 ac_c_werror_flag=$ac_save_c_werror_flag
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5369 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5370 if test $ac_test_CFLAGS; then
5371 CFLAGS=$ac_save_CFLAGS
5372 elif test $ac_cv_prog_cc_g = yes; then
5373 if test "$GCC" = yes; then
5379 if test "$GCC" = yes; then
5386 if test x$ac_prog_cc_stdc = xno
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5389 printf %s "checking for $CC option to enable C11 features... " >&6; }
5390 if test ${ac_cv_prog_cc_c11+y}
5392 printf %s "(cached) " >&6
5394 ac_cv_prog_cc_c11=no
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 $ac_c_conftest_c11_program
5400 for ac_arg in '' -std=gnu11
5402 CC="$ac_save_CC $ac_arg"
5403 if ac_fn_c_try_compile "$LINENO"
5405 ac_cv_prog_cc_c11=$ac_arg
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam
5408 test "x$ac_cv_prog_cc_c11" != "xno" && break
5410 rm -f conftest.$ac_ext
5414 if test "x$ac_cv_prog_cc_c11" = xno
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5417 printf "%s\n" "unsupported" >&6; }
5419 if test "x$ac_cv_prog_cc_c11" = x
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5422 printf "%s\n" "none needed" >&6; }
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5425 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5426 CC="$CC $ac_cv_prog_cc_c11"
5428 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5432 if test x$ac_prog_cc_stdc = xno
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5435 printf %s "checking for $CC option to enable C99 features... " >&6; }
5436 if test ${ac_cv_prog_cc_c99+y}
5438 printf %s "(cached) " >&6
5440 ac_cv_prog_cc_c99=no
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 $ac_c_conftest_c99_program
5446 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5448 CC="$ac_save_CC $ac_arg"
5449 if ac_fn_c_try_compile "$LINENO"
5451 ac_cv_prog_cc_c99=$ac_arg
5453 rm -f core conftest.err conftest.$ac_objext conftest.beam
5454 test "x$ac_cv_prog_cc_c99" != "xno" && break
5456 rm -f conftest.$ac_ext
5460 if test "x$ac_cv_prog_cc_c99" = xno
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5463 printf "%s\n" "unsupported" >&6; }
5465 if test "x$ac_cv_prog_cc_c99" = x
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5468 printf "%s\n" "none needed" >&6; }
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5471 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5472 CC="$CC $ac_cv_prog_cc_c99"
5474 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5478 if test x$ac_prog_cc_stdc = xno
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5481 printf %s "checking for $CC option to enable C89 features... " >&6; }
5482 if test ${ac_cv_prog_cc_c89+y}
5484 printf %s "(cached) " >&6
5486 ac_cv_prog_cc_c89=no
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 $ac_c_conftest_c89_program
5492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5494 CC="$ac_save_CC $ac_arg"
5495 if ac_fn_c_try_compile "$LINENO"
5497 ac_cv_prog_cc_c89=$ac_arg
5499 rm -f core conftest.err conftest.$ac_objext conftest.beam
5500 test "x$ac_cv_prog_cc_c89" != "xno" && break
5502 rm -f conftest.$ac_ext
5506 if test "x$ac_cv_prog_cc_c89" = xno
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5509 printf "%s\n" "unsupported" >&6; }
5511 if test "x$ac_cv_prog_cc_c89" = x
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5514 printf "%s\n" "none needed" >&6; }
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5517 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5518 CC="$CC $ac_cv_prog_cc_c89"
5520 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531 if test "$GCC" = yes; then
5532 RDYNAMIC="-rdynamic"
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5541 printf %s "checking how to run the C preprocessor... " >&6; }
5542 # On Suns, sometimes $CPP names a directory.
5543 if test -n "$CPP" && test -d "$CPP"; then
5546 if test -z "$CPP"; then
5547 if test ${ac_cv_prog_CPP+y}
5549 printf %s "(cached) " >&6
5551 # Double quotes because $CC needs to be expanded
5552 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5555 for ac_c_preproc_warn_flag in '' yes
5557 # Use a header file that comes with gcc, so configuring glibc
5558 # with a fresh cross-compiler works.
5559 # On the NeXT, cc -E runs the code through the compiler's parser,
5560 # not just through cpp. "Syntax error" is here to catch this case.
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5566 if ac_fn_c_try_cpp "$LINENO"
5570 # Broken: fails on valid input.
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5581 if ac_fn_c_try_cpp "$LINENO"
5583 # Broken: success on invalid input.
5586 # Passes both tests.
5590 rm -f conftest.err conftest.i conftest.$ac_ext
5593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594 rm -f conftest.i conftest.err conftest.$ac_ext
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5609 printf "%s\n" "$CPP" >&6; }
5611 for ac_c_preproc_warn_flag in '' yes
5613 # Use a header file that comes with gcc, so configuring glibc
5614 # with a fresh cross-compiler works.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5622 if ac_fn_c_try_cpp "$LINENO"
5626 # Broken: fails on valid input.
5629 rm -f conftest.err conftest.i conftest.$ac_ext
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if ac_fn_c_try_cpp "$LINENO"
5639 # Broken: success on invalid input.
5642 # Passes both tests.
5646 rm -f conftest.err conftest.i conftest.$ac_ext
5649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5650 rm -f conftest.i conftest.err conftest.$ac_ext
5655 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5656 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5657 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5658 See \`config.log' for more details" "$LINENO" 5; }
5662 ac_cpp='$CPP $CPPFLAGS'
5663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5668 printf %s "checking for additional special compiler flags... " >&6; }
5669 if test "$GCC" = yes
5672 alpha) addcflags="-mieee" ;;
5675 if test "x$addcflags" != x
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5678 printf "%s\n" "$addcflags" >&6; }
5679 CFLAGS="$addcflags $CFLAGS"
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5682 printf "%s\n" "(none)" >&6; }
5688 # Check whether --with-root-prefix was given.
5689 if test ${with_root_prefix+y}
5691 withval=$with_root_prefix; root_prefix=$withval
5695 # Check whether --enable-maintainer-mode was given.
5696 if test ${enable_maintainer_mode+y}
5698 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5702 printf "%s\n" "Disabling maintainer mode" >&6; }
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5706 printf "%s\n" "Enabling maintainer mode" >&6; }
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5712 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5717 # Check whether --enable-symlink-install was given.
5718 if test ${enable_symlink_install+y}
5720 enableval=$enable_symlink_install; if test "$enableval" = "no"
5722 LINK_INSTALL_FLAGS=-f
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5724 printf "%s\n" "Disabling symlinks for install" >&6; }
5726 LINK_INSTALL_FLAGS=-sf
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5728 printf "%s\n" "Enabling symlinks for install" >&6; }
5732 LINK_INSTALL_FLAGS=-f
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5734 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5739 relative_symlink_defined=
5740 # Check whether --enable-relative-symlinks was given.
5741 if test ${enable_relative_symlinks+y}
5743 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5746 relative_symlink_defined=yes
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5748 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5750 SYMLINK_RELATIVE=--relative
5751 relative_symlink_defined=yes
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5753 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5757 # Check whether --enable-symlink-relative-symlinks was given.
5758 if test ${enable_symlink_relative_symlinks+y}
5760 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5762 SYMLINK_RELATIVE=yes
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5764 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5766 SYMLINK_RELATIVE=--relative
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5768 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5772 if test -z "$relative_symlink_defined"
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5776 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5782 # Check whether --enable-symlink-build was given.
5783 if test ${enable_symlink_build+y}
5785 enableval=$enable_symlink_build; if test "$enableval" = "no"
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5789 printf "%s\n" "Disabling symlinks for build" >&6; }
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5793 printf "%s\n" "Enabling symlinks for build" >&6; }
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5799 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5804 # Check whether --enable-verbose-makecmds was given.
5805 if test ${enable_verbose_makecmds+y}
5807 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5810 printf "%s\n" "Disabling verbose make commands" >&6; }
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5816 printf "%s\n" "Enabling verbose make commands" >&6; }
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5824 printf "%s\n" "Disabling verbose make commands" >&6; }
5834 E2_PKG_CONFIG_STATIC=--static
5837 # Check whether --enable-elf-shlibs was given.
5838 if test ${enable_elf_shlibs+y}
5840 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5843 MAKEFILE_ELF=/dev/null
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5845 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5847 E2_PKG_CONFIG_STATIC=
5849 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5852 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5858 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5860 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5864 MAKEFILE_ELF=/dev/null
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5867 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5873 # Check whether --enable-bsd-shlibs was given.
5874 if test ${enable_bsd_shlibs+y}
5876 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5879 MAKEFILE_BSDLIB=/dev/null
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5881 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5883 E2_PKG_CONFIG_STATIC=
5885 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5889 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5894 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5898 MAKEFILE_BSDLIB=/dev/null
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5901 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5907 # Check whether --enable-profile was given.
5908 if test ${enable_profile+y}
5910 enableval=$enable_profile; if test "$enableval" = "no"
5913 MAKEFILE_PROFILE=/dev/null
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5915 printf "%s\n" "Disabling profiling libraries" >&6; }
5918 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5919 PROFILED_LIB_EXT=_p.a
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5921 printf "%s\n" "Building profiling libraries" >&6; }
5926 MAKEFILE_PROFILE=/dev/null
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5928 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5934 # Check whether --enable-gcov was given.
5935 if test ${enable_gcov+y}
5937 enableval=$enable_gcov; if test "$enableval" = "yes"
5939 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5940 LDFLAGS="-fprofile-arcs -ftest-coverage"
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5942 printf "%s\n" "Enabling gcov support" >&6; }
5947 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5948 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5949 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5950 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5951 # Check whether --enable-hardening was given.
5952 if test ${enable_hardening+y}
5954 enableval=$enable_hardening; if test "$enableval" = "yes"
5956 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5957 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5958 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5959 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5960 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5961 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5962 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5963 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5965 printf "%s\n" "Enabling hardening support" >&6; }
5975 # Check whether --enable-jbd-debug was given.
5976 if test ${enable_jbd_debug+y}
5978 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5981 printf "%s\n" "Disabling journal debugging" >&6; }
5984 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5987 printf "%s\n" "Enabling journal debugging" >&6; }
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5992 printf "%s\n" "Disabling journal debugging by default" >&6; }
5996 # Check whether --enable-blkid-debug was given.
5997 if test ${enable_blkid_debug+y}
5999 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6002 printf "%s\n" "Disabling blkid debugging" >&6; }
6005 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6008 printf "%s\n" "Enabling blkid debugging" >&6; }
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6013 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6017 # Check whether --enable-testio-debug was given.
6018 if test ${enable_testio_debug+y}
6020 enableval=$enable_testio_debug;
6021 if test "$enableval" = "no"
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6024 printf "%s\n" "Disabling testio debugging" >&6; }
6028 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6031 printf "%s\n" "Enabling testio debugging" >&6; }
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6036 printf "%s\n" "Enabling testio debugging by default" >&6; }
6037 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6044 # Check whether --enable-developer-features was given.
6045 if test ${enable_developer_features+y}
6047 enableval=$enable_developer_features;
6048 if test "$enableval" = "yes"
6051 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6054 printf "%s\n" "Enabling ext4 developer features" >&6; }
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6057 printf "%s\n" "Disabling ext4 developer features" >&6; }
6058 DEV_FEATURES_CMT="#"
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6063 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6076 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_path_PKG_CONFIG+y}
6084 printf %s "(cached) " >&6
6088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 case $as_dir in #(((
6098 *) as_dir=$as_dir/ ;;
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6102 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6114 if test -n "$PKG_CONFIG"; then
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6116 printf "%s\n" "$PKG_CONFIG" >&6; }
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 printf "%s\n" "no" >&6; }
6124 if test -z "$ac_cv_path_PKG_CONFIG"; then
6125 ac_pt_PKG_CONFIG=$PKG_CONFIG
6126 # Extract the first word of "pkg-config", so it can be a program name with args.
6127 set dummy pkg-config; ac_word=$2
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 printf %s "checking for $ac_word... " >&6; }
6130 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6132 printf %s "(cached) " >&6
6134 case $ac_pt_PKG_CONFIG in
6136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 case $as_dir in #(((
6146 *) as_dir=$as_dir/ ;;
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6150 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6162 if test -n "$ac_pt_PKG_CONFIG"; then
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6164 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 printf "%s\n" "no" >&6; }
6170 if test "x$ac_pt_PKG_CONFIG" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6179 PKG_CONFIG=$ac_pt_PKG_CONFIG
6182 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6186 if test -n "$PKG_CONFIG"; then
6187 _pkg_min_version=0.9.0
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6189 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6190 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6192 printf "%s\n" "yes" >&6; }
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 printf "%s\n" "no" >&6; }
6204 DEPPROFILED_LIBUUID=
6206 # Check whether --enable-libuuid was given.
6207 if test ${enable_libuuid+y}
6209 enableval=$enable_libuuid; if test "$enableval" = "no"
6211 if test -z "$PKG_CONFIG"; then
6212 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6216 printf %s "checking for uuid_generate in -luuid... " >&6; }
6217 if test ${ac_cv_lib_uuid_uuid_generate+y}
6219 printf %s "(cached) " >&6
6221 ac_check_lib_save_LIBS=$LIBS
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6226 /* Override any GCC internal prototype to avoid an error.
6227 Use char because int might match the return type of a GCC
6228 builtin and then its argument prototype would still apply. */
6229 char uuid_generate ();
6233 return uuid_generate ();
6238 if ac_fn_c_try_link "$LINENO"
6240 ac_cv_lib_uuid_uuid_generate=yes
6242 ac_cv_lib_uuid_uuid_generate=no
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6245 conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6249 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6250 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6252 LIBUUID=`$PKG_CONFIG --libs uuid`;
6253 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6255 as_fn_error $? "external uuid library not found" "$LINENO" 5
6258 PROFILED_LIBUUID=$LIBUUID
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6261 printf "%s\n" "Disabling private uuid library" >&6; }
6263 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6265 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6266 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6267 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6268 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6270 printf "%s\n" "Enabling private uuid library" >&6; }
6274 if test -n "$PKG_CONFIG"; then
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6276 printf %s "checking for uuid_generate in -luuid... " >&6; }
6277 if test ${ac_cv_lib_uuid_uuid_generate+y}
6279 printf %s "(cached) " >&6
6281 ac_check_lib_save_LIBS=$LIBS
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 /* Override any GCC internal prototype to avoid an error.
6287 Use char because int might match the return type of a GCC
6288 builtin and then its argument prototype would still apply. */
6289 char uuid_generate ();
6293 return uuid_generate ();
6298 if ac_fn_c_try_link "$LINENO"
6300 ac_cv_lib_uuid_uuid_generate=yes
6302 ac_cv_lib_uuid_uuid_generate=no
6304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6305 conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6309 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6310 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6312 LIBUUID=`$PKG_CONFIG --libs uuid`;
6313 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6317 if test -n "$LIBUUID"; then
6318 PROFILED_LIBUUID=$LIBUUID
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6321 printf "%s\n" "Using system uuid by default" >&6; }
6323 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6325 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6326 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6327 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6328 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6330 printf "%s\n" "Enabling private uuid library by default" >&6; }
6349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 printf %s "checking for $ac_word... " >&6; }
6355 if test ${ac_cv_path_PKG_CONFIG+y}
6357 printf %s "(cached) " >&6
6361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 case $as_dir in #(((
6371 *) as_dir=$as_dir/ ;;
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6375 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6387 if test -n "$PKG_CONFIG"; then
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6389 printf "%s\n" "$PKG_CONFIG" >&6; }
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 printf "%s\n" "no" >&6; }
6397 if test -z "$ac_cv_path_PKG_CONFIG"; then
6398 ac_pt_PKG_CONFIG=$PKG_CONFIG
6399 # Extract the first word of "pkg-config", so it can be a program name with args.
6400 set dummy pkg-config; ac_word=$2
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 printf %s "checking for $ac_word... " >&6; }
6403 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6405 printf %s "(cached) " >&6
6407 case $ac_pt_PKG_CONFIG in
6409 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 case $as_dir in #(((
6419 *) as_dir=$as_dir/ ;;
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6423 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6434 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6435 if test -n "$ac_pt_PKG_CONFIG"; then
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6437 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 printf "%s\n" "no" >&6; }
6443 if test "x$ac_pt_PKG_CONFIG" = x; then
6446 case $cross_compiling:$ac_tool_warned in
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6452 PKG_CONFIG=$ac_pt_PKG_CONFIG
6455 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6459 if test -n "$PKG_CONFIG"; then
6460 _pkg_min_version=0.9.0
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6462 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6463 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6465 printf "%s\n" "yes" >&6; }
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6477 DEPPROFILED_LIBBLKID=
6480 # Check whether --enable-libblkid was given.
6481 if test ${enable_libblkid+y}
6483 enableval=$enable_libblkid; if test "$enableval" = "no"
6485 if test -z "$PKG_CONFIG"; then
6486 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6490 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6491 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6493 printf %s "(cached) " >&6
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lblkid -luuid $LIBS"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6500 /* Override any GCC internal prototype to avoid an error.
6501 Use char because int might match the return type of a GCC
6502 builtin and then its argument prototype would still apply. */
6503 char blkid_get_cache ();
6507 return blkid_get_cache ();
6512 if ac_fn_c_try_link "$LINENO"
6514 ac_cv_lib_blkid_blkid_get_cache=yes
6516 ac_cv_lib_blkid_blkid_get_cache=no
6518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6519 conftest$ac_exeext conftest.$ac_ext
6520 LIBS=$ac_check_lib_save_LIBS
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6523 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6524 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6526 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6527 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6529 as_fn_error $? "external blkid library not found" "$LINENO" 5
6533 PROFILED_LIBBLKID=$LIBBLKID
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6535 printf "%s\n" "Disabling private blkid library" >&6; }
6537 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6538 DEPLIBBLKID=$LIBBLKID
6539 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6540 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6541 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6542 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6543 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6546 printf "%s\n" "Enabling private blkid library" >&6; }
6550 if test -n "$PKG_CONFIG"; then
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6552 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6553 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6555 printf %s "(cached) " >&6
6557 ac_check_lib_save_LIBS=$LIBS
6558 LIBS="-lblkid $LIBS"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6562 /* Override any GCC internal prototype to avoid an error.
6563 Use char because int might match the return type of a GCC
6564 builtin and then its argument prototype would still apply. */
6565 char blkid_get_cache ();
6569 return blkid_get_cache ();
6574 if ac_fn_c_try_link "$LINENO"
6576 ac_cv_lib_blkid_blkid_get_cache=yes
6578 ac_cv_lib_blkid_blkid_get_cache=no
6580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6581 conftest$ac_exeext conftest.$ac_ext
6582 LIBS=$ac_check_lib_save_LIBS
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6585 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6586 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6588 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6589 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6593 if test -n "$LIBBLKID"; then
6595 PROFILED_LIBBLKID=$LIBBLKID
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6597 printf "%s\n" "Using system blkid library by default" >&6; }
6599 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6600 DEPLIBBLKID=$LIBBLKID
6601 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6602 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6603 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6604 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6605 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6608 printf "%s\n" "Enabling private blkid library by default" >&6; }
6622 # Check whether --enable-subset was given.
6623 if test ${enable_subset+y}
6625 enableval=$enable_subset; if test "$enableval" = "no"
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6629 printf "%s\n" "Disabling subset-only build" >&6; }
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6633 printf "%s\n" "Enabling subset-only-build" >&6; }
6641 # Check whether --enable-backtrace was given.
6642 if test ${enable_backtrace+y}
6644 enableval=$enable_backtrace; if test "$enableval" = "no"
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6647 printf "%s\n" "Disabling use of backtrace" >&6; }
6648 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6652 printf "%s\n" "Enabling use of backtrace" >&6; }
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6657 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6661 # Check whether --enable-debugfs was given.
6662 if test ${enable_debugfs+y}
6664 enableval=$enable_debugfs; if test "$enableval" = "no"
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6667 printf "%s\n" "Disabling debugfs support" >&6; }
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6672 printf "%s\n" "Enabling debugfs support" >&6; }
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6677 printf "%s\n" "Enabling debugfs support by default" >&6; }
6683 # Check whether --enable-imager was given.
6684 if test ${enable_imager+y}
6686 enableval=$enable_imager; if test "$enableval" = "no"
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6689 printf "%s\n" "Disabling e2image support" >&6; }
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6694 printf "%s\n" "Enabling e2image support" >&6; }
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6699 printf "%s\n" "Enabling e2image support by default" >&6; }
6705 # Check whether --enable-resizer was given.
6706 if test ${enable_resizer+y}
6708 enableval=$enable_resizer; if test "$enableval" = "no"
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6711 printf "%s\n" "Disabling e2resize support" >&6; }
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6716 printf "%s\n" "Enabling e2resize support" >&6; }
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6721 printf "%s\n" "Enabling e2resize support by default" >&6; }
6727 # Check whether --enable-defrag was given.
6728 if test ${enable_defrag+y}
6730 enableval=$enable_defrag; if test "$enableval" = "no"
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6733 printf "%s\n" "Disabling e4defrag support" >&6; }
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6738 printf "%s\n" "Enabling e4defrag support" >&6; }
6742 if test -z "$WITH_DIET_LIBC"
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6745 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6749 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6756 # Check whether --enable-fsck was given.
6757 if test ${enable_fsck+y}
6759 enableval=$enable_fsck; if test "$enableval" = "no"
6761 FSCK_PROG='' FSCK_MAN=''
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6763 printf "%s\n" "Not building fsck wrapper" >&6; }
6765 FSCK_PROG=fsck FSCK_MAN=fsck.8
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6767 printf "%s\n" "Building fsck wrapper" >&6; }
6773 FSCK_PROG='' FSCK_MAN=''
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6775 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6778 FSCK_PROG=fsck FSCK_MAN=fsck.8
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6780 printf "%s\n" "Building fsck wrapper by default" >&6; }
6787 # Check whether --enable-e2initrd-helper was given.
6788 if test ${enable_e2initrd_helper+y}
6790 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6792 E2INITRD_PROG='' E2INITRD_MAN=''
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6794 printf "%s\n" "Not building e2initrd helper" >&6; }
6796 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6798 printf "%s\n" "Building e2initrd helper" >&6; }
6802 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6804 printf "%s\n" "Building e2initrd helper by default" >&6; }
6810 # Check whether --enable-tls was given.
6811 if test ${enable_tls+y}
6813 enableval=$enable_tls; if test "$enableval" = "no"
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6817 printf "%s\n" "Disabling thread local support" >&6; }
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6821 printf "%s\n" "Enabling thread local support" >&6; }
6825 if test -n "$WITH_DIET_LIBC"
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6829 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6833 printf "%s\n" "Try using thread local support by default" >&6; }
6838 if test "$try_tls" = "yes"
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6842 printf %s "checking for thread local storage (TLS) class... " >&6; }
6843 if test ${ac_cv_tls+y}
6845 printf %s "(cached) " >&6
6848 ax_tls_keywords="__thread __declspec(thread) none"
6849 for ax_tls_keyword in $ax_tls_keywords; do
6850 case $ax_tls_keyword in
6851 none) ac_cv_tls=none ; break ;;
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6858 static $ax_tls_keyword int bar;
6869 if ac_fn_c_try_compile "$LINENO"
6871 ac_cv_tls=$ax_tls_keyword ; break
6876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6883 if test "$ac_cv_tls" != "none"; then
6885 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6889 printf "%s\n" "$ac_cv_tls" >&6; }
6893 # Check whether --with-pthread was given.
6894 if test ${with_pthread+y}
6896 withval=$with_pthread; if test "$withval" = "no"
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6900 printf "%s\n" "Disabling pthread support" >&6; }
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6904 printf "%s\n" "Testing for pthread support" >&6; }
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6910 printf "%s\n" "Try testing for pthread support by default" >&6; }
6914 if test "$try_pthread" = "yes"
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6917 printf %s "checking for a sed that does not truncate output... " >&6; }
6918 if test ${ac_cv_path_SED+y}
6920 printf %s "(cached) " >&6
6922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6923 for ac_i in 1 2 3 4 5 6 7; do
6924 ac_script="$ac_script$as_nl$ac_script"
6926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6927 { ac_script=; unset ac_script;}
6928 if test -z "$SED"; then
6929 ac_path_SED_found=false
6930 # Loop through the user's path and test for each of PROGNAME-LIST
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 case $as_dir in #(((
6938 *) as_dir=$as_dir/ ;;
6940 for ac_prog in sed gsed
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6944 as_fn_executable_p "$ac_path_SED" || continue
6945 # Check for GNU ac_path_SED and select it if it is found.
6946 # Check for GNU $ac_path_SED
6947 case `"$ac_path_SED" --version 2>&1` in
6949 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6952 printf %s 0123456789 >"conftest.in"
6955 cat "conftest.in" "conftest.in" >"conftest.tmp"
6956 mv "conftest.tmp" "conftest.in"
6957 cp "conftest.in" "conftest.nl"
6958 printf "%s\n" '' >> "conftest.nl"
6959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6961 as_fn_arith $ac_count + 1 && ac_count=$as_val
6962 if test $ac_count -gt ${ac_path_SED_max-0}; then
6963 # Best one so far, save it but keep looking for a better one
6964 ac_cv_path_SED="$ac_path_SED"
6965 ac_path_SED_max=$ac_count
6967 # 10*(2^10) chars as input seems more than enough
6968 test $ac_count -gt 10 && break
6970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6973 $ac_path_SED_found && break 3
6978 if test -z "$ac_cv_path_SED"; then
6979 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6987 printf "%s\n" "$ac_cv_path_SED" >&6; }
6988 SED="$ac_cv_path_SED"
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6993 printf %s "checking for grep that handles long lines and -e... " >&6; }
6994 if test ${ac_cv_path_GREP+y}
6996 printf %s "(cached) " >&6
6998 if test -z "$GREP"; then
6999 ac_path_GREP_found=false
7000 # Loop through the user's path and test for each of PROGNAME-LIST
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7005 case $as_dir in #(((
7008 *) as_dir=$as_dir/ ;;
7010 for ac_prog in grep ggrep
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7014 as_fn_executable_p "$ac_path_GREP" || continue
7015 # Check for GNU ac_path_GREP and select it if it is found.
7016 # Check for GNU $ac_path_GREP
7017 case `"$ac_path_GREP" --version 2>&1` in
7019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7022 printf %s 0123456789 >"conftest.in"
7025 cat "conftest.in" "conftest.in" >"conftest.tmp"
7026 mv "conftest.tmp" "conftest.in"
7027 cp "conftest.in" "conftest.nl"
7028 printf "%s\n" 'GREP' >> "conftest.nl"
7029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7031 as_fn_arith $ac_count + 1 && ac_count=$as_val
7032 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7033 # Best one so far, save it but keep looking for a better one
7034 ac_cv_path_GREP="$ac_path_GREP"
7035 ac_path_GREP_max=$ac_count
7037 # 10*(2^10) chars as input seems more than enough
7038 test $ac_count -gt 10 && break
7040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7043 $ac_path_GREP_found && break 3
7048 if test -z "$ac_cv_path_GREP"; then
7049 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7052 ac_cv_path_GREP=$GREP
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7057 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7058 GREP="$ac_cv_path_GREP"
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7062 printf %s "checking for egrep... " >&6; }
7063 if test ${ac_cv_path_EGREP+y}
7065 printf %s "(cached) " >&6
7067 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7068 then ac_cv_path_EGREP="$GREP -E"
7070 if test -z "$EGREP"; then
7071 ac_path_EGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7077 case $as_dir in #(((
7080 *) as_dir=$as_dir/ ;;
7082 for ac_prog in egrep
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7086 as_fn_executable_p "$ac_path_EGREP" || continue
7087 # Check for GNU ac_path_EGREP and select it if it is found.
7088 # Check for GNU $ac_path_EGREP
7089 case `"$ac_path_EGREP" --version 2>&1` in
7091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7094 printf %s 0123456789 >"conftest.in"
7097 cat "conftest.in" "conftest.in" >"conftest.tmp"
7098 mv "conftest.tmp" "conftest.in"
7099 cp "conftest.in" "conftest.nl"
7100 printf "%s\n" 'EGREP' >> "conftest.nl"
7101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7103 as_fn_arith $ac_count + 1 && ac_count=$as_val
7104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7105 # Best one so far, save it but keep looking for a better one
7106 ac_cv_path_EGREP="$ac_path_EGREP"
7107 ac_path_EGREP_max=$ac_count
7109 # 10*(2^10) chars as input seems more than enough
7110 test $ac_count -gt 10 && break
7112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7115 $ac_path_EGREP_found && break 3
7120 if test -z "$ac_cv_path_EGREP"; then
7121 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7124 ac_cv_path_EGREP=$EGREP
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7130 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7131 EGREP="$ac_cv_path_EGREP"
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 # We used to check for pthread.h first, but this fails if pthread.h
7147 # requires special compiler flags (e.g. on Tru64 or Sequent).
7148 # It gets checked for in the link test anyway.
7150 # First of all, check if the user has set any of the PTHREAD_LIBS,
7151 # etcetera environment variables, and if threads linking works using
7153 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7154 ax_pthread_save_CC="$CC"
7155 ax_pthread_save_CFLAGS="$CFLAGS"
7156 ax_pthread_save_LIBS="$LIBS"
7157 if test "x$PTHREAD_CC" != "x"
7161 if test "x$PTHREAD_CXX" != "x"
7165 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7166 LIBS="$PTHREAD_LIBS $LIBS"
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7168 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7175 char pthread_join ();
7179 return pthread_join ();
7184 if ac_fn_c_try_link "$LINENO"
7188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7189 conftest$ac_exeext conftest.$ac_ext
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7191 printf "%s\n" "$ax_pthread_ok" >&6; }
7192 if test "x$ax_pthread_ok" = "xno"; then
7196 CC="$ax_pthread_save_CC"
7197 CFLAGS="$ax_pthread_save_CFLAGS"
7198 LIBS="$ax_pthread_save_LIBS"
7201 # We must check for the threads library under a number of different
7202 # names; the ordering is very important because some systems
7203 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7204 # libraries is broken (non-POSIX).
7206 # Create a list of thread flags to try. Items with a "," contain both
7207 # C compiler flags (before ",") and linker flags (after ","). Other items
7208 # starting with a "-" are C compiler flags, and remaining items are
7209 # library names, except for "none" which indicates that we try without
7210 # any flags at all, and "pthread-config" which is a program returning
7211 # the flags for the Pth emulation library.
7213 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7215 # The ordering *is* (sometimes) important. Some notes on the
7216 # individual items follow:
7218 # pthreads: AIX (must check this before -lpthread)
7219 # none: in case threads are in libc; should be tried before -Kthread and
7220 # other compiler flags to prevent continual compiler warnings
7221 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7222 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7223 # (Note: HP C rejects this with "bad form for `-t' option")
7224 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7225 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7226 # doesn't hurt to check since this sometimes defines pthreads and
7227 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7228 # is present but should not be used directly; and before -mthreads,
7229 # because the compiler interprets this as "-mt" + "-hreads")
7230 # -mthreads: Mingw32/gcc, Lynx/gcc
7231 # pthread: Linux, etcetera
7232 # --thread-safe: KAI C++
7233 # pthread-config: use pthread-config program (for GNU Pth library)
7239 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7240 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7242 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7247 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7248 # multi-threading and also sets -lpthread."
7250 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7255 # IBM z/OS requires a feature-test macro to be defined in order to
7256 # enable POSIX threads at all, so give the user a hint if this is
7257 # not set. (We don't define these ourselves, as they can affect
7258 # other portions of the system API in unpredictable ways.)
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7263 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7264 AX_PTHREAD_ZOS_MISSING
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7271 { 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
7272 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7280 # On Solaris (at least, for some versions), libc contains stubbed
7281 # (non-functional) versions of the pthreads routines, so link-based
7282 # tests will erroneously succeed. (N.B.: The stubs are missing
7283 # pthread_cleanup_push, or rather a function called by this macro,
7284 # so we could check for that, but who knows whether they'll stub
7285 # that too in a future libc.) So we'll check first for the
7286 # standard Solaris way of linking pthreads (-mt -lpthread).
7288 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7292 # Are we compiling with Clang?
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7295 printf %s "checking whether $CC is Clang... " >&6; }
7296 if test ${ax_cv_PTHREAD_CLANG+y}
7298 printf %s "(cached) " >&6
7300 ax_cv_PTHREAD_CLANG=no
7301 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7302 if test "x$GCC" = "xyes"; then
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7306 # if defined(__clang__) && defined(__llvm__)
7307 AX_PTHREAD_CC_IS_CLANG
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7314 ax_cv_PTHREAD_CLANG=yes
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7322 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7323 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7326 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7328 # Note that for GCC and Clang -pthread generally implies -lpthread,
7329 # except when -nostdlib is passed.
7330 # This is problematic using libtool to build C++ shared libraries with pthread:
7331 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7332 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7333 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7334 # To solve this, first try -pthread together with -lpthread for GCC
7336 if test "x$GCC" = "xyes"
7338 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7341 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7343 if test "x$ax_pthread_clang" = "xyes"
7345 ax_pthread_flags="-pthread,-lpthread -pthread"
7349 # The presence of a feature test macro requesting re-entrant function
7350 # definitions is, on some systems, a strong hint that pthreads support is
7354 darwin* | hpux* | linux* | osf* | solaris*)
7355 ax_pthread_check_macro="_REENTRANT"
7359 ax_pthread_check_macro="_THREAD_SAFE"
7363 ax_pthread_check_macro="--"
7366 if test "x$ax_pthread_check_macro" = "x--"
7368 ax_pthread_check_cond=0
7370 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7374 if test "x$ax_pthread_ok" = "xno"; then
7375 for ax_pthread_try_flag in $ax_pthread_flags; do
7377 case $ax_pthread_try_flag in
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7380 printf %s "checking whether pthreads work without any flags... " >&6; }
7384 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7385 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7387 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7392 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7393 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7397 # Extract the first word of "pthread-config", so it can be a program name with args.
7398 set dummy pthread-config; ac_word=$2
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 printf %s "checking for $ac_word... " >&6; }
7401 if test ${ac_cv_prog_ax_pthread_config+y}
7403 printf %s "(cached) " >&6
7405 if test -n "$ax_pthread_config"; then
7406 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 case $as_dir in #(((
7415 *) as_dir=$as_dir/ ;;
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_ax_pthread_config="yes"
7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7427 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7430 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7431 if test -n "$ax_pthread_config"; then
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7433 printf "%s\n" "$ax_pthread_config" >&6; }
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 printf "%s\n" "no" >&6; }
7440 if test "x$ax_pthread_config" = "xno"
7444 PTHREAD_CFLAGS="`pthread-config --cflags`"
7445 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7450 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7451 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7455 ax_pthread_save_CFLAGS="$CFLAGS"
7456 ax_pthread_save_LIBS="$LIBS"
7457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7458 LIBS="$PTHREAD_LIBS $LIBS"
7460 # Check for various functions. We must include pthread.h,
7461 # since some functions may be macros. (On the Sequent, we
7462 # need a special flag -Kthread to make this header compile.)
7463 # We check for pthread_join because it is in -lpthread on IRIX
7464 # while pthread_create is in libc. We check for pthread_attr_init
7465 # due to DEC craziness with -lpthreads. We check for
7466 # pthread_cleanup_push because it is one of the few pthread
7467 # functions on Solaris that doesn't have a non-functional libc stub.
7468 # We try pthread_create on general principles.
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 #include <pthread.h>
7473 # if $ax_pthread_check_cond
7474 # error "$ax_pthread_check_macro must be defined"
7476 static void *some_global = NULL;
7477 static void routine(void *a)
7479 /* To avoid any unused-parameter or
7480 unused-but-set-parameter warning. */
7483 static void *start_routine(void *a) { return a; }
7487 pthread_t th; pthread_attr_t attr;
7488 pthread_create(&th, 0, start_routine, 0);
7489 pthread_join(th, 0);
7490 pthread_attr_init(&attr);
7491 pthread_cleanup_push(routine, 0);
7492 pthread_cleanup_pop(0) /* ; */
7497 if ac_fn_c_try_link "$LINENO"
7501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7502 conftest$ac_exeext conftest.$ac_ext
7504 CFLAGS="$ax_pthread_save_CFLAGS"
7505 LIBS="$ax_pthread_save_LIBS"
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7508 printf "%s\n" "$ax_pthread_ok" >&6; }
7509 if test "x$ax_pthread_ok" = "xyes"
7520 # Clang needs special handling, because older versions handle the -pthread
7521 # option in a rather... idiosyncratic way
7523 if test "x$ax_pthread_clang" = "xyes"; then
7525 # Clang takes -pthread; it has never supported any other flag
7527 # (Note 1: This will need to be revisited if a system that Clang
7528 # supports has POSIX threads in a separate library. This tends not
7529 # to be the way of modern systems, but it's conceivable.)
7531 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7532 # to get POSIX threads support; the API is always present and
7533 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7534 # -pthread does define _REENTRANT, and while the Darwin headers
7535 # ignore this macro, third-party headers might not.)
7537 # However, older versions of Clang make a point of warning the user
7538 # that, in an invocation where only linking and no compilation is
7539 # taking place, the -pthread option has no effect ("argument unused
7540 # during compilation"). They expect -pthread to be passed in only
7541 # when source code is being compiled.
7543 # Problem is, this is at odds with the way Automake and most other
7544 # C build frameworks function, which is that the same flags used in
7545 # compilation (CFLAGS) are also used in linking. Many systems
7546 # supported by AX_PTHREAD require exactly this for POSIX threads
7547 # support, and in fact it is often not straightforward to specify a
7548 # flag that is used only in the compilation phase and not in
7549 # linking. Such a scenario is extremely rare in practice.
7551 # Even though use of the -pthread flag in linking would only print
7552 # a warning, this can be a nuisance for well-run software projects
7553 # that build with -Werror. So if the active version of Clang has
7554 # this misfeature, we search for an option to squash it.
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7557 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7558 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7560 printf %s "(cached) " >&6
7562 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7563 # Create an alternate version of $ac_link that compiles and
7564 # links in two steps (.c -> .o, .o -> exe) instead of one
7565 # (.c -> exe), because the warning occurs only in the second
7567 ax_pthread_save_ac_link="$ac_link"
7568 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7569 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7570 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7571 ax_pthread_save_CFLAGS="$CFLAGS"
7572 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7573 if test "x$ax_pthread_try" = "xunknown"
7577 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7578 ac_link="$ax_pthread_save_ac_link"
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int main(void){return 0;}
7583 if ac_fn_c_try_link "$LINENO"
7585 ac_link="$ax_pthread_2step_ac_link"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 int main(void){return 0;}
7590 if ac_fn_c_try_link "$LINENO"
7594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7595 conftest$ac_exeext conftest.$ac_ext
7598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7599 conftest$ac_exeext conftest.$ac_ext
7601 ac_link="$ax_pthread_save_ac_link"
7602 CFLAGS="$ax_pthread_save_CFLAGS"
7603 if test "x$ax_pthread_try" = "x"
7607 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7611 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7613 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7615 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7618 fi # $ax_pthread_clang = yes
7622 # Various other checks:
7623 if test "x$ax_pthread_ok" = "xyes"; then
7624 ax_pthread_save_CFLAGS="$CFLAGS"
7625 ax_pthread_save_LIBS="$LIBS"
7626 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7627 LIBS="$PTHREAD_LIBS $LIBS"
7629 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7631 printf %s "checking for joinable pthread attribute... " >&6; }
7632 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7634 printf %s "(cached) " >&6
7636 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7637 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <pthread.h>
7644 int attr = $ax_pthread_attr; return attr /* ; */
7649 if ac_fn_c_try_link "$LINENO"
7651 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7654 conftest$ac_exeext conftest.$ac_ext
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7659 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7660 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7661 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7662 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7665 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7667 ax_pthread_joinable_attr_defined=yes
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7672 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7673 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7675 printf %s "(cached) " >&6
7677 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7680 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7686 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7687 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7688 test "x$ax_pthread_special_flags_added" != "xyes"
7690 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7691 ax_pthread_special_flags_added=yes
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7695 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7696 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7698 printf %s "(cached) " >&6
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #include <pthread.h>
7706 int i = PTHREAD_PRIO_INHERIT;
7712 if ac_fn_c_try_link "$LINENO"
7714 ax_cv_PTHREAD_PRIO_INHERIT=yes
7716 ax_cv_PTHREAD_PRIO_INHERIT=no
7718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7719 conftest$ac_exeext conftest.$ac_ext
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7723 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7724 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7725 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7728 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7730 ax_pthread_prio_inherit_defined=yes
7734 CFLAGS="$ax_pthread_save_CFLAGS"
7735 LIBS="$ax_pthread_save_LIBS"
7737 # More AIX lossage: compile with *_r variant
7738 if test "x$GCC" != "xyes"; then
7742 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7743 #handle absolute path differently from PATH based program lookup
7747 if as_fn_executable_p ${CC}_r
7749 PTHREAD_CC="${CC}_r"
7751 if test "x${CXX}" != "x"
7753 if as_fn_executable_p ${CXX}_r
7755 PTHREAD_CXX="${CXX}_r"
7761 for ac_prog in ${CC}_r
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 printf %s "checking for $ac_word... " >&6; }
7767 if test ${ac_cv_prog_PTHREAD_CC+y}
7769 printf %s "(cached) " >&6
7771 if test -n "$PTHREAD_CC"; then
7772 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 case $as_dir in #(((
7781 *) as_dir=$as_dir/ ;;
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_PTHREAD_CC="$ac_prog"
7786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7795 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7796 if test -n "$PTHREAD_CC"; then
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7798 printf "%s\n" "$PTHREAD_CC" >&6; }
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 printf "%s\n" "no" >&6; }
7805 test -n "$PTHREAD_CC" && break
7807 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7809 if test "x${CXX}" != "x"
7811 for ac_prog in ${CXX}_r
7813 # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 printf %s "checking for $ac_word... " >&6; }
7817 if test ${ac_cv_prog_PTHREAD_CXX+y}
7819 printf %s "(cached) " >&6
7821 if test -n "$PTHREAD_CXX"; then
7822 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 case $as_dir in #(((
7831 *) as_dir=$as_dir/ ;;
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7846 if test -n "$PTHREAD_CXX"; then
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7848 printf "%s\n" "$PTHREAD_CXX" >&6; }
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 printf "%s\n" "no" >&6; }
7855 test -n "$PTHREAD_CXX" && break
7857 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7872 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7873 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7880 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7881 if test "x$ax_pthread_ok" = "xyes"; then
7883 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7902 # Check whether --enable-uuidd was given.
7903 if test ${enable_uuidd+y}
7905 enableval=$enable_uuidd; if test "$enableval" = "no"
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7908 printf "%s\n" "Not building uuidd" >&6; }
7911 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7915 printf "%s\n" "Building uuidd" >&6; }
7919 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7921 if test -z "$UUID_CMT"
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7925 printf "%s\n" "Building uuidd by default" >&6; }
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7929 printf "%s\n" "Disabling uuidd by default" >&6; }
7936 # Check whether --enable-mmp was given.
7937 if test ${enable_mmp+y}
7939 enableval=$enable_mmp; if test "$enableval" = "no"
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7942 printf "%s\n" "Disabling mmp support" >&6; }
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7945 printf "%s\n" "Enabling mmp support" >&6; }
7946 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7952 printf "%s\n" "Enabling mmp support by default" >&6; }
7953 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7959 # Check whether --enable-tdb was given.
7960 if test ${enable_tdb+y}
7962 enableval=$enable_tdb;
7963 if test "$enableval" = "no"
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7966 printf "%s\n" "Disabling tdb support" >&6; }
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7970 printf "%s\n" "Enabling tdb support" >&6; }
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7980 printf "%s\n" "Disabling tdb support by default" >&6; }
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7985 printf "%s\n" "Enabling tdb support by default" >&6; }
7993 if test "$CONFIG_TDB" = "1"
7995 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8001 TDB_MAN_COMMENT='.\"'
8006 # Check whether --enable-bmap-stats was given.
8007 if test ${enable_bmap_stats+y}
8009 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8012 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8015 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8016 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8022 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8023 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8029 # Check whether --enable-bmap-stats-ops was given.
8030 if test ${enable_bmap_stats_ops+y}
8032 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8035 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8037 if test "x${enable_bmap_stats}" = "xno"
8039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8041 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8042 See \`config.log' for more details" "$LINENO" 5; }
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8046 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8047 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8053 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8057 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8059 GETTEXT_PACKAGE=e2fsprogs
8061 VERSION="$E2FSPROGS_VERSION"
8064 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8067 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8074 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8076 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8077 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8079 printf %s "(cached) " >&6
8081 cat >conftest.make <<\_ACEOF
8084 @echo '@@@%%%=$(MAKE)=@@@%%%'
8086 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8087 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8089 eval ac_cv_prog_make_${ac_make}_set=yes;;
8091 eval ac_cv_prog_make_${ac_make}_set=no;;
8095 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 printf "%s\n" "yes" >&6; }
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 printf "%s\n" "no" >&6; }
8102 SET_MAKE="MAKE=${MAKE-make}"
8106 # Find a good install program. We prefer a C program (faster),
8107 # so one script is as good as another. But avoid the broken or
8108 # incompatible versions:
8109 # SysV /etc/install, /usr/sbin/install
8110 # SunOS /usr/etc/install
8111 # IRIX /sbin/install
8113 # AmigaOS /C/install, which installs bootblocks on floppy discs
8114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8117 # OS/2's system install, which has a completely different semantic
8118 # ./install, which can be erroneously created by make from ./install.sh.
8119 # Reject install programs that cannot install multiple files.
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8121 printf %s "checking for a BSD-compatible install... " >&6; }
8122 if test -z "$INSTALL"; then
8123 if test ${ac_cv_path_install+y}
8125 printf %s "(cached) " >&6
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 case $as_dir in #(((
8134 *) as_dir=$as_dir/ ;;
8136 # Account for fact that we put trailing slashes in our PATH walk.
8139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8140 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8143 # OSF1 and SCO ODT 3.0 have their own names for install.
8144 # Don't use installbsd from OSF since it installs stuff as root
8146 for ac_prog in ginstall scoinst install; do
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8149 if test $ac_prog = install &&
8150 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8151 # AIX install. It has an incompatible calling convention.
8153 elif test $ac_prog = install &&
8154 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8155 # program-specific install script used by HP pwplus--don't use.
8158 rm -rf conftest.one conftest.two conftest.dir
8159 echo one > conftest.one
8160 echo two > conftest.two
8162 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8163 test -s conftest.one && test -s conftest.two &&
8164 test -s conftest.dir/conftest.one &&
8165 test -s conftest.dir/conftest.two
8167 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8180 rm -rf conftest.one conftest.two conftest.dir
8183 if test ${ac_cv_path_install+y}; then
8184 INSTALL=$ac_cv_path_install
8186 # As a last resort, use the slow shell script. Don't cache a
8187 # value for INSTALL within a source directory, because that will
8188 # break other packages using the cache if that directory is
8189 # removed, or if the value is a relative name.
8190 INSTALL=$ac_install_sh
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8194 printf "%s\n" "$INSTALL" >&6; }
8196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8197 # It thinks the first close brace ends the variable substitution.
8198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8206 printf %s "checking for a race-free mkdir -p... " >&6; }
8207 if test -z "$MKDIR_P"; then
8208 if test ${ac_cv_path_mkdir+y}
8210 printf %s "(cached) " >&6
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8216 case $as_dir in #(((
8219 *) as_dir=$as_dir/ ;;
8221 for ac_prog in mkdir gmkdir; do
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8224 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8225 'mkdir ('*'coreutils) '* | \
8227 'mkdir (fileutils) '4.1*)
8228 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8238 test -d ./--version && rmdir ./--version
8239 if test ${ac_cv_path_mkdir+y}; then
8240 MKDIR_P="$ac_cv_path_mkdir -p"
8242 # As a last resort, use the slow shell script. Don't cache a
8243 # value for MKDIR_P within a source directory, because that will
8244 # break other packages using the cache if that directory is
8245 # removed, or if the value is a relative name.
8246 MKDIR_P="$ac_install_sh -d"
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8250 printf "%s\n" "$MKDIR_P" >&6; }
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8254 printf %s "checking whether NLS is requested... " >&6; }
8255 # Check whether --enable-nls was given.
8256 if test ${enable_nls+y}
8258 enableval=$enable_nls; USE_NLS=$enableval
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8264 printf "%s\n" "$USE_NLS" >&6; }
8269 GETTEXT_MACRO_VERSION=0.20
8274 # Prepare PATH_SEPARATOR.
8275 # The user is always right.
8276 if test "${PATH_SEPARATOR+set}" != set; then
8277 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8278 # contains only /bin. Note that ksh looks also at the FPATH variable,
8279 # so we have to set that as well for the test.
8281 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8282 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8283 || PATH_SEPARATOR=';'
8287 # Find out how to test for executable files. Don't use a zero-byte file,
8288 # as systems may use methods other than mode bits to determine executability.
8289 cat >conf$$.file <<_ASEOF
8293 chmod +x conf$$.file
8294 if test -x conf$$.file >/dev/null 2>&1; then
8295 ac_executable_p="test -x"
8297 ac_executable_p="test -f"
8301 # Extract the first word of "msgfmt", so it can be a program name with args.
8302 set dummy msgfmt; ac_word=$2
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 printf %s "checking for $ac_word... " >&6; }
8305 if test ${ac_cv_path_MSGFMT+y}
8307 printf %s "(cached) " >&6
8311 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8315 for ac_dir in $PATH; do
8317 test -z "$ac_dir" && ac_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8320 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8321 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8322 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8323 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8330 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8334 MSGFMT="$ac_cv_path_MSGFMT"
8335 if test "$MSGFMT" != ":"; then
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8337 printf "%s\n" "$MSGFMT" >&6; }
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 printf "%s\n" "no" >&6; }
8343 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8344 set dummy gmsgfmt; ac_word=$2
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 printf %s "checking for $ac_word... " >&6; }
8347 if test ${ac_cv_path_GMSGFMT+y}
8349 printf %s "(cached) " >&6
8353 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 case $as_dir in #(((
8363 *) as_dir=$as_dir/ ;;
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8367 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8375 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8379 GMSGFMT=$ac_cv_path_GMSGFMT
8380 if test -n "$GMSGFMT"; then
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8382 printf "%s\n" "$GMSGFMT" >&6; }
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 printf "%s\n" "no" >&6; }
8390 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8391 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8392 *) GMSGFMT_015=$GMSGFMT ;;
8397 # Prepare PATH_SEPARATOR.
8398 # The user is always right.
8399 if test "${PATH_SEPARATOR+set}" != set; then
8400 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8401 # contains only /bin. Note that ksh looks also at the FPATH variable,
8402 # so we have to set that as well for the test.
8404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8405 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8406 || PATH_SEPARATOR=';'
8410 # Find out how to test for executable files. Don't use a zero-byte file,
8411 # as systems may use methods other than mode bits to determine executability.
8412 cat >conf$$.file <<_ASEOF
8416 chmod +x conf$$.file
8417 if test -x conf$$.file >/dev/null 2>&1; then
8418 ac_executable_p="test -x"
8420 ac_executable_p="test -f"
8424 # Extract the first word of "xgettext", so it can be a program name with args.
8425 set dummy xgettext; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_path_XGETTEXT+y}
8430 printf %s "(cached) " >&6
8434 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8437 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8438 for ac_dir in $PATH; do
8440 test -z "$ac_dir" && ac_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8443 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8444 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8445 (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
8446 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8453 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8457 XGETTEXT="$ac_cv_path_XGETTEXT"
8458 if test "$XGETTEXT" != ":"; then
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8460 printf "%s\n" "$XGETTEXT" >&6; }
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 printf "%s\n" "no" >&6; }
8468 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8469 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8470 *) XGETTEXT_015=$XGETTEXT ;;
8475 # Prepare PATH_SEPARATOR.
8476 # The user is always right.
8477 if test "${PATH_SEPARATOR+set}" != set; then
8478 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8479 # contains only /bin. Note that ksh looks also at the FPATH variable,
8480 # so we have to set that as well for the test.
8482 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8483 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8484 || PATH_SEPARATOR=';'
8488 # Find out how to test for executable files. Don't use a zero-byte file,
8489 # as systems may use methods other than mode bits to determine executability.
8490 cat >conf$$.file <<_ASEOF
8494 chmod +x conf$$.file
8495 if test -x conf$$.file >/dev/null 2>&1; then
8496 ac_executable_p="test -x"
8498 ac_executable_p="test -f"
8502 # Extract the first word of "msgmerge", so it can be a program name with args.
8503 set dummy msgmerge; ac_word=$2
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 printf %s "checking for $ac_word... " >&6; }
8506 if test ${ac_cv_path_MSGMERGE+y}
8508 printf %s "(cached) " >&6
8512 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8515 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8516 for ac_dir in $PATH; do
8518 test -z "$ac_dir" && ac_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8521 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8522 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8523 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8530 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8534 MSGMERGE="$ac_cv_path_MSGMERGE"
8535 if test "$MSGMERGE" != ":"; then
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8537 printf "%s\n" "$MSGMERGE" >&6; }
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 printf "%s\n" "no" >&6; }
8544 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8545 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8547 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8548 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8550 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8555 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8558 ac_config_commands="$ac_config_commands po-directories"
8562 if test "X$prefix" = "XNONE"; then
8563 acl_final_prefix="$ac_default_prefix"
8565 acl_final_prefix="$prefix"
8567 if test "X$exec_prefix" = "XNONE"; then
8568 acl_final_exec_prefix='${prefix}'
8570 acl_final_exec_prefix="$exec_prefix"
8572 acl_save_prefix="$prefix"
8573 prefix="$acl_final_prefix"
8574 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8575 prefix="$acl_save_prefix"
8579 # Check whether --with-gnu-ld was given.
8580 if test ${with_gnu_ld+y}
8582 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8587 # Prepare PATH_SEPARATOR.
8588 # The user is always right.
8589 if test "${PATH_SEPARATOR+set}" != set; then
8590 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8591 # contains only /bin. Note that ksh looks also at the FPATH variable,
8592 # so we have to set that as well for the test.
8594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8595 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8596 || PATH_SEPARATOR=';'
8600 if test -n "$LD"; then
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8602 printf %s "checking for ld... " >&6; }
8603 elif test "$GCC" = yes; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8605 printf %s "checking for ld used by $CC... " >&6; }
8606 elif test "$with_gnu_ld" = yes; then
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8608 printf %s "checking for GNU ld... " >&6; }
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8611 printf %s "checking for non-GNU ld... " >&6; }
8613 if test -n "$LD"; then
8614 # Let the user override the test with a path.
8617 if test ${acl_cv_path_LD+y}
8619 printf %s "(cached) " >&6
8622 acl_cv_path_LD= # Final result of this test
8623 ac_prog=ld # Program to search in $PATH
8624 if test "$GCC" = yes; then
8625 # Check if gcc -print-prog-name=ld gives a path.
8628 # gcc leaves a trailing carriage return which upsets mingw
8629 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8631 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8634 # Accept absolute paths.
8636 re_direlt='/[^/][^/]*/\.\./'
8637 # Canonicalize the pathname of ld
8638 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8639 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8640 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8642 # Got the pathname. No search in PATH is needed.
8643 acl_cv_path_LD="$acl_output"
8647 # If it fails, then pretend we aren't using GCC.
8650 # If it is relative, then search for the first ld in PATH.
8655 if test -n "$ac_prog"; then
8656 # Search for $ac_prog in $PATH.
8657 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8658 for ac_dir in $PATH; do
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8662 acl_cv_path_LD="$ac_dir/$ac_prog"
8663 # Check to see if the program is GNU ld. I'd rather use --version,
8664 # but apparently some variants of GNU ld only accept -v.
8665 # Break only if it was the GNU/non-GNU ld that we prefer.
8666 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8667 *GNU* | *'with BFD'*)
8668 test "$with_gnu_ld" != no && break
8671 test "$with_gnu_ld" != yes && break
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #if defined __powerpc64__ || defined __LP64__
8689 if ac_fn_c_try_compile "$LINENO"
8691 # The compiler produces 64-bit code. Add option '-b64' so that the
8692 # linker groks 64-bit object files.
8693 case "$acl_cv_path_LD " in
8695 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #if defined __sparcv9 || defined __arch64__
8711 if ac_fn_c_try_compile "$LINENO"
8715 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8716 # so that the linker groks 32-bit object files.
8717 case "$acl_cv_path_LD " in
8718 *" -m elf32_sparc "*) ;;
8719 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8729 LD="$acl_cv_path_LD"
8731 if test -n "$LD"; then
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8733 printf "%s\n" "$LD" >&6; }
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 printf "%s\n" "no" >&6; }
8737 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8740 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8741 if test ${acl_cv_prog_gnu_ld+y}
8743 printf %s "(cached) " >&6
8745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8746 case `$LD -v 2>&1 </dev/null` in
8747 *GNU* | *'with BFD'*)
8748 acl_cv_prog_gnu_ld=yes
8751 acl_cv_prog_gnu_ld=no
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8756 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8757 with_gnu_ld=$acl_cv_prog_gnu_ld
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8765 printf %s "checking for shared library run path origin... " >&6; }
8766 if test ${acl_cv_rpath+y}
8768 printf %s "(cached) " >&6
8771 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8772 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8779 printf "%s\n" "$acl_cv_rpath" >&6; }
8781 acl_libext="$acl_cv_libext"
8782 acl_shlibext="$acl_cv_shlibext"
8783 acl_libname_spec="$acl_cv_libname_spec"
8784 acl_library_names_spec="$acl_cv_library_names_spec"
8785 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8786 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8787 acl_hardcode_direct="$acl_cv_hardcode_direct"
8788 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8789 # Check whether --enable-rpath was given.
8790 if test ${enable_rpath+y}
8792 enableval=$enable_rpath; :
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8801 printf %s "checking 32-bit host C ABI... " >&6; }
8802 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8804 printf %s "(cached) " >&6
8806 if test -n "$gl_cv_host_cpu_c_abi"; then
8807 case "$gl_cv_host_cpu_c_abi" in
8808 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8809 gl_cv_host_cpu_c_abi_32bit=yes ;;
8810 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8811 gl_cv_host_cpu_c_abi_32bit=no ;;
8813 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8818 # CPUs that only support a 32-bit ABI.
8827 | microblaze | microblazeel \
8828 | nds32 | nds32le | nds32be \
8829 | nios2 | nios2eb | nios2el \
8832 | sh | sh1234 | sh1234elb \
8835 gl_cv_host_cpu_c_abi_32bit=yes
8838 # CPUs that only support a 64-bit ABI.
8839 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8841 gl_cv_host_cpu_c_abi_32bit=no
8845 gl_cv_host_cpu_c_abi_32bit=yes
8849 # On x86_64 systems, the C compiler may be generating code in one of
8851 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8852 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8853 # with native Windows (mingw, MSVC).
8854 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8855 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #if (defined __x86_64__ || defined __amd64__ \
8859 || defined _M_X64 || defined _M_AMD64) \
8860 && !(defined __ILP32__ || defined _ILP32)
8867 if ac_fn_c_try_compile "$LINENO"
8869 gl_cv_host_cpu_c_abi_32bit=no
8871 gl_cv_host_cpu_c_abi_32bit=yes
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8877 # Assume arm with EABI.
8878 # On arm64 systems, the C compiler may be generating code in one of
8880 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8881 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8882 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8892 if ac_fn_c_try_compile "$LINENO"
8894 gl_cv_host_cpu_c_abi_32bit=no
8896 gl_cv_host_cpu_c_abi_32bit=yes
8898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8901 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8902 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8903 # code. In the latter case, it defines _LP64 and __LP64__.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8913 if ac_fn_c_try_compile "$LINENO"
8915 gl_cv_host_cpu_c_abi_32bit=no
8917 gl_cv_host_cpu_c_abi_32bit=yes
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8923 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8924 # 32-bit code. In the latter case, it defines _ILP32.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8934 if ac_fn_c_try_compile "$LINENO"
8936 gl_cv_host_cpu_c_abi_32bit=yes
8938 gl_cv_host_cpu_c_abi_32bit=no
8940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8944 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8955 if ac_fn_c_try_compile "$LINENO"
8957 gl_cv_host_cpu_c_abi_32bit=no
8959 gl_cv_host_cpu_c_abi_32bit=yes
8961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8965 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8966 # No need to distinguish them here; the caller may distinguish
8967 # them based on the OS.
8968 # On powerpc64 systems, the C compiler may still be generating
8969 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8970 # be generating 64-bit code.
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #if defined __powerpc64__ || defined __LP64__
8980 if ac_fn_c_try_compile "$LINENO"
8982 gl_cv_host_cpu_c_abi_32bit=no
8984 gl_cv_host_cpu_c_abi_32bit=yes
8986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8990 gl_cv_host_cpu_c_abi_32bit=yes
8994 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8995 # Size of 'long' and 'void *':
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #if defined __LP64__
9005 if ac_fn_c_try_compile "$LINENO"
9007 gl_cv_host_cpu_c_abi_32bit=no
9009 gl_cv_host_cpu_c_abi_32bit=yes
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9015 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9016 # or 31-bit (= s390) code.
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 #if defined __LP64__ || defined __s390x__
9026 if ac_fn_c_try_compile "$LINENO"
9028 gl_cv_host_cpu_c_abi_32bit=no
9030 gl_cv_host_cpu_c_abi_32bit=yes
9032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9036 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9037 # C compiler still generates 32-bit code.
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 #if defined __sparcv9 || defined __arch64__
9047 if ac_fn_c_try_compile "$LINENO"
9049 gl_cv_host_cpu_c_abi_32bit=no
9051 gl_cv_host_cpu_c_abi_32bit=yes
9053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9057 gl_cv_host_cpu_c_abi_32bit=unknown
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9064 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9066 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9073 printf %s "checking for ELF binary format... " >&6; }
9074 if test ${gl_cv_elf+y}
9076 printf %s "(cached) " >&6
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
9081 Extensible Linking Format
9085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9086 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9097 printf "%s\n" "$gl_cv_elf" >&6; }
9098 if test $gl_cv_elf = yes; then
9099 # Extract the ELF class of a file (5th byte) in decimal.
9100 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9101 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9105 od -A n -t d1 -j 4 -N 1
9111 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9115 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
9116 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
9118 case $HOST_CPU_C_ABI_32BIT in
9121 acl_is_expected_elfclass ()
9123 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
9128 acl_is_expected_elfclass ()
9130 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
9135 acl_is_expected_elfclass ()
9142 acl_is_expected_elfclass ()
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9149 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9150 if test ${acl_cv_libdirstems+y}
9152 printf %s "(cached) " >&6
9159 if test $HOST_CPU_C_ABI_32BIT = no; then
9160 acl_libdirstem2=lib/64
9162 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9163 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9168 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9169 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9170 if test $HOST_CPU_C_ABI_32BIT != no; then
9171 # 32-bit or unknown ABI.
9172 if test -d /usr/lib32; then
9173 acl_libdirstem2=lib32
9176 if test $HOST_CPU_C_ABI_32BIT != yes; then
9177 # 64-bit or unknown ABI.
9178 if test -d /usr/lib64; then
9179 acl_libdirstem3=lib64
9182 if test -n "$searchpath"; then
9183 acl_save_IFS="${IFS= }"; IFS=":"
9184 for searchdir in $searchpath; do
9185 if test -d "$searchdir"; then
9186 case "$searchdir" in
9187 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9188 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9190 # Better ignore directories of this form. They are misleading.
9192 *) searchdir=`cd "$searchdir" && pwd`
9193 case "$searchdir" in
9194 */lib32 ) acl_libdirstem2=lib32 ;;
9195 */lib64 ) acl_libdirstem3=lib64 ;;
9201 if test $HOST_CPU_C_ABI_32BIT = yes; then
9205 if test $HOST_CPU_C_ABI_32BIT = no; then
9212 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9213 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9214 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9218 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9219 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9220 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9221 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9235 acl_save_prefix="$prefix"
9236 prefix="$acl_final_prefix"
9237 acl_save_exec_prefix="$exec_prefix"
9238 exec_prefix="$acl_final_exec_prefix"
9240 eval additional_includedir=\"$includedir\"
9241 eval additional_libdir=\"$libdir\"
9242 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9243 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9245 exec_prefix="$acl_save_exec_prefix"
9246 prefix="$acl_save_prefix"
9249 # Check whether --with-libiconv-prefix was given.
9250 if test ${with_libiconv_prefix+y}
9252 withval=$with_libiconv_prefix;
9253 if test "X$withval" = "Xno"; then
9256 if test "X$withval" = "X"; then
9258 acl_save_prefix="$prefix"
9259 prefix="$acl_final_prefix"
9260 acl_save_exec_prefix="$exec_prefix"
9261 exec_prefix="$acl_final_exec_prefix"
9263 eval additional_includedir=\"$includedir\"
9264 eval additional_libdir=\"$libdir\"
9265 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9266 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9268 exec_prefix="$acl_save_exec_prefix"
9269 prefix="$acl_save_prefix"
9272 additional_includedir="$withval/include"
9273 additional_libdir="$withval/$acl_libdirstem"
9274 additional_libdir2="$withval/$acl_libdirstem2"
9275 additional_libdir3="$withval/$acl_libdirstem3"
9281 if test "X$additional_libdir2" = "X$additional_libdir"; then
9284 if test "X$additional_libdir3" = "X$additional_libdir"; then
9294 names_already_handled=
9295 names_next_round='iconv '
9296 while test -n "$names_next_round"; do
9297 names_this_round="$names_next_round"
9299 for name in $names_this_round; do
9301 for n in $names_already_handled; do
9302 if test "$n" = "$name"; then
9307 if test -z "$already_handled"; then
9308 names_already_handled="$names_already_handled $name"
9309 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9310 eval value=\"\$HAVE_LIB$uppername\"
9311 if test -n "$value"; then
9312 if test "$value" = yes; then
9313 eval value=\"\$LIB$uppername\"
9314 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9315 eval value=\"\$LTLIB$uppername\"
9316 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9325 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9326 if test -n "$acl_shlibext"; then
9327 shrext=".$acl_shlibext" # typically: shrext=.so
9331 if test $use_additional = yes; then
9332 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9333 if test "X$found_dir" = "X"; then
9334 eval dir=\$$additional_libdir_variable
9335 if test -n "$dir"; then
9336 if test -n "$acl_shlibext"; then
9337 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9339 found_so="$dir/$libname$shrext"
9341 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9342 ver=`(cd "$dir" && \
9343 for f in "$libname$shrext".*; do echo "$f"; done \
9344 | sed -e "s,^$libname$shrext\\\\.,," \
9345 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9346 | sed 1q ) 2>/dev/null`
9347 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9349 found_so="$dir/$libname$shrext.$ver"
9352 eval library_names=\"$acl_library_names_spec\"
9353 for f in $library_names; do
9354 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9363 if test "X$found_dir" = "X"; then
9364 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9366 found_a="$dir/$libname.$acl_libext"
9369 if test "X$found_dir" != "X"; then
9370 if test -f "$dir/$libname.la"; then
9371 found_la="$dir/$libname.la"
9378 if test "X$found_dir" = "X"; then
9379 for x in $LDFLAGS $LTLIBICONV; do
9381 acl_save_prefix="$prefix"
9382 prefix="$acl_final_prefix"
9383 acl_save_exec_prefix="$exec_prefix"
9384 exec_prefix="$acl_final_exec_prefix"
9386 exec_prefix="$acl_save_exec_prefix"
9387 prefix="$acl_save_prefix"
9391 dir=`echo "X$x" | sed -e 's/^X-L//'`
9392 if test -n "$acl_shlibext"; then
9393 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9395 found_so="$dir/$libname$shrext"
9397 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9398 ver=`(cd "$dir" && \
9399 for f in "$libname$shrext".*; do echo "$f"; done \
9400 | sed -e "s,^$libname$shrext\\\\.,," \
9401 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9402 | sed 1q ) 2>/dev/null`
9403 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9405 found_so="$dir/$libname$shrext.$ver"
9408 eval library_names=\"$acl_library_names_spec\"
9409 for f in $library_names; do
9410 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9419 if test "X$found_dir" = "X"; then
9420 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9422 found_a="$dir/$libname.$acl_libext"
9425 if test "X$found_dir" != "X"; then
9426 if test -f "$dir/$libname.la"; then
9427 found_la="$dir/$libname.la"
9432 if test "X$found_dir" != "X"; then
9437 if test "X$found_dir" != "X"; then
9438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9439 if test "X$found_so" != "X"; then
9440 if test "$enable_rpath" = no \
9441 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9442 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9443 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9447 for x in $ltrpathdirs; do
9448 if test "X$x" = "X$found_dir"; then
9453 if test -z "$haveit"; then
9454 ltrpathdirs="$ltrpathdirs $found_dir"
9456 if test "$acl_hardcode_direct" = yes; then
9457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9459 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9462 for x in $rpathdirs; do
9463 if test "X$x" = "X$found_dir"; then
9468 if test -z "$haveit"; then
9469 rpathdirs="$rpathdirs $found_dir"
9473 for x in $LDFLAGS $LIBICONV; do
9475 acl_save_prefix="$prefix"
9476 prefix="$acl_final_prefix"
9477 acl_save_exec_prefix="$exec_prefix"
9478 exec_prefix="$acl_final_exec_prefix"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9483 if test "X$x" = "X-L$found_dir"; then
9488 if test -z "$haveit"; then
9489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9491 if test "$acl_hardcode_minus_L" != no; then
9492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9494 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9500 if test "X$found_a" != "X"; then
9501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9503 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9506 additional_includedir=
9507 case "$found_dir" in
9508 */$acl_libdirstem | */$acl_libdirstem/)
9509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9510 if test "$name" = 'iconv'; then
9511 LIBICONV_PREFIX="$basedir"
9513 additional_includedir="$basedir/include"
9515 */$acl_libdirstem2 | */$acl_libdirstem2/)
9516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9517 if test "$name" = 'iconv'; then
9518 LIBICONV_PREFIX="$basedir"
9520 additional_includedir="$basedir/include"
9522 */$acl_libdirstem3 | */$acl_libdirstem3/)
9523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9524 if test "$name" = 'iconv'; then
9525 LIBICONV_PREFIX="$basedir"
9527 additional_includedir="$basedir/include"
9530 if test "X$additional_includedir" != "X"; then
9531 if test "X$additional_includedir" != "X/usr/include"; then
9533 if test "X$additional_includedir" = "X/usr/local/include"; then
9534 if test -n "$GCC"; then
9536 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9540 if test -z "$haveit"; then
9541 for x in $CPPFLAGS $INCICONV; do
9543 acl_save_prefix="$prefix"
9544 prefix="$acl_final_prefix"
9545 acl_save_exec_prefix="$exec_prefix"
9546 exec_prefix="$acl_final_exec_prefix"
9548 exec_prefix="$acl_save_exec_prefix"
9549 prefix="$acl_save_prefix"
9551 if test "X$x" = "X-I$additional_includedir"; then
9556 if test -z "$haveit"; then
9557 if test -d "$additional_includedir"; then
9558 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9564 if test -n "$found_la"; then
9565 save_libdir="$libdir"
9567 */* | *\\*) . "$found_la" ;;
9568 *) . "./$found_la" ;;
9570 libdir="$save_libdir"
9571 for dep in $dependency_libs; do
9574 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9575 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9576 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9577 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9579 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9580 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9581 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9582 if test -n "$GCC"; then
9584 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9588 if test -z "$haveit"; then
9590 for x in $LDFLAGS $LIBICONV; do
9592 acl_save_prefix="$prefix"
9593 prefix="$acl_final_prefix"
9594 acl_save_exec_prefix="$exec_prefix"
9595 exec_prefix="$acl_final_exec_prefix"
9597 exec_prefix="$acl_save_exec_prefix"
9598 prefix="$acl_save_prefix"
9600 if test "X$x" = "X-L$dependency_libdir"; then
9605 if test -z "$haveit"; then
9606 if test -d "$dependency_libdir"; then
9607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9611 for x in $LDFLAGS $LTLIBICONV; do
9613 acl_save_prefix="$prefix"
9614 prefix="$acl_final_prefix"
9615 acl_save_exec_prefix="$exec_prefix"
9616 exec_prefix="$acl_final_exec_prefix"
9618 exec_prefix="$acl_save_exec_prefix"
9619 prefix="$acl_save_prefix"
9621 if test "X$x" = "X-L$dependency_libdir"; then
9626 if test -z "$haveit"; then
9627 if test -d "$dependency_libdir"; then
9628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9635 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9636 if test "$enable_rpath" != no; then
9638 for x in $rpathdirs; do
9639 if test "X$x" = "X$dir"; then
9644 if test -z "$haveit"; then
9645 rpathdirs="$rpathdirs $dir"
9648 for x in $ltrpathdirs; do
9649 if test "X$x" = "X$dir"; then
9654 if test -z "$haveit"; then
9655 ltrpathdirs="$ltrpathdirs $dir"
9660 dep=`echo "X$dep" | sed -e 's/^X-l//'`
9661 if test "X$dep" != Xc \
9663 linux* | gnu* | k*bsd*-gnu) false ;;
9666 names_next_round="$names_next_round $dep"
9670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9673 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9687 if test "X$rpathdirs" != "X"; then
9688 if test -n "$acl_hardcode_libdir_separator"; then
9690 for found_dir in $rpathdirs; do
9691 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9693 acl_save_libdir="$libdir"
9695 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9696 libdir="$acl_save_libdir"
9697 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9699 for found_dir in $rpathdirs; do
9700 acl_save_libdir="$libdir"
9702 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9703 libdir="$acl_save_libdir"
9704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9708 if test "X$ltrpathdirs" != "X"; then
9709 for found_dir in $ltrpathdirs; do
9710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9743 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9744 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9746 printf %s "(cached) " >&6
9748 gt_save_LIBS="$LIBS"
9749 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <CoreFoundation/CFPreferences.h>
9756 CFPreferencesCopyAppValue(NULL, NULL)
9761 if ac_fn_c_try_link "$LINENO"
9763 gt_cv_func_CFPreferencesCopyAppValue=yes
9765 gt_cv_func_CFPreferencesCopyAppValue=no
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS="$gt_save_LIBS"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9772 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9775 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9779 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9780 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9782 printf %s "(cached) " >&6
9784 gt_save_LIBS="$LIBS"
9785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 #include <CoreFoundation/CFLocale.h>
9792 CFLocaleCopyPreferredLanguages();
9797 if ac_fn_c_try_link "$LINENO"
9799 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9801 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS="$gt_save_LIBS"
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9808 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9809 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9811 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9815 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9816 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9817 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9829 case " $gt_needs " in
9830 *" need-formatstring-macros "*) gt_api_version=3 ;;
9831 *" need-ngettext "*) gt_api_version=2 ;;
9832 *) gt_api_version=1 ;;
9834 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9835 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9837 if test "$USE_NLS" = "yes"; then
9838 gt_use_preinstalled_gnugettext=no
9841 if test $gt_api_version -ge 3; then
9842 gt_revision_test_code='
9843 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9844 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9846 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9849 gt_revision_test_code=
9851 if test $gt_api_version -ge 2; then
9852 gt_expression_test_code=' + * ngettext ("", "", 0)'
9854 gt_expression_test_code=
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9858 printf %s "checking for GNU gettext in libc... " >&6; }
9859 if eval test \${$gt_func_gnugettext_libc+y}
9861 printf %s "(cached) " >&6
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 #include <libintl.h>
9867 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9868 extern int _nl_msg_cat_cntr;
9869 extern int *_nl_domain_bindings;
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9872 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9874 $gt_revision_test_code
9880 bindtextdomain ("", "");
9881 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9887 if ac_fn_c_try_link "$LINENO"
9889 eval "$gt_func_gnugettext_libc=yes"
9891 eval "$gt_func_gnugettext_libc=no"
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9894 conftest$ac_exeext conftest.$ac_ext
9896 eval ac_res=\$$gt_func_gnugettext_libc
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9898 printf "%s\n" "$ac_res" >&6; }
9900 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9906 am_save_CPPFLAGS="$CPPFLAGS"
9908 for element in $INCICONV; do
9910 for x in $CPPFLAGS; do
9912 acl_save_prefix="$prefix"
9913 prefix="$acl_final_prefix"
9914 acl_save_exec_prefix="$exec_prefix"
9915 exec_prefix="$acl_final_exec_prefix"
9917 exec_prefix="$acl_save_exec_prefix"
9918 prefix="$acl_save_prefix"
9920 if test "X$x" = "X$element"; then
9925 if test -z "$haveit"; then
9926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9932 printf %s "checking for iconv... " >&6; }
9933 if test ${am_cv_func_iconv+y}
9935 printf %s "(cached) " >&6
9938 am_cv_func_iconv="no, consider installing GNU libiconv"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9949 iconv_t cd = iconv_open("","");
9950 iconv(cd,NULL,NULL,NULL,NULL);
9956 if ac_fn_c_try_link "$LINENO"
9958 am_cv_func_iconv=yes
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$am_cv_func_iconv" != yes; then
9963 am_save_LIBS="$LIBS"
9964 LIBS="$LIBS $LIBICONV"
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9974 iconv_t cd = iconv_open("","");
9975 iconv(cd,NULL,NULL,NULL,NULL);
9981 if ac_fn_c_try_link "$LINENO"
9984 am_cv_func_iconv=yes
9986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS="$am_save_LIBS"
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9993 printf "%s\n" "$am_cv_func_iconv" >&6; }
9994 if test "$am_cv_func_iconv" = yes; then
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9996 printf %s "checking for working iconv... " >&6; }
9997 if test ${am_cv_func_iconv_works+y}
9999 printf %s "(cached) " >&6
10002 am_save_LIBS="$LIBS"
10003 if test $am_cv_lib_iconv = yes; then
10004 LIBS="$LIBS $LIBICONV"
10006 am_cv_func_iconv_works=no
10007 for ac_iconv_const in '' 'const'; do
10008 if test "$cross_compiling" = yes
10011 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10012 *) am_cv_func_iconv_works="guessing yes" ;;
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10019 #include <string.h>
10021 #ifndef ICONV_CONST
10022 # define ICONV_CONST $ac_iconv_const
10029 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
10030 successful returns. This is even documented in
10031 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
10033 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10034 if (cd_utf8_to_88591 != (iconv_t)(-1))
10036 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10038 ICONV_CONST char *inptr = input;
10039 size_t inbytesleft = strlen (input);
10040 char *outptr = buf;
10041 size_t outbytesleft = sizeof (buf);
10042 size_t res = iconv (cd_utf8_to_88591,
10043 &inptr, &inbytesleft,
10044 &outptr, &outbytesleft);
10047 iconv_close (cd_utf8_to_88591);
10050 /* Test against Solaris 10 bug: Failures are not distinguishable from
10051 successful returns. */
10053 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10054 if (cd_ascii_to_88591 != (iconv_t)(-1))
10056 static ICONV_CONST char input[] = "\263";
10058 ICONV_CONST char *inptr = input;
10059 size_t inbytesleft = strlen (input);
10060 char *outptr = buf;
10061 size_t outbytesleft = sizeof (buf);
10062 size_t res = iconv (cd_ascii_to_88591,
10063 &inptr, &inbytesleft,
10064 &outptr, &outbytesleft);
10067 iconv_close (cd_ascii_to_88591);
10070 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10072 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10073 if (cd_88591_to_utf8 != (iconv_t)(-1))
10075 static ICONV_CONST char input[] = "\304";
10076 static char buf[2] = { (char)0xDE, (char)0xAD };
10077 ICONV_CONST char *inptr = input;
10078 size_t inbytesleft = 1;
10079 char *outptr = buf;
10080 size_t outbytesleft = 1;
10081 size_t res = iconv (cd_88591_to_utf8,
10082 &inptr, &inbytesleft,
10083 &outptr, &outbytesleft);
10084 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10086 iconv_close (cd_88591_to_utf8);
10089 #if 0 /* This bug could be worked around by the caller. */
10090 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10092 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10093 if (cd_88591_to_utf8 != (iconv_t)(-1))
10095 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10097 ICONV_CONST char *inptr = input;
10098 size_t inbytesleft = strlen (input);
10099 char *outptr = buf;
10100 size_t outbytesleft = sizeof (buf);
10101 size_t res = iconv (cd_88591_to_utf8,
10102 &inptr, &inbytesleft,
10103 &outptr, &outbytesleft);
10106 iconv_close (cd_88591_to_utf8);
10110 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10113 /* Try standardized names. */
10114 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10115 /* Try IRIX, OSF/1 names. */
10116 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10117 /* Try AIX names. */
10118 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10119 /* Try HP-UX names. */
10120 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10121 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10122 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10124 if (cd1 != (iconv_t)(-1))
10126 if (cd2 != (iconv_t)(-1))
10128 if (cd3 != (iconv_t)(-1))
10130 if (cd4 != (iconv_t)(-1))
10139 if ac_fn_c_try_run "$LINENO"
10141 am_cv_func_iconv_works=yes
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10144 conftest.$ac_objext conftest.beam conftest.$ac_ext
10147 test "$am_cv_func_iconv_works" = no || break
10149 LIBS="$am_save_LIBS"
10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10153 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10154 case "$am_cv_func_iconv_works" in
10155 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10156 *) am_func_iconv=yes ;;
10159 am_func_iconv=no am_cv_lib_iconv=no
10161 if test "$am_func_iconv" = yes; then
10163 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10166 if test "$am_cv_lib_iconv" = yes; then
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10168 printf %s "checking how to link with libiconv... " >&6; }
10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10170 printf "%s\n" "$LIBICONV" >&6; }
10172 CPPFLAGS="$am_save_CPPFLAGS"
10188 acl_save_prefix="$prefix"
10189 prefix="$acl_final_prefix"
10190 acl_save_exec_prefix="$exec_prefix"
10191 exec_prefix="$acl_final_exec_prefix"
10193 eval additional_includedir=\"$includedir\"
10194 eval additional_libdir=\"$libdir\"
10195 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10196 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10198 exec_prefix="$acl_save_exec_prefix"
10199 prefix="$acl_save_prefix"
10202 # Check whether --with-libintl-prefix was given.
10203 if test ${with_libintl_prefix+y}
10205 withval=$with_libintl_prefix;
10206 if test "X$withval" = "Xno"; then
10209 if test "X$withval" = "X"; then
10211 acl_save_prefix="$prefix"
10212 prefix="$acl_final_prefix"
10213 acl_save_exec_prefix="$exec_prefix"
10214 exec_prefix="$acl_final_exec_prefix"
10216 eval additional_includedir=\"$includedir\"
10217 eval additional_libdir=\"$libdir\"
10218 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10219 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10225 additional_includedir="$withval/include"
10226 additional_libdir="$withval/$acl_libdirstem"
10227 additional_libdir2="$withval/$acl_libdirstem2"
10228 additional_libdir3="$withval/$acl_libdirstem3"
10234 if test "X$additional_libdir2" = "X$additional_libdir"; then
10235 additional_libdir2=
10237 if test "X$additional_libdir3" = "X$additional_libdir"; then
10238 additional_libdir3=
10247 names_already_handled=
10248 names_next_round='intl '
10249 while test -n "$names_next_round"; do
10250 names_this_round="$names_next_round"
10252 for name in $names_this_round; do
10254 for n in $names_already_handled; do
10255 if test "$n" = "$name"; then
10256 already_handled=yes
10260 if test -z "$already_handled"; then
10261 names_already_handled="$names_already_handled $name"
10262 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10263 eval value=\"\$HAVE_LIB$uppername\"
10264 if test -n "$value"; then
10265 if test "$value" = yes; then
10266 eval value=\"\$LIB$uppername\"
10267 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10268 eval value=\"\$LTLIB$uppername\"
10269 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10278 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10279 if test -n "$acl_shlibext"; then
10280 shrext=".$acl_shlibext" # typically: shrext=.so
10284 if test $use_additional = yes; then
10285 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10286 if test "X$found_dir" = "X"; then
10287 eval dir=\$$additional_libdir_variable
10288 if test -n "$dir"; then
10289 if test -n "$acl_shlibext"; then
10290 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10292 found_so="$dir/$libname$shrext"
10294 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10295 ver=`(cd "$dir" && \
10296 for f in "$libname$shrext".*; do echo "$f"; done \
10297 | sed -e "s,^$libname$shrext\\\\.,," \
10298 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10299 | sed 1q ) 2>/dev/null`
10300 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10302 found_so="$dir/$libname$shrext.$ver"
10305 eval library_names=\"$acl_library_names_spec\"
10306 for f in $library_names; do
10307 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10316 if test "X$found_dir" = "X"; then
10317 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10319 found_a="$dir/$libname.$acl_libext"
10322 if test "X$found_dir" != "X"; then
10323 if test -f "$dir/$libname.la"; then
10324 found_la="$dir/$libname.la"
10331 if test "X$found_dir" = "X"; then
10332 for x in $LDFLAGS $LTLIBINTL; do
10334 acl_save_prefix="$prefix"
10335 prefix="$acl_final_prefix"
10336 acl_save_exec_prefix="$exec_prefix"
10337 exec_prefix="$acl_final_exec_prefix"
10339 exec_prefix="$acl_save_exec_prefix"
10340 prefix="$acl_save_prefix"
10344 dir=`echo "X$x" | sed -e 's/^X-L//'`
10345 if test -n "$acl_shlibext"; then
10346 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10348 found_so="$dir/$libname$shrext"
10350 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10351 ver=`(cd "$dir" && \
10352 for f in "$libname$shrext".*; do echo "$f"; done \
10353 | sed -e "s,^$libname$shrext\\\\.,," \
10354 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10355 | sed 1q ) 2>/dev/null`
10356 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10358 found_so="$dir/$libname$shrext.$ver"
10361 eval library_names=\"$acl_library_names_spec\"
10362 for f in $library_names; do
10363 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10372 if test "X$found_dir" = "X"; then
10373 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10375 found_a="$dir/$libname.$acl_libext"
10378 if test "X$found_dir" != "X"; then
10379 if test -f "$dir/$libname.la"; then
10380 found_la="$dir/$libname.la"
10385 if test "X$found_dir" != "X"; then
10390 if test "X$found_dir" != "X"; then
10391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10392 if test "X$found_so" != "X"; then
10393 if test "$enable_rpath" = no \
10394 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10395 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10396 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10400 for x in $ltrpathdirs; do
10401 if test "X$x" = "X$found_dir"; then
10406 if test -z "$haveit"; then
10407 ltrpathdirs="$ltrpathdirs $found_dir"
10409 if test "$acl_hardcode_direct" = yes; then
10410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10412 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10415 for x in $rpathdirs; do
10416 if test "X$x" = "X$found_dir"; then
10421 if test -z "$haveit"; then
10422 rpathdirs="$rpathdirs $found_dir"
10426 for x in $LDFLAGS $LIBINTL; do
10428 acl_save_prefix="$prefix"
10429 prefix="$acl_final_prefix"
10430 acl_save_exec_prefix="$exec_prefix"
10431 exec_prefix="$acl_final_exec_prefix"
10433 exec_prefix="$acl_save_exec_prefix"
10434 prefix="$acl_save_prefix"
10436 if test "X$x" = "X-L$found_dir"; then
10441 if test -z "$haveit"; then
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10444 if test "$acl_hardcode_minus_L" != no; then
10445 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10453 if test "X$found_a" != "X"; then
10454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10456 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10459 additional_includedir=
10460 case "$found_dir" in
10461 */$acl_libdirstem | */$acl_libdirstem/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10463 if test "$name" = 'intl'; then
10464 LIBINTL_PREFIX="$basedir"
10466 additional_includedir="$basedir/include"
10468 */$acl_libdirstem2 | */$acl_libdirstem2/)
10469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10470 if test "$name" = 'intl'; then
10471 LIBINTL_PREFIX="$basedir"
10473 additional_includedir="$basedir/include"
10475 */$acl_libdirstem3 | */$acl_libdirstem3/)
10476 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10477 if test "$name" = 'intl'; then
10478 LIBINTL_PREFIX="$basedir"
10480 additional_includedir="$basedir/include"
10483 if test "X$additional_includedir" != "X"; then
10484 if test "X$additional_includedir" != "X/usr/include"; then
10486 if test "X$additional_includedir" = "X/usr/local/include"; then
10487 if test -n "$GCC"; then
10489 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10493 if test -z "$haveit"; then
10494 for x in $CPPFLAGS $INCINTL; do
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10504 if test "X$x" = "X-I$additional_includedir"; then
10509 if test -z "$haveit"; then
10510 if test -d "$additional_includedir"; then
10511 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10517 if test -n "$found_la"; then
10518 save_libdir="$libdir"
10519 case "$found_la" in
10520 */* | *\\*) . "$found_la" ;;
10521 *) . "./$found_la" ;;
10523 libdir="$save_libdir"
10524 for dep in $dependency_libs; do
10527 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10528 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10529 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10530 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10532 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10533 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10534 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10535 if test -n "$GCC"; then
10537 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10541 if test -z "$haveit"; then
10543 for x in $LDFLAGS $LIBINTL; do
10545 acl_save_prefix="$prefix"
10546 prefix="$acl_final_prefix"
10547 acl_save_exec_prefix="$exec_prefix"
10548 exec_prefix="$acl_final_exec_prefix"
10550 exec_prefix="$acl_save_exec_prefix"
10551 prefix="$acl_save_prefix"
10553 if test "X$x" = "X-L$dependency_libdir"; then
10558 if test -z "$haveit"; then
10559 if test -d "$dependency_libdir"; then
10560 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10564 for x in $LDFLAGS $LTLIBINTL; do
10566 acl_save_prefix="$prefix"
10567 prefix="$acl_final_prefix"
10568 acl_save_exec_prefix="$exec_prefix"
10569 exec_prefix="$acl_final_exec_prefix"
10571 exec_prefix="$acl_save_exec_prefix"
10572 prefix="$acl_save_prefix"
10574 if test "X$x" = "X-L$dependency_libdir"; then
10579 if test -z "$haveit"; then
10580 if test -d "$dependency_libdir"; then
10581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10588 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10589 if test "$enable_rpath" != no; then
10591 for x in $rpathdirs; do
10592 if test "X$x" = "X$dir"; then
10597 if test -z "$haveit"; then
10598 rpathdirs="$rpathdirs $dir"
10601 for x in $ltrpathdirs; do
10602 if test "X$x" = "X$dir"; then
10607 if test -z "$haveit"; then
10608 ltrpathdirs="$ltrpathdirs $dir"
10613 dep=`echo "X$dep" | sed -e 's/^X-l//'`
10614 if test "X$dep" != Xc \
10615 || case $host_os in
10616 linux* | gnu* | k*bsd*-gnu) false ;;
10619 names_next_round="$names_next_round $dep"
10623 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10626 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10633 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10634 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10640 if test "X$rpathdirs" != "X"; then
10641 if test -n "$acl_hardcode_libdir_separator"; then
10643 for found_dir in $rpathdirs; do
10644 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10646 acl_save_libdir="$libdir"
10648 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10649 libdir="$acl_save_libdir"
10650 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10652 for found_dir in $rpathdirs; do
10653 acl_save_libdir="$libdir"
10654 libdir="$found_dir"
10655 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10656 libdir="$acl_save_libdir"
10657 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10661 if test "X$ltrpathdirs" != "X"; then
10662 for found_dir in $ltrpathdirs; do
10663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10672 printf %s "checking for GNU gettext in libintl... " >&6; }
10673 if eval test \${$gt_func_gnugettext_libintl+y}
10675 printf %s "(cached) " >&6
10677 gt_save_CPPFLAGS="$CPPFLAGS"
10678 CPPFLAGS="$CPPFLAGS $INCINTL"
10679 gt_save_LIBS="$LIBS"
10680 LIBS="$LIBS $LIBINTL"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 #include <libintl.h>
10685 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10686 extern int _nl_msg_cat_cntr;
10691 const char *_nl_expand_alias (const char *);
10692 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10694 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10696 $gt_revision_test_code
10702 bindtextdomain ("", "");
10703 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10709 if ac_fn_c_try_link "$LINENO"
10711 eval "$gt_func_gnugettext_libintl=yes"
10713 eval "$gt_func_gnugettext_libintl=no"
10715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10716 conftest$ac_exeext conftest.$ac_ext
10717 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10718 LIBS="$LIBS $LIBICONV"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 #include <libintl.h>
10723 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10724 extern int _nl_msg_cat_cntr;
10729 const char *_nl_expand_alias (const char *);
10730 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10732 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10734 $gt_revision_test_code
10740 bindtextdomain ("", "");
10741 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10747 if ac_fn_c_try_link "$LINENO"
10749 LIBINTL="$LIBINTL $LIBICONV"
10750 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10751 eval "$gt_func_gnugettext_libintl=yes"
10754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10755 conftest$ac_exeext conftest.$ac_ext
10757 CPPFLAGS="$gt_save_CPPFLAGS"
10758 LIBS="$gt_save_LIBS"
10760 eval ac_res=\$$gt_func_gnugettext_libintl
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10762 printf "%s\n" "$ac_res" >&6; }
10765 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10766 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10767 && test "$PACKAGE" != gettext-runtime \
10768 && test "$PACKAGE" != gettext-tools; }; then
10769 gt_use_preinstalled_gnugettext=yes
10778 if test -n "$INTL_MACOSX_LIBS"; then
10779 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10780 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10781 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10782 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10786 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10787 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10789 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10797 printf %s "checking whether to use NLS... " >&6; }
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10799 printf "%s\n" "$USE_NLS" >&6; }
10800 if test "$USE_NLS" = "yes"; then
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10802 printf %s "checking where the gettext function comes from... " >&6; }
10803 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10804 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10805 gt_source="external libintl"
10810 gt_source="included intl directory"
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10813 printf "%s\n" "$gt_source" >&6; }
10816 if test "$USE_NLS" = "yes"; then
10818 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10819 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10821 printf %s "checking how to link with libintl... " >&6; }
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10823 printf "%s\n" "$LIBINTL" >&6; }
10825 for element in $INCINTL; do
10827 for x in $CPPFLAGS; do
10829 acl_save_prefix="$prefix"
10830 prefix="$acl_final_prefix"
10831 acl_save_exec_prefix="$exec_prefix"
10832 exec_prefix="$acl_final_exec_prefix"
10834 exec_prefix="$acl_save_exec_prefix"
10835 prefix="$acl_save_prefix"
10837 if test "X$x" = "X$element"; then
10842 if test -z "$haveit"; then
10843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10850 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10853 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10862 INTLLIBS="$LIBINTL"
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10871 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10873 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10874 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10876 printf %s "(cached) " >&6
10878 cat >conftest.make <<\_ACEOF
10881 @echo '@@@%%%=$(MAKE)=@@@%%%'
10883 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10884 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10885 *@@@%%%=?*=@@@%%%*)
10886 eval ac_cv_prog_make_${ac_make}_set=yes;;
10888 eval ac_cv_prog_make_${ac_make}_set=no;;
10890 rm -f conftest.make
10892 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10894 printf "%s\n" "yes" >&6; }
10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 printf "%s\n" "no" >&6; }
10899 SET_MAKE="MAKE=${MAKE-make}"
10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10903 printf %s "checking for GNU make... " >&6; }
10904 if test ${_cv_gnu_make_command+y}
10906 printf %s "(cached) " >&6
10908 _cv_gnu_make_command='' ;
10909 if test -n "$FORCE_NATIVE_MAKE" ; then
10912 MAKES="make gmake gnumake"
10914 for a in "$MAKE" $MAKES ; do
10915 if test -z "$a" ; then continue ; fi ;
10916 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10917 _cv_gnu_make_command=$a ;
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10924 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10925 if test "x$_cv_gnu_make_command" != "x" ; then
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10932 printf "%s\n" "\"Not found\"" >&6; };
10937 # Extract the first word of "ln", so it can be a program name with args.
10938 set dummy ln; ac_word=$2
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 printf %s "checking for $ac_word... " >&6; }
10941 if test ${ac_cv_path_LN+y}
10943 printf %s "(cached) " >&6
10947 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10954 case $as_dir in #(((
10957 *) as_dir=$as_dir/ ;;
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10961 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10969 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10974 if test -n "$LN"; then
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10976 printf "%s\n" "$LN" >&6; }
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 printf "%s\n" "no" >&6; }
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10987 printf %s "checking whether ln -s works... " >&6; }
10989 if test "$LN_S" = "ln -s"; then
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10991 printf "%s\n" "yes" >&6; }
10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10994 printf "%s\n" "no, using $LN_S" >&6; }
10997 # Extract the first word of "mv", so it can be a program name with args.
10998 set dummy mv; ac_word=$2
10999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000 printf %s "checking for $ac_word... " >&6; }
11001 if test ${ac_cv_path_MV+y}
11003 printf %s "(cached) " >&6
11007 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11014 case $as_dir in #(((
11017 *) as_dir=$as_dir/ ;;
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11021 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11029 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11034 if test -n "$MV"; then
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11036 printf "%s\n" "$MV" >&6; }
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 printf "%s\n" "no" >&6; }
11043 # Extract the first word of "cp", so it can be a program name with args.
11044 set dummy cp; ac_word=$2
11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 printf %s "checking for $ac_word... " >&6; }
11047 if test ${ac_cv_path_CP+y}
11049 printf %s "(cached) " >&6
11053 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11060 case $as_dir in #(((
11063 *) as_dir=$as_dir/ ;;
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11067 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11075 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11080 if test -n "$CP"; then
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11082 printf "%s\n" "$CP" >&6; }
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 printf "%s\n" "no" >&6; }
11089 # Extract the first word of "rm", so it can be a program name with args.
11090 set dummy rm; ac_word=$2
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 printf %s "checking for $ac_word... " >&6; }
11093 if test ${ac_cv_path_RM+y}
11095 printf %s "(cached) " >&6
11099 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11106 case $as_dir in #(((
11109 *) as_dir=$as_dir/ ;;
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11113 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11121 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11126 if test -n "$RM"; then
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11128 printf "%s\n" "$RM" >&6; }
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 printf "%s\n" "no" >&6; }
11135 # Extract the first word of "chmod", so it can be a program name with args.
11136 set dummy chmod; ac_word=$2
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 printf %s "checking for $ac_word... " >&6; }
11139 if test ${ac_cv_path_CHMOD+y}
11141 printf %s "(cached) " >&6
11145 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11152 case $as_dir in #(((
11155 *) as_dir=$as_dir/ ;;
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11159 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11167 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11171 CHMOD=$ac_cv_path_CHMOD
11172 if test -n "$CHMOD"; then
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11174 printf "%s\n" "$CHMOD" >&6; }
11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 printf "%s\n" "no" >&6; }
11181 for ac_prog in gawk mawk nawk awk
11183 # Extract the first word of "$ac_prog", so it can be a program name with args.
11184 set dummy $ac_prog; ac_word=$2
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 printf %s "checking for $ac_word... " >&6; }
11187 if test ${ac_cv_prog_AWK+y}
11189 printf %s "(cached) " >&6
11191 if test -n "$AWK"; then
11192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 case $as_dir in #(((
11201 *) as_dir=$as_dir/ ;;
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11205 ac_cv_prog_AWK="$ac_prog"
11206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11215 AWK=$ac_cv_prog_AWK
11216 if test -n "$AWK"; then
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11218 printf "%s\n" "$AWK" >&6; }
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 printf "%s\n" "no" >&6; }
11225 test -n "$AWK" && break
11228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11229 printf %s "checking for egrep... " >&6; }
11230 if test ${ac_cv_path_EGREP+y}
11232 printf %s "(cached) " >&6
11234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11235 then ac_cv_path_EGREP="$GREP -E"
11237 if test -z "$EGREP"; then
11238 ac_path_EGREP_found=false
11239 # Loop through the user's path and test for each of PROGNAME-LIST
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11244 case $as_dir in #(((
11247 *) as_dir=$as_dir/ ;;
11249 for ac_prog in egrep
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11253 as_fn_executable_p "$ac_path_EGREP" || continue
11254 # Check for GNU ac_path_EGREP and select it if it is found.
11255 # Check for GNU $ac_path_EGREP
11256 case `"$ac_path_EGREP" --version 2>&1` in
11258 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11261 printf %s 0123456789 >"conftest.in"
11264 cat "conftest.in" "conftest.in" >"conftest.tmp"
11265 mv "conftest.tmp" "conftest.in"
11266 cp "conftest.in" "conftest.nl"
11267 printf "%s\n" 'EGREP' >> "conftest.nl"
11268 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11270 as_fn_arith $ac_count + 1 && ac_count=$as_val
11271 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11272 # Best one so far, save it but keep looking for a better one
11273 ac_cv_path_EGREP="$ac_path_EGREP"
11274 ac_path_EGREP_max=$ac_count
11276 # 10*(2^10) chars as input seems more than enough
11277 test $ac_count -gt 10 && break
11279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11282 $ac_path_EGREP_found && break 3
11287 if test -z "$ac_cv_path_EGREP"; then
11288 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11291 ac_cv_path_EGREP=$EGREP
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11297 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11298 EGREP="$ac_cv_path_EGREP"
11301 # Extract the first word of "sed", so it can be a program name with args.
11302 set dummy sed; ac_word=$2
11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 printf %s "checking for $ac_word... " >&6; }
11305 if test ${ac_cv_path_SED+y}
11307 printf %s "(cached) " >&6
11311 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11318 case $as_dir in #(((
11321 *) as_dir=$as_dir/ ;;
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11325 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11333 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11337 SED=$ac_cv_path_SED
11338 if test -n "$SED"; then
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11340 printf "%s\n" "$SED" >&6; }
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 printf "%s\n" "no" >&6; }
11347 # Extract the first word of "perl", so it can be a program name with args.
11348 set dummy perl; ac_word=$2
11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 printf %s "checking for $ac_word... " >&6; }
11351 if test ${ac_cv_path_PERL+y}
11353 printf %s "(cached) " >&6
11357 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11364 case $as_dir in #(((
11367 *) as_dir=$as_dir/ ;;
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11371 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11379 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11383 PERL=$ac_cv_path_PERL
11384 if test -n "$PERL"; then
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11386 printf "%s\n" "$PERL" >&6; }
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 printf "%s\n" "no" >&6; }
11393 # Extract the first word of "ldconfig", so it can be a program name with args.
11394 set dummy ldconfig; ac_word=$2
11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 printf %s "checking for $ac_word... " >&6; }
11397 if test ${ac_cv_path_LDCONFIG+y}
11399 printf %s "(cached) " >&6
11403 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11410 case $as_dir in #(((
11413 *) as_dir=$as_dir/ ;;
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11417 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11425 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11429 LDCONFIG=$ac_cv_path_LDCONFIG
11430 if test -n "$LDCONFIG"; then
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11432 printf "%s\n" "$LDCONFIG" >&6; }
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 printf "%s\n" "no" >&6; }
11439 if test -n "$ac_tool_prefix"; then
11440 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11441 set dummy ${ac_tool_prefix}ar; ac_word=$2
11442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 printf %s "checking for $ac_word... " >&6; }
11444 if test ${ac_cv_prog_AR+y}
11446 printf %s "(cached) " >&6
11448 if test -n "$AR"; then
11449 ac_cv_prog_AR="$AR" # Let the user override the test.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11455 case $as_dir in #(((
11458 *) as_dir=$as_dir/ ;;
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11462 ac_cv_prog_AR="${ac_tool_prefix}ar"
11463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11473 if test -n "$AR"; then
11474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11475 printf "%s\n" "$AR" >&6; }
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 printf "%s\n" "no" >&6; }
11483 if test -z "$ac_cv_prog_AR"; then
11485 # Extract the first word of "ar", so it can be a program name with args.
11486 set dummy ar; ac_word=$2
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 printf %s "checking for $ac_word... " >&6; }
11489 if test ${ac_cv_prog_ac_ct_AR+y}
11491 printf %s "(cached) " >&6
11493 if test -n "$ac_ct_AR"; then
11494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11500 case $as_dir in #(((
11503 *) as_dir=$as_dir/ ;;
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11507 ac_cv_prog_ac_ct_AR="ar"
11508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11518 if test -n "$ac_ct_AR"; then
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11520 printf "%s\n" "$ac_ct_AR" >&6; }
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 printf "%s\n" "no" >&6; }
11526 if test "x$ac_ct_AR" = x; then
11529 case $cross_compiling:$ac_tool_warned in
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11533 ac_tool_warned=yes ;;
11538 AR="$ac_cv_prog_AR"
11541 if test -n "$ac_tool_prefix"; then
11542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 printf %s "checking for $ac_word... " >&6; }
11546 if test ${ac_cv_prog_RANLIB+y}
11548 printf %s "(cached) " >&6
11550 if test -n "$RANLIB"; then
11551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11557 case $as_dir in #(((
11560 *) as_dir=$as_dir/ ;;
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11574 RANLIB=$ac_cv_prog_RANLIB
11575 if test -n "$RANLIB"; then
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11577 printf "%s\n" "$RANLIB" >&6; }
11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 printf "%s\n" "no" >&6; }
11585 if test -z "$ac_cv_prog_RANLIB"; then
11586 ac_ct_RANLIB=$RANLIB
11587 # Extract the first word of "ranlib", so it can be a program name with args.
11588 set dummy ranlib; ac_word=$2
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 printf %s "checking for $ac_word... " >&6; }
11591 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11593 printf %s "(cached) " >&6
11595 if test -n "$ac_ct_RANLIB"; then
11596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11602 case $as_dir in #(((
11605 *) as_dir=$as_dir/ ;;
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11609 ac_cv_prog_ac_ct_RANLIB="ranlib"
11610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11620 if test -n "$ac_ct_RANLIB"; then
11621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11622 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625 printf "%s\n" "no" >&6; }
11628 if test "x$ac_ct_RANLIB" = x; then
11631 case $cross_compiling:$ac_tool_warned in
11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11635 ac_tool_warned=yes ;;
11637 RANLIB=$ac_ct_RANLIB
11640 RANLIB="$ac_cv_prog_RANLIB"
11643 if test -n "$ac_tool_prefix"; then
11644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11645 set dummy ${ac_tool_prefix}strip; ac_word=$2
11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 printf %s "checking for $ac_word... " >&6; }
11648 if test ${ac_cv_prog_STRIP+y}
11650 printf %s "(cached) " >&6
11652 if test -n "$STRIP"; then
11653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11659 case $as_dir in #(((
11662 *) as_dir=$as_dir/ ;;
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11676 STRIP=$ac_cv_prog_STRIP
11677 if test -n "$STRIP"; then
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11679 printf "%s\n" "$STRIP" >&6; }
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 printf "%s\n" "no" >&6; }
11687 if test -z "$ac_cv_prog_STRIP"; then
11689 # Extract the first word of "strip", so it can be a program name with args.
11690 set dummy strip; ac_word=$2
11691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 printf %s "checking for $ac_word... " >&6; }
11693 if test ${ac_cv_prog_ac_ct_STRIP+y}
11695 printf %s "(cached) " >&6
11697 if test -n "$ac_ct_STRIP"; then
11698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11704 case $as_dir in #(((
11707 *) as_dir=$as_dir/ ;;
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_ac_ct_STRIP="strip"
11712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11722 if test -n "$ac_ct_STRIP"; then
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11724 printf "%s\n" "$ac_ct_STRIP" >&6; }
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 printf "%s\n" "no" >&6; }
11730 if test "x$ac_ct_STRIP" = x; then
11733 case $cross_compiling:$ac_tool_warned in
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11737 ac_tool_warned=yes ;;
11742 STRIP="$ac_cv_prog_STRIP"
11745 # Extract the first word of "makeinfo", so it can be a program name with args.
11746 set dummy makeinfo; ac_word=$2
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 printf %s "checking for $ac_word... " >&6; }
11749 if test ${ac_cv_prog_MAKEINFO+y}
11751 printf %s "(cached) " >&6
11753 if test -n "$MAKEINFO"; then
11754 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11760 case $as_dir in #(((
11763 *) as_dir=$as_dir/ ;;
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11767 ac_cv_prog_MAKEINFO="makeinfo"
11768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11777 MAKEINFO=$ac_cv_prog_MAKEINFO
11778 if test -n "$MAKEINFO"; then
11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11780 printf "%s\n" "$MAKEINFO" >&6; }
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 printf "%s\n" "no" >&6; }
11787 if test "_$MAKEINFO" = "_"; then
11788 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11790 case "$MAKEINFO" in
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11793 *** Makeinfo is missing. Info documentation will not be built." >&5
11794 printf "%s\n" "$as_me: WARNING:
11795 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11803 # See if we need a separate native compiler.
11804 if test $cross_compiling = no; then
11808 for ac_prog in gcc cc
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy $ac_prog; ac_word=$2
11812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 printf %s "checking for $ac_word... " >&6; }
11814 if test ${ac_cv_prog_BUILD_CC+y}
11816 printf %s "(cached) " >&6
11818 if test -n "$BUILD_CC"; then
11819 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11825 case $as_dir in #(((
11828 *) as_dir=$as_dir/ ;;
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11832 ac_cv_prog_BUILD_CC="$ac_prog"
11833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11842 BUILD_CC=$ac_cv_prog_BUILD_CC
11843 if test -n "$BUILD_CC"; then
11844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11845 printf "%s\n" "$BUILD_CC" >&6; }
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 printf "%s\n" "no" >&6; }
11852 test -n "$BUILD_CC" && break
11856 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11857 if test "x$ac_cv_header_dirent_h" = xyes
11859 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11862 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11863 if test "x$ac_cv_header_errno_h" = xyes
11865 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11868 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11869 if test "x$ac_cv_header_execinfo_h" = xyes
11871 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11874 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_getopt_h" = xyes
11877 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11880 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11881 if test "x$ac_cv_header_malloc_h" = xyes
11883 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11886 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11887 if test "x$ac_cv_header_mntent_h" = xyes
11889 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11892 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11893 if test "x$ac_cv_header_paths_h" = xyes
11895 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11898 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11899 if test "x$ac_cv_header_pthread_h" = xyes
11901 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11904 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11905 if test "x$ac_cv_header_semaphore_h" = xyes
11907 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11910 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11911 if test "x$ac_cv_header_setjmp_h" = xyes
11913 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11916 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_signal_h" = xyes
11919 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11922 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11923 if test "x$ac_cv_header_stdarg_h" = xyes
11925 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11928 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_stdint_h" = xyes
11931 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11934 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_stdlib_h" = xyes
11937 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11940 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_termios_h" = xyes
11943 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11946 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11947 if test "x$ac_cv_header_termio_h" = xyes
11949 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11952 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11953 if test "x$ac_cv_header_unistd_h" = xyes
11955 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11958 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_utime_h" = xyes
11961 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11964 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11965 if test "x$ac_cv_header_attr_xattr_h" = xyes
11967 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11970 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11971 if test "x$ac_cv_header_linux_falloc_h" = xyes
11973 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11976 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_linux_fd_h" = xyes
11979 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11982 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11983 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11985 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11988 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11989 if test "x$ac_cv_header_linux_major_h" = xyes
11991 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11994 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11995 if test "x$ac_cv_header_linux_loop_h" = xyes
11997 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
12000 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
12001 if test "x$ac_cv_header_linux_types_h" = xyes
12003 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12006 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
12007 if test "x$ac_cv_header_net_if_dl_h" = xyes
12009 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12012 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12013 if test "x$ac_cv_header_netinet_in_h" = xyes
12015 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12018 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12019 if test "x$ac_cv_header_sys_acl_h" = xyes
12021 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12024 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12025 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12027 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12030 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12031 if test "x$ac_cv_header_sys_disk_h" = xyes
12033 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12036 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12037 if test "x$ac_cv_header_sys_file_h" = xyes
12039 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12042 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12043 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12045 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12048 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12049 if test "x$ac_cv_header_sys_key_h" = xyes
12051 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12054 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12055 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12057 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12060 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_sys_mman_h" = xyes
12063 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12066 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12067 if test "x$ac_cv_header_sys_mount_h" = xyes
12069 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12072 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12073 if test "x$ac_cv_header_sys_prctl_h" = xyes
12075 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12078 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12079 if test "x$ac_cv_header_sys_random_h" = xyes
12081 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12084 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12085 if test "x$ac_cv_header_sys_resource_h" = xyes
12087 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12090 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12091 if test "x$ac_cv_header_sys_select_h" = xyes
12093 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12096 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12097 if test "x$ac_cv_header_sys_socket_h" = xyes
12099 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12102 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12103 if test "x$ac_cv_header_sys_sockio_h" = xyes
12105 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12108 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12109 if test "x$ac_cv_header_sys_stat_h" = xyes
12111 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12114 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_sys_syscall_h" = xyes
12117 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12120 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12123 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12126 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12127 if test "x$ac_cv_header_sys_time_h" = xyes
12129 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12132 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12133 if test "x$ac_cv_header_sys_types_h" = xyes
12135 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12138 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12139 if test "x$ac_cv_header_sys_un_h" = xyes
12141 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12144 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12145 if test "x$ac_cv_header_sys_wait_h" = xyes
12147 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12150 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12151 if test "x$ac_cv_header_sys_xattr_h" = xyes
12153 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12159 # The above checks only detect system headers, not the headers in
12160 # ./include/mingw/, so explicitly define them to be available.
12161 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12163 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12165 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12167 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12169 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12174 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12176 for i in dd gdd ; do
12177 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12182 if test -n "$DD" ; then
12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12184 printf "%s\n" "$DD" >&6; }
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12187 printf "%s\n" "not found, using dd" >&6; }
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12190 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12194 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12195 #if HAVE_SYS_TYPES_H
12196 #include <sys/types.h>
12198 #if HAVE_SYS_SOCKET
12199 #include <sys/socket.h>
12203 if test "x$ac_cv_header_net_if_h" = xyes
12205 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12210 for ac_item in $ac_func_c_list
12212 if test $ac_func; then
12213 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12214 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12215 echo "#define $ac_item 1" >> confdefs.h
12223 if test "x$ac_cv_func_vprintf" = xno
12225 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12226 if test "x$ac_cv_func__doprnt" = xyes
12229 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12234 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12236 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12239 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12243 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12244 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12247 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12252 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12254 if test "x$ac_cv_type_ssize_t" = xyes
12257 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12262 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12263 if test ${ac_cv_c_undeclared_builtin_options+y}
12265 printf %s "(cached) " >&6
12267 ac_save_CFLAGS=$CFLAGS
12268 ac_cv_c_undeclared_builtin_options='cannot detect'
12269 for ac_arg in '' -fno-builtin; do
12270 CFLAGS="$ac_save_CFLAGS $ac_arg"
12271 # This test program should *not* compile successfully.
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12283 if ac_fn_c_try_compile "$LINENO"
12287 # This test program should compile successfully.
12288 # No library function is consistently available on
12289 # freestanding implementations, so test against a dummy
12290 # declaration. Include always-available headers on the
12291 # off chance that they somehow elicit warnings.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 #include <limits.h>
12296 #include <stdarg.h>
12297 #include <stddef.h>
12298 extern void ac_decl (int, char *);
12303 (void) ac_decl (0, (char *) 0);
12310 if ac_fn_c_try_compile "$LINENO"
12312 if test x"$ac_arg" = x
12314 ac_cv_c_undeclared_builtin_options='none needed'
12316 ac_cv_c_undeclared_builtin_options=$ac_arg
12320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12324 CFLAGS=$ac_save_CFLAGS
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12328 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12329 case $ac_cv_c_undeclared_builtin_options in #(
12331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error $? "cannot make $CC report undeclared builtins
12334 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12336 ac_c_undeclared_builtin_options='' ;; #(
12338 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12341 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12342 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12343 if test "x$ac_cv_have_decl_llseek" = xyes
12346 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12349 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12350 #define _LARGEFILE64_SOURCE
12351 #include <unistd.h>
12352 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12353 if test "x$ac_cv_have_decl_lseek64" = xyes
12356 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12360 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12361 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12362 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12365 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12368 # The cast to long int works around a bug in the HP C Compiler
12369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12371 # This bug is HP SR number 8606223364.
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12373 printf %s "checking size of short... " >&6; }
12374 if test ${ac_cv_sizeof_short+y}
12376 printf %s "(cached) " >&6
12378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12382 if test "$ac_cv_type_short" = yes; then
12383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12384 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12385 as_fn_error 77 "cannot compute sizeof (short)
12386 See \`config.log' for more details" "$LINENO" 5; }
12388 ac_cv_sizeof_short=0
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12394 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12398 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12401 # The cast to long int works around a bug in the HP C Compiler
12402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404 # This bug is HP SR number 8606223364.
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12406 printf %s "checking size of int... " >&6; }
12407 if test ${ac_cv_sizeof_int+y}
12409 printf %s "(cached) " >&6
12411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12415 if test "$ac_cv_type_int" = yes; then
12416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12418 as_fn_error 77 "cannot compute sizeof (int)
12419 See \`config.log' for more details" "$LINENO" 5; }
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12427 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12431 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12434 # The cast to long int works around a bug in the HP C Compiler
12435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12437 # This bug is HP SR number 8606223364.
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12439 printf %s "checking size of long... " >&6; }
12440 if test ${ac_cv_sizeof_long+y}
12442 printf %s "(cached) " >&6
12444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12448 if test "$ac_cv_type_long" = yes; then
12449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12451 as_fn_error 77 "cannot compute sizeof (long)
12452 See \`config.log' for more details" "$LINENO" 5; }
12454 ac_cv_sizeof_long=0
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12460 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12464 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12467 # The cast to long int works around a bug in the HP C Compiler
12468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12470 # This bug is HP SR number 8606223364.
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12472 printf %s "checking size of long long... " >&6; }
12473 if test ${ac_cv_sizeof_long_long+y}
12475 printf %s "(cached) " >&6
12477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12481 if test "$ac_cv_type_long_long" = yes; then
12482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12484 as_fn_error 77 "cannot compute sizeof (long long)
12485 See \`config.log' for more details" "$LINENO" 5; }
12487 ac_cv_sizeof_long_long=0
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12493 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12497 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12500 # The cast to long int works around a bug in the HP C Compiler
12501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12503 # This bug is HP SR number 8606223364.
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12505 printf %s "checking size of off_t... " >&6; }
12506 if test ${ac_cv_sizeof_off_t+y}
12508 printf %s "(cached) " >&6
12510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12514 if test "$ac_cv_type_off_t" = yes; then
12515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12516 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12517 as_fn_error 77 "cannot compute sizeof (off_t)
12518 See \`config.log' for more details" "$LINENO" 5; }
12520 ac_cv_sizeof_off_t=0
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12526 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12530 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12533 # The cast to long int works around a bug in the HP C Compiler
12534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12536 # This bug is HP SR number 8606223364.
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12538 printf %s "checking size of time_t... " >&6; }
12539 if test ${ac_cv_sizeof_time_t+y}
12541 printf %s "(cached) " >&6
12543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12547 if test "$ac_cv_type_time_t" = yes; then
12548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12549 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12550 as_fn_error 77 "cannot compute sizeof (time_t)
12551 See \`config.log' for more details" "$LINENO" 5; }
12553 ac_cv_sizeof_time_t=0
12558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12559 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12563 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12566 SIZEOF_SHORT=$ac_cv_sizeof_short
12567 SIZEOF_INT=$ac_cv_sizeof_int
12568 SIZEOF_LONG=$ac_cv_sizeof_long
12569 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12570 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12571 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12579 printf %s "checking whether byte ordering is bigendian... " >&6; }
12580 if test ${ac_cv_c_bigendian+y}
12582 printf %s "(cached) " >&6
12584 ac_cv_c_bigendian=unknown
12585 # See if we're dealing with a universal compiler.
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 #ifndef __APPLE_CC__
12589 not a universal capable compiler
12594 if ac_fn_c_try_compile "$LINENO"
12597 # Check for potential -arch flags. It is not universal unless
12598 # there are at least two -arch flags with different values.
12601 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12602 if test -n "$ac_prev"; then
12604 i?86 | x86_64 | ppc | ppc64)
12605 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12608 ac_cv_c_bigendian=universal
12614 elif test "x$ac_word" = "x-arch"; then
12619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12620 if test $ac_cv_c_bigendian = unknown; then
12621 # See if sys/param.h defines the BYTE_ORDER macro.
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 #include <sys/types.h>
12625 #include <sys/param.h>
12630 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12631 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12633 bogus endian macros
12640 if ac_fn_c_try_compile "$LINENO"
12642 # It does; now see whether it defined to BIG_ENDIAN or not.
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <sys/types.h>
12646 #include <sys/param.h>
12651 #if BYTE_ORDER != BIG_ENDIAN
12659 if ac_fn_c_try_compile "$LINENO"
12661 ac_cv_c_bigendian=yes
12663 ac_cv_c_bigendian=no
12665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12669 if test $ac_cv_c_bigendian = unknown; then
12670 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673 #include <limits.h>
12678 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12679 bogus endian macros
12686 if ac_fn_c_try_compile "$LINENO"
12688 # It does; now see whether it defined to _BIG_ENDIAN or not.
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #include <limits.h>
12696 #ifndef _BIG_ENDIAN
12704 if ac_fn_c_try_compile "$LINENO"
12706 ac_cv_c_bigendian=yes
12708 ac_cv_c_bigendian=no
12710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12714 if test $ac_cv_c_bigendian = unknown; then
12715 # Compile a test program.
12716 if test "$cross_compiling" = yes
12718 # Try to guess by grepping values from an object file.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 unsigned short int ascii_mm[] =
12722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12723 unsigned short int ascii_ii[] =
12724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12725 int use_ascii (int i) {
12726 return ascii_mm[i] + ascii_ii[i];
12728 unsigned short int ebcdic_ii[] =
12729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12730 unsigned short int ebcdic_mm[] =
12731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12732 int use_ebcdic (int i) {
12733 return ebcdic_mm[i] + ebcdic_ii[i];
12740 return use_ascii (foo) == use_ebcdic (foo);
12745 if ac_fn_c_try_compile "$LINENO"
12747 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12748 ac_cv_c_bigendian=yes
12750 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12751 if test "$ac_cv_c_bigendian" = unknown; then
12752 ac_cv_c_bigendian=no
12754 # finding both strings is unlikely to happen, but who knows?
12755 ac_cv_c_bigendian=unknown
12759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 $ac_includes_default
12768 /* Are we little or big endian? From Harbison&Steele. */
12772 char c[sizeof (long int)];
12775 return u.c[sizeof (long int) - 1] == 1;
12781 if ac_fn_c_try_run "$LINENO"
12783 ac_cv_c_bigendian=no
12785 ac_cv_c_bigendian=yes
12787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12788 conftest.$ac_objext conftest.beam conftest.$ac_ext
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12794 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12795 case $ac_cv_c_bigendian in #(
12797 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12803 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12807 as_fn_error $? "unknown endianness
12808 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12811 if test $cross_compiling = no; then
12812 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12814 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12816 ASM_TYPES_HEADER=./asm_types.h
12818 echo "/* These defines are needed for the public ext2fs.h header file */" \
12820 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12821 uniq tmp_config.$$ >> public_config.h
12823 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12825 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12826 uniq tmp_config.$$ >> public_config.h
12828 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12830 rm -f tmp_config.$$
12831 PUBLIC_CONFIG_HEADER=./public_config.h
12833 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12834 if test "x$ac_cv_header_inttypes_h" = xyes
12836 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12840 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12841 if test "x$ac_cv_type_intptr_t" = xyes
12844 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12850 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12851 if test ${e2fsprogs_cv_struct_st_flags+y}
12853 printf %s "(cached) " >&6
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <sys/stat.h>
12861 struct stat stat; stat.st_flags = 0;
12866 if ac_fn_c_try_compile "$LINENO"
12868 e2fsprogs_cv_struct_st_flags=yes
12870 e2fsprogs_cv_struct_st_flags=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12876 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12877 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12879 printf %s "checking whether st_flags field is useful... " >&6; }
12880 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12882 printf %s "(cached) " >&6
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886 #include <sys/stat.h>
12890 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12895 if ac_fn_c_try_compile "$LINENO"
12897 e2fsprogs_cv_struct_st_flags_immut=yes
12899 e2fsprogs_cv_struct_st_flags_immut=no
12901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12905 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12906 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12908 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12912 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12913 #include <sys/socket.h>
12915 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12918 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12922 if test -n "$BLKID_CMT"; then
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12924 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12925 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12927 printf %s "(cached) " >&6
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lblkid $LIBS"
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 char blkid_probe_get_topology ();
12941 return blkid_probe_get_topology ();
12946 if ac_fn_c_try_link "$LINENO"
12948 ac_cv_lib_blkid_blkid_probe_get_topology=yes
12950 ac_cv_lib_blkid_blkid_probe_get_topology=no
12952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12957 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12958 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12961 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12966 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12967 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12969 printf %s "(cached) " >&6
12971 ac_check_lib_save_LIBS=$LIBS
12972 LIBS="-lblkid $LIBS"
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12979 char blkid_topology_get_dax ();
12983 return blkid_topology_get_dax ();
12988 if ac_fn_c_try_link "$LINENO"
12990 ac_cv_lib_blkid_blkid_topology_get_dax=yes
12992 ac_cv_lib_blkid_blkid_topology_get_dax=no
12994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12995 conftest$ac_exeext conftest.$ac_ext
12996 LIBS=$ac_check_lib_save_LIBS
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12999 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13000 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13003 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13008 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13009 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13011 printf %s "(cached) " >&6
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lblkid $LIBS"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 char blkid_probe_enable_partitions ();
13025 return blkid_probe_enable_partitions ();
13030 if ac_fn_c_try_link "$LINENO"
13032 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13034 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13037 conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13041 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13042 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13045 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13050 if test -n "$DLOPEN_LIB" ; then
13051 ac_cv_func_dlopen=yes
13053 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13054 if test "x$ac_cv_func___secure_getenv" = xyes
13056 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13059 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13060 if test "x$ac_cv_func_add_key" = xyes
13062 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13065 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13066 if test "x$ac_cv_func_backtrace" = xyes
13068 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13071 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13072 if test "x$ac_cv_func_chflags" = xyes
13074 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13077 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13078 if test "x$ac_cv_func_dlopen" = xyes
13080 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13083 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13084 if test "x$ac_cv_func_fadvise64" = xyes
13086 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13089 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13090 if test "x$ac_cv_func_fallocate" = xyes
13092 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13095 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13096 if test "x$ac_cv_func_fallocate64" = xyes
13098 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13101 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13102 if test "x$ac_cv_func_fchown" = xyes
13104 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13107 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13108 if test "x$ac_cv_func_fcntl" = xyes
13110 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13113 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13114 if test "x$ac_cv_func_fdatasync" = xyes
13116 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13119 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13120 if test "x$ac_cv_func_fstat64" = xyes
13122 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13125 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13126 if test "x$ac_cv_func_fsync" = xyes
13128 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13131 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13132 if test "x$ac_cv_func_ftruncate64" = xyes
13134 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13137 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13138 if test "x$ac_cv_func_futimes" = xyes
13140 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13143 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13144 if test "x$ac_cv_func_getcwd" = xyes
13146 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13149 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13150 if test "x$ac_cv_func_getdtablesize" = xyes
13152 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13155 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13156 if test "x$ac_cv_func_getentropy" = xyes
13158 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13161 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13162 if test "x$ac_cv_func_gethostname" = xyes
13164 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13167 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13168 if test "x$ac_cv_func_getmntinfo" = xyes
13170 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13173 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13174 if test "x$ac_cv_func_getpwuid_r" = xyes
13176 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13179 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13180 if test "x$ac_cv_func_getrandom" = xyes
13182 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13185 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13186 if test "x$ac_cv_func_getrlimit" = xyes
13188 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13191 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13192 if test "x$ac_cv_func_getrusage" = xyes
13194 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13197 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13198 if test "x$ac_cv_func_jrand48" = xyes
13200 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13203 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13204 if test "x$ac_cv_func_keyctl" = xyes
13206 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13209 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13210 if test "x$ac_cv_func_llistxattr" = xyes
13212 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13215 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13216 if test "x$ac_cv_func_llseek" = xyes
13218 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13221 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13222 if test "x$ac_cv_func_lseek64" = xyes
13224 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13227 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13228 if test "x$ac_cv_func_mallinfo" = xyes
13230 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13233 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13234 if test "x$ac_cv_func_mallinfo2" = xyes
13236 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13239 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13240 if test "x$ac_cv_func_mbstowcs" = xyes
13242 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13245 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13246 if test "x$ac_cv_func_memalign" = xyes
13248 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13251 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13252 if test "x$ac_cv_func_mempcpy" = xyes
13254 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13257 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13258 if test "x$ac_cv_func_mmap" = xyes
13260 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13263 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13264 if test "x$ac_cv_func_msync" = xyes
13266 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13269 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13270 if test "x$ac_cv_func_nanosleep" = xyes
13272 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13275 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13276 if test "x$ac_cv_func_open64" = xyes
13278 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13281 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13282 if test "x$ac_cv_func_pathconf" = xyes
13284 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13287 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13288 if test "x$ac_cv_func_posix_fadvise" = xyes
13290 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13293 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13294 if test "x$ac_cv_func_posix_fadvise64" = xyes
13296 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13299 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13300 if test "x$ac_cv_func_posix_memalign" = xyes
13302 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13305 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13306 if test "x$ac_cv_func_prctl" = xyes
13308 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13311 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13312 if test "x$ac_cv_func_pread" = xyes
13314 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13317 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13318 if test "x$ac_cv_func_pwrite" = xyes
13320 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13323 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13324 if test "x$ac_cv_func_pread64" = xyes
13326 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13329 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13330 if test "x$ac_cv_func_pwrite64" = xyes
13332 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13335 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13336 if test "x$ac_cv_func_qsort_r" = xyes
13338 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13341 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13342 if test "x$ac_cv_func_secure_getenv" = xyes
13344 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13347 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13348 if test "x$ac_cv_func_setmntent" = xyes
13350 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13353 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13354 if test "x$ac_cv_func_setresgid" = xyes
13356 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13359 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13360 if test "x$ac_cv_func_setresuid" = xyes
13362 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13365 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13366 if test "x$ac_cv_func_snprintf" = xyes
13368 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13371 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13372 if test "x$ac_cv_func_srandom" = xyes
13374 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13377 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13378 if test "x$ac_cv_func_stpcpy" = xyes
13380 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13383 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13384 if test "x$ac_cv_func_strcasecmp" = xyes
13386 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13389 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13390 if test "x$ac_cv_func_strdup" = xyes
13392 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13395 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13396 if test "x$ac_cv_func_strnlen" = xyes
13398 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13401 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13402 if test "x$ac_cv_func_strptime" = xyes
13404 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13407 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13408 if test "x$ac_cv_func_strtoull" = xyes
13410 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13413 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13414 if test "x$ac_cv_func_sync_file_range" = xyes
13416 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13419 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13420 if test "x$ac_cv_func_sysconf" = xyes
13422 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13425 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13426 if test "x$ac_cv_func_usleep" = xyes
13428 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13431 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13432 if test "x$ac_cv_func_utime" = xyes
13434 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13437 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13438 if test "x$ac_cv_func_utimes" = xyes
13440 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13443 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13444 if test "x$ac_cv_func_valloc" = xyes
13446 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13452 printf %s "checking for socket in -lsocket... " >&6; }
13453 if test ${ac_cv_lib_socket_socket+y}
13455 printf %s "(cached) " >&6
13457 ac_check_lib_save_LIBS=$LIBS
13458 LIBS="-lsocket $LIBS"
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13474 if ac_fn_c_try_link "$LINENO"
13476 ac_cv_lib_socket_socket=yes
13478 ac_cv_lib_socket_socket=no
13480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13485 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13486 if test "x$ac_cv_lib_socket_socket" = xyes
13488 SOCKET_LIB=-lsocket
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13493 printf %s "checking for magic_file in -lmagic... " >&6; }
13494 if test ${ac_cv_lib_magic_magic_file+y}
13496 printf %s "(cached) " >&6
13498 ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-lmagic $LIBS"
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13503 /* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13506 char magic_file ();
13510 return magic_file ();
13515 if ac_fn_c_try_link "$LINENO"
13517 ac_cv_lib_magic_magic_file=yes
13519 ac_cv_lib_magic_magic_file=no
13521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13526 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13527 if test "x$ac_cv_lib_magic_magic_file" = xyes
13530 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_magic_h" = xyes
13533 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13539 if test "$ac_cv_func_dlopen" = yes ; then
13540 MAGIC_LIB=$DLOPEN_LIB
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13544 printf %s "checking for clock_gettime in -lrt... " >&6; }
13545 if test ${ac_cv_lib_rt_clock_gettime+y}
13547 printf %s "(cached) " >&6
13549 ac_check_lib_save_LIBS=$LIBS
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 char clock_gettime ();
13561 return clock_gettime ();
13566 if ac_fn_c_try_link "$LINENO"
13568 ac_cv_lib_rt_clock_gettime=yes
13570 ac_cv_lib_rt_clock_gettime=no
13572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13573 conftest$ac_exeext conftest.$ac_ext
13574 LIBS=$ac_check_lib_save_LIBS
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13577 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13578 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13580 CLOCK_GETTIME_LIB=-lrt
13586 # Check whether --enable-fuse2fs was given.
13587 if test ${enable_fuse2fs+y}
13589 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13593 printf "%s\n" "Disabling fuse2fs" >&6; }
13595 for ac_header in pthread.h fuse.h
13597 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13599 #define FUSE_USE_VERSION 29
13601 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13603 cat >>confdefs.h <<_ACEOF
13604 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13609 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13610 as_fn_error $? "Cannot find fuse2fs headers.
13611 See \`config.log' for more details" "$LINENO" 5; }
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #define FUSE_USE_VERSION 29
13620 #include <linux/fs.h>
13621 #include <linux/falloc.h>
13622 #include <linux/xattr.h>
13633 if ac_fn_c_try_cpp "$LINENO"
13637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13638 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13639 as_fn_error $? "Cannot find fuse2fs Linux headers.
13640 See \`config.log' for more details" "$LINENO" 5; }
13642 rm -f conftest.err conftest.i conftest.$ac_ext
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13645 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13646 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13648 printf %s "(cached) " >&6
13650 ac_check_lib_save_LIBS=$LIBS
13651 LIBS="-losxfuse $LIBS"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13655 /* Override any GCC internal prototype to avoid an error.
13656 Use char because int might match the return type of a GCC
13657 builtin and then its argument prototype would still apply. */
13662 return fuse_main ();
13667 if ac_fn_c_try_link "$LINENO"
13669 ac_cv_lib_osxfuse_fuse_main=yes
13671 ac_cv_lib_osxfuse_fuse_main=no
13673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13674 conftest$ac_exeext conftest.$ac_ext
13675 LIBS=$ac_check_lib_save_LIBS
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13678 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13679 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13684 printf %s "checking for fuse_main in -lfuse... " >&6; }
13685 if test ${ac_cv_lib_fuse_fuse_main+y}
13687 printf %s "(cached) " >&6
13689 ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-lfuse $LIBS"
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 /* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13701 return fuse_main ();
13706 if ac_fn_c_try_link "$LINENO"
13708 ac_cv_lib_fuse_fuse_main=yes
13710 ac_cv_lib_fuse_fuse_main=no
13712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13713 conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13717 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13718 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13724 as_fn_error $? "Cannot find fuse library.
13725 See \`config.log' for more details" "$LINENO" 5; }
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13731 printf "%s\n" "Enabling fuse2fs" >&6; }
13735 for ac_header in pthread.h fuse.h
13737 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13739 #define FUSE_USE_VERSION 29
13741 # include <linux/fs.h>
13742 # include <linux/falloc.h>
13743 # include <linux/xattr.h>
13746 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13748 cat >>confdefs.h <<_ACEOF
13749 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13757 if test -z "$FUSE_CMT"
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13760 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13761 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13763 printf %s "(cached) " >&6
13765 ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-losxfuse $LIBS"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13777 return fuse_main ();
13782 if ac_fn_c_try_link "$LINENO"
13784 ac_cv_lib_osxfuse_fuse_main=yes
13786 ac_cv_lib_osxfuse_fuse_main=no
13788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13793 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13794 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13799 printf %s "checking for fuse_main in -lfuse... " >&6; }
13800 if test ${ac_cv_lib_fuse_fuse_main+y}
13802 printf %s "(cached) " >&6
13804 ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lfuse $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13816 return fuse_main ();
13821 if ac_fn_c_try_link "$LINENO"
13823 ac_cv_lib_fuse_fuse_main=yes
13825 ac_cv_lib_fuse_fuse_main=no
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13832 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13833 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13843 if test -z "$FUSE_CMT"
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13846 printf "%s\n" "Enabling fuse2fs by default." >&6; }
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13854 printf %s "checking for optreset... " >&6; }
13855 if test ${ac_cv_have_optreset+y}
13857 printf %s "(cached) " >&6
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861 #include <unistd.h>
13864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13865 $EGREP "optreset" >/dev/null 2>&1
13867 ac_cv_have_optreset=yes
13869 ac_cv_have_optreset=no
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13875 printf "%s\n" "$ac_cv_have_optreset" >&6; }
13876 if test $ac_cv_have_optreset = yes; then
13878 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
13883 echo GL_THREADS_API: ${gl_threads_api}
13884 if test "${gl_threads_api}" != none
13886 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13887 if test "x$ac_cv_func_sem_init" = xyes
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13892 printf %s "checking for sem_init in -lpthread... " >&6; }
13893 if test ${ac_cv_lib_pthread_sem_init+y}
13895 printf %s "(cached) " >&6
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-lpthread $LIBS"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 /* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13909 return sem_init ();
13914 if ac_fn_c_try_link "$LINENO"
13916 ac_cv_lib_pthread_sem_init=yes
13918 ac_cv_lib_pthread_sem_init=no
13920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13921 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13925 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
13926 if test "x$ac_cv_lib_pthread_sem_init" = xyes
13928 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13930 SEM_INIT_LIB=-lpthread
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13933 printf %s "checking for sem_init in -lrt... " >&6; }
13934 if test ${ac_cv_lib_rt_sem_init+y}
13936 printf %s "(cached) " >&6
13938 ac_check_lib_save_LIBS=$LIBS
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13950 return sem_init ();
13955 if ac_fn_c_try_link "$LINENO"
13957 ac_cv_lib_rt_sem_init=yes
13959 ac_cv_lib_rt_sem_init=no
13961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13966 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
13967 if test "x$ac_cv_lib_rt_sem_init" = xyes
13969 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13974 printf %s "checking for sem_init in -lposix4... " >&6; }
13975 if test ${ac_cv_lib_posix4_sem_init+y}
13977 printf %s "(cached) " >&6
13979 ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-lposix4 $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13991 return sem_init ();
13996 if ac_fn_c_try_link "$LINENO"
13998 ac_cv_lib_posix4_sem_init=yes
14000 ac_cv_lib_posix4_sem_init=no
14002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14003 conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14007 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14008 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14010 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14012 SEM_INIT_LIB=-lposix4
14022 if test "$ac_cv_func_qsort_r" != no
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14026 printf %s "checking whether qsort_r is GNU version... " >&6; }
14027 if test ${e2_cv_gnu_qsort_r+y}
14029 printf %s "(cached) " >&6
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14034 #include <stdlib.h>
14035 void (qsort_r)(void *base, size_t nmemb, size_t size,
14036 int (*compar)(const void *, const void *, void *),
14047 if ac_fn_c_try_compile "$LINENO"
14049 e2_cv_gnu_qsort_r=yes
14051 e2_cv_gnu_qsort_r=no
14053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14057 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14059 printf %s "checking whether qsort_r is BSD version... " >&6; }
14060 if test ${e2_cv_bsd_qsort_r+y}
14062 printf %s "(cached) " >&6
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14067 #include <stdlib.h>
14068 void (qsort_r)(void *base, size_t nmemb, size_t size,
14069 void *arg, int (*compar)(void *, const void *, const void *));
14079 if ac_fn_c_try_compile "$LINENO"
14081 e2_cv_bsd_qsort_r=yes
14083 e2_cv_bsd_qsort_r=no
14085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14089 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14090 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14094 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14100 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14109 printf %s "checking for unified diff option... " >&6; }
14110 if diff -u $0 $0 > /dev/null 2>&1 ; then
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14116 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14121 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14126 printf %s "checking for mount 'nosuid' option... "
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129 #include <sys/mount.h>
14133 void *temp = (void *)(MS_NOSUID); (void) temp;
14138 if ac_fn_c_try_compile "$LINENO"
14141 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14143 ac_cv_mount_nosuid=yes
14144 printf "%s\n" "yes"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <sys/mount.h>
14152 void *temp = (void *)(MNT_NOSUID); (void) temp;
14157 if ac_fn_c_try_compile "$LINENO"
14160 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14162 ac_cv_mount_nosuid=yes
14163 printf "%s\n" "yes"
14165 ac_cv_mount_nosuid=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14175 printf %s "checking for mount 'nodev' option... "
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178 #include <sys/mount.h>
14182 void *temp = (void *)(MS_NODEV); (void) temp;
14187 if ac_fn_c_try_compile "$LINENO"
14190 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14192 ac_cv_mount_nodev=yes
14193 printf "%s\n" "yes"
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #include <sys/mount.h>
14201 void *temp = (void *)(MNT_NODEV); (void) temp;
14206 if ac_fn_c_try_compile "$LINENO"
14209 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14211 ac_cv_mount_nodev=yes
14212 printf "%s\n" "yes"
14214 ac_cv_mount_nodev=no
14218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14223 # Check whether --enable-lto was given.
14224 if test ${enable_lto+y}
14226 enableval=$enable_lto;
14231 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14233 printf %s "checking if C compiler supports LTO... " >&6; }
14234 OLD_CFLAGS="$CFLAGS"
14235 OLD_LDFLAGS="$LDFLAGS"
14236 LTO_FLAGS="-g -flto -ffat-lto-objects"
14237 CFLAGS="$CFLAGS $LTO_FLAGS"
14238 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14250 if ac_fn_c_try_link "$LINENO"
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14253 printf "%s\n" "yes" >&6; }
14254 lto_cflags=$LTO_FLAGS
14255 lto_ldflags=$LTO_FLAGS
14256 # Extract the first word of "gcc-ar", so it can be a program name with args.
14257 set dummy gcc-ar; ac_word=$2
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 printf %s "checking for $ac_word... " >&6; }
14260 if test ${ac_cv_path_gcc_ar+y}
14262 printf %s "(cached) " >&6
14266 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14273 case $as_dir in #(((
14276 *) as_dir=$as_dir/ ;;
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14280 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14291 gcc_ar=$ac_cv_path_gcc_ar
14292 if test -n "$gcc_ar"; then
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14294 printf "%s\n" "$gcc_ar" >&6; }
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 printf "%s\n" "no" >&6; }
14301 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14302 set dummy gcc-ranlib; ac_word=$2
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 printf %s "checking for $ac_word... " >&6; }
14305 if test ${ac_cv_path_gcc_ranlib+y}
14307 printf %s "(cached) " >&6
14309 case $gcc_ranlib in
14311 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14318 case $as_dir in #(((
14321 *) as_dir=$as_dir/ ;;
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14325 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14336 gcc_ranlib=$ac_cv_path_gcc_ranlib
14337 if test -n "$gcc_ranlib"; then
14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14339 printf "%s\n" "$gcc_ranlib" >&6; }
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 printf "%s\n" "no" >&6; }
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 printf "%s\n" "no" >&6; }
14350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14351 conftest$ac_exeext conftest.$ac_ext
14352 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14355 RANLIB="${gcc_ranlib}"
14357 CFLAGS="${OLD_CFLAGS}"
14358 LDFLAGS="${OLD_LDFLAGS}"
14363 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14364 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14366 # Check whether --enable-ubsan was given.
14367 if test ${enable_ubsan+y}
14369 enableval=$enable_ubsan;
14374 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14376 printf %s "checking if C compiler supports UBSAN... " >&6; }
14377 OLD_CFLAGS="$CFLAGS"
14378 OLD_LDFLAGS="$LDFLAGS"
14379 UBSAN_FLAGS="-fsanitize=undefined"
14380 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14381 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14393 if ac_fn_c_try_link "$LINENO"
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 printf "%s\n" "yes" >&6; }
14397 ubsan_cflags=$UBSAN_FLAGS
14398 ubsan_ldflags=$UBSAN_FLAGS
14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 printf "%s\n" "no" >&6; }
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14405 conftest$ac_exeext conftest.$ac_ext
14406 CFLAGS="${OLD_CFLAGS}"
14407 LDFLAGS="${OLD_LDFLAGS}"
14412 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14413 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14415 # Check whether --enable-addrsan was given.
14416 if test ${enable_addrsan+y}
14418 enableval=$enable_addrsan;
14423 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14425 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14426 OLD_CFLAGS="$CFLAGS"
14427 OLD_LDFLAGS="$LDFLAGS"
14428 ADDRSAN_FLAGS="-fsanitize=address"
14429 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14430 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14442 if ac_fn_c_try_link "$LINENO"
14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14445 printf "%s\n" "yes" >&6; }
14446 addrsan_cflags=$ADDRSAN_FLAGS
14447 addrsan_ldflags=$ADDRSAN_FLAGS
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 printf "%s\n" "no" >&6; }
14453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14454 conftest$ac_exeext conftest.$ac_ext
14455 CFLAGS="${OLD_CFLAGS}"
14456 LDFLAGS="${OLD_LDFLAGS}"
14461 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14462 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14464 # Check whether --enable-threadsan was given.
14465 if test ${enable_threadsan+y}
14467 enableval=$enable_threadsan;
14469 enable_threadsan=no
14472 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14474 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14475 OLD_CFLAGS="$CFLAGS"
14476 OLD_LDFLAGS="$LDFLAGS"
14477 THREADSAN_FLAGS="-fsanitize=thread"
14478 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14479 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14491 if ac_fn_c_try_link "$LINENO"
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 printf "%s\n" "yes" >&6; }
14495 threadsan_cflags=$THREADSAN_FLAGS
14496 threadsan_ldflags=$THREADSAN_FLAGS
14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 printf "%s\n" "no" >&6; }
14502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503 conftest$ac_exeext conftest.$ac_ext
14504 CFLAGS="${OLD_CFLAGS}"
14505 LDFLAGS="${OLD_LDFLAGS}"
14510 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14511 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14513 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14515 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14518 # Check whether --enable-fuzzing was given.
14519 if test ${enable_fuzzing+y}
14521 enableval=$enable_fuzzing;
14526 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14534 ac_cpp='$CXXCPP $CPPFLAGS'
14535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14538 if test -z "$CXX"; then
14539 if test -n "$CCC"; then
14542 if test -n "$ac_tool_prefix"; then
14543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 printf %s "checking for $ac_word... " >&6; }
14549 if test ${ac_cv_prog_CXX+y}
14551 printf %s "(cached) " >&6
14553 if test -n "$CXX"; then
14554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14560 case $as_dir in #(((
14563 *) as_dir=$as_dir/ ;;
14565 for ac_exec_ext in '' $ac_executable_extensions; do
14566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14577 CXX=$ac_cv_prog_CXX
14578 if test -n "$CXX"; then
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14580 printf "%s\n" "$CXX" >&6; }
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583 printf "%s\n" "no" >&6; }
14587 test -n "$CXX" && break
14590 if test -z "$CXX"; then
14592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14594 # Extract the first word of "$ac_prog", so it can be a program name with args.
14595 set dummy $ac_prog; ac_word=$2
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 printf %s "checking for $ac_word... " >&6; }
14598 if test ${ac_cv_prog_ac_ct_CXX+y}
14600 printf %s "(cached) " >&6
14602 if test -n "$ac_ct_CXX"; then
14603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 for as_dir in $PATH
14609 case $as_dir in #(((
14612 *) as_dir=$as_dir/ ;;
14614 for ac_exec_ext in '' $ac_executable_extensions; do
14615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14616 ac_cv_prog_ac_ct_CXX="$ac_prog"
14617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14626 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14627 if test -n "$ac_ct_CXX"; then
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14629 printf "%s\n" "$ac_ct_CXX" >&6; }
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14632 printf "%s\n" "no" >&6; }
14636 test -n "$ac_ct_CXX" && break
14639 if test "x$ac_ct_CXX" = x; then
14642 case $cross_compiling:$ac_tool_warned in
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14646 ac_tool_warned=yes ;;
14654 # Provide some information about the compiler.
14655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14658 for ac_option in --version -v -V -qversion; do
14659 { { ac_try="$ac_compiler $ac_option >&5"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14665 printf "%s\n" "$ac_try_echo"; } >&5
14666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14668 if test -s conftest.err; then
14670 ... rest of stderr output deleted ...
14671 10q' conftest.err >conftest.er1
14672 cat conftest.er1 >&5
14674 rm -f conftest.er1 conftest.err
14675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; }
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14680 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14681 if test ${ac_cv_cxx_compiler_gnu+y}
14683 printf %s "(cached) " >&6
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14699 if ac_fn_cxx_try_compile "$LINENO"
14701 ac_compiler_gnu=yes
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14710 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14713 if test $ac_compiler_gnu = yes; then
14718 ac_test_CXXFLAGS=${CXXFLAGS+y}
14719 ac_save_CXXFLAGS=$CXXFLAGS
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14721 printf %s "checking whether $CXX accepts -g... " >&6; }
14722 if test ${ac_cv_prog_cxx_g+y}
14724 printf %s "(cached) " >&6
14726 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14727 ac_cxx_werror_flag=yes
14728 ac_cv_prog_cxx_g=no
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14741 if ac_fn_cxx_try_compile "$LINENO"
14743 ac_cv_prog_cxx_g=yes
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14757 if ac_fn_cxx_try_compile "$LINENO"
14761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14774 if ac_fn_cxx_try_compile "$LINENO"
14776 ac_cv_prog_cxx_g=yes
14778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14786 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14787 if test $ac_test_CXXFLAGS; then
14788 CXXFLAGS=$ac_save_CXXFLAGS
14789 elif test $ac_cv_prog_cxx_g = yes; then
14790 if test "$GXX" = yes; then
14796 if test "$GXX" = yes; then
14802 ac_prog_cxx_stdcxx=no
14803 if test x$ac_prog_cxx_stdcxx = xno
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14806 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14807 if test ${ac_cv_prog_cxx_11+y}
14809 printf %s "(cached) " >&6
14811 ac_cv_prog_cxx_11=no
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 $ac_cxx_conftest_cxx11_program
14817 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14819 CXX="$ac_save_CXX $ac_arg"
14820 if ac_fn_cxx_try_compile "$LINENO"
14822 ac_cv_prog_cxx_cxx11=$ac_arg
14824 rm -f core conftest.err conftest.$ac_objext conftest.beam
14825 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14827 rm -f conftest.$ac_ext
14831 if test "x$ac_cv_prog_cxx_cxx11" = xno
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14834 printf "%s\n" "unsupported" >&6; }
14836 if test "x$ac_cv_prog_cxx_cxx11" = x
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14839 printf "%s\n" "none needed" >&6; }
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14842 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14843 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14845 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14846 ac_prog_cxx_stdcxx=cxx11
14849 if test x$ac_prog_cxx_stdcxx = xno
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14852 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14853 if test ${ac_cv_prog_cxx_98+y}
14855 printf %s "(cached) " >&6
14857 ac_cv_prog_cxx_98=no
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 $ac_cxx_conftest_cxx98_program
14863 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14865 CXX="$ac_save_CXX $ac_arg"
14866 if ac_fn_cxx_try_compile "$LINENO"
14868 ac_cv_prog_cxx_cxx98=$ac_arg
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam
14871 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14873 rm -f conftest.$ac_ext
14877 if test "x$ac_cv_prog_cxx_cxx98" = xno
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14880 printf "%s\n" "unsupported" >&6; }
14882 if test "x$ac_cv_prog_cxx_cxx98" = x
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14885 printf "%s\n" "none needed" >&6; }
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14888 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14889 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14891 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14892 ac_prog_cxx_stdcxx=cxx98
14897 ac_cpp='$CPP $CPPFLAGS'
14898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
14903 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
14905 ac_cpp='$CXXCPP $CPPFLAGS'
14906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14910 OLD_CXXFLAGS="$CXXFLAGS"
14911 OLD_LDFLAGS="$LDFLAGS"
14912 FUZZER_FLAGS="-fsanitize=fuzzer"
14913 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
14914 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14919 #include <stddef.h>
14920 #include <stdint.h>
14930 if ac_fn_cxx_try_compile "$LINENO"
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14933 printf "%s\n" "yes" >&6; }
14934 fuzzer_cflags=$FUZZER_FLAGS
14935 fuzzer_ldflags=$FUZZER_FLAGS
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14940 printf "%s\n" "no" >&6; }
14941 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
14943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14944 CXXFLAGS="${OLD_CXXFLAGS}"
14945 LDFLAGS="${OLD_LDFLAGS}"
14947 ac_cpp='$CPP $CPPFLAGS'
14948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14956 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
14957 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
14975 E2SCRUB_CMT="$LINUX_CMT"
14978 linux* | gnu* | k*bsd*-gnu)
14979 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14982 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
14987 linux* | gnu* | k*bsd*-gnu)
14988 if test "$prefix" = NONE ; then
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14991 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
14992 if test "$mandir" = '${prefix}/man' ; then
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14994 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
14995 mandir=/usr/share/man
15000 if test "$root_prefix" = NONE ; then
15001 if test "$prefix" = NONE ; then
15002 root_prefix="$ac_default_prefix"
15004 root_prefix="$prefix"
15006 root_bindir=$bindir
15007 root_sbindir=$sbindir
15008 root_libdir=$libdir
15009 root_sysconfdir=$sysconfdir
15011 root_bindir='${root_prefix}/bin'
15012 root_sbindir='${root_prefix}/sbin'
15013 root_libdir='${root_prefix}/lib'
15014 root_sysconfdir='${root_prefix}/etc'
15016 if test "$bindir" != '${exec_prefix}/bin'; then
15017 root_bindir=$bindir
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15019 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15021 if test "$sbindir" != '${exec_prefix}/sbin'; then
15022 root_sbindir=$sbindir
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15024 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15026 if test "$libdir" != '${exec_prefix}/lib'; then
15027 root_libdir=$libdir
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15029 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15031 if test "$sysconfdir" != '${prefix}/etc'; then
15032 root_sysconfdir=$sysconfdir
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15034 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15042 # Check whether --with-multiarch was given.
15043 if test ${with_multiarch+y}
15045 withval=$with_multiarch; if test "$withval" = "lib64"; then
15049 libdir=$libdir/$withval
15050 root_libdir=$root_libdir/$withval
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15056 printf %s "checking whether we can link with -static... " >&6; }
15057 if test ${ac_cv_e2fsprogs_use_static+y}
15059 printf %s "(cached) " >&6
15061 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15073 if ac_fn_c_try_link "$LINENO"
15075 ac_cv_e2fsprogs_use_static=yes
15077 ac_cv_e2fsprogs_use_static=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LDFLAGS=$SAVE_LDFLAGS
15086 ac_cv_e2fsprogs_use_static=no
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15090 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15091 if test $ac_cv_e2fsprogs_use_static = yes; then
15092 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15098 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15100 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15104 if test "$cross_compiling" = yes ; then
15107 DO_TEST_SUITE=check
15110 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15111 if test -n "$CPPFLAGS" ; then
15112 INCLUDES="$INCLUDES $CPPFLAGS"
15114 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15115 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15117 if test -n "$WITH_DIET_LIBC" ; then
15118 INCLUDES="$INCLUDES -D_REENTRANT"
15122 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15126 if test $cross_compiling = no; then
15127 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15128 BUILD_LDFLAGS="$LDFLAGS"
15132 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15133 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15134 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15140 # Check whether --with-udev_rules_dir was given.
15141 if test ${with_udev_rules_dir+y}
15143 withval=$with_udev_rules_dir;
15145 with_udev_rules_dir=yes
15148 if test "x${with_udev_rules_dir}" != "xno"
15151 if test "x${with_udev_rules_dir}" = "xyes"
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15157 printf %s "checking for udev... " >&6; }
15159 if test -n "$udev_CFLAGS"; then
15160 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15161 elif test -n "$PKG_CONFIG"; then
15162 if test -n "$PKG_CONFIG" && \
15163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15164 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; then
15168 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15169 test "x$?" != "x0" && pkg_failed=yes
15176 if test -n "$udev_LIBS"; then
15177 pkg_cv_udev_LIBS="$udev_LIBS"
15178 elif test -n "$PKG_CONFIG"; then
15179 if test -n "$PKG_CONFIG" && \
15180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15181 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15184 test $ac_status = 0; }; then
15185 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15186 test "x$?" != "x0" && pkg_failed=yes
15196 if test $pkg_failed = yes; then
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15198 printf "%s\n" "no" >&6; }
15200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15201 _pkg_short_errors_supported=yes
15203 _pkg_short_errors_supported=no
15205 if test $_pkg_short_errors_supported = yes; then
15206 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15208 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15210 # Put the nasty error message in config.log where it belongs
15211 echo "$udev_PKG_ERRORS" >&5
15214 with_udev_rules_dir=""
15216 elif test $pkg_failed = untried; then
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 printf "%s\n" "no" >&6; }
15220 with_udev_rules_dir=""
15223 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15224 udev_LIBS=$pkg_cv_udev_LIBS
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15226 printf "%s\n" "yes" >&6; }
15228 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15234 printf %s "checking for udev rules dir... " >&6; }
15235 pkg_udev_rules_dir="${with_udev_rules_dir}"
15236 if test -n "${pkg_udev_rules_dir}"
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15240 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 printf "%s\n" "no" >&6; }
15253 have_udev="disabled"
15260 # Check whether --with-crond_dir was given.
15261 if test ${with_crond_dir+y}
15263 withval=$with_crond_dir;
15268 if test "x${with_crond_dir}" != "xno"
15271 if test "x${with_crond_dir}" = "xyes"
15274 if test -d "/etc/cron.d"
15276 with_crond_dir="/etc/cron.d"
15278 have_crond="no"; with_crond_dir=""
15282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15283 printf %s "checking for system crontab dir... " >&6; }
15284 crond_dir="${with_crond_dir}"
15285 if test -n "${crond_dir}"
15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15289 printf "%s\n" "${crond_dir}" >&6; }
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 printf "%s\n" "no" >&6; }
15302 have_crond="disabled"
15309 # Check whether --with-systemd_unit_dir was given.
15310 if test ${with_systemd_unit_dir+y}
15312 withval=$with_systemd_unit_dir;
15314 with_systemd_unit_dir=yes
15317 if test "x${with_systemd_unit_dir}" != "xno"
15320 if test "x${with_systemd_unit_dir}" = "xyes"
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15326 printf %s "checking for systemd... " >&6; }
15328 if test -n "$systemd_CFLAGS"; then
15329 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15330 elif test -n "$PKG_CONFIG"; then
15331 if test -n "$PKG_CONFIG" && \
15332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15333 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15336 test $ac_status = 0; }; then
15337 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15338 test "x$?" != "x0" && pkg_failed=yes
15345 if test -n "$systemd_LIBS"; then
15346 pkg_cv_systemd_LIBS="$systemd_LIBS"
15347 elif test -n "$PKG_CONFIG"; then
15348 if test -n "$PKG_CONFIG" && \
15349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15350 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15353 test $ac_status = 0; }; then
15354 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15355 test "x$?" != "x0" && pkg_failed=yes
15365 if test $pkg_failed = yes; then
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367 printf "%s\n" "no" >&6; }
15369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15370 _pkg_short_errors_supported=yes
15372 _pkg_short_errors_supported=no
15374 if test $_pkg_short_errors_supported = yes; then
15375 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15377 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15379 # Put the nasty error message in config.log where it belongs
15380 echo "$systemd_PKG_ERRORS" >&5
15383 with_systemd_unit_dir=""
15385 elif test $pkg_failed = untried; then
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 printf "%s\n" "no" >&6; }
15389 with_systemd_unit_dir=""
15392 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15393 systemd_LIBS=$pkg_cv_systemd_LIBS
15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15395 printf "%s\n" "yes" >&6; }
15397 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15404 printf %s "checking for systemd system unit dir... " >&6; }
15405 systemd_system_unit_dir="${with_systemd_unit_dir}"
15406 if test -n "${systemd_system_unit_dir}"
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15410 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 printf "%s\n" "no" >&6; }
15423 have_systemd="disabled"
15431 OS_IO_FILE=windows_io
15439 # Check whether --enable-largefile was given.
15440 if test ${enable_largefile+y}
15442 enableval=$enable_largefile;
15445 if test "$enable_largefile" != no; then
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15448 printf %s "checking for special C compiler options needed for large files... " >&6; }
15449 if test ${ac_cv_sys_largefile_CC+y}
15451 printf %s "(cached) " >&6
15453 ac_cv_sys_largefile_CC=no
15454 if test "$GCC" != yes; then
15457 # IRIX 6.2 and later do not support large files by default,
15458 # so use the C compiler's -n32 option if that helps.
15459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 #include <sys/types.h>
15462 /* Check that off_t can represent 2**63 - 1 correctly.
15463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15464 since some C++ compilers masquerading as C compilers
15465 incorrectly reject 9223372036854775807. */
15466 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15468 && LARGE_OFF_T % 2147483647 == 1)
15478 if ac_fn_c_try_compile "$LINENO"
15482 rm -f core conftest.err conftest.$ac_objext conftest.beam
15484 if ac_fn_c_try_compile "$LINENO"
15486 ac_cv_sys_largefile_CC=' -n32'; break
15488 rm -f core conftest.err conftest.$ac_objext conftest.beam
15492 rm -f conftest.$ac_ext
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15496 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15497 if test "$ac_cv_sys_largefile_CC" != no; then
15498 CC=$CC$ac_cv_sys_largefile_CC
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15502 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15503 if test ${ac_cv_sys_file_offset_bits+y}
15505 printf %s "(cached) " >&6
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 #include <sys/types.h>
15511 /* Check that off_t can represent 2**63 - 1 correctly.
15512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15513 since some C++ compilers masquerading as C compilers
15514 incorrectly reject 9223372036854775807. */
15515 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15517 && LARGE_OFF_T % 2147483647 == 1)
15527 if ac_fn_c_try_compile "$LINENO"
15529 ac_cv_sys_file_offset_bits=no; break
15531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 #define _FILE_OFFSET_BITS 64
15535 #include <sys/types.h>
15536 /* Check that off_t can represent 2**63 - 1 correctly.
15537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15538 since some C++ compilers masquerading as C compilers
15539 incorrectly reject 9223372036854775807. */
15540 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15542 && LARGE_OFF_T % 2147483647 == 1)
15552 if ac_fn_c_try_compile "$LINENO"
15554 ac_cv_sys_file_offset_bits=64; break
15556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15557 ac_cv_sys_file_offset_bits=unknown
15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15562 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15563 case $ac_cv_sys_file_offset_bits in #(
15566 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15570 if test $ac_cv_sys_file_offset_bits = unknown; then
15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15572 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15573 if test ${ac_cv_sys_large_files+y}
15575 printf %s "(cached) " >&6
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580 #include <sys/types.h>
15581 /* Check that off_t can represent 2**63 - 1 correctly.
15582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15583 since some C++ compilers masquerading as C compilers
15584 incorrectly reject 9223372036854775807. */
15585 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15587 && LARGE_OFF_T % 2147483647 == 1)
15597 if ac_fn_c_try_compile "$LINENO"
15599 ac_cv_sys_large_files=no; break
15601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604 #define _LARGE_FILES 1
15605 #include <sys/types.h>
15606 /* Check that off_t can represent 2**63 - 1 correctly.
15607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15608 since some C++ compilers masquerading as C compilers
15609 incorrectly reject 9223372036854775807. */
15610 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15612 && LARGE_OFF_T % 2147483647 == 1)
15622 if ac_fn_c_try_compile "$LINENO"
15624 ac_cv_sys_large_files=1; break
15626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15627 ac_cv_sys_large_files=unknown
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15632 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
15633 case $ac_cv_sys_large_files in #(
15636 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
15644 test -d lib || mkdir lib
15645 test -d include || mkdir include
15646 test -d include/linux || mkdir include/linux
15647 test -d include/asm || mkdir include/asm
15648 if test -z "$UUID_CMT" ; then
15649 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15650 lib/uuid/uuid_types.h"
15652 if test -z "$BLKID_CMT" ; then
15653 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15654 lib/blkid/blkid_types.h"
15656 for i in MCONFIG Makefile \
15657 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15658 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15659 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15660 $uuid_out_list $blkid_out_list lib/support/Makefile \
15661 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15662 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15663 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15664 tests/fuzz/Makefile resize/Makefile doc/Makefile \
15665 po/Makefile.in scrub/Makefile; do
15666 if test -d `dirname ${srcdir}/$i` ; then
15667 outlist="$outlist $i"
15670 ac_config_files="$ac_config_files $outlist"
15672 cat >confcache <<\_ACEOF
15673 # This file is a shell script that caches the results of configure
15674 # tests run on this system so they can be shared between configure
15675 # scripts and configure runs, see configure's option --config-cache.
15676 # It is not useful on other systems. If it contains results you don't
15677 # want to keep, you may remove or edit it.
15679 # config.status only pays attention to the cache file if you give it
15680 # the --recheck option to rerun configure.
15682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15684 # following values.
15688 # The following way of writing the cache mishandles newlines in values,
15689 # but we know of no workaround that is simple, portable, and efficient.
15690 # So, we kill variables containing newlines.
15691 # Ultrix sh set writes to stderr and can't be redirected directly,
15692 # and sets the high bit in the cache file unless we assign to the vars.
15694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15695 eval ac_val=\$$ac_var
15699 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15700 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15703 _ | IFS | as_nl) ;; #(
15704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15705 *) { eval $ac_var=; unset $ac_var;} ;;
15711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15712 *${as_nl}ac_space=\ *)
15713 # `set' does not quote correctly, so add quotes: double-quote
15714 # substitution turns \\\\ into \\, and sed turns \\ into \.
15717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15720 # `set' quotes correctly as required by POSIX, so do not add quotes.
15721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15730 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15735 if test -w "$cache_file"; then
15736 if test "x$cache_file" != "x/dev/null"; then
15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15738 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15739 if test ! -f "$cache_file" || test -h "$cache_file"; then
15740 cat confcache >"$cache_file"
15742 case $cache_file in #(
15744 mv -f confcache "$cache_file"$$ &&
15745 mv -f "$cache_file"$$ "$cache_file" ;; #(
15747 mv -f confcache "$cache_file" ;;
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15753 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15759 # Let make expand exec_prefix.
15760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15762 DEFS=-DHAVE_CONFIG_H
15767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15768 # 1. Remove the extension, and $U if already installed.
15769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15770 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15772 # will be set to the directory where LIBOBJS objects are built.
15773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15776 LIBOBJS=$ac_libobjs
15778 LTLIBOBJS=$ac_ltlibobjs
15783 : "${CONFIG_STATUS=./config.status}"
15785 ac_clean_files_save=$ac_clean_files
15786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15788 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15792 # Generated by $as_me.
15793 # Run this file to recreate the current configuration.
15794 # Compiler output produced by configure, useful for debugging
15795 # configure, is in config.log if it exists.
15798 ac_cs_recheck=false
15801 SHELL=\${CONFIG_SHELL-$SHELL}
15804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15805 ## -------------------- ##
15806 ## M4sh Initialization. ##
15807 ## -------------------- ##
15809 # Be more Bourne compatible
15810 DUALCASE=1; export DUALCASE # for MKS sh
15812 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15816 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15817 # is contrary to our usage. Disable this feature.
15818 alias -g '${1+"$@"}'='"$@"'
15819 setopt NO_GLOB_SUBST
15821 case `(set -o) 2>/dev/null` in #(
15831 # Reset variables that may have inherited troublesome values from
15834 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15835 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15836 # side effect of setting IFS to empty, thus disabling word splitting.)
15837 # Quoting is to prevent editors from complaining about space-tab.
15847 # Ensure predictable behavior from utilities with locale-dependent output.
15853 # We cannot yet rely on "unset" to work, but we need these variables
15854 # to be unset--not just set to an empty or harmless value--now, to
15855 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15856 # also avoids known problems related to "unset" and subshell syntax
15857 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15858 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15859 do eval test \${$as_var+y} \
15860 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15863 # Ensure that fds 0, 1, and 2 are open.
15864 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15865 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15866 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15868 # The user is always right.
15869 if ${PATH_SEPARATOR+false} :; then
15871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15878 # Find who we are. Look in the path if we contain no directory separator.
15881 *[\\/]* ) as_myself=$0 ;;
15882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15883 for as_dir in $PATH
15886 case $as_dir in #(((
15889 *) as_dir=$as_dir/ ;;
15891 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15897 # We did not find ourselves, most probably we were run as `sh COMMAND'
15898 # in which case we are not to be found in the path.
15899 if test "x$as_myself" = x; then
15902 if test ! -f "$as_myself"; then
15903 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15909 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15910 # ----------------------------------------
15911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15913 # script with STATUS, using 1 if that was 0.
15916 as_status=$1; test $as_status -eq 0 && as_status=1
15918 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15921 printf "%s\n" "$as_me: error: $2" >&2
15922 as_fn_exit $as_status
15927 # as_fn_set_status STATUS
15928 # -----------------------
15929 # Set $? to STATUS, without forking.
15930 as_fn_set_status ()
15933 } # as_fn_set_status
15935 # as_fn_exit STATUS
15936 # -----------------
15937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15941 as_fn_set_status $1
15947 # Portably unset VAR.
15950 { eval $1=; unset $1;}
15952 as_unset=as_fn_unset
15954 # as_fn_append VAR VALUE
15955 # ----------------------
15956 # Append the text in VALUE to the end of the definition contained in VAR. Take
15957 # advantage of any shell optimizations that allow amortized linear growth over
15958 # repeated appends, instead of the typical quadratic growth present in naive
15960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15962 eval 'as_fn_append ()
15973 # as_fn_arith ARG...
15974 # ------------------
15975 # Perform arithmetic evaluation on the ARGs, and store the result in the
15976 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15977 # must be portable across $(()) and expr.
15978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15980 eval 'as_fn_arith ()
15987 as_val=`expr "$@" || test $? -eq 1`
15992 if expr a : '\(a\)' >/dev/null 2>&1 &&
15993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16000 as_basename=basename
16005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16011 as_me=`$as_basename -- "$0" ||
16012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16013 X"$0" : 'X\(//\)$' \| \
16014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16015 printf "%s\n" X/"$0" |
16016 sed '/^.*\/\([^/][^/]*\)\/*$/{
16030 # Avoid depending upon Character Ranges.
16031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16034 as_cr_digits='0123456789'
16035 as_cr_alnum=$as_cr_Letters$as_cr_digits
16038 # Determine whether it's possible to make 'echo' print without a newline.
16039 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16040 # for compatibility with existing Makefiles.
16041 ECHO_C= ECHO_N= ECHO_T=
16042 case `echo -n x` in #(((((
16044 case `echo 'xy\c'` in
16045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16047 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16054 # For backward compatibility with old third-party macros, we provide
16055 # the shell variables $as_echo and $as_echo_n. New code should use
16056 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16057 as_echo='printf %s\n'
16058 as_echo_n='printf %s'
16060 rm -f conf$$ conf$$.exe conf$$.file
16061 if test -d conf$$.dir; then
16062 rm -f conf$$.dir/conf$$.file
16065 mkdir conf$$.dir 2>/dev/null
16067 if (echo >conf$$.file) 2>/dev/null; then
16068 if ln -s conf$$.file conf$$ 2>/dev/null; then
16070 # ... but there are two gotchas:
16071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16073 # In both cases, we have to default to `cp -pR'.
16074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16076 elif ln conf$$.file conf$$ 2>/dev/null; then
16084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16085 rmdir conf$$.dir 2>/dev/null
16090 # Create "$as_dir" as a directory, including parents if necessary.
16095 -*) as_dir=./$as_dir;;
16097 test -d "$as_dir" || eval $as_mkdir_p || {
16101 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16102 *) as_qdir=$as_dir;;
16104 as_dirs="'$as_qdir' $as_dirs"
16105 as_dir=`$as_dirname -- "$as_dir" ||
16106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107 X"$as_dir" : 'X\(//\)[^/]' \| \
16108 X"$as_dir" : 'X\(//\)$' \| \
16109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16110 printf "%s\n" X"$as_dir" |
16111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16115 /^X\(\/\/\)[^/].*/{
16128 test -d "$as_dir" && break
16130 test -z "$as_dirs" || eval "mkdir $as_dirs"
16131 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16135 if mkdir -p . 2>/dev/null; then
16136 as_mkdir_p='mkdir -p "$as_dir"'
16138 test -d ./-p && rmdir ./-p
16143 # as_fn_executable_p FILE
16144 # -----------------------
16145 # Test if FILE is an executable regular file.
16146 as_fn_executable_p ()
16148 test -f "$1" && test -x "$1"
16149 } # as_fn_executable_p
16150 as_test_x='test -x'
16151 as_executable_p=as_fn_executable_p
16153 # Sed expression to map a string onto a valid CPP name.
16154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16156 # Sed expression to map a string onto a valid variable name.
16157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16161 ## ----------------------------------- ##
16162 ## Main body of $CONFIG_STATUS script. ##
16163 ## ----------------------------------- ##
16165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 # Save the log message, to keep $0 and so on meaningful, and to
16169 # report actual input values of CONFIG_FILES etc. instead of their
16170 # values after options handling.
16172 This file was extended by $as_me, which was
16173 generated by GNU Autoconf 2.71. Invocation command line was
16175 CONFIG_FILES = $CONFIG_FILES
16176 CONFIG_HEADERS = $CONFIG_HEADERS
16177 CONFIG_LINKS = $CONFIG_LINKS
16178 CONFIG_COMMANDS = $CONFIG_COMMANDS
16181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16186 case $ac_config_files in *"
16187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16190 case $ac_config_headers in *"
16191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 # Files that config.status was made for.
16197 config_files="$ac_config_files"
16198 config_headers="$ac_config_headers"
16199 config_commands="$ac_config_commands"
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 \`$as_me' instantiates files and other configuration actions
16206 from templates according to the current configuration. Unless the files
16207 and actions are specified as TAGs, all are instantiated by default.
16209 Usage: $0 [OPTION]... [TAG]...
16211 -h, --help print this help, then exit
16212 -V, --version print version number and configuration settings, then exit
16213 --config print configuration, then exit
16214 -q, --quiet, --silent
16215 do not print progress messages
16216 -d, --debug don't remove temporary files
16217 --recheck update $as_me by reconfiguring in the same conditions
16218 --file=FILE[:TEMPLATE]
16219 instantiate the configuration file FILE
16220 --header=FILE[:TEMPLATE]
16221 instantiate the configuration header FILE
16223 Configuration files:
16226 Configuration headers:
16229 Configuration commands:
16232 Report bugs to the package provider."
16235 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16236 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 ac_cs_config='$ac_cs_config_escaped'
16241 configured by $0, generated by GNU Autoconf 2.71,
16242 with options \\"\$ac_cs_config\\"
16244 Copyright (C) 2021 Free Software Foundation, Inc.
16245 This config.status script is free software; the Free Software Foundation
16246 gives unlimited permission to copy, distribute and modify it."
16253 test -n "\$AWK" || AWK=awk
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 # The default lists apply if the user does not specify any file.
16263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16280 # Handling of the options.
16281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16284 printf "%s\n" "$ac_cs_version"; exit ;;
16285 --config | --confi | --conf | --con | --co | --c )
16286 printf "%s\n" "$ac_cs_config"; exit ;;
16287 --debug | --debu | --deb | --de | --d | -d )
16289 --file | --fil | --fi | --f )
16292 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16293 '') as_fn_error $? "missing file argument" ;;
16295 as_fn_append CONFIG_FILES " '$ac_optarg'"
16296 ac_need_defaults=false;;
16297 --header | --heade | --head | --hea )
16300 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16302 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16303 ac_need_defaults=false;;
16305 # Conflict between --help and --header
16306 as_fn_error $? "ambiguous option: \`$1'
16307 Try \`$0 --help' for more information.";;
16308 --help | --hel | -h )
16309 printf "%s\n" "$ac_cs_usage"; exit ;;
16310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16311 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16314 # This is an error.
16315 -*) as_fn_error $? "unrecognized option: \`$1'
16316 Try \`$0 --help' for more information." ;;
16318 *) as_fn_append ac_config_targets " $1"
16319 ac_need_defaults=false ;;
16325 ac_configure_extra_args=
16327 if $ac_cs_silent; then
16329 ac_configure_extra_args="$ac_configure_extra_args --silent"
16333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16334 if \$ac_cs_recheck; then
16335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16337 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16338 CONFIG_SHELL='$SHELL'
16339 export CONFIG_SHELL
16344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16349 ## Running $as_me. ##
16351 printf "%s\n" "$ac_log"
16355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16359 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16360 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16361 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16362 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16363 LINGUAS="${LINGUAS-%UNSET%}"
16368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 # Handling of arguments.
16371 for ac_config_target in $ac_config_targets
16373 case $ac_config_target in
16374 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16375 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16376 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16378 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16383 # If the user did not use the arguments to specify the items to instantiate,
16384 # then the envvar interface is used. Set only those that are not.
16385 # We use the long form for the default assignment because of an extremely
16386 # bizarre bug on SunOS 4.1.3.
16387 if $ac_need_defaults; then
16388 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16389 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16390 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16393 # Have a temporary directory for convenience. Make it in the build tree
16394 # simply because there is no reason against having it here, and in addition,
16395 # creating and moving files from /tmp can sometimes cause problems.
16396 # Hook for its removal unless debugging.
16397 # Note that there is a small window in which the directory will not be cleaned:
16398 # after its creation but before its name has been assigned to `$tmp'.
16402 trap 'exit_status=$?
16403 : "${ac_tmp:=$tmp}"
16404 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16406 trap 'as_fn_exit 1' 1 2 13 15
16408 # Create a (secure) tmp directory for tmp files.
16411 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16415 tmp=./conf$$-$RANDOM
16416 (umask 077 && mkdir "$tmp")
16417 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16420 # Set up the scripts for CONFIG_FILES section.
16421 # No need to generate them if there are no CONFIG_FILES.
16422 # This happens for instance with `./config.status config.h'.
16423 if test -n "$CONFIG_FILES"; then
16425 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16426 ac_cs_awk_getline=:
16427 ac_cs_awk_pipe_init=
16428 ac_cs_awk_read_file='
16429 while ((getline aline < (F[key])) > 0)
16432 ac_cs_awk_pipe_fini=
16434 ac_cs_awk_getline=false
16435 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16436 ac_cs_awk_read_file='
16438 print "cat " F[key] " &&"
16439 '$ac_cs_awk_pipe_init
16440 # The final `:' finishes the AND list.
16441 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16443 ac_cr=`echo X | tr X '\015'`
16444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16445 # But we know of no other shell where ac_cr would be empty at this
16446 # point, so we can use a bashism as a fallback.
16447 if test "x$ac_cr" = x; then
16448 eval ac_cr=\$\'\\r\'
16450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16454 ac_cs_awk_cr=$ac_cr
16457 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16460 # Create commands to substitute file output variables.
16462 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16463 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16464 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16467 } >conf$$files.sh &&
16468 . ./conf$$files.sh ||
16469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16470 rm -f conf$$files.sh
16473 echo "cat >conf$$subs.awk <<_ACEOF" &&
16474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16476 } >conf$$subs.sh ||
16477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16478 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16480 for ac_last_try in false false false false false :; do
16481 . ./conf$$subs.sh ||
16482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16485 if test $ac_delim_n = $ac_delim_num; then
16487 elif $ac_last_try; then
16488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16493 rm -f conf$$subs.sh
16495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16496 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16500 s/^/S["/; s/!.*/"]=/
16510 s/\(.\{148\}\)..*/\1/
16512 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16524 s/\(.\{148\}\)..*/\1/
16526 s/["\\]/\\&/g; s/^/"/; s/$/"/
16530 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16535 ' <conf$$subs.awk | sed '
16540 ' >>$CONFIG_STATUS || ac_write_fail=1
16541 rm -f conf$$subs.awk
16542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16544 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16545 for (key in S) S_is_set[key] = 1
16547 \$ac_cs_awk_pipe_init
16551 nfields = split(line, field, "@")
16553 len = length(field[1])
16554 for (i = 2; i < nfields; i++) {
16556 keylen = length(key)
16557 if (S_is_set[key]) {
16559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16560 len += length(value) + length(field[++i])
16565 if (nfields == 3 && !substed) {
16567 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16568 \$ac_cs_awk_read_file
16574 \$ac_cs_awk_pipe_fini
16577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16578 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16579 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16582 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16583 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16586 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16587 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16588 # trailing colons and then remove the whole line if VPATH becomes empty
16589 # (actually we leave an empty line to preserve line numbers).
16590 if test "x$srcdir" = x.; then
16591 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 fi # test -n "$CONFIG_FILES"
16612 # Set up the scripts for CONFIG_HEADERS section.
16613 # No need to generate them if there are no CONFIG_HEADERS.
16614 # This happens for instance with `./config.status Makefile'.
16615 if test -n "$CONFIG_HEADERS"; then
16616 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16620 # Transform confdefs.h into an awk script `defines.awk', embedded as
16621 # here-document in config.status, that substitutes the proper values into
16622 # config.h.in to produce config.h.
16624 # Create a delimiter string that does not exist in confdefs.h, to ease
16625 # handling of long lines.
16627 for ac_last_try in false false :; do
16628 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16629 if test -z "$ac_tt"; then
16631 elif $ac_last_try; then
16632 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16638 # For the awk script, D is an array of macro values keyed by name,
16639 # likewise P contains macro parameters if any. Preserve backslash
16640 # newline sequences.
16642 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16644 s/.\{148\}/&'"$ac_delim"'/g
16647 s/^[ ]*#[ ]*define[ ][ ]*/ /
16654 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16656 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16660 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16661 D["\1"]=" \3\\\\\\n"\\/p
16663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16668 s/.\{148\}/&'"$ac_delim"'/g
16673 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16676 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16678 ' <confdefs.h | sed '
16679 s/'"$ac_delim"'/"\\\
16680 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 for (key in D) D_is_set[key] = 1
16686 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16688 split(line, arg, " ")
16689 if (arg[1] == "#") {
16693 defundef = substr(arg[1], 2)
16696 split(mac1, mac2, "(") #)
16698 prefix = substr(line, 1, index(line, defundef) - 1)
16699 if (D_is_set[macro]) {
16700 # Preserve the white space surrounding the "#".
16701 print prefix "define", macro P[macro] D[macro]
16704 # Replace #undef with comments. This is necessary, for example,
16705 # in the case of _POSIX_SOURCE, which is predefined and required
16706 # on some systems where configure will not decide to define it.
16707 if (defundef == "undef") {
16708 print "/*", prefix defundef, macro, "*/"
16716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16717 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16718 fi # test -n "$CONFIG_HEADERS"
16721 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16726 :[FHLC]) ac_mode=$ac_tag; continue;;
16728 case $ac_mode$ac_tag in
16730 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16731 :[FH]-) ac_tag=-:-;;
16732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16749 -) ac_f="$ac_tmp/stdin";;
16750 *) # Look for the file first in the build tree, then in the source tree
16751 # (if the path is not absolute). The absolute path cannot be DOS-style,
16752 # because $ac_f cannot contain `:'.
16756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16758 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16760 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16761 as_fn_append ac_file_inputs " '$ac_f'"
16764 # Let's still pretend it is `configure' which instantiates (i.e., don't
16765 # use $as_me), people would be surprised to read:
16766 # /* config.h. Generated by config.status. */
16767 configure_input='Generated from '`
16768 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16770 if test x"$ac_file" != x-; then
16771 configure_input="$ac_file. $configure_input"
16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16773 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16775 # Neutralize special characters interpreted by sed in replacement strings.
16776 case $configure_input in #(
16777 *\&* | *\|* | *\\* )
16778 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16779 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16780 *) ac_sed_conf_input=$configure_input;;
16784 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16790 ac_dir=`$as_dirname -- "$ac_file" ||
16791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16792 X"$ac_file" : 'X\(//\)[^/]' \| \
16793 X"$ac_file" : 'X\(//\)$' \| \
16794 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16795 printf "%s\n" X"$ac_file" |
16796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16800 /^X\(\/\/\)[^/].*/{
16813 as_dir="$ac_dir"; as_fn_mkdir_p
16817 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16819 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16820 # A ".." for each directory in $ac_dir_suffix.
16821 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16822 case $ac_top_builddir_sub in
16823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16827 ac_abs_top_builddir=$ac_pwd
16828 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16829 # for backward compatibility:
16830 ac_top_builddir=$ac_top_build_prefix
16833 .) # We are building in place.
16835 ac_top_srcdir=$ac_top_builddir_sub
16836 ac_abs_top_srcdir=$ac_pwd ;;
16837 [\\/]* | ?:[\\/]* ) # Absolute name.
16838 ac_srcdir=$srcdir$ac_dir_suffix;
16839 ac_top_srcdir=$srcdir
16840 ac_abs_top_srcdir=$srcdir ;;
16841 *) # Relative name.
16842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16843 ac_top_srcdir=$ac_top_build_prefix$srcdir
16844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16846 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16859 ac_MKDIR_P=$MKDIR_P
16861 [\\/$]* | ?:[\\/]* ) ;;
16862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16867 # If the template does not know about datarootdir, expand it.
16868 # FIXME: This hack should be removed a few years after 2.60.
16869 ac_datarootdir_hack=; ac_datarootdir_seen=
16880 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16881 *datarootdir*) ac_datarootdir_seen=yes;;
16882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16884 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16887 ac_datarootdir_hack='
16888 s&@datadir@&$datadir&g
16889 s&@docdir@&$docdir&g
16890 s&@infodir@&$infodir&g
16891 s&@localedir@&$localedir&g
16892 s&@mandir@&$mandir&g
16893 s&\\\${datarootdir}&$datarootdir&g' ;;
16897 # Neutralize VPATH when `$srcdir' = `.'.
16898 # Shell code in configure.ac might set extrasub.
16899 # FIXME: do we really want to maintain this feature?
16900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16901 ac_sed_extra="$ac_vpsub
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16907 s|@configure_input@|$ac_sed_conf_input|;t t
16908 s&@top_builddir@&$ac_top_builddir_sub&;t t
16909 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16910 s&@srcdir@&$ac_srcdir&;t t
16911 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16912 s&@top_srcdir@&$ac_top_srcdir&;t t
16913 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16914 s&@builddir@&$ac_builddir&;t t
16915 s&@abs_builddir@&$ac_abs_builddir&;t t
16916 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16917 s&@INSTALL@&$ac_INSTALL&;t t
16918 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16919 $ac_datarootdir_hack
16921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16922 if $ac_cs_awk_getline; then
16923 $AWK -f "$ac_tmp/subs.awk"
16925 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16927 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16929 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16930 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16931 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16932 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16934 which seems to be undefined. Please make sure it is defined" >&5
16935 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16936 which seems to be undefined. Please make sure it is defined" >&2;}
16938 rm -f "$ac_tmp/stdin"
16940 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16941 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16949 if test x"$ac_file" != x-; then
16951 printf "%s\n" "/* $configure_input */" >&1 \
16952 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16953 } >"$ac_tmp/config.h" \
16954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16955 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16957 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16960 mv "$ac_tmp/config.h" "$ac_file" \
16961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16964 printf "%s\n" "/* $configure_input */" >&1 \
16965 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16966 || as_fn_error $? "could not create -" "$LINENO" 5
16970 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16971 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16976 case $ac_file$ac_mode in
16977 "po-directories":C)
16978 for ac_file in $CONFIG_FILES; do
16979 # Support "outfile[:infile[:infile...]]"
16981 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16983 # PO directories have a Makefile.in generated from Makefile.in.in.
16984 case "$ac_file" in */Makefile.in)
16985 # Adjust a relative srcdir.
16986 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16987 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16988 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16989 # In autoconf-2.13 it is called $ac_given_srcdir.
16990 # In autoconf-2.50 it is called $srcdir.
16991 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16992 case "$ac_given_srcdir" in
16993 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16994 /*) top_srcdir="$ac_given_srcdir" ;;
16995 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16997 # Treat a directory as a PO directory if and only if it has a
16998 # POTFILES.in file. This allows packages to have multiple PO
16999 # directories under different names or in different locations.
17000 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17001 rm -f "$ac_dir/POTFILES"
17002 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17003 gt_tab=`printf '\t'`
17004 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"
17005 POMAKEFILEDEPS="POTFILES.in"
17006 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17007 # on $ac_dir but don't depend on user-specified configuration
17009 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17010 # The LINGUAS file contains the set of available languages.
17011 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17012 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17014 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17015 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17017 # The set of available languages was given in configure.in.
17018 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17021 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17022 # Compute UPDATEPOFILES
17023 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17024 # Compute DUMMYPOFILES
17025 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17027 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17028 case "$ac_given_srcdir" in
17030 *) srcdirpre='$(srcdir)/' ;;
17036 for lang in $ALL_LINGUAS; do
17037 POFILES="$POFILES $srcdirpre$lang.po"
17038 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17039 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17040 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17042 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17043 # environment variable.
17045 if test -n "$ALL_LINGUAS"; then
17046 for presentlang in $ALL_LINGUAS; do
17048 if test "%UNSET%" != "$LINGUAS"; then
17049 desiredlanguages="$LINGUAS"
17051 desiredlanguages="$ALL_LINGUAS"
17053 for desiredlang in $desiredlanguages; do
17054 # Use the presentlang catalog if desiredlang is
17055 # a. equal to presentlang, or
17056 # b. a variant of presentlang (because in this case,
17057 # presentlang can be used as a fallback for messages
17058 # which are not translated in the desiredlang catalog).
17059 case "$desiredlang" in
17060 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
17065 if test $useit = yes; then
17066 INST_LINGUAS="$INST_LINGUAS $presentlang"
17071 if test -n "$INST_LINGUAS"; then
17072 for lang in $INST_LINGUAS; do
17073 CATALOGS="$CATALOGS $lang.gmo"
17076 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17077 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"
17078 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17079 if test -f "$f"; then
17081 *.orig | *.bak | *~) ;;
17082 *) cat "$f" >> "$ac_dir/Makefile" ;;
17097 ac_clean_files=$ac_clean_files_save
17099 test $ac_write_fail = 0 ||
17100 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17103 # configure is writing to config.log, and then calls config.status.
17104 # config.status does its own redirection, appending to config.log.
17105 # Unfortunately, on DOS this fails, as config.log is still kept open
17106 # by configure, so config.status won't be able to write to it; its
17107 # output is simply discarded. So we exec the FD to /dev/null,
17108 # effectively closing config.log, so it can be properly (re)opened and
17109 # appended to by config.status. When coming back to configure, we
17110 # need to make the FD available again.
17111 if test "$no_create" != yes; then
17113 ac_config_status_args=
17114 test "$silent" = yes &&
17115 ac_config_status_args="$ac_config_status_args --quiet"
17117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17120 # would make configure fail if this is the last instruction.
17121 $ac_cs_success || as_fn_exit 1
17123 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17125 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17128 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi