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
744 XGETTEXT_EXTRA_OPTIONS
745 MSGMERGE_FOR_MSGFMT_OPTION
752 GETTEXT_MACRO_VERSION
870 program_transform_name
881 ac_subst_files='MCONFIG
887 PUBLIC_CONFIG_HEADER'
889 enable_option_checking
895 enable_maintainer_mode
896 enable_symlink_install
897 enable_relative_symlinks
898 enable_symlink_relative_symlinks
900 enable_verbose_makecmds
909 enable_developer_features
919 enable_e2initrd_helper
926 enable_bmap_stats_ops
942 with_systemd_unit_dir
944 ac_precious_vars='build_alias
967 # Initialize some variables set by options.
969 ac_init_version=false
970 ac_unrecognized_opts=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
981 program_transform_name=s,x,x,
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 runstatedir='${localstatedir}/run'
1004 includedir='${prefix}/include'
1005 oldincludedir='/usr/include'
1006 docdir='${datarootdir}/doc/${PACKAGE}'
1007 infodir='${datarootdir}/info'
1012 libdir='${exec_prefix}/lib'
1013 localedir='${datarootdir}/locale'
1014 mandir='${datarootdir}/man'
1020 # If the previous option needs an argument, assign it.
1021 if test -n "$ac_prev"; then
1022 eval $ac_prev=\$ac_option
1028 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 case $ac_dashdash$ac_option in
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1057 -datadir | --datadir | --datadi | --datad)
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval enable_$ac_useropt=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1254 -runstatedir | --runstatedir | --runstatedi | --runstated \
1255 | --runstate | --runstat | --runsta | --runst | --runs \
1256 | --run | --ru | --r)
1257 ac_prev=runstatedir ;;
1258 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1259 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1260 | --run=* | --ru=* | --r=*)
1261 runstatedir=$ac_optarg ;;
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 sbindir=$ac_optarg ;;
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 sharedstatedir=$ac_optarg ;;
1280 -site | --site | --sit)
1282 -site=* | --site=* | --sit=*)
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288 srcdir=$ac_optarg ;;
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295 sysconfdir=$ac_optarg ;;
1297 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 ac_prev=target_alias ;;
1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300 target_alias=$ac_optarg ;;
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
1309 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: \`$ac_useropt'"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1322 eval with_$ac_useropt=\$ac_optarg ;;
1324 -without-* | --without-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error $? "invalid package name: \`$ac_useropt'"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1338 eval with_$ac_useropt=no ;;
1341 # Obsolete; use --with-x.
1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345 | --x-incl | --x-inc | --x-in | --x-i)
1346 ac_prev=x_includes ;;
1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349 x_includes=$ac_optarg ;;
1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 ac_prev=x_libraries ;;
1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356 x_libraries=$ac_optarg ;;
1358 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1359 Try \`$0 --help' for more information"
1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
1365 case $ac_envvar in #(
1366 '' | [0-9]* | *[!_$as_cr_alnum]* )
1367 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369 eval $ac_envvar=\$ac_optarg
1370 export $ac_envvar ;;
1373 # FIXME: should be removed in autoconf 3.0.
1374 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1376 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1377 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1383 if test -n "$ac_prev"; then
1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1385 as_fn_error $? "missing argument to $ac_option"
1388 if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1391 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1392 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 # Check all directory arguments for consistency.
1397 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir runstatedir
1402 eval ac_val=\$$ac_var
1403 # Remove trailing slashes.
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1409 # Be sure to have absolute directory names.
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1422 target=$target_alias
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
1428 elif test "x$build_alias" != "x$host_alias"; then
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error $? "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error $? "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 printf "%s\n" X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking ...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 if test -n "$ac_init_help"; then
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --enable-maintainer-mode
1586 enable makefile rules useful for maintainers
1587 --enable-symlink-install
1588 use symlinks when installing instead of hard links
1589 --enable-relative-symlinks
1590 use relative symlinks when installing
1592 --enable-symlink-build use symlinks while building instead of hard links
1593 --enable-verbose-makecmds
1594 enable verbose make command output
1595 --enable-elf-shlibs select ELF shared libraries
1596 --enable-bsd-shlibs select BSD shared libraries
1597 --enable-profile build profiling libraries
1598 --enable-gcov build for coverage testing using gcov
1599 --enable-hardening build for coverage testing using gcov
1600 --enable-jbd-debug enable journal debugging
1601 --enable-blkid-debug enable blkid debugging
1602 --disable-testio-debug disable the use of the test I/O manager for
1604 --enable-developer-features
1605 enable features for use by ext4 developers
1606 --enable-libuuid build and use private uuid library
1607 --enable-libblkid build and use private blkid library
1608 --enable-subset enable subset-only build
1609 --disable-backtrace disable use backtrace
1610 --disable-debugfs disable support of debugfs program
1611 --disable-imager disable support of e2image program
1612 --disable-resizer disable support of e2resize program
1613 --disable-defrag disable support of e4defrag program
1614 --enable-fsck build fsck wrapper program
1615 --enable-e2initrd-helper
1616 build e2initrd-helper program
1617 --disable-tls disable use of thread local support
1618 --disable-uuidd disable building the uuid daemon
1619 --disable-mmp disable support mmp, Multi Mount Protection
1620 --disable-tdb disable tdb support
1621 --disable-bmap-stats disable collection of bitmap stats
1622 --enable-bmap-stats-ops enable collection of additional bitmap stats
1623 --disable-nls do not use Native Language Support
1624 --disable-rpath do not hardcode runtime library paths
1625 --disable-largefile omit support for large files
1626 --disable-fuse2fs do not build fuse2fs
1627 --enable-lto enable link time optimization
1628 --enable-ubsan enable undefined behavior sanitizer
1629 --enable-addrsan enable address sanitizer
1630 --enable-threadsan enable thread sanitizer
1631 --enable-fuzzing enable fuzzing sanitizer
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-diet-libc use diet libc
1637 --with-cc no longer supported, use CC= instead
1638 --with-ccopts no longer supported, use CFLAGS= instead
1639 --with-ldopts no longer supported, use LDFLAGS= instead
1640 --with-root-prefix=PREFIX
1641 override prefix variable for files to be placed in
1643 --without-pthread disable use of pthread support
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1646 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1647 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1648 --without-libintl-prefix don't search for libintl in includedir and libdir
1649 --with-multiarch=ARCH specify the multiarch triplet
1650 --with-udev-rules-dir[=DIR]
1651 Install udev rules into DIR.
1652 --with-crond-dir[=DIR] Install system crontabs into DIR.
1653 --with-systemd-unit-dir[=DIR]
1654 Install systemd system units into DIR.
1656 Some influential environment variables:
1657 CC C compiler command
1658 CFLAGS C compiler flags
1659 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1660 nonstandard directory <lib dir>
1661 LIBS libraries to pass to the linker, e.g. -l<library>
1662 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1663 you have headers in a nonstandard directory <include dir>
1665 PKG_CONFIG path to pkg-config utility
1667 directories to add to pkg-config's search path
1669 path overriding pkg-config's built-in search path
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1672 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1673 udev_LIBS linker flags for udev, overriding pkg-config
1675 C compiler flags for systemd, overriding pkg-config
1677 linker flags for systemd, overriding pkg-config
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to the package provider.
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1712 .) # We are building in place.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for configure.gnu first; this name is used for a wrapper for
1729 # Metaconfig's "Configure" on case-insensitive file systems.
1730 if test -f "$ac_srcdir/configure.gnu"; then
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1735 $SHELL "$ac_srcdir/configure" --help=recursive
1737 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 cd "$ac_pwd" || { ac_status=$?; break; }
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1747 generated by GNU Autoconf 2.71
1749 Copyright (C) 2021 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest.beam
1767 if { { ac_try="$ac_compile"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 printf "%s\n" "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext
1789 printf "%s\n" "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_c_try_compile
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 printf %s "checking for $2... " >&6; }
1808 if eval test \${$3+y}
1810 printf %s "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_header_compile
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1864 printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 printf "%s\n" "$ac_try_echo"; } >&5
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } > conftest.i && {
1901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1907 printf "%s\n" "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1920 # executables *can* be run.
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 printf "%s\n" "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 printf "%s\n" "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }
1948 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1949 printf "%s\n" "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=$ac_status
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 printf %s "checking for $2... " >&6; }
1968 if eval test \${$3+y}
1970 printf %s "(cached) " >&6
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1976 #define $2 innocuous_$2
1978 /* System header to define __stub macros and hopefully few prototypes,
1979 which can conflict with char $2 (); below. */
1984 /* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined __stub_$2 || defined __stub___$2
2006 if ac_fn_c_try_link "$LINENO"
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2013 conftest$ac_exeext conftest.$ac_ext
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 printf "%s\n" "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_func
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 printf %s "checking for $2.$3... " >&6; }
2031 if eval test \${$4+y}
2033 printf %s "(cached) " >&6
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2059 if (sizeof ac_aggr.$3)
2065 if ac_fn_c_try_compile "$LINENO"
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 } # ac_fn_c_check_member
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 printf %s "checking for $2... " >&6; }
2091 if eval test \${$3+y}
2093 printf %s "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2108 if ac_fn_c_try_compile "$LINENO"
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"
2128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 printf "%s\n" "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_type
2139 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2140 # ------------------------------------------------------------------
2141 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2142 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 as_decl_name=`echo $2|sed 's/ *(.*//'`
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2148 printf %s "checking whether $as_decl_name is declared... " >&6; }
2149 if eval test \${$3+y}
2151 printf %s "(cached) " >&6
2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154 eval ac_save_FLAGS=\$$6
2155 as_fn_append $6 " $5"
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 #ifndef $as_decl_name
2164 (void) $as_decl_use;
2166 (void) $as_decl_name;
2174 if ac_fn_c_try_compile "$LINENO"
2180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 eval $6=\$ac_save_FLAGS
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 printf "%s\n" "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_check_decl
2191 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2192 # --------------------------------------------
2193 # Tries to find the compile-time value of EXPR in a program that includes
2194 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2196 ac_fn_c_compute_int ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 if test "$cross_compiling" = yes; then
2200 # Depending upon the size, compute the lo and hi bounds.
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) >= 0)];
2209 return test_array [0];
2215 if ac_fn_c_try_compile "$LINENO"
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 return test_array [0];
2233 if ac_fn_c_try_compile "$LINENO"
2235 ac_hi=$ac_mid; break
2237 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2238 if test $ac_lo -le $ac_mid; then
2242 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) < 0)];
2255 return test_array [0];
2261 if ac_fn_c_try_compile "$LINENO"
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2273 return test_array [0];
2279 if ac_fn_c_try_compile "$LINENO"
2281 ac_lo=$ac_mid; break
2283 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284 if test $ac_mid -le $ac_hi; then
2288 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 # Binary search between lo and hi bounds.
2299 while test "x$ac_lo" != "x$ac_hi"; do
2300 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2309 return test_array [0];
2315 if ac_fn_c_try_compile "$LINENO"
2319 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2331 static long int longval (void) { return $2; }
2332 static unsigned long int ulongval (void) { return $2; }
2339 FILE *f = fopen ("conftest.val", "w");
2344 long int i = longval ();
2347 fprintf (f, "%ld", i);
2351 unsigned long int i = ulongval ();
2354 fprintf (f, "%lu", i);
2356 /* Do not output a trailing newline, as this causes \r\n confusion
2357 on some platforms. */
2358 return ferror (f) || fclose (f) != 0;
2364 if ac_fn_c_try_run "$LINENO"
2366 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2371 conftest.$ac_objext conftest.beam conftest.$ac_ext
2375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 as_fn_set_status $ac_retval
2378 } # ac_fn_c_compute_int
2380 # ac_fn_cxx_try_compile LINENO
2381 # ----------------------------
2382 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_cxx_try_compile ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest.beam
2387 if { { ac_try="$ac_compile"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 printf "%s\n" "$ac_try_echo"; } >&5
2394 (eval "$ac_compile") 2>conftest.err
2396 if test -s conftest.err; then
2397 grep -v '^ *+' conftest.err >conftest.er1
2398 cat conftest.er1 >&5
2399 mv -f conftest.er1 conftest.err
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_cxx_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest.$ac_objext
2409 printf "%s\n" "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_cxx_try_compile
2418 ac_configure_args_raw=
2423 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 as_fn_append ac_configure_args_raw " '$ac_arg'"
2428 case $ac_configure_args_raw in
2432 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2433 ac_unsafe_a="$ac_unsafe_z#~"
2434 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2435 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2438 cat >config.log <<_ACEOF
2439 This file contains any messages produced by compilers while
2440 running configure, to aid debugging if configure makes a mistake.
2442 It was created by $as_me, which was
2443 generated by GNU Autoconf 2.71. Invocation command line was
2445 $ $0$ac_configure_args_raw
2455 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2456 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2457 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2458 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2459 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2461 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2462 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2464 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2465 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2466 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2467 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2468 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2469 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2470 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 case $as_dir in #(((
2481 *) as_dir=$as_dir/ ;;
2483 printf "%s\n" "PATH: $as_dir"
2499 # Keep a trace of the command line.
2500 # Strip out --no-create and --no-recursion so they do not pile up.
2501 # Strip out --silent because we don't want to record it for future runs.
2502 # Also quote any args containing shell meta-characters.
2503 # Make two passes to allow for proper duplicate-argument suppression.
2507 ac_must_keep_next=false
2513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515 | -silent | --silent | --silen | --sile | --sil)
2518 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2523 as_fn_append ac_configure_args1 " '$ac_arg'"
2524 if test $ac_must_keep_next = true; then
2525 ac_must_keep_next=false # Got value, back to normal.
2528 *=* | --config-cache | -C | -disable-* | --disable-* \
2529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531 | -with-* | --with-* | -without-* | --without-* | --x)
2532 case "$ac_configure_args0 " in
2533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536 -* ) ac_must_keep_next=true ;;
2539 as_fn_append ac_configure_args " '$ac_arg'"
2544 { ac_configure_args0=; unset ac_configure_args0;}
2545 { ac_configure_args1=; unset ac_configure_args1;}
2547 # When interrupted or exit'd, cleanup temporary files, and complete
2548 # config.log. We remove comments because anyway the quotes in there
2549 # would cause problems or look ugly.
2550 # WARNING: Use '\'' to represent an apostrophe within the trap.
2551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552 trap 'exit_status=$?
2555 # Save into config.log some information that might help in debugging.
2559 printf "%s\n" "## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##"
2563 # The following way of writing the cache mishandles newlines in values,
2565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566 eval ac_val=\$$ac_var
2570 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2574 _ | IFS | as_nl) ;; #(
2575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576 *) { eval $ac_var=; unset $ac_var;} ;;
2581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582 *${as_nl}ac_space=\ *)
2584 "s/'\''/'\''\\\\'\'''\''/g;
2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2595 printf "%s\n" "## ----------------- ##
2596 ## Output variables. ##
2597 ## ----------------- ##"
2599 for ac_var in $ac_subst_vars
2601 eval ac_val=\$$ac_var
2603 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2605 printf "%s\n" "$ac_var='\''$ac_val'\''"
2609 if test -n "$ac_subst_files"; then
2610 printf "%s\n" "## ------------------- ##
2611 ## File substitutions. ##
2612 ## ------------------- ##"
2614 for ac_var in $ac_subst_files
2616 eval ac_val=\$$ac_var
2618 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620 printf "%s\n" "$ac_var='\''$ac_val'\''"
2625 if test -s confdefs.h; then
2626 printf "%s\n" "## ----------- ##
2633 test "$ac_signal" != 0 &&
2634 printf "%s\n" "$as_me: caught signal $ac_signal"
2635 printf "%s\n" "$as_me: exit $exit_status"
2637 rm -f core *.core core.conftest.* &&
2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641 for ac_signal in 1 2 13 15; do
2642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2647 rm -f -r conftest* confdefs.h
2649 printf "%s\n" "/* confdefs.h */" > confdefs.h
2651 # Predefined preprocessor variables.
2653 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2655 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2657 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2659 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2661 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2663 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2666 # Let the site file select an alternate cache file if it wants to.
2667 # Prefer an explicitly selected file to automatically selected ones.
2668 if test -n "$CONFIG_SITE"; then
2669 ac_site_files="$CONFIG_SITE"
2670 elif test "x$prefix" != xNONE; then
2671 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2673 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2676 for ac_site_file in $ac_site_files
2678 case $ac_site_file in #(
2682 ac_site_file=./$ac_site_file ;;
2684 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2687 sed 's/^/| /' "$ac_site_file" >&5
2689 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2691 as_fn_error $? "failed to load site script $ac_site_file
2692 See \`config.log' for more details" "$LINENO" 5; }
2696 if test -r "$cache_file"; then
2697 # Some versions of bash will fail to source /dev/null (special files
2698 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2699 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704 *) . "./$cache_file";;
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2713 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2714 # Test code for whether the C compiler supports C89 (global declarations)
2715 ac_c_conftest_c89_globals='
2716 /* Does the compiler advertise C89 conformance?
2717 Do not test the value of __STDC__, because some compilers set it to 0
2718 while being otherwise adequately conformant. */
2719 #if !defined __STDC__
2720 # error "Compiler does not advertise C89 conformance"
2726 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2727 struct buf { int x; };
2728 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not \xHH hex character constants.
2747 These do not provoke an error unfortunately, instead are silently treated
2748 as an "x". The following induces an error, until -std is added to get
2749 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2750 array size at least. It is necessary to write \x00 == 0 to get something
2751 that is true only with -std. */
2752 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2755 inside strings and character constants. */
2756 #define FOO(x) '\''x'\''
2757 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2759 int test (int i, double x);
2760 struct s1 {int (*f) (int a);};
2761 struct s2 {int (*f) (double a);};
2762 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2765 # Test code for whether the C compiler supports C89 (body of main).
2766 ac_c_conftest_c89_main='
2767 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2770 # Test code for whether the C compiler supports C99 (global declarations)
2771 ac_c_conftest_c99_globals='
2772 // Does the compiler advertise C99 conformance?
2773 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2774 # error "Compiler does not advertise C99 conformance"
2777 #include <stdbool.h>
2778 extern int puts (const char *);
2779 extern int printf (const char *, ...);
2780 extern int dprintf (int, const char *, ...);
2781 extern void *malloc (size_t);
2783 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2784 // dprintf is used instead of fprintf to avoid needing to declare
2786 #define debug(...) dprintf (2, __VA_ARGS__)
2787 #define showlist(...) puts (#__VA_ARGS__)
2788 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2790 test_varargs_macros (void)
2795 debug ("X = %d\n", x);
2796 showlist (The first, second, and third items.);
2797 report (x>y, "x is %d but y is %d", x, y);
2800 // Check long long types.
2801 #define BIG64 18446744073709551615ull
2802 #define BIG32 4294967295ul
2803 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2805 #error "your preprocessor is broken"
2809 #error "your preprocessor is broken"
2811 static long long int bignum = -9223372036854775807LL;
2812 static unsigned long long int ubignum = BIG64;
2814 struct incomplete_array
2822 const wchar_t *name;
2826 typedef const char *ccp;
2829 test_restrict (ccp restrict text)
2831 // See if C++-style comments work.
2832 // Iterate through items via the restricted pointer.
2833 // Also check for declarations in for loops.
2834 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2839 // Check varargs and va_copy.
2841 test_varargs (const char *format, ...)
2844 va_start (args, format);
2846 va_copy (args_copy, args);
2848 const char *str = "";
2856 case '\''s'\'': // string
2857 str = va_arg (args_copy, const char *);
2859 case '\''d'\'': // int
2860 number = va_arg (args_copy, int);
2862 case '\''f'\'': // float
2863 fnumber = va_arg (args_copy, double);
2872 return *str && number && fnumber;
2876 # Test code for whether the C compiler supports C99 (body of main).
2877 ac_c_conftest_c99_main='
2879 _Bool success = false;
2880 success |= (argc != 0);
2883 if (test_restrict ("String literal") == 0)
2885 char *restrict newvar = "Another string";
2888 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2889 test_varargs_macros ();
2891 // Check flexible array members.
2892 struct incomplete_array *ia =
2893 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2895 for (int i = 0; i < ia->datasize; ++i)
2896 ia->data[i] = i * 1.234;
2898 // Check named initializers.
2899 struct named_init ni = {
2901 .name = L"Test wide string",
2902 .average = 543.34343,
2907 int dynamic_array[ni.number];
2908 dynamic_array[0] = argv[0][0];
2909 dynamic_array[ni.number - 1] = 543;
2911 // work around unused variable warnings
2912 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2913 || dynamic_array[ni.number - 1] != 543);
2916 # Test code for whether the C compiler supports C11 (global declarations)
2917 ac_c_conftest_c11_globals='
2918 // Does the compiler advertise C11 conformance?
2919 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2920 # error "Compiler does not advertise C11 conformance"
2924 char _Alignas (double) aligned_as_double;
2925 char _Alignas (0) no_special_alignment;
2926 extern char aligned_as_int;
2927 char _Alignas (0) _Alignas (int) aligned_as_int;
2932 int_alignment = _Alignof (int),
2933 int_array_alignment = _Alignof (int[100]),
2934 char_alignment = _Alignof (char)
2936 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2939 int _Noreturn does_not_return (void) { for (;;) continue; }
2941 // Check _Static_assert.
2942 struct test_static_assert
2945 _Static_assert (sizeof (int) <= sizeof (long int),
2946 "_Static_assert does not work in struct");
2950 // Check UTF-8 literals.
2951 #define u8 syntax error!
2952 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2954 // Check duplicate typedefs.
2955 typedef long *long_ptr;
2956 typedef long int *long_ptr;
2957 typedef long_ptr long_ptr;
2959 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2963 struct { int i; int j; };
2964 struct { int k; long int l; } w;
2970 # Test code for whether the C compiler supports C11 (body of main).
2971 ac_c_conftest_c11_main='
2972 _Static_assert ((offsetof (struct anonymous, i)
2973 == offsetof (struct anonymous, w.k)),
2974 "Anonymous union alignment botch");
2980 # Test code for whether the C compiler supports C11 (complete).
2981 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2982 ${ac_c_conftest_c99_globals}
2983 ${ac_c_conftest_c11_globals}
2986 main (int argc, char **argv)
2989 ${ac_c_conftest_c89_main}
2990 ${ac_c_conftest_c99_main}
2991 ${ac_c_conftest_c11_main}
2996 # Test code for whether the C compiler supports C99 (complete).
2997 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2998 ${ac_c_conftest_c99_globals}
3001 main (int argc, char **argv)
3004 ${ac_c_conftest_c89_main}
3005 ${ac_c_conftest_c99_main}
3010 # Test code for whether the C compiler supports C89 (complete).
3011 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3014 main (int argc, char **argv)
3017 ${ac_c_conftest_c89_main}
3022 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3023 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3024 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3025 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3026 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3027 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3028 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3029 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3030 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3031 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3032 gt_needs="$gt_needs "
3033 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3034 # Test code for whether the C++ compiler supports C++98 (global declarations)
3035 ac_cxx_conftest_cxx98_globals='
3036 // Does the compiler advertise C++98 conformance?
3037 #if !defined __cplusplus || __cplusplus < 199711L
3038 # error "Compiler does not advertise C++98 conformance"
3041 // These inclusions are to reject old compilers that
3042 // lack the unsuffixed header files.
3044 #include <exception>
3046 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3047 extern void assert (int);
3049 extern int strcmp (const char *, const char *);
3052 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3053 using std::exception;
3058 void test_exception_syntax()
3062 } catch (const char *s) {
3063 // Extra parentheses suppress a warning when building autoconf itself,
3064 // due to lint rules shared with more typical C programs.
3065 assert (!(strcmp) (s, "test"));
3069 template <typename T> struct test_template
3072 explicit test_template(T t) : val(t) {}
3073 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3076 } // anonymous namespace
3079 # Test code for whether the C++ compiler supports C++98 (body of main)
3080 ac_cxx_conftest_cxx98_main='
3084 test_exception_syntax ();
3085 test_template<double> tt (2.0);
3086 assert (tt.add (4) == 6.0);
3087 assert (true && !false);
3091 # Test code for whether the C++ compiler supports C++11 (global declarations)
3092 ac_cxx_conftest_cxx11_globals='
3093 // Does the compiler advertise C++ 2011 conformance?
3094 #if !defined __cplusplus || __cplusplus < 201103L
3095 # error "Compiler does not advertise C++11 conformance"
3100 constexpr int get_val() { return 20; }
3111 delegate(int n) : n(n) {}
3112 delegate(): delegate(2354) {}
3114 virtual int getval() { return this->n; };
3119 class overridden : public delegate
3122 overridden(int n): delegate(n) {}
3123 virtual int getval() override final { return this->n * 2; }
3129 nocopy(int i): i(i) {}
3131 nocopy(const nocopy&) = delete;
3132 nocopy & operator=(const nocopy&) = delete;
3137 // for testing lambda expressions
3138 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3143 // for testing variadic templates and trailing return types
3144 template <typename V> auto sum(V first) -> V
3148 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3150 return first + sum(rest...);
3155 # Test code for whether the C++ compiler supports C++11 (body of main)
3156 ac_cxx_conftest_cxx11_main='
3158 // Test auto and decltype
3160 auto a2 = 48573953.4;
3161 auto a3 = "String literal";
3164 for (auto i = a3; *i; ++i) { total += *i; }
3166 decltype(a2) a4 = 34895.034;
3170 short sa[cxx11test::get_val()] = { 0 };
3173 // Test initializer lists
3174 cxx11test::testinit il = { 4323, 435234.23544 };
3177 // Test range-based for
3178 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3179 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3180 for (auto &x : array) { x += 23; }
3183 // Test lambda expressions
3184 using cxx11test::eval;
3185 assert (eval ([](int x) { return x*2; }, 21) == 42);
3187 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3189 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3193 // Test use of variadic templates
3194 using cxx11test::sum;
3197 auto c = sum(1.0, 2.0, 3.0);
3200 // Test constructor delegation
3201 cxx11test::delegate d1;
3202 cxx11test::delegate d2();
3203 cxx11test::delegate d3(45);
3206 // Test override and final
3207 cxx11test::overridden o1(55464);
3214 // Test template brackets
3215 test_template<::test_template<int>> v(test_template<int>(12));
3219 char const *utf8 = u8"UTF-8 string \u2500";
3220 char16_t const *utf16 = u"UTF-8 string \u2500";
3221 char32_t const *utf32 = U"UTF-32 string \u2500";
3225 # Test code for whether the C compiler supports C++11 (complete).
3226 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3227 ${ac_cxx_conftest_cxx11_globals}
3230 main (int argc, char **argv)
3233 ${ac_cxx_conftest_cxx98_main}
3234 ${ac_cxx_conftest_cxx11_main}
3239 # Test code for whether the C compiler supports C++98 (complete).
3240 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3242 main (int argc, char **argv)
3245 ${ac_cxx_conftest_cxx98_main}
3251 # Auxiliary files required by this configure script.
3252 ac_aux_files="config.rpath install-sh config.guess config.sub"
3254 # Locations in which to look for auxiliary files.
3255 ac_aux_dir_candidates="${srcdir}/config"
3257 # Search for a directory containing all of the required auxiliary files,
3258 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3259 # If we don't find one directory that contains all the files we need,
3260 # we report the set of missing files from the *first* directory in
3261 # $ac_aux_dir_candidates and give up.
3262 ac_missing_aux_files=""
3263 ac_first_candidate=:
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $ac_aux_dir_candidates
3270 case $as_dir in #(((
3273 *) as_dir=$as_dir/ ;;
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3278 ac_aux_dir_found=yes
3280 for ac_aux in $ac_aux_files
3282 # As a special case, if "install-sh" is required, that requirement
3283 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3284 # and $ac_install_sh is set appropriately for whichever one is found.
3285 if test x"$ac_aux" = x"install-sh"
3287 if test -f "${as_dir}install-sh"; then
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3289 ac_install_sh="${as_dir}install-sh -c"
3290 elif test -f "${as_dir}install.sh"; then
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3292 ac_install_sh="${as_dir}install.sh -c"
3293 elif test -f "${as_dir}shtool"; then
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3295 ac_install_sh="${as_dir}shtool install -c"
3298 if $ac_first_candidate; then
3299 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3305 if test -f "${as_dir}${ac_aux}"; then
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3309 if $ac_first_candidate; then
3310 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3317 if test "$ac_aux_dir_found" = yes; then
3318 ac_aux_dir="$as_dir"
3321 ac_first_candidate=false
3330 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3334 # These three variables are undocumented and unsupported,
3335 # and are intended to be withdrawn in a future Autoconf release.
3336 # They can cause serious problems if a builder's source tree is in a directory
3337 # whose full name contains unusual characters.
3338 if test -f "${ac_aux_dir}config.guess"; then
3339 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3341 if test -f "${ac_aux_dir}config.sub"; then
3342 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3344 if test -f "$ac_aux_dir/configure"; then
3345 ac_configure="$SHELL ${ac_aux_dir}configure"
3348 # Check that the precious variables saved in the cache have kept the same
3350 ac_cache_corrupted=false
3351 for ac_var in $ac_precious_vars; do
3352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3353 eval ac_new_set=\$ac_env_${ac_var}_set
3354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3355 eval ac_new_val=\$ac_env_${ac_var}_value
3356 case $ac_old_set,$ac_new_set in
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3359 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3360 ac_cache_corrupted=: ;;
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3363 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3364 ac_cache_corrupted=: ;;
3367 if test "x$ac_old_val" != "x$ac_new_val"; then
3368 # differences in whitespace do not lead to failure.
3369 ac_old_val_w=`echo x $ac_old_val`
3370 ac_new_val_w=`echo x $ac_new_val`
3371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3373 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3374 ac_cache_corrupted=:
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3377 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3378 eval $ac_var=\$ac_old_val
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3381 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3383 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3386 # Pass precious variables to config.status.
3387 if test "$ac_new_set" = set; then
3389 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3390 *) ac_arg=$ac_var=$ac_new_val ;;
3392 case " $ac_configure_args " in
3393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3398 if $ac_cache_corrupted; then
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3402 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3403 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3404 and start over" "$LINENO" 5
3406 ## -------------------- ##
3407 ## Main body of script. ##
3408 ## -------------------- ##
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 ac_config_headers="$ac_config_headers lib/config.h"
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 printf %s "checking for $ac_word... " >&6; }
3442 if test ${ac_cv_prog_CC+y}
3444 printf %s "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 case $as_dir in #(((
3456 *) as_dir=$as_dir/ ;;
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3471 if test -n "$CC"; then
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 printf "%s\n" "$CC" >&6; }
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 printf "%s\n" "no" >&6; }
3481 if test -z "$ac_cv_prog_CC"; then
3483 # Extract the first word of "gcc", so it can be a program name with args.
3484 set dummy gcc; ac_word=$2
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 printf %s "checking for $ac_word... " >&6; }
3487 if test ${ac_cv_prog_ac_ct_CC+y}
3489 printf %s "(cached) " >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 case $as_dir in #(((
3501 *) as_dir=$as_dir/ ;;
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_ac_ct_CC="gcc"
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518 printf "%s\n" "$ac_ct_CC" >&6; }
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3524 if test "x$ac_ct_CC" = x; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3539 if test -z "$CC"; then
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}cc; ac_word=$2
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 printf %s "checking for $ac_word... " >&6; }
3545 if test ${ac_cv_prog_CC+y}
3547 printf %s "(cached) " >&6
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 case $as_dir in #(((
3559 *) as_dir=$as_dir/ ;;
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_CC="${ac_tool_prefix}cc"
3564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3574 if test -n "$CC"; then
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 printf "%s\n" "$CC" >&6; }
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 printf "%s\n" "no" >&6; }
3585 if test -z "$CC"; then
3586 # Extract the first word of "cc", so it can be a program name with args.
3587 set dummy cc; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_CC+y}
3592 printf %s "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 case $as_dir in #(((
3605 *) as_dir=$as_dir/ ;;
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_CC+y}
3656 printf %s "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 case $as_dir in #(((
3668 *) as_dir=$as_dir/ ;;
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 if test -n "$CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 printf "%s\n" "$CC" >&6; }
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3692 test -n "$CC" && break
3695 if test -z "$CC"; then
3697 for ac_prog in cl.exe
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 printf %s "checking for $ac_word... " >&6; }
3703 if test ${ac_cv_prog_ac_ct_CC+y}
3705 printf %s "(cached) " >&6
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 case $as_dir in #(((
3717 *) as_dir=$as_dir/ ;;
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_CC="$ac_prog"
3722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 printf "%s\n" "$ac_ct_CC" >&6; }
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 printf "%s\n" "no" >&6; }
3741 test -n "$ac_ct_CC" && break
3744 if test "x$ac_ct_CC" = x; then
3747 case $cross_compiling:$ac_tool_warned in
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3758 if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}clang; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_CC+y}
3766 printf %s "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 case $as_dir in #(((
3778 *) as_dir=$as_dir/ ;;
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_CC="${ac_tool_prefix}clang"
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3793 if test -n "$CC"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795 printf "%s\n" "$CC" >&6; }
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3803 if test -z "$ac_cv_prog_CC"; then
3805 # Extract the first word of "clang", so it can be a program name with args.
3806 set dummy clang; ac_word=$2
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_ac_ct_CC+y}
3811 printf %s "(cached) " >&6
3813 if test -n "$ac_ct_CC"; then
3814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 case $as_dir in #(((
3823 *) as_dir=$as_dir/ ;;
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="clang"
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 printf "%s\n" "$ac_ct_CC" >&6; }
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 printf "%s\n" "no" >&6; }
3846 if test "x$ac_ct_CC" = x; then
3849 case $cross_compiling:$ac_tool_warned in
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3864 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "no acceptable C compiler found in \$PATH
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 # Provide some information about the compiler.
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 for ac_option in --version -v -V -qversion -version; do
3874 { { ac_try="$ac_compiler $ac_option >&5"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3883 if test -s conftest.err; then
3885 ... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
3889 rm -f conftest.er1 conftest.err
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 ac_clean_files_save=$ac_clean_files
3906 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3907 # Try to create an executable without -o first, disregard a.out.
3908 # It will help us diagnose broken compilers, and finding out an intuition
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 printf %s "checking whether the C compiler works... " >&6; }
3912 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3914 # The possible output files:
3915 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918 for ac_file in $ac_files
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3927 if { { ac_try="$ac_link_default"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934 (eval "$ac_link_default") 2>&5
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3940 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3941 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3942 # so that the user can short-circuit this test for compilers unknown to
3944 for ac_file in $ac_files ''
3946 test -f "$ac_file" || continue
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 # We found the default executable, but exeext='' is most
3955 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 # We set ac_cv_exeext here because the later test for it is not
3960 # safe: cross compilers may not add the suffix if given an `-o'
3961 # argument, so we may need to know it at that point already.
3962 # Even if this section looks crufty: it has the advantage of
3969 test "$ac_cv_exeext" = no && ac_cv_exeext=
3974 if test -z "$ac_file"
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 printf "%s\n" "no" >&6; }
3978 printf "%s\n" "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 printf "%s\n" "yes" >&6; }
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 printf %s "checking for C compiler default output file name... " >&6; }
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 printf "%s\n" "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 printf %s "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 printf "%s\n" "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4015 for ac_file in conftest.exe conftest conftest.*; do
4016 test -f "$ac_file" || continue
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4030 rm -f conftest conftest$ac_cv_exeext
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 printf "%s\n" "$ac_cv_exeext" >&6; }
4034 rm -f conftest.$ac_ext
4035 EXEEXT=$ac_cv_exeext
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4043 FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4050 ac_clean_files="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run. If not, either
4052 # the compiler is broken, or we cross compile.
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 printf %s "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056 { { ac_try="$ac_link"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 printf "%s\n" "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074 (eval "$ac_try") 2>&5
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; }; then
4080 if test "$cross_compiling" = maybe; then
4083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error 77 "cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 printf "%s\n" "$cross_compiling" >&6; }
4094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095 ac_clean_files=$ac_clean_files_save
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 printf %s "checking for suffix of object files... " >&6; }
4098 if test ${ac_cv_objext+y}
4100 printf %s "(cached) " >&6
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 rm -f conftest.o conftest.obj
4114 if { { ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 printf "%s\n" "$ac_try_echo"; } >&5
4121 (eval "$ac_compile") 2>&5
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }
4126 for ac_file in conftest.o conftest.obj conftest.*; do
4127 test -f "$ac_file" || continue;
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4135 printf "%s\n" "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "cannot compute suffix of object files: cannot compile
4141 See \`config.log' for more details" "$LINENO" 5; }
4143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4146 printf "%s\n" "$ac_cv_objext" >&6; }
4147 OBJEXT=$ac_cv_objext
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4150 printf %s "checking whether the compiler supports GNU C... " >&6; }
4151 if test ${ac_cv_c_compiler_gnu+y}
4153 printf %s "(cached) " >&6
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 if test $ac_compiler_gnu = yes; then
4188 ac_test_CFLAGS=${CFLAGS+y}
4189 ac_save_CFLAGS=$CFLAGS
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4191 printf %s "checking whether $CC accepts -g... " >&6; }
4192 if test ${ac_cv_prog_cc_g+y}
4194 printf %s "(cached) " >&6
4196 ac_save_c_werror_flag=$ac_c_werror_flag
4197 ac_c_werror_flag=yes
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4227 if ac_fn_c_try_compile "$LINENO"
4231 ac_c_werror_flag=$ac_save_c_werror_flag
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4244 if ac_fn_c_try_compile "$LINENO"
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4256 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4257 if test $ac_test_CFLAGS; then
4258 CFLAGS=$ac_save_CFLAGS
4259 elif test $ac_cv_prog_cc_g = yes; then
4260 if test "$GCC" = yes; then
4266 if test "$GCC" = yes; then
4273 if test x$ac_prog_cc_stdc = xno
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4276 printf %s "checking for $CC option to enable C11 features... " >&6; }
4277 if test ${ac_cv_prog_cc_c11+y}
4279 printf %s "(cached) " >&6
4281 ac_cv_prog_cc_c11=no
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 $ac_c_conftest_c11_program
4287 for ac_arg in '' -std=gnu11
4289 CC="$ac_save_CC $ac_arg"
4290 if ac_fn_c_try_compile "$LINENO"
4292 ac_cv_prog_cc_c11=$ac_arg
4294 rm -f core conftest.err conftest.$ac_objext conftest.beam
4295 test "x$ac_cv_prog_cc_c11" != "xno" && break
4297 rm -f conftest.$ac_ext
4301 if test "x$ac_cv_prog_cc_c11" = xno
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 printf "%s\n" "unsupported" >&6; }
4306 if test "x$ac_cv_prog_cc_c11" = x
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309 printf "%s\n" "none needed" >&6; }
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4312 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4313 CC="$CC $ac_cv_prog_cc_c11"
4315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4319 if test x$ac_prog_cc_stdc = xno
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4322 printf %s "checking for $CC option to enable C99 features... " >&6; }
4323 if test ${ac_cv_prog_cc_c99+y}
4325 printf %s "(cached) " >&6
4327 ac_cv_prog_cc_c99=no
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 $ac_c_conftest_c99_program
4333 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4335 CC="$ac_save_CC $ac_arg"
4336 if ac_fn_c_try_compile "$LINENO"
4338 ac_cv_prog_cc_c99=$ac_arg
4340 rm -f core conftest.err conftest.$ac_objext conftest.beam
4341 test "x$ac_cv_prog_cc_c99" != "xno" && break
4343 rm -f conftest.$ac_ext
4347 if test "x$ac_cv_prog_cc_c99" = xno
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4350 printf "%s\n" "unsupported" >&6; }
4352 if test "x$ac_cv_prog_cc_c99" = x
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4355 printf "%s\n" "none needed" >&6; }
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4358 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4359 CC="$CC $ac_cv_prog_cc_c99"
4361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4365 if test x$ac_prog_cc_stdc = xno
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4368 printf %s "checking for $CC option to enable C89 features... " >&6; }
4369 if test ${ac_cv_prog_cc_c89+y}
4371 printf %s "(cached) " >&6
4373 ac_cv_prog_cc_c89=no
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 $ac_c_conftest_c89_program
4379 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4381 CC="$ac_save_CC $ac_arg"
4382 if ac_fn_c_try_compile "$LINENO"
4384 ac_cv_prog_cc_c89=$ac_arg
4386 rm -f core conftest.err conftest.$ac_objext conftest.beam
4387 test "x$ac_cv_prog_cc_c89" != "xno" && break
4389 rm -f conftest.$ac_ext
4393 if test "x$ac_cv_prog_cc_c89" = xno
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4396 printf "%s\n" "unsupported" >&6; }
4398 if test "x$ac_cv_prog_cc_c89" = x
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 printf "%s\n" "none needed" >&6; }
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4404 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4405 CC="$CC $ac_cv_prog_cc_c89"
4407 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 ac_header= ac_cache=
4420 for ac_item in $ac_header_c_list
4422 if test $ac_cache; then
4423 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4424 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4425 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4427 ac_header= ac_cache=
4428 elif test $ac_header; then
4442 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4445 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4455 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4456 if test ${ac_cv_safe_to_define___extensions__+y}
4458 printf %s "(cached) " >&6
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4463 # define __EXTENSIONS__ 1
4464 $ac_includes_default
4473 if ac_fn_c_try_compile "$LINENO"
4475 ac_cv_safe_to_define___extensions__=yes
4477 ac_cv_safe_to_define___extensions__=no
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4485 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4486 if test ${ac_cv_should_define__xopen_source+y}
4488 printf %s "(cached) " >&6
4490 ac_cv_should_define__xopen_source=no
4491 if test $ac_cv_header_wchar_h = yes
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4513 #define _XOPEN_SOURCE 500
4524 if ac_fn_c_try_compile "$LINENO"
4526 ac_cv_should_define__xopen_source=yes
4528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4534 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4536 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4538 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4540 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4542 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4544 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4546 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4548 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4560 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4562 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4564 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4566 if test $ac_cv_header_minix_config_h = yes
4569 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4571 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4573 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4578 if test $ac_cv_safe_to_define___extensions__ = yes
4580 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4583 if test $ac_cv_should_define__xopen_source = yes
4585 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4592 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4593 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4594 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4595 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4596 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4598 if expr $YEAR ">" 1900 > /dev/null ; then
4599 E2FSPROGS_YEAR=$YEAR
4600 elif expr $YEAR ">" 90 >/dev/null ; then
4601 E2FSPROGS_YEAR=19$YEAR
4603 E2FSPROGS_YEAR=20$YEAR
4607 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4608 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4609 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4610 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4611 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4612 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4613 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4614 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4615 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4616 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4617 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4618 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4619 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4620 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4623 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4624 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4626 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4628 case $E2FSPROGS_VERSION in
4630 E2FSPROGS_PKGVER="$base_ver"
4631 E2FSPROGS_PKGREL="WIP.$date_spec"
4634 E2FSPROGS_PKGVER="$base_ver"
4635 E2FSPROGS_PKGREL="$base_rel"
4639 unset DATE MONTH YEAR base_ver pre_vers date_spec
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4641 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4643 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4645 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4655 # Check whether --with-diet-libc was given.
4656 if test ${with_diet_libc+y}
4658 withval=$with_diet_libc; CC="diet cc -nostdinc"
4664 LIBS="$LIBS -lcompat"
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4667 printf "%s\n" "CC=$CC" >&6; }
4672 # Make sure we can run config.sub.
4673 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4674 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4677 printf %s "checking build system type... " >&6; }
4678 if test ${ac_cv_build+y}
4680 printf %s "(cached) " >&6
4682 ac_build_alias=$build_alias
4683 test "x$ac_build_alias" = x &&
4684 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4685 test "x$ac_build_alias" = x &&
4686 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4688 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692 printf "%s\n" "$ac_cv_build" >&6; }
4693 case $ac_cv_build in
4695 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4698 ac_save_IFS=$IFS; IFS='-'
4704 # Remember, the first character of IFS is used to create $*,
4705 # except with old shells:
4708 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712 printf %s "checking host system type... " >&6; }
4713 if test ${ac_cv_host+y}
4715 printf %s "(cached) " >&6
4717 if test "x$host_alias" = x; then
4718 ac_cv_host=$ac_cv_build
4720 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4721 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4726 printf "%s\n" "$ac_cv_host" >&6; }
4729 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4732 ac_save_IFS=$IFS; IFS='-'
4738 # Remember, the first character of IFS is used to create $*,
4739 # except with old shells:
4742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4747 printf %s "checking for dlopen in -ldl... " >&6; }
4748 if test ${ac_cv_lib_dl_dlopen+y}
4750 printf %s "(cached) " >&6
4752 ac_check_lib_save_LIBS=$LIBS
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4757 /* Override any GCC internal prototype to avoid an error.
4758 Use char because int might match the return type of a GCC
4759 builtin and then its argument prototype would still apply. */
4769 if ac_fn_c_try_link "$LINENO"
4771 ac_cv_lib_dl_dlopen=yes
4773 ac_cv_lib_dl_dlopen=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4776 conftest$ac_exeext conftest.$ac_ext
4777 LIBS=$ac_check_lib_save_LIBS
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4780 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4781 if test "x$ac_cv_lib_dl_dlopen" = xyes
4788 # Check whether --with-cc was given.
4789 if test ${with_cc+y}
4791 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4795 # Check whether --with-ccopts was given.
4796 if test ${with_ccopts+y}
4798 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4802 # Check whether --with-ldopts was given.
4803 if test ${with_ldopts+y}
4805 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 printf %s "checking for $ac_word... " >&6; }
4818 if test ${ac_cv_prog_CC+y}
4820 printf %s "(cached) " >&6
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 case $as_dir in #(((
4832 *) as_dir=$as_dir/ ;;
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4847 if test -n "$CC"; then
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 printf "%s\n" "$CC" >&6; }
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
4857 if test -z "$ac_cv_prog_CC"; then
4859 # Extract the first word of "gcc", so it can be a program name with args.
4860 set dummy gcc; ac_word=$2
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 printf %s "checking for $ac_word... " >&6; }
4863 if test ${ac_cv_prog_ac_ct_CC+y}
4865 printf %s "(cached) " >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 case $as_dir in #(((
4877 *) as_dir=$as_dir/ ;;
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_ac_ct_CC="gcc"
4882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 printf "%s\n" "$ac_ct_CC" >&6; }
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 printf "%s\n" "no" >&6; }
4900 if test "x$ac_ct_CC" = x; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4915 if test -z "$CC"; then
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 printf %s "checking for $ac_word... " >&6; }
4921 if test ${ac_cv_prog_CC+y}
4923 printf %s "(cached) " >&6
4925 if test -n "$CC"; then
4926 ac_cv_prog_CC="$CC" # Let the user override the test.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 case $as_dir in #(((
4935 *) as_dir=$as_dir/ ;;
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_CC="${ac_tool_prefix}cc"
4940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4950 if test -n "$CC"; then
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4952 printf "%s\n" "$CC" >&6; }
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 printf "%s\n" "no" >&6; }
4961 if test -z "$CC"; then
4962 # Extract the first word of "cc", so it can be a program name with args.
4963 set dummy cc; ac_word=$2
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 printf %s "checking for $ac_word... " >&6; }
4966 if test ${ac_cv_prog_CC+y}
4968 printf %s "(cached) " >&6
4970 if test -n "$CC"; then
4971 ac_cv_prog_CC="$CC" # Let the user override the test.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 case $as_dir in #(((
4981 *) as_dir=$as_dir/ ;;
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4985 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4986 ac_prog_rejected=yes
4990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4997 if test $ac_prog_rejected = yes; then
4998 # We found a bogon in the path, so make sure we never use it.
4999 set dummy $ac_cv_prog_CC
5001 if test $# != 0; then
5002 # We chose a different compiler from the bogus one.
5003 # However, it has the same basename, so the bogon will be chosen
5004 # first if we set CC to just the basename; use the full file name.
5006 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5012 if test -n "$CC"; then
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 printf "%s\n" "$CC" >&6; }
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5022 if test -z "$CC"; then
5023 if test -n "$ac_tool_prefix"; then
5024 for ac_prog in cl.exe
5026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 printf %s "checking for $ac_word... " >&6; }
5030 if test ${ac_cv_prog_CC+y}
5032 printf %s "(cached) " >&6
5034 if test -n "$CC"; then
5035 ac_cv_prog_CC="$CC" # Let the user override the test.
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 case $as_dir in #(((
5044 *) as_dir=$as_dir/ ;;
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5059 if test -n "$CC"; then
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5061 printf "%s\n" "$CC" >&6; }
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 printf "%s\n" "no" >&6; }
5068 test -n "$CC" && break
5071 if test -z "$CC"; then
5073 for ac_prog in cl.exe
5075 # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 printf %s "checking for $ac_word... " >&6; }
5079 if test ${ac_cv_prog_ac_ct_CC+y}
5081 printf %s "(cached) " >&6
5083 if test -n "$ac_ct_CC"; then
5084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 case $as_dir in #(((
5093 *) as_dir=$as_dir/ ;;
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_ac_ct_CC="$ac_prog"
5098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5108 if test -n "$ac_ct_CC"; then
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5110 printf "%s\n" "$ac_ct_CC" >&6; }
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 printf "%s\n" "no" >&6; }
5117 test -n "$ac_ct_CC" && break
5120 if test "x$ac_ct_CC" = x; then
5123 case $cross_compiling:$ac_tool_warned in
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127 ac_tool_warned=yes ;;
5134 if test -z "$CC"; then
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}clang; ac_word=$2
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 printf %s "checking for $ac_word... " >&6; }
5140 if test ${ac_cv_prog_CC+y}
5142 printf %s "(cached) " >&6
5144 if test -n "$CC"; then
5145 ac_cv_prog_CC="$CC" # Let the user override the test.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 case $as_dir in #(((
5154 *) as_dir=$as_dir/ ;;
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CC="${ac_tool_prefix}clang"
5159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5169 if test -n "$CC"; then
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 printf "%s\n" "$CC" >&6; }
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 printf "%s\n" "no" >&6; }
5179 if test -z "$ac_cv_prog_CC"; then
5181 # Extract the first word of "clang", so it can be a program name with args.
5182 set dummy clang; ac_word=$2
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 printf %s "checking for $ac_word... " >&6; }
5185 if test ${ac_cv_prog_ac_ct_CC+y}
5187 printf %s "(cached) " >&6
5189 if test -n "$ac_ct_CC"; then
5190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 case $as_dir in #(((
5199 *) as_dir=$as_dir/ ;;
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_CC="clang"
5204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5214 if test -n "$ac_ct_CC"; then
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5216 printf "%s\n" "$ac_ct_CC" >&6; }
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 printf "%s\n" "no" >&6; }
5222 if test "x$ac_ct_CC" = x; then
5225 case $cross_compiling:$ac_tool_warned in
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5240 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5242 as_fn_error $? "no acceptable C compiler found in \$PATH
5243 See \`config.log' for more details" "$LINENO" 5; }
5245 # Provide some information about the compiler.
5246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5249 for ac_option in --version -v -V -qversion -version; do
5250 { { ac_try="$ac_compiler $ac_option >&5"
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5256 printf "%s\n" "$ac_try_echo"; } >&5
5257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5259 if test -s conftest.err; then
5261 ... rest of stderr output deleted ...
5262 10q' conftest.err >conftest.er1
5263 cat conftest.er1 >&5
5265 rm -f conftest.er1 conftest.err
5266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5271 printf %s "checking whether the compiler supports GNU C... " >&6; }
5272 if test ${ac_cv_c_compiler_gnu+y}
5274 printf %s "(cached) " >&6
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5290 if ac_fn_c_try_compile "$LINENO"
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5301 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 if test $ac_compiler_gnu = yes; then
5309 ac_test_CFLAGS=${CFLAGS+y}
5310 ac_save_CFLAGS=$CFLAGS
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5312 printf %s "checking whether $CC accepts -g... " >&6; }
5313 if test ${ac_cv_prog_cc_g+y}
5315 printf %s "(cached) " >&6
5317 ac_save_c_werror_flag=$ac_c_werror_flag
5318 ac_c_werror_flag=yes
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5332 if ac_fn_c_try_compile "$LINENO"
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5348 if ac_fn_c_try_compile "$LINENO"
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5365 if ac_fn_c_try_compile "$LINENO"
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 ac_c_werror_flag=$ac_save_c_werror_flag
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5377 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5378 if test $ac_test_CFLAGS; then
5379 CFLAGS=$ac_save_CFLAGS
5380 elif test $ac_cv_prog_cc_g = yes; then
5381 if test "$GCC" = yes; then
5387 if test "$GCC" = yes; then
5394 if test x$ac_prog_cc_stdc = xno
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5397 printf %s "checking for $CC option to enable C11 features... " >&6; }
5398 if test ${ac_cv_prog_cc_c11+y}
5400 printf %s "(cached) " >&6
5402 ac_cv_prog_cc_c11=no
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 $ac_c_conftest_c11_program
5408 for ac_arg in '' -std=gnu11
5410 CC="$ac_save_CC $ac_arg"
5411 if ac_fn_c_try_compile "$LINENO"
5413 ac_cv_prog_cc_c11=$ac_arg
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam
5416 test "x$ac_cv_prog_cc_c11" != "xno" && break
5418 rm -f conftest.$ac_ext
5422 if test "x$ac_cv_prog_cc_c11" = xno
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425 printf "%s\n" "unsupported" >&6; }
5427 if test "x$ac_cv_prog_cc_c11" = x
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 printf "%s\n" "none needed" >&6; }
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5433 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5434 CC="$CC $ac_cv_prog_cc_c11"
5436 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5440 if test x$ac_prog_cc_stdc = xno
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5443 printf %s "checking for $CC option to enable C99 features... " >&6; }
5444 if test ${ac_cv_prog_cc_c99+y}
5446 printf %s "(cached) " >&6
5448 ac_cv_prog_cc_c99=no
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 $ac_c_conftest_c99_program
5454 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5456 CC="$ac_save_CC $ac_arg"
5457 if ac_fn_c_try_compile "$LINENO"
5459 ac_cv_prog_cc_c99=$ac_arg
5461 rm -f core conftest.err conftest.$ac_objext conftest.beam
5462 test "x$ac_cv_prog_cc_c99" != "xno" && break
5464 rm -f conftest.$ac_ext
5468 if test "x$ac_cv_prog_cc_c99" = xno
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5471 printf "%s\n" "unsupported" >&6; }
5473 if test "x$ac_cv_prog_cc_c99" = x
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5476 printf "%s\n" "none needed" >&6; }
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5479 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5480 CC="$CC $ac_cv_prog_cc_c99"
5482 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5486 if test x$ac_prog_cc_stdc = xno
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5489 printf %s "checking for $CC option to enable C89 features... " >&6; }
5490 if test ${ac_cv_prog_cc_c89+y}
5492 printf %s "(cached) " >&6
5494 ac_cv_prog_cc_c89=no
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 $ac_c_conftest_c89_program
5500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5502 CC="$ac_save_CC $ac_arg"
5503 if ac_fn_c_try_compile "$LINENO"
5505 ac_cv_prog_cc_c89=$ac_arg
5507 rm -f core conftest.err conftest.$ac_objext conftest.beam
5508 test "x$ac_cv_prog_cc_c89" != "xno" && break
5510 rm -f conftest.$ac_ext
5514 if test "x$ac_cv_prog_cc_c89" = xno
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5517 printf "%s\n" "unsupported" >&6; }
5519 if test "x$ac_cv_prog_cc_c89" = x
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5522 printf "%s\n" "none needed" >&6; }
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5525 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5526 CC="$CC $ac_cv_prog_cc_c89"
5528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5534 ac_cpp='$CPP $CPPFLAGS'
5535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 if test "$GCC" = yes; then
5540 RDYNAMIC="-rdynamic"
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5549 printf %s "checking how to run the C preprocessor... " >&6; }
5550 # On Suns, sometimes $CPP names a directory.
5551 if test -n "$CPP" && test -d "$CPP"; then
5554 if test -z "$CPP"; then
5555 if test ${ac_cv_prog_CPP+y}
5557 printf %s "(cached) " >&6
5559 # Double quotes because $CC needs to be expanded
5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5563 for ac_c_preproc_warn_flag in '' yes
5565 # Use a header file that comes with gcc, so configuring glibc
5566 # with a fresh cross-compiler works.
5567 # On the NeXT, cc -E runs the code through the compiler's parser,
5568 # not just through cpp. "Syntax error" is here to catch this case.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5574 if ac_fn_c_try_cpp "$LINENO"
5578 # Broken: fails on valid input.
5581 rm -f conftest.err conftest.i conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <ac_nonexistent.h>
5589 if ac_fn_c_try_cpp "$LINENO"
5591 # Broken: success on invalid input.
5594 # Passes both tests.
5598 rm -f conftest.err conftest.i conftest.$ac_ext
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.i conftest.err conftest.$ac_ext
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 printf "%s\n" "$CPP" >&6; }
5619 for ac_c_preproc_warn_flag in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # On the NeXT, cc -E runs the code through the compiler's parser,
5624 # not just through cpp. "Syntax error" is here to catch this case.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5630 if ac_fn_c_try_cpp "$LINENO"
5634 # Broken: fails on valid input.
5637 rm -f conftest.err conftest.i conftest.$ac_ext
5639 # OK, works on sane cases. Now check whether nonexistent headers
5640 # can be detected and how.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include <ac_nonexistent.h>
5645 if ac_fn_c_try_cpp "$LINENO"
5647 # Broken: success on invalid input.
5650 # Passes both tests.
5654 rm -f conftest.err conftest.i conftest.$ac_ext
5657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.i conftest.err conftest.$ac_ext
5663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details" "$LINENO" 5; }
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5676 printf %s "checking for additional special compiler flags... " >&6; }
5677 if test "$GCC" = yes
5680 alpha) addcflags="-mieee" ;;
5683 if test "x$addcflags" != x
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5686 printf "%s\n" "$addcflags" >&6; }
5687 CFLAGS="$addcflags $CFLAGS"
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5690 printf "%s\n" "(none)" >&6; }
5696 # Check whether --with-root-prefix was given.
5697 if test ${with_root_prefix+y}
5699 withval=$with_root_prefix; root_prefix=$withval
5703 # Check whether --enable-maintainer-mode was given.
5704 if test ${enable_maintainer_mode+y}
5706 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5710 printf "%s\n" "Disabling maintainer mode" >&6; }
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5714 printf "%s\n" "Enabling maintainer mode" >&6; }
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5720 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5725 # Check whether --enable-symlink-install was given.
5726 if test ${enable_symlink_install+y}
5728 enableval=$enable_symlink_install; if test "$enableval" = "no"
5730 LINK_INSTALL_FLAGS=-f
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5732 printf "%s\n" "Disabling symlinks for install" >&6; }
5734 LINK_INSTALL_FLAGS=-sf
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5736 printf "%s\n" "Enabling symlinks for install" >&6; }
5740 LINK_INSTALL_FLAGS=-f
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5742 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5747 relative_symlink_defined=
5748 # Check whether --enable-relative-symlinks was given.
5749 if test ${enable_relative_symlinks+y}
5751 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5754 relative_symlink_defined=yes
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5756 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5758 SYMLINK_RELATIVE=--relative
5759 relative_symlink_defined=yes
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5761 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5765 # Check whether --enable-symlink-relative-symlinks was given.
5766 if test ${enable_symlink_relative_symlinks+y}
5768 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5770 SYMLINK_RELATIVE=yes
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5772 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5774 SYMLINK_RELATIVE=--relative
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5776 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5780 if test -z "$relative_symlink_defined"
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5784 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5790 # Check whether --enable-symlink-build was given.
5791 if test ${enable_symlink_build+y}
5793 enableval=$enable_symlink_build; if test "$enableval" = "no"
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5797 printf "%s\n" "Disabling symlinks for build" >&6; }
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5801 printf "%s\n" "Enabling symlinks for build" >&6; }
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5807 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5812 # Check whether --enable-verbose-makecmds was given.
5813 if test ${enable_verbose_makecmds+y}
5815 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5818 printf "%s\n" "Disabling verbose make commands" >&6; }
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5824 printf "%s\n" "Enabling verbose make commands" >&6; }
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5832 printf "%s\n" "Disabling verbose make commands" >&6; }
5842 E2_PKG_CONFIG_STATIC=--static
5845 # Check whether --enable-elf-shlibs was given.
5846 if test ${enable_elf_shlibs+y}
5848 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5851 MAKEFILE_ELF=/dev/null
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5853 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5855 E2_PKG_CONFIG_STATIC=
5857 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5860 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5866 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5868 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5872 MAKEFILE_ELF=/dev/null
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5875 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5881 # Check whether --enable-bsd-shlibs was given.
5882 if test ${enable_bsd_shlibs+y}
5884 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5887 MAKEFILE_BSDLIB=/dev/null
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5889 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5891 E2_PKG_CONFIG_STATIC=
5893 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5897 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5902 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5906 MAKEFILE_BSDLIB=/dev/null
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5909 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5915 # Check whether --enable-profile was given.
5916 if test ${enable_profile+y}
5918 enableval=$enable_profile; if test "$enableval" = "no"
5921 MAKEFILE_PROFILE=/dev/null
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5923 printf "%s\n" "Disabling profiling libraries" >&6; }
5926 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5927 PROFILED_LIB_EXT=_p.a
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5929 printf "%s\n" "Building profiling libraries" >&6; }
5934 MAKEFILE_PROFILE=/dev/null
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5936 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5942 # Check whether --enable-gcov was given.
5943 if test ${enable_gcov+y}
5945 enableval=$enable_gcov; if test "$enableval" = "yes"
5947 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5948 LDFLAGS="-fprofile-arcs -ftest-coverage"
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5950 printf "%s\n" "Enabling gcov support" >&6; }
5955 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5956 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5957 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5958 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5959 # Check whether --enable-hardening was given.
5960 if test ${enable_hardening+y}
5962 enableval=$enable_hardening; if test "$enableval" = "yes"
5964 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5965 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5966 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5967 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5968 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5969 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5970 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5971 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5973 printf "%s\n" "Enabling hardening support" >&6; }
5983 # Check whether --enable-jbd-debug was given.
5984 if test ${enable_jbd_debug+y}
5986 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5989 printf "%s\n" "Disabling journal debugging" >&6; }
5992 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5995 printf "%s\n" "Enabling journal debugging" >&6; }
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6000 printf "%s\n" "Disabling journal debugging by default" >&6; }
6004 # Check whether --enable-blkid-debug was given.
6005 if test ${enable_blkid_debug+y}
6007 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6010 printf "%s\n" "Disabling blkid debugging" >&6; }
6013 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6016 printf "%s\n" "Enabling blkid debugging" >&6; }
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6021 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6025 # Check whether --enable-testio-debug was given.
6026 if test ${enable_testio_debug+y}
6028 enableval=$enable_testio_debug;
6029 if test "$enableval" = "no"
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6032 printf "%s\n" "Disabling testio debugging" >&6; }
6036 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6039 printf "%s\n" "Enabling testio debugging" >&6; }
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6044 printf "%s\n" "Enabling testio debugging by default" >&6; }
6045 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6052 # Check whether --enable-developer-features was given.
6053 if test ${enable_developer_features+y}
6055 enableval=$enable_developer_features;
6056 if test "$enableval" = "yes"
6059 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6062 printf "%s\n" "Enabling ext4 developer features" >&6; }
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6065 printf "%s\n" "Disabling ext4 developer features" >&6; }
6066 DEV_FEATURES_CMT="#"
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6071 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6084 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 printf %s "checking for $ac_word... " >&6; }
6090 if test ${ac_cv_path_PKG_CONFIG+y}
6092 printf %s "(cached) " >&6
6096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 case $as_dir in #(((
6106 *) as_dir=$as_dir/ ;;
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6110 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6124 printf "%s\n" "$PKG_CONFIG" >&6; }
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 printf "%s\n" "no" >&6; }
6132 if test -z "$ac_cv_path_PKG_CONFIG"; then
6133 ac_pt_PKG_CONFIG=$PKG_CONFIG
6134 # Extract the first word of "pkg-config", so it can be a program name with args.
6135 set dummy pkg-config; ac_word=$2
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 printf %s "checking for $ac_word... " >&6; }
6138 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6140 printf %s "(cached) " >&6
6142 case $ac_pt_PKG_CONFIG in
6144 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 case $as_dir in #(((
6154 *) as_dir=$as_dir/ ;;
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6158 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6169 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6170 if test -n "$ac_pt_PKG_CONFIG"; then
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6172 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 printf "%s\n" "no" >&6; }
6178 if test "x$ac_pt_PKG_CONFIG" = x; then
6181 case $cross_compiling:$ac_tool_warned in
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6187 PKG_CONFIG=$ac_pt_PKG_CONFIG
6190 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6194 if test -n "$PKG_CONFIG"; then
6195 _pkg_min_version=0.9.0
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6197 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6198 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6200 printf "%s\n" "yes" >&6; }
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 printf "%s\n" "no" >&6; }
6212 DEPPROFILED_LIBUUID=
6214 # Check whether --enable-libuuid was given.
6215 if test ${enable_libuuid+y}
6217 enableval=$enable_libuuid; if test "$enableval" = "no"
6219 if test -z "$PKG_CONFIG"; then
6220 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6224 printf %s "checking for uuid_generate in -luuid... " >&6; }
6225 if test ${ac_cv_lib_uuid_uuid_generate+y}
6227 printf %s "(cached) " >&6
6229 ac_check_lib_save_LIBS=$LIBS
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6237 char uuid_generate ();
6241 return uuid_generate ();
6246 if ac_fn_c_try_link "$LINENO"
6248 ac_cv_lib_uuid_uuid_generate=yes
6250 ac_cv_lib_uuid_uuid_generate=no
6252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6253 conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6257 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6258 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6260 LIBUUID=`$PKG_CONFIG --libs uuid`;
6261 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6263 as_fn_error $? "external uuid library not found" "$LINENO" 5
6266 PROFILED_LIBUUID=$LIBUUID
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6269 printf "%s\n" "Disabling private uuid library" >&6; }
6271 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6273 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6274 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6275 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6276 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6278 printf "%s\n" "Enabling private uuid library" >&6; }
6282 if test -n "$PKG_CONFIG"; then
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6284 printf %s "checking for uuid_generate in -luuid... " >&6; }
6285 if test ${ac_cv_lib_uuid_uuid_generate+y}
6287 printf %s "(cached) " >&6
6289 ac_check_lib_save_LIBS=$LIBS
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6297 char uuid_generate ();
6301 return uuid_generate ();
6306 if ac_fn_c_try_link "$LINENO"
6308 ac_cv_lib_uuid_uuid_generate=yes
6310 ac_cv_lib_uuid_uuid_generate=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6313 conftest$ac_exeext conftest.$ac_ext
6314 LIBS=$ac_check_lib_save_LIBS
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6317 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6318 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6320 LIBUUID=`$PKG_CONFIG --libs uuid`;
6321 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6325 if test -n "$LIBUUID"; then
6326 PROFILED_LIBUUID=$LIBUUID
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6329 printf "%s\n" "Using system uuid by default" >&6; }
6331 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6333 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6334 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6335 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6336 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6338 printf "%s\n" "Enabling private uuid library by default" >&6; }
6357 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 printf %s "checking for $ac_word... " >&6; }
6363 if test ${ac_cv_path_PKG_CONFIG+y}
6365 printf %s "(cached) " >&6
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 case $as_dir in #(((
6379 *) as_dir=$as_dir/ ;;
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6383 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6394 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6395 if test -n "$PKG_CONFIG"; then
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6397 printf "%s\n" "$PKG_CONFIG" >&6; }
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 printf "%s\n" "no" >&6; }
6405 if test -z "$ac_cv_path_PKG_CONFIG"; then
6406 ac_pt_PKG_CONFIG=$PKG_CONFIG
6407 # Extract the first word of "pkg-config", so it can be a program name with args.
6408 set dummy pkg-config; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6413 printf %s "(cached) " >&6
6415 case $ac_pt_PKG_CONFIG in
6417 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 case $as_dir in #(((
6427 *) as_dir=$as_dir/ ;;
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6442 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6443 if test -n "$ac_pt_PKG_CONFIG"; then
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6445 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 printf "%s\n" "no" >&6; }
6451 if test "x$ac_pt_PKG_CONFIG" = x; then
6454 case $cross_compiling:$ac_tool_warned in
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6460 PKG_CONFIG=$ac_pt_PKG_CONFIG
6463 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6467 if test -n "$PKG_CONFIG"; then
6468 _pkg_min_version=0.9.0
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6470 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6471 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6473 printf "%s\n" "yes" >&6; }
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 printf "%s\n" "no" >&6; }
6485 DEPPROFILED_LIBBLKID=
6488 # Check whether --enable-libblkid was given.
6489 if test ${enable_libblkid+y}
6491 enableval=$enable_libblkid; if test "$enableval" = "no"
6493 if test -z "$PKG_CONFIG"; then
6494 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6498 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6499 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6501 printf %s "(cached) " >&6
6503 ac_check_lib_save_LIBS=$LIBS
6504 LIBS="-lblkid -luuid $LIBS"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6508 /* Override any GCC internal prototype to avoid an error.
6509 Use char because int might match the return type of a GCC
6510 builtin and then its argument prototype would still apply. */
6511 char blkid_get_cache ();
6515 return blkid_get_cache ();
6520 if ac_fn_c_try_link "$LINENO"
6522 ac_cv_lib_blkid_blkid_get_cache=yes
6524 ac_cv_lib_blkid_blkid_get_cache=no
6526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6527 conftest$ac_exeext conftest.$ac_ext
6528 LIBS=$ac_check_lib_save_LIBS
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6531 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6532 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6534 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6535 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6537 as_fn_error $? "external blkid library not found" "$LINENO" 5
6541 PROFILED_LIBBLKID=$LIBBLKID
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6543 printf "%s\n" "Disabling private blkid library" >&6; }
6545 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6546 DEPLIBBLKID=$LIBBLKID
6547 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6548 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6549 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6550 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6551 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6554 printf "%s\n" "Enabling private blkid library" >&6; }
6558 if test -n "$PKG_CONFIG"; then
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6560 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6561 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6563 printf %s "(cached) " >&6
6565 ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-lblkid $LIBS"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6570 /* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
6573 char blkid_get_cache ();
6577 return blkid_get_cache ();
6582 if ac_fn_c_try_link "$LINENO"
6584 ac_cv_lib_blkid_blkid_get_cache=yes
6586 ac_cv_lib_blkid_blkid_get_cache=no
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6589 conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6593 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6594 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6596 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6597 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6601 if test -n "$LIBBLKID"; then
6603 PROFILED_LIBBLKID=$LIBBLKID
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6605 printf "%s\n" "Using system blkid library by default" >&6; }
6607 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6608 DEPLIBBLKID=$LIBBLKID
6609 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6610 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6611 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6612 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6613 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6616 printf "%s\n" "Enabling private blkid library by default" >&6; }
6630 # Check whether --enable-subset was given.
6631 if test ${enable_subset+y}
6633 enableval=$enable_subset; if test "$enableval" = "no"
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6637 printf "%s\n" "Disabling subset-only build" >&6; }
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6641 printf "%s\n" "Enabling subset-only-build" >&6; }
6649 # Check whether --enable-backtrace was given.
6650 if test ${enable_backtrace+y}
6652 enableval=$enable_backtrace; if test "$enableval" = "no"
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6655 printf "%s\n" "Disabling use of backtrace" >&6; }
6656 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6660 printf "%s\n" "Enabling use of backtrace" >&6; }
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6665 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6669 # Check whether --enable-debugfs was given.
6670 if test ${enable_debugfs+y}
6672 enableval=$enable_debugfs; if test "$enableval" = "no"
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6675 printf "%s\n" "Disabling debugfs support" >&6; }
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6680 printf "%s\n" "Enabling debugfs support" >&6; }
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6685 printf "%s\n" "Enabling debugfs support by default" >&6; }
6691 # Check whether --enable-imager was given.
6692 if test ${enable_imager+y}
6694 enableval=$enable_imager; if test "$enableval" = "no"
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6697 printf "%s\n" "Disabling e2image support" >&6; }
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6702 printf "%s\n" "Enabling e2image support" >&6; }
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6707 printf "%s\n" "Enabling e2image support by default" >&6; }
6713 # Check whether --enable-resizer was given.
6714 if test ${enable_resizer+y}
6716 enableval=$enable_resizer; if test "$enableval" = "no"
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6719 printf "%s\n" "Disabling e2resize support" >&6; }
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6724 printf "%s\n" "Enabling e2resize support" >&6; }
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6729 printf "%s\n" "Enabling e2resize support by default" >&6; }
6735 # Check whether --enable-defrag was given.
6736 if test ${enable_defrag+y}
6738 enableval=$enable_defrag; if test "$enableval" = "no"
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6741 printf "%s\n" "Disabling e4defrag support" >&6; }
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6746 printf "%s\n" "Enabling e4defrag support" >&6; }
6750 if test -z "$WITH_DIET_LIBC"
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6753 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6757 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6764 # Check whether --enable-fsck was given.
6765 if test ${enable_fsck+y}
6767 enableval=$enable_fsck; if test "$enableval" = "no"
6769 FSCK_PROG='' FSCK_MAN=''
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6771 printf "%s\n" "Not building fsck wrapper" >&6; }
6773 FSCK_PROG=fsck FSCK_MAN=fsck.8
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6775 printf "%s\n" "Building fsck wrapper" >&6; }
6781 FSCK_PROG='' FSCK_MAN=''
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6783 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6786 FSCK_PROG=fsck FSCK_MAN=fsck.8
6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6788 printf "%s\n" "Building fsck wrapper by default" >&6; }
6795 # Check whether --enable-e2initrd-helper was given.
6796 if test ${enable_e2initrd_helper+y}
6798 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6800 E2INITRD_PROG='' E2INITRD_MAN=''
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6802 printf "%s\n" "Not building e2initrd helper" >&6; }
6804 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6806 printf "%s\n" "Building e2initrd helper" >&6; }
6810 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6812 printf "%s\n" "Building e2initrd helper by default" >&6; }
6818 # Check whether --enable-tls was given.
6819 if test ${enable_tls+y}
6821 enableval=$enable_tls; if test "$enableval" = "no"
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6825 printf "%s\n" "Disabling thread local support" >&6; }
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6829 printf "%s\n" "Enabling thread local support" >&6; }
6833 if test -n "$WITH_DIET_LIBC"
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6837 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6841 printf "%s\n" "Try using thread local support by default" >&6; }
6846 if test "$try_tls" = "yes"
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6850 printf %s "checking for thread local storage (TLS) class... " >&6; }
6851 if test ${ac_cv_tls+y}
6853 printf %s "(cached) " >&6
6856 ax_tls_keywords="__thread __declspec(thread) none"
6857 for ax_tls_keyword in $ax_tls_keywords; do
6858 case $ax_tls_keyword in
6859 none) ac_cv_tls=none ; break ;;
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6866 static $ax_tls_keyword int bar;
6877 if ac_fn_c_try_compile "$LINENO"
6879 ac_cv_tls=$ax_tls_keyword ; break
6884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6891 if test "$ac_cv_tls" != "none"; then
6893 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6897 printf "%s\n" "$ac_cv_tls" >&6; }
6901 # Check whether --with-pthread was given.
6902 if test ${with_pthread+y}
6904 withval=$with_pthread; if test "$withval" = "no"
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6908 printf "%s\n" "Disabling pthread support" >&6; }
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6912 printf "%s\n" "Testing for pthread support" >&6; }
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6918 printf "%s\n" "Try testing for pthread support by default" >&6; }
6922 if test "$try_pthread" = "yes"
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6925 printf %s "checking for a sed that does not truncate output... " >&6; }
6926 if test ${ac_cv_path_SED+y}
6928 printf %s "(cached) " >&6
6930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6931 for ac_i in 1 2 3 4 5 6 7; do
6932 ac_script="$ac_script$as_nl$ac_script"
6934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6935 { ac_script=; unset ac_script;}
6936 if test -z "$SED"; then
6937 ac_path_SED_found=false
6938 # Loop through the user's path and test for each of PROGNAME-LIST
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 case $as_dir in #(((
6946 *) as_dir=$as_dir/ ;;
6948 for ac_prog in sed gsed
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6952 as_fn_executable_p "$ac_path_SED" || continue
6953 # Check for GNU ac_path_SED and select it if it is found.
6954 # Check for GNU $ac_path_SED
6955 case `"$ac_path_SED" --version 2>&1` in
6957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6960 printf %s 0123456789 >"conftest.in"
6963 cat "conftest.in" "conftest.in" >"conftest.tmp"
6964 mv "conftest.tmp" "conftest.in"
6965 cp "conftest.in" "conftest.nl"
6966 printf "%s\n" '' >> "conftest.nl"
6967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6969 as_fn_arith $ac_count + 1 && ac_count=$as_val
6970 if test $ac_count -gt ${ac_path_SED_max-0}; then
6971 # Best one so far, save it but keep looking for a better one
6972 ac_cv_path_SED="$ac_path_SED"
6973 ac_path_SED_max=$ac_count
6975 # 10*(2^10) chars as input seems more than enough
6976 test $ac_count -gt 10 && break
6978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6981 $ac_path_SED_found && break 3
6986 if test -z "$ac_cv_path_SED"; then
6987 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6995 printf "%s\n" "$ac_cv_path_SED" >&6; }
6996 SED="$ac_cv_path_SED"
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7001 printf %s "checking for grep that handles long lines and -e... " >&6; }
7002 if test ${ac_cv_path_GREP+y}
7004 printf %s "(cached) " >&6
7006 if test -z "$GREP"; then
7007 ac_path_GREP_found=false
7008 # Loop through the user's path and test for each of PROGNAME-LIST
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7013 case $as_dir in #(((
7016 *) as_dir=$as_dir/ ;;
7018 for ac_prog in grep ggrep
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7022 as_fn_executable_p "$ac_path_GREP" || continue
7023 # Check for GNU ac_path_GREP and select it if it is found.
7024 # Check for GNU $ac_path_GREP
7025 case `"$ac_path_GREP" --version 2>&1` in
7027 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7030 printf %s 0123456789 >"conftest.in"
7033 cat "conftest.in" "conftest.in" >"conftest.tmp"
7034 mv "conftest.tmp" "conftest.in"
7035 cp "conftest.in" "conftest.nl"
7036 printf "%s\n" 'GREP' >> "conftest.nl"
7037 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7039 as_fn_arith $ac_count + 1 && ac_count=$as_val
7040 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7041 # Best one so far, save it but keep looking for a better one
7042 ac_cv_path_GREP="$ac_path_GREP"
7043 ac_path_GREP_max=$ac_count
7045 # 10*(2^10) chars as input seems more than enough
7046 test $ac_count -gt 10 && break
7048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7051 $ac_path_GREP_found && break 3
7056 if test -z "$ac_cv_path_GREP"; then
7057 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7060 ac_cv_path_GREP=$GREP
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7065 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7066 GREP="$ac_cv_path_GREP"
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7070 printf %s "checking for egrep... " >&6; }
7071 if test ${ac_cv_path_EGREP+y}
7073 printf %s "(cached) " >&6
7075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7076 then ac_cv_path_EGREP="$GREP -E"
7078 if test -z "$EGREP"; then
7079 ac_path_EGREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7085 case $as_dir in #(((
7088 *) as_dir=$as_dir/ ;;
7090 for ac_prog in egrep
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7094 as_fn_executable_p "$ac_path_EGREP" || continue
7095 # Check for GNU ac_path_EGREP and select it if it is found.
7096 # Check for GNU $ac_path_EGREP
7097 case `"$ac_path_EGREP" --version 2>&1` in
7099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7102 printf %s 0123456789 >"conftest.in"
7105 cat "conftest.in" "conftest.in" >"conftest.tmp"
7106 mv "conftest.tmp" "conftest.in"
7107 cp "conftest.in" "conftest.nl"
7108 printf "%s\n" 'EGREP' >> "conftest.nl"
7109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7111 as_fn_arith $ac_count + 1 && ac_count=$as_val
7112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7113 # Best one so far, save it but keep looking for a better one
7114 ac_cv_path_EGREP="$ac_path_EGREP"
7115 ac_path_EGREP_max=$ac_count
7117 # 10*(2^10) chars as input seems more than enough
7118 test $ac_count -gt 10 && break
7120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7123 $ac_path_EGREP_found && break 3
7128 if test -z "$ac_cv_path_EGREP"; then
7129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7132 ac_cv_path_EGREP=$EGREP
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7138 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7139 EGREP="$ac_cv_path_EGREP"
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154 # We used to check for pthread.h first, but this fails if pthread.h
7155 # requires special compiler flags (e.g. on Tru64 or Sequent).
7156 # It gets checked for in the link test anyway.
7158 # First of all, check if the user has set any of the PTHREAD_LIBS,
7159 # etcetera environment variables, and if threads linking works using
7161 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7162 ax_pthread_save_CC="$CC"
7163 ax_pthread_save_CFLAGS="$CFLAGS"
7164 ax_pthread_save_LIBS="$LIBS"
7165 if test "x$PTHREAD_CC" != "x"
7169 if test "x$PTHREAD_CXX" != "x"
7173 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7174 LIBS="$PTHREAD_LIBS $LIBS"
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7176 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7183 char pthread_join ();
7187 return pthread_join ();
7192 if ac_fn_c_try_link "$LINENO"
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197 conftest$ac_exeext conftest.$ac_ext
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7199 printf "%s\n" "$ax_pthread_ok" >&6; }
7200 if test "x$ax_pthread_ok" = "xno"; then
7204 CC="$ax_pthread_save_CC"
7205 CFLAGS="$ax_pthread_save_CFLAGS"
7206 LIBS="$ax_pthread_save_LIBS"
7209 # We must check for the threads library under a number of different
7210 # names; the ordering is very important because some systems
7211 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7212 # libraries is broken (non-POSIX).
7214 # Create a list of thread flags to try. Items with a "," contain both
7215 # C compiler flags (before ",") and linker flags (after ","). Other items
7216 # starting with a "-" are C compiler flags, and remaining items are
7217 # library names, except for "none" which indicates that we try without
7218 # any flags at all, and "pthread-config" which is a program returning
7219 # the flags for the Pth emulation library.
7221 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7223 # The ordering *is* (sometimes) important. Some notes on the
7224 # individual items follow:
7226 # pthreads: AIX (must check this before -lpthread)
7227 # none: in case threads are in libc; should be tried before -Kthread and
7228 # other compiler flags to prevent continual compiler warnings
7229 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7230 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7231 # (Note: HP C rejects this with "bad form for `-t' option")
7232 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7233 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7234 # doesn't hurt to check since this sometimes defines pthreads and
7235 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7236 # is present but should not be used directly; and before -mthreads,
7237 # because the compiler interprets this as "-mt" + "-hreads")
7238 # -mthreads: Mingw32/gcc, Lynx/gcc
7239 # pthread: Linux, etcetera
7240 # --thread-safe: KAI C++
7241 # pthread-config: use pthread-config program (for GNU Pth library)
7247 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7248 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7250 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7255 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7256 # multi-threading and also sets -lpthread."
7258 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7263 # IBM z/OS requires a feature-test macro to be defined in order to
7264 # enable POSIX threads at all, so give the user a hint if this is
7265 # not set. (We don't define these ourselves, as they can affect
7266 # other portions of the system API in unpredictable ways.)
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7271 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7272 AX_PTHREAD_ZOS_MISSING
7276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7279 { 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
7280 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7288 # On Solaris (at least, for some versions), libc contains stubbed
7289 # (non-functional) versions of the pthreads routines, so link-based
7290 # tests will erroneously succeed. (N.B.: The stubs are missing
7291 # pthread_cleanup_push, or rather a function called by this macro,
7292 # so we could check for that, but who knows whether they'll stub
7293 # that too in a future libc.) So we'll check first for the
7294 # standard Solaris way of linking pthreads (-mt -lpthread).
7296 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7300 # Are we compiling with Clang?
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7303 printf %s "checking whether $CC is Clang... " >&6; }
7304 if test ${ax_cv_PTHREAD_CLANG+y}
7306 printf %s "(cached) " >&6
7308 ax_cv_PTHREAD_CLANG=no
7309 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7310 if test "x$GCC" = "xyes"; then
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7314 # if defined(__clang__) && defined(__llvm__)
7315 AX_PTHREAD_CC_IS_CLANG
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7322 ax_cv_PTHREAD_CLANG=yes
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7330 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7331 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7334 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7336 # Note that for GCC and Clang -pthread generally implies -lpthread,
7337 # except when -nostdlib is passed.
7338 # This is problematic using libtool to build C++ shared libraries with pthread:
7339 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7340 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7341 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7342 # To solve this, first try -pthread together with -lpthread for GCC
7344 if test "x$GCC" = "xyes"
7346 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7349 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7351 if test "x$ax_pthread_clang" = "xyes"
7353 ax_pthread_flags="-pthread,-lpthread -pthread"
7357 # The presence of a feature test macro requesting re-entrant function
7358 # definitions is, on some systems, a strong hint that pthreads support is
7362 darwin* | hpux* | linux* | osf* | solaris*)
7363 ax_pthread_check_macro="_REENTRANT"
7367 ax_pthread_check_macro="_THREAD_SAFE"
7371 ax_pthread_check_macro="--"
7374 if test "x$ax_pthread_check_macro" = "x--"
7376 ax_pthread_check_cond=0
7378 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7382 if test "x$ax_pthread_ok" = "xno"; then
7383 for ax_pthread_try_flag in $ax_pthread_flags; do
7385 case $ax_pthread_try_flag in
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7388 printf %s "checking whether pthreads work without any flags... " >&6; }
7392 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7393 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7395 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7400 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7401 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7405 # Extract the first word of "pthread-config", so it can be a program name with args.
7406 set dummy pthread-config; ac_word=$2
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 printf %s "checking for $ac_word... " >&6; }
7409 if test ${ac_cv_prog_ax_pthread_config+y}
7411 printf %s "(cached) " >&6
7413 if test -n "$ax_pthread_config"; then
7414 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 case $as_dir in #(((
7423 *) as_dir=$as_dir/ ;;
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_ax_pthread_config="yes"
7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7435 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7438 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7439 if test -n "$ax_pthread_config"; then
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7441 printf "%s\n" "$ax_pthread_config" >&6; }
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 printf "%s\n" "no" >&6; }
7448 if test "x$ax_pthread_config" = "xno"
7452 PTHREAD_CFLAGS="`pthread-config --cflags`"
7453 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7458 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7459 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7463 ax_pthread_save_CFLAGS="$CFLAGS"
7464 ax_pthread_save_LIBS="$LIBS"
7465 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7466 LIBS="$PTHREAD_LIBS $LIBS"
7468 # Check for various functions. We must include pthread.h,
7469 # since some functions may be macros. (On the Sequent, we
7470 # need a special flag -Kthread to make this header compile.)
7471 # We check for pthread_join because it is in -lpthread on IRIX
7472 # while pthread_create is in libc. We check for pthread_attr_init
7473 # due to DEC craziness with -lpthreads. We check for
7474 # pthread_cleanup_push because it is one of the few pthread
7475 # functions on Solaris that doesn't have a non-functional libc stub.
7476 # We try pthread_create on general principles.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #include <pthread.h>
7481 # if $ax_pthread_check_cond
7482 # error "$ax_pthread_check_macro must be defined"
7484 static void *some_global = NULL;
7485 static void routine(void *a)
7487 /* To avoid any unused-parameter or
7488 unused-but-set-parameter warning. */
7491 static void *start_routine(void *a) { return a; }
7495 pthread_t th; pthread_attr_t attr;
7496 pthread_create(&th, 0, start_routine, 0);
7497 pthread_join(th, 0);
7498 pthread_attr_init(&attr);
7499 pthread_cleanup_push(routine, 0);
7500 pthread_cleanup_pop(0) /* ; */
7505 if ac_fn_c_try_link "$LINENO"
7509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7510 conftest$ac_exeext conftest.$ac_ext
7512 CFLAGS="$ax_pthread_save_CFLAGS"
7513 LIBS="$ax_pthread_save_LIBS"
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7516 printf "%s\n" "$ax_pthread_ok" >&6; }
7517 if test "x$ax_pthread_ok" = "xyes"
7528 # Clang needs special handling, because older versions handle the -pthread
7529 # option in a rather... idiosyncratic way
7531 if test "x$ax_pthread_clang" = "xyes"; then
7533 # Clang takes -pthread; it has never supported any other flag
7535 # (Note 1: This will need to be revisited if a system that Clang
7536 # supports has POSIX threads in a separate library. This tends not
7537 # to be the way of modern systems, but it's conceivable.)
7539 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7540 # to get POSIX threads support; the API is always present and
7541 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7542 # -pthread does define _REENTRANT, and while the Darwin headers
7543 # ignore this macro, third-party headers might not.)
7545 # However, older versions of Clang make a point of warning the user
7546 # that, in an invocation where only linking and no compilation is
7547 # taking place, the -pthread option has no effect ("argument unused
7548 # during compilation"). They expect -pthread to be passed in only
7549 # when source code is being compiled.
7551 # Problem is, this is at odds with the way Automake and most other
7552 # C build frameworks function, which is that the same flags used in
7553 # compilation (CFLAGS) are also used in linking. Many systems
7554 # supported by AX_PTHREAD require exactly this for POSIX threads
7555 # support, and in fact it is often not straightforward to specify a
7556 # flag that is used only in the compilation phase and not in
7557 # linking. Such a scenario is extremely rare in practice.
7559 # Even though use of the -pthread flag in linking would only print
7560 # a warning, this can be a nuisance for well-run software projects
7561 # that build with -Werror. So if the active version of Clang has
7562 # this misfeature, we search for an option to squash it.
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7565 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7566 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7568 printf %s "(cached) " >&6
7570 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7571 # Create an alternate version of $ac_link that compiles and
7572 # links in two steps (.c -> .o, .o -> exe) instead of one
7573 # (.c -> exe), because the warning occurs only in the second
7575 ax_pthread_save_ac_link="$ac_link"
7576 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7577 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7578 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7579 ax_pthread_save_CFLAGS="$CFLAGS"
7580 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7581 if test "x$ax_pthread_try" = "xunknown"
7585 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7586 ac_link="$ax_pthread_save_ac_link"
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 int main(void){return 0;}
7591 if ac_fn_c_try_link "$LINENO"
7593 ac_link="$ax_pthread_2step_ac_link"
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 int main(void){return 0;}
7598 if ac_fn_c_try_link "$LINENO"
7602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603 conftest$ac_exeext conftest.$ac_ext
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607 conftest$ac_exeext conftest.$ac_ext
7609 ac_link="$ax_pthread_save_ac_link"
7610 CFLAGS="$ax_pthread_save_CFLAGS"
7611 if test "x$ax_pthread_try" = "x"
7615 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7619 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7621 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7623 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7626 fi # $ax_pthread_clang = yes
7630 # Various other checks:
7631 if test "x$ax_pthread_ok" = "xyes"; then
7632 ax_pthread_save_CFLAGS="$CFLAGS"
7633 ax_pthread_save_LIBS="$LIBS"
7634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7635 LIBS="$PTHREAD_LIBS $LIBS"
7637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7639 printf %s "checking for joinable pthread attribute... " >&6; }
7640 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7642 printf %s "(cached) " >&6
7644 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7645 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <pthread.h>
7652 int attr = $ax_pthread_attr; return attr /* ; */
7657 if ac_fn_c_try_link "$LINENO"
7659 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7662 conftest$ac_exeext conftest.$ac_ext
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7667 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7668 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7669 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7670 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7673 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7675 ax_pthread_joinable_attr_defined=yes
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7680 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7681 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7683 printf %s "(cached) " >&6
7685 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7688 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7694 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7695 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7696 test "x$ax_pthread_special_flags_added" != "xyes"
7698 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7699 ax_pthread_special_flags_added=yes
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7703 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7704 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7706 printf %s "(cached) " >&6
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #include <pthread.h>
7714 int i = PTHREAD_PRIO_INHERIT;
7720 if ac_fn_c_try_link "$LINENO"
7722 ax_cv_PTHREAD_PRIO_INHERIT=yes
7724 ax_cv_PTHREAD_PRIO_INHERIT=no
7726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7727 conftest$ac_exeext conftest.$ac_ext
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7731 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7732 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7733 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7736 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7738 ax_pthread_prio_inherit_defined=yes
7742 CFLAGS="$ax_pthread_save_CFLAGS"
7743 LIBS="$ax_pthread_save_LIBS"
7745 # More AIX lossage: compile with *_r variant
7746 if test "x$GCC" != "xyes"; then
7750 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7751 #handle absolute path differently from PATH based program lookup
7755 if as_fn_executable_p ${CC}_r
7757 PTHREAD_CC="${CC}_r"
7759 if test "x${CXX}" != "x"
7761 if as_fn_executable_p ${CXX}_r
7763 PTHREAD_CXX="${CXX}_r"
7769 for ac_prog in ${CC}_r
7771 # Extract the first word of "$ac_prog", so it can be a program name with args.
7772 set dummy $ac_prog; ac_word=$2
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 printf %s "checking for $ac_word... " >&6; }
7775 if test ${ac_cv_prog_PTHREAD_CC+y}
7777 printf %s "(cached) " >&6
7779 if test -n "$PTHREAD_CC"; then
7780 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 case $as_dir in #(((
7789 *) as_dir=$as_dir/ ;;
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_PTHREAD_CC="$ac_prog"
7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7803 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7804 if test -n "$PTHREAD_CC"; then
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7806 printf "%s\n" "$PTHREAD_CC" >&6; }
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 printf "%s\n" "no" >&6; }
7813 test -n "$PTHREAD_CC" && break
7815 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7817 if test "x${CXX}" != "x"
7819 for ac_prog in ${CXX}_r
7821 # Extract the first word of "$ac_prog", so it can be a program name with args.
7822 set dummy $ac_prog; ac_word=$2
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 printf %s "checking for $ac_word... " >&6; }
7825 if test ${ac_cv_prog_PTHREAD_CXX+y}
7827 printf %s "(cached) " >&6
7829 if test -n "$PTHREAD_CXX"; then
7830 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 case $as_dir in #(((
7839 *) as_dir=$as_dir/ ;;
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7854 if test -n "$PTHREAD_CXX"; then
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7856 printf "%s\n" "$PTHREAD_CXX" >&6; }
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 printf "%s\n" "no" >&6; }
7863 test -n "$PTHREAD_CXX" && break
7865 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7880 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7881 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7888 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7889 if test "x$ax_pthread_ok" = "xyes"; then
7891 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7910 # Check whether --enable-uuidd was given.
7911 if test ${enable_uuidd+y}
7913 enableval=$enable_uuidd; if test "$enableval" = "no"
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7916 printf "%s\n" "Not building uuidd" >&6; }
7919 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7923 printf "%s\n" "Building uuidd" >&6; }
7927 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7929 if test -z "$UUID_CMT"
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7933 printf "%s\n" "Building uuidd by default" >&6; }
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7937 printf "%s\n" "Disabling uuidd by default" >&6; }
7944 # Check whether --enable-mmp was given.
7945 if test ${enable_mmp+y}
7947 enableval=$enable_mmp; if test "$enableval" = "no"
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7950 printf "%s\n" "Disabling mmp support" >&6; }
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7953 printf "%s\n" "Enabling mmp support" >&6; }
7954 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7960 printf "%s\n" "Enabling mmp support by default" >&6; }
7961 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7967 # Check whether --enable-tdb was given.
7968 if test ${enable_tdb+y}
7970 enableval=$enable_tdb;
7971 if test "$enableval" = "no"
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7974 printf "%s\n" "Disabling tdb support" >&6; }
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7978 printf "%s\n" "Enabling tdb support" >&6; }
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7988 printf "%s\n" "Disabling tdb support by default" >&6; }
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7993 printf "%s\n" "Enabling tdb support by default" >&6; }
8001 if test "$CONFIG_TDB" = "1"
8003 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8009 TDB_MAN_COMMENT='.\"'
8014 # Check whether --enable-bmap-stats was given.
8015 if test ${enable_bmap_stats+y}
8017 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8020 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8023 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8024 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8030 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8031 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8037 # Check whether --enable-bmap-stats-ops was given.
8038 if test ${enable_bmap_stats_ops+y}
8040 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8043 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8045 if test "x${enable_bmap_stats}" = "xno"
8047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8049 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8050 See \`config.log' for more details" "$LINENO" 5; }
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8054 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8055 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8061 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8065 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8067 GETTEXT_PACKAGE=e2fsprogs
8069 VERSION="$E2FSPROGS_VERSION"
8072 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8075 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8082 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8084 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8085 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8087 printf %s "(cached) " >&6
8089 cat >conftest.make <<\_ACEOF
8092 @echo '@@@%%%=$(MAKE)=@@@%%%'
8094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8097 eval ac_cv_prog_make_${ac_make}_set=yes;;
8099 eval ac_cv_prog_make_${ac_make}_set=no;;
8103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 printf "%s\n" "yes" >&6; }
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 printf "%s\n" "no" >&6; }
8110 SET_MAKE="MAKE=${MAKE-make}"
8114 # Find a good install program. We prefer a C program (faster),
8115 # so one script is as good as another. But avoid the broken or
8116 # incompatible versions:
8117 # SysV /etc/install, /usr/sbin/install
8118 # SunOS /usr/etc/install
8119 # IRIX /sbin/install
8121 # AmigaOS /C/install, which installs bootblocks on floppy discs
8122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8125 # OS/2's system install, which has a completely different semantic
8126 # ./install, which can be erroneously created by make from ./install.sh.
8127 # Reject install programs that cannot install multiple files.
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8129 printf %s "checking for a BSD-compatible install... " >&6; }
8130 if test -z "$INSTALL"; then
8131 if test ${ac_cv_path_install+y}
8133 printf %s "(cached) " >&6
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 case $as_dir in #(((
8142 *) as_dir=$as_dir/ ;;
8144 # Account for fact that we put trailing slashes in our PATH walk.
8147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8151 # OSF1 and SCO ODT 3.0 have their own names for install.
8152 # Don't use installbsd from OSF since it installs stuff as root
8154 for ac_prog in ginstall scoinst install; do
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8157 if test $ac_prog = install &&
8158 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8159 # AIX install. It has an incompatible calling convention.
8161 elif test $ac_prog = install &&
8162 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8163 # program-specific install script used by HP pwplus--don't use.
8166 rm -rf conftest.one conftest.two conftest.dir
8167 echo one > conftest.one
8168 echo two > conftest.two
8170 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8171 test -s conftest.one && test -s conftest.two &&
8172 test -s conftest.dir/conftest.one &&
8173 test -s conftest.dir/conftest.two
8175 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8188 rm -rf conftest.one conftest.two conftest.dir
8191 if test ${ac_cv_path_install+y}; then
8192 INSTALL=$ac_cv_path_install
8194 # As a last resort, use the slow shell script. Don't cache a
8195 # value for INSTALL within a source directory, because that will
8196 # break other packages using the cache if that directory is
8197 # removed, or if the value is a relative name.
8198 INSTALL=$ac_install_sh
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8202 printf "%s\n" "$INSTALL" >&6; }
8204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8205 # It thinks the first close brace ends the variable substitution.
8206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8214 printf %s "checking for a race-free mkdir -p... " >&6; }
8215 if test -z "$MKDIR_P"; then
8216 if test ${ac_cv_path_mkdir+y}
8218 printf %s "(cached) " >&6
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8224 case $as_dir in #(((
8227 *) as_dir=$as_dir/ ;;
8229 for ac_prog in mkdir gmkdir; do
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8232 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8233 'mkdir ('*'coreutils) '* | \
8235 'mkdir (fileutils) '4.1*)
8236 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8246 test -d ./--version && rmdir ./--version
8247 if test ${ac_cv_path_mkdir+y}; then
8248 MKDIR_P="$ac_cv_path_mkdir -p"
8250 # As a last resort, use the slow shell script. Don't cache a
8251 # value for MKDIR_P within a source directory, because that will
8252 # break other packages using the cache if that directory is
8253 # removed, or if the value is a relative name.
8254 MKDIR_P="$ac_install_sh -d"
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8258 printf "%s\n" "$MKDIR_P" >&6; }
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8262 printf %s "checking whether NLS is requested... " >&6; }
8263 # Check whether --enable-nls was given.
8264 if test ${enable_nls+y}
8266 enableval=$enable_nls; USE_NLS=$enableval
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8272 printf "%s\n" "$USE_NLS" >&6; }
8277 GETTEXT_MACRO_VERSION=0.20
8282 # Prepare PATH_SEPARATOR.
8283 # The user is always right.
8284 if test "${PATH_SEPARATOR+set}" != set; then
8285 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8286 # contains only /bin. Note that ksh looks also at the FPATH variable,
8287 # so we have to set that as well for the test.
8289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8290 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8291 || PATH_SEPARATOR=';'
8295 # Find out how to test for executable files. Don't use a zero-byte file,
8296 # as systems may use methods other than mode bits to determine executability.
8297 cat >conf$$.file <<_ASEOF
8301 chmod +x conf$$.file
8302 if test -x conf$$.file >/dev/null 2>&1; then
8303 ac_executable_p="test -x"
8305 ac_executable_p="test -f"
8309 # Extract the first word of "msgfmt", so it can be a program name with args.
8310 set dummy msgfmt; ac_word=$2
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 printf %s "checking for $ac_word... " >&6; }
8313 if test ${ac_cv_path_MSGFMT+y}
8315 printf %s "(cached) " >&6
8319 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8322 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8323 for ac_dir in $PATH; do
8325 test -z "$ac_dir" && ac_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8328 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8329 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8330 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8331 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8338 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8342 MSGFMT="$ac_cv_path_MSGFMT"
8343 if test "$MSGFMT" != ":"; then
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8345 printf "%s\n" "$MSGFMT" >&6; }
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 printf "%s\n" "no" >&6; }
8351 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8352 set dummy gmsgfmt; ac_word=$2
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 printf %s "checking for $ac_word... " >&6; }
8355 if test ${ac_cv_path_GMSGFMT+y}
8357 printf %s "(cached) " >&6
8361 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 case $as_dir in #(((
8371 *) as_dir=$as_dir/ ;;
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8383 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8387 GMSGFMT=$ac_cv_path_GMSGFMT
8388 if test -n "$GMSGFMT"; then
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8390 printf "%s\n" "$GMSGFMT" >&6; }
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 printf "%s\n" "no" >&6; }
8398 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8399 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8400 *) GMSGFMT_015=$GMSGFMT ;;
8405 # Prepare PATH_SEPARATOR.
8406 # The user is always right.
8407 if test "${PATH_SEPARATOR+set}" != set; then
8408 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8409 # contains only /bin. Note that ksh looks also at the FPATH variable,
8410 # so we have to set that as well for the test.
8412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8413 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8414 || PATH_SEPARATOR=';'
8418 # Find out how to test for executable files. Don't use a zero-byte file,
8419 # as systems may use methods other than mode bits to determine executability.
8420 cat >conf$$.file <<_ASEOF
8424 chmod +x conf$$.file
8425 if test -x conf$$.file >/dev/null 2>&1; then
8426 ac_executable_p="test -x"
8428 ac_executable_p="test -f"
8432 # Extract the first word of "xgettext", so it can be a program name with args.
8433 set dummy xgettext; ac_word=$2
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 printf %s "checking for $ac_word... " >&6; }
8436 if test ${ac_cv_path_XGETTEXT+y}
8438 printf %s "(cached) " >&6
8442 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8445 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8446 for ac_dir in $PATH; do
8448 test -z "$ac_dir" && ac_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8451 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8452 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8453 (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
8454 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8461 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8465 XGETTEXT="$ac_cv_path_XGETTEXT"
8466 if test "$XGETTEXT" != ":"; then
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8468 printf "%s\n" "$XGETTEXT" >&6; }
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8476 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8477 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8478 *) XGETTEXT_015=$XGETTEXT ;;
8483 # Prepare PATH_SEPARATOR.
8484 # The user is always right.
8485 if test "${PATH_SEPARATOR+set}" != set; then
8486 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8487 # contains only /bin. Note that ksh looks also at the FPATH variable,
8488 # so we have to set that as well for the test.
8490 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8491 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8492 || PATH_SEPARATOR=';'
8496 # Find out how to test for executable files. Don't use a zero-byte file,
8497 # as systems may use methods other than mode bits to determine executability.
8498 cat >conf$$.file <<_ASEOF
8502 chmod +x conf$$.file
8503 if test -x conf$$.file >/dev/null 2>&1; then
8504 ac_executable_p="test -x"
8506 ac_executable_p="test -f"
8510 # Extract the first word of "msgmerge", so it can be a program name with args.
8511 set dummy msgmerge; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_path_MSGMERGE+y}
8516 printf %s "(cached) " >&6
8520 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8523 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8524 for ac_dir in $PATH; do
8526 test -z "$ac_dir" && ac_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8529 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8530 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8531 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8538 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8542 MSGMERGE="$ac_cv_path_MSGMERGE"
8543 if test "$MSGMERGE" != ":"; then
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8545 printf "%s\n" "$MSGMERGE" >&6; }
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 printf "%s\n" "no" >&6; }
8552 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8553 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8555 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8556 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8558 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8563 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8566 ac_config_commands="$ac_config_commands po-directories"
8570 if test "X$prefix" = "XNONE"; then
8571 acl_final_prefix="$ac_default_prefix"
8573 acl_final_prefix="$prefix"
8575 if test "X$exec_prefix" = "XNONE"; then
8576 acl_final_exec_prefix='${prefix}'
8578 acl_final_exec_prefix="$exec_prefix"
8580 acl_save_prefix="$prefix"
8581 prefix="$acl_final_prefix"
8582 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8583 prefix="$acl_save_prefix"
8587 # Check whether --with-gnu-ld was given.
8588 if test ${with_gnu_ld+y}
8590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8595 # Prepare PATH_SEPARATOR.
8596 # The user is always right.
8597 if test "${PATH_SEPARATOR+set}" != set; then
8598 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8599 # contains only /bin. Note that ksh looks also at the FPATH variable,
8600 # so we have to set that as well for the test.
8602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8603 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8604 || PATH_SEPARATOR=';'
8608 if test -n "$LD"; then
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8610 printf %s "checking for ld... " >&6; }
8611 elif test "$GCC" = yes; then
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8613 printf %s "checking for ld used by $CC... " >&6; }
8614 elif test "$with_gnu_ld" = yes; then
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8616 printf %s "checking for GNU ld... " >&6; }
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8619 printf %s "checking for non-GNU ld... " >&6; }
8621 if test -n "$LD"; then
8622 # Let the user override the test with a path.
8625 if test ${acl_cv_path_LD+y}
8627 printf %s "(cached) " >&6
8630 acl_cv_path_LD= # Final result of this test
8631 ac_prog=ld # Program to search in $PATH
8632 if test "$GCC" = yes; then
8633 # Check if gcc -print-prog-name=ld gives a path.
8636 # gcc leaves a trailing carriage return which upsets mingw
8637 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8639 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8642 # Accept absolute paths.
8644 re_direlt='/[^/][^/]*/\.\./'
8645 # Canonicalize the pathname of ld
8646 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8647 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8648 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8650 # Got the pathname. No search in PATH is needed.
8651 acl_cv_path_LD="$acl_output"
8655 # If it fails, then pretend we aren't using GCC.
8658 # If it is relative, then search for the first ld in PATH.
8663 if test -n "$ac_prog"; then
8664 # Search for $ac_prog in $PATH.
8665 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8666 for ac_dir in $PATH; do
8668 test -z "$ac_dir" && ac_dir=.
8669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8670 acl_cv_path_LD="$ac_dir/$ac_prog"
8671 # Check to see if the program is GNU ld. I'd rather use --version,
8672 # but apparently some variants of GNU ld only accept -v.
8673 # Break only if it was the GNU/non-GNU ld that we prefer.
8674 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8675 *GNU* | *'with BFD'*)
8676 test "$with_gnu_ld" != no && break
8679 test "$with_gnu_ld" != yes && break
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #if defined __powerpc64__ || defined _ARCH_PPC64
8697 if ac_fn_c_try_compile "$LINENO"
8699 # The compiler produces 64-bit code. Add option '-b64' so that the
8700 # linker groks 64-bit object files.
8701 case "$acl_cv_path_LD " in
8703 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #if defined __sparcv9 || defined __arch64__
8719 if ac_fn_c_try_compile "$LINENO"
8723 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8724 # so that the linker groks 32-bit object files.
8725 case "$acl_cv_path_LD " in
8726 *" -m elf32_sparc "*) ;;
8727 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8737 LD="$acl_cv_path_LD"
8739 if test -n "$LD"; then
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8741 printf "%s\n" "$LD" >&6; }
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 printf "%s\n" "no" >&6; }
8745 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8748 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8749 if test ${acl_cv_prog_gnu_ld+y}
8751 printf %s "(cached) " >&6
8753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8754 case `$LD -v 2>&1 </dev/null` in
8755 *GNU* | *'with BFD'*)
8756 acl_cv_prog_gnu_ld=yes
8759 acl_cv_prog_gnu_ld=no
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8764 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8765 with_gnu_ld=$acl_cv_prog_gnu_ld
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8773 printf %s "checking for shared library run path origin... " >&6; }
8774 if test ${acl_cv_rpath+y}
8776 printf %s "(cached) " >&6
8779 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8780 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8787 printf "%s\n" "$acl_cv_rpath" >&6; }
8789 acl_libext="$acl_cv_libext"
8790 acl_shlibext="$acl_cv_shlibext"
8791 acl_libname_spec="$acl_cv_libname_spec"
8792 acl_library_names_spec="$acl_cv_library_names_spec"
8793 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8794 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8795 acl_hardcode_direct="$acl_cv_hardcode_direct"
8796 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8797 # Check whether --enable-rpath was given.
8798 if test ${enable_rpath+y}
8800 enableval=$enable_rpath; :
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8809 printf %s "checking 32-bit host C ABI... " >&6; }
8810 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8812 printf %s "(cached) " >&6
8814 if test -n "$gl_cv_host_cpu_c_abi"; then
8815 case "$gl_cv_host_cpu_c_abi" in
8816 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8817 gl_cv_host_cpu_c_abi_32bit=yes ;;
8818 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8819 gl_cv_host_cpu_c_abi_32bit=no ;;
8821 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8826 # CPUs that only support a 32-bit ABI.
8835 | microblaze | microblazeel \
8836 | nds32 | nds32le | nds32be \
8837 | nios2 | nios2eb | nios2el \
8840 | sh | sh1234 | sh1234elb \
8843 gl_cv_host_cpu_c_abi_32bit=yes
8846 # CPUs that only support a 64-bit ABI.
8847 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8849 gl_cv_host_cpu_c_abi_32bit=no
8853 gl_cv_host_cpu_c_abi_32bit=yes
8857 # On x86_64 systems, the C compiler may be generating code in one of
8859 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8860 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8861 # with native Windows (mingw, MSVC).
8862 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8863 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #if (defined __x86_64__ || defined __amd64__ \
8867 || defined _M_X64 || defined _M_AMD64) \
8868 && !(defined __ILP32__ || defined _ILP32)
8875 if ac_fn_c_try_compile "$LINENO"
8877 gl_cv_host_cpu_c_abi_32bit=no
8879 gl_cv_host_cpu_c_abi_32bit=yes
8881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8885 # Assume arm with EABI.
8886 # On arm64 systems, the C compiler may be generating code in one of
8888 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8889 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8890 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8900 if ac_fn_c_try_compile "$LINENO"
8902 gl_cv_host_cpu_c_abi_32bit=no
8904 gl_cv_host_cpu_c_abi_32bit=yes
8906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8909 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8910 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8911 # code. In the latter case, it defines _LP64 and __LP64__.
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8921 if ac_fn_c_try_compile "$LINENO"
8923 gl_cv_host_cpu_c_abi_32bit=no
8925 gl_cv_host_cpu_c_abi_32bit=yes
8927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8931 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8932 # 32-bit code. In the latter case, it defines _ILP32.
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8942 if ac_fn_c_try_compile "$LINENO"
8944 gl_cv_host_cpu_c_abi_32bit=yes
8946 gl_cv_host_cpu_c_abi_32bit=no
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8952 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8963 if ac_fn_c_try_compile "$LINENO"
8965 gl_cv_host_cpu_c_abi_32bit=no
8967 gl_cv_host_cpu_c_abi_32bit=yes
8969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8973 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8974 # No need to distinguish them here; the caller may distinguish
8975 # them based on the OS.
8976 # On powerpc64 systems, the C compiler may still be generating
8977 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8978 # be generating 64-bit code.
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 #if defined __powerpc64__ || defined _ARCH_PPC64
8988 if ac_fn_c_try_compile "$LINENO"
8990 gl_cv_host_cpu_c_abi_32bit=no
8992 gl_cv_host_cpu_c_abi_32bit=yes
8994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8998 gl_cv_host_cpu_c_abi_32bit=yes
9002 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9003 # Size of 'long' and 'void *':
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006 #if defined __LP64__
9013 if ac_fn_c_try_compile "$LINENO"
9015 gl_cv_host_cpu_c_abi_32bit=no
9017 gl_cv_host_cpu_c_abi_32bit=yes
9019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9023 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9024 # or 31-bit (= s390) code.
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #if defined __LP64__ || defined __s390x__
9034 if ac_fn_c_try_compile "$LINENO"
9036 gl_cv_host_cpu_c_abi_32bit=no
9038 gl_cv_host_cpu_c_abi_32bit=yes
9040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9044 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9045 # C compiler still generates 32-bit code.
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #if defined __sparcv9 || defined __arch64__
9055 if ac_fn_c_try_compile "$LINENO"
9057 gl_cv_host_cpu_c_abi_32bit=no
9059 gl_cv_host_cpu_c_abi_32bit=yes
9061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 gl_cv_host_cpu_c_abi_32bit=unknown
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9072 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9074 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9081 printf %s "checking for ELF binary format... " >&6; }
9082 if test ${gl_cv_elf+y}
9084 printf %s "(cached) " >&6
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9089 Extensible Linking Format
9093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9094 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9105 printf "%s\n" "$gl_cv_elf" >&6; }
9106 if test $gl_cv_elf; then
9107 # Extract the ELF class of a file (5th byte) in decimal.
9108 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9109 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9113 od -A n -t d1 -j 4 -N 1
9119 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9123 case $HOST_CPU_C_ABI_32BIT in
9126 acl_is_expected_elfclass ()
9128 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9133 acl_is_expected_elfclass ()
9135 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9140 acl_is_expected_elfclass ()
9147 acl_is_expected_elfclass ()
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9154 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9155 if test ${acl_cv_libdirstems+y}
9157 printf %s "(cached) " >&6
9164 if test $HOST_CPU_C_ABI_32BIT = no; then
9165 acl_libdirstem2=lib/64
9167 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9168 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9173 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9174 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9175 if test $HOST_CPU_C_ABI_32BIT != no; then
9176 # 32-bit or unknown ABI.
9177 if test -d /usr/lib32; then
9178 acl_libdirstem2=lib32
9181 if test $HOST_CPU_C_ABI_32BIT != yes; then
9182 # 64-bit or unknown ABI.
9183 if test -d /usr/lib64; then
9184 acl_libdirstem3=lib64
9187 if test -n "$searchpath"; then
9188 acl_save_IFS="${IFS= }"; IFS=":"
9189 for searchdir in $searchpath; do
9190 if test -d "$searchdir"; then
9191 case "$searchdir" in
9192 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9193 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9195 # Better ignore directories of this form. They are misleading.
9197 *) searchdir=`cd "$searchdir" && pwd`
9198 case "$searchdir" in
9199 */lib32 ) acl_libdirstem2=lib32 ;;
9200 */lib64 ) acl_libdirstem3=lib64 ;;
9206 if test $HOST_CPU_C_ABI_32BIT = yes; then
9210 if test $HOST_CPU_C_ABI_32BIT = no; then
9217 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9218 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9219 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9223 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9224 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9225 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9226 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9240 acl_save_prefix="$prefix"
9241 prefix="$acl_final_prefix"
9242 acl_save_exec_prefix="$exec_prefix"
9243 exec_prefix="$acl_final_exec_prefix"
9245 eval additional_includedir=\"$includedir\"
9246 eval additional_libdir=\"$libdir\"
9247 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9248 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9250 exec_prefix="$acl_save_exec_prefix"
9251 prefix="$acl_save_prefix"
9254 # Check whether --with-libiconv-prefix was given.
9255 if test ${with_libiconv_prefix+y}
9257 withval=$with_libiconv_prefix;
9258 if test "X$withval" = "Xno"; then
9261 if test "X$withval" = "X"; then
9263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
9268 eval additional_includedir=\"$includedir\"
9269 eval additional_libdir=\"$libdir\"
9270 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9271 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9273 exec_prefix="$acl_save_exec_prefix"
9274 prefix="$acl_save_prefix"
9277 additional_includedir="$withval/include"
9278 additional_libdir="$withval/$acl_libdirstem"
9279 additional_libdir2="$withval/$acl_libdirstem2"
9280 additional_libdir3="$withval/$acl_libdirstem3"
9286 if test "X$additional_libdir2" = "X$additional_libdir"; then
9289 if test "X$additional_libdir3" = "X$additional_libdir"; then
9299 names_already_handled=
9300 names_next_round='iconv '
9301 while test -n "$names_next_round"; do
9302 names_this_round="$names_next_round"
9304 for name in $names_this_round; do
9306 for n in $names_already_handled; do
9307 if test "$n" = "$name"; then
9312 if test -z "$already_handled"; then
9313 names_already_handled="$names_already_handled $name"
9314 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9315 eval value=\"\$HAVE_LIB$uppername\"
9316 if test -n "$value"; then
9317 if test "$value" = yes; then
9318 eval value=\"\$LIB$uppername\"
9319 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9320 eval value=\"\$LTLIB$uppername\"
9321 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9330 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9331 if test -n "$acl_shlibext"; then
9332 shrext=".$acl_shlibext" # typically: shrext=.so
9336 if test $use_additional = yes; then
9337 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9338 if test "X$found_dir" = "X"; then
9339 eval dir=\$$additional_libdir_variable
9340 if test -n "$dir"; then
9341 if test -n "$acl_shlibext"; then
9342 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9344 found_so="$dir/$libname$shrext"
9346 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9347 ver=`(cd "$dir" && \
9348 for f in "$libname$shrext".*; do echo "$f"; done \
9349 | sed -e "s,^$libname$shrext\\\\.,," \
9350 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9351 | sed 1q ) 2>/dev/null`
9352 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9354 found_so="$dir/$libname$shrext.$ver"
9357 eval library_names=\"$acl_library_names_spec\"
9358 for f in $library_names; do
9359 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9368 if test "X$found_dir" = "X"; then
9369 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9371 found_a="$dir/$libname.$acl_libext"
9374 if test "X$found_dir" != "X"; then
9375 if test -f "$dir/$libname.la"; then
9376 found_la="$dir/$libname.la"
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBICONV; do
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$acl_shlibext"; then
9398 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9400 found_so="$dir/$libname$shrext"
9402 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9403 ver=`(cd "$dir" && \
9404 for f in "$libname$shrext".*; do echo "$f"; done \
9405 | sed -e "s,^$libname$shrext\\\\.,," \
9406 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9407 | sed 1q ) 2>/dev/null`
9408 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9410 found_so="$dir/$libname$shrext.$ver"
9413 eval library_names=\"$acl_library_names_spec\"
9414 for f in $library_names; do
9415 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9424 if test "X$found_dir" = "X"; then
9425 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9427 found_a="$dir/$libname.$acl_libext"
9430 if test "X$found_dir" != "X"; then
9431 if test -f "$dir/$libname.la"; then
9432 found_la="$dir/$libname.la"
9437 if test "X$found_dir" != "X"; then
9442 if test "X$found_dir" != "X"; then
9443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9444 if test "X$found_so" != "X"; then
9445 if test "$enable_rpath" = no \
9446 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9447 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9448 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9452 for x in $ltrpathdirs; do
9453 if test "X$x" = "X$found_dir"; then
9458 if test -z "$haveit"; then
9459 ltrpathdirs="$ltrpathdirs $found_dir"
9461 if test "$acl_hardcode_direct" = yes; then
9462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9464 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9467 for x in $rpathdirs; do
9468 if test "X$x" = "X$found_dir"; then
9473 if test -z "$haveit"; then
9474 rpathdirs="$rpathdirs $found_dir"
9478 for x in $LDFLAGS $LIBICONV; do
9480 acl_save_prefix="$prefix"
9481 prefix="$acl_final_prefix"
9482 acl_save_exec_prefix="$exec_prefix"
9483 exec_prefix="$acl_final_exec_prefix"
9485 exec_prefix="$acl_save_exec_prefix"
9486 prefix="$acl_save_prefix"
9488 if test "X$x" = "X-L$found_dir"; then
9493 if test -z "$haveit"; then
9494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9496 if test "$acl_hardcode_minus_L" != no; then
9497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9505 if test "X$found_a" != "X"; then
9506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9511 additional_includedir=
9512 case "$found_dir" in
9513 */$acl_libdirstem | */$acl_libdirstem/)
9514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9515 if test "$name" = 'iconv'; then
9516 LIBICONV_PREFIX="$basedir"
9518 additional_includedir="$basedir/include"
9520 */$acl_libdirstem2 | */$acl_libdirstem2/)
9521 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9522 if test "$name" = 'iconv'; then
9523 LIBICONV_PREFIX="$basedir"
9525 additional_includedir="$basedir/include"
9527 */$acl_libdirstem3 | */$acl_libdirstem3/)
9528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9529 if test "$name" = 'iconv'; then
9530 LIBICONV_PREFIX="$basedir"
9532 additional_includedir="$basedir/include"
9535 if test "X$additional_includedir" != "X"; then
9536 if test "X$additional_includedir" != "X/usr/include"; then
9538 if test "X$additional_includedir" = "X/usr/local/include"; then
9539 if test -n "$GCC"; then
9541 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9545 if test -z "$haveit"; then
9546 for x in $CPPFLAGS $INCICONV; do
9548 acl_save_prefix="$prefix"
9549 prefix="$acl_final_prefix"
9550 acl_save_exec_prefix="$exec_prefix"
9551 exec_prefix="$acl_final_exec_prefix"
9553 exec_prefix="$acl_save_exec_prefix"
9554 prefix="$acl_save_prefix"
9556 if test "X$x" = "X-I$additional_includedir"; then
9561 if test -z "$haveit"; then
9562 if test -d "$additional_includedir"; then
9563 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9569 if test -n "$found_la"; then
9570 save_libdir="$libdir"
9572 */* | *\\*) . "$found_la" ;;
9573 *) . "./$found_la" ;;
9575 libdir="$save_libdir"
9576 for dep in $dependency_libs; do
9579 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9580 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9581 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9582 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9584 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9585 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9586 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9587 if test -n "$GCC"; then
9589 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9593 if test -z "$haveit"; then
9595 for x in $LDFLAGS $LIBICONV; do
9597 acl_save_prefix="$prefix"
9598 prefix="$acl_final_prefix"
9599 acl_save_exec_prefix="$exec_prefix"
9600 exec_prefix="$acl_final_exec_prefix"
9602 exec_prefix="$acl_save_exec_prefix"
9603 prefix="$acl_save_prefix"
9605 if test "X$x" = "X-L$dependency_libdir"; then
9610 if test -z "$haveit"; then
9611 if test -d "$dependency_libdir"; then
9612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9616 for x in $LDFLAGS $LTLIBICONV; do
9618 acl_save_prefix="$prefix"
9619 prefix="$acl_final_prefix"
9620 acl_save_exec_prefix="$exec_prefix"
9621 exec_prefix="$acl_final_exec_prefix"
9623 exec_prefix="$acl_save_exec_prefix"
9624 prefix="$acl_save_prefix"
9626 if test "X$x" = "X-L$dependency_libdir"; then
9631 if test -z "$haveit"; then
9632 if test -d "$dependency_libdir"; then
9633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9641 if test "$enable_rpath" != no; then
9643 for x in $rpathdirs; do
9644 if test "X$x" = "X$dir"; then
9649 if test -z "$haveit"; then
9650 rpathdirs="$rpathdirs $dir"
9653 for x in $ltrpathdirs; do
9654 if test "X$x" = "X$dir"; then
9659 if test -z "$haveit"; then
9660 ltrpathdirs="$ltrpathdirs $dir"
9665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9685 if test "X$rpathdirs" != "X"; then
9686 if test -n "$acl_hardcode_libdir_separator"; then
9688 for found_dir in $rpathdirs; do
9689 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9691 acl_save_libdir="$libdir"
9693 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9694 libdir="$acl_save_libdir"
9695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9697 for found_dir in $rpathdirs; do
9698 acl_save_libdir="$libdir"
9700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9701 libdir="$acl_save_libdir"
9702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9706 if test "X$ltrpathdirs" != "X"; then
9707 for found_dir in $ltrpathdirs; do
9708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9741 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9742 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9744 printf %s "(cached) " >&6
9746 gt_save_LIBS="$LIBS"
9747 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750 #include <CoreFoundation/CFPreferences.h>
9754 CFPreferencesCopyAppValue(NULL, NULL)
9759 if ac_fn_c_try_link "$LINENO"
9761 gt_cv_func_CFPreferencesCopyAppValue=yes
9763 gt_cv_func_CFPreferencesCopyAppValue=no
9765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS="$gt_save_LIBS"
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9770 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9771 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9773 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9777 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9778 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9780 printf %s "(cached) " >&6
9782 gt_save_LIBS="$LIBS"
9783 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 #include <CoreFoundation/CFLocale.h>
9790 CFLocaleCopyPreferredLanguages();
9795 if ac_fn_c_try_link "$LINENO"
9797 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9799 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS="$gt_save_LIBS"
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9806 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9807 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9809 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9813 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9814 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9815 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9827 case " $gt_needs " in
9828 *" need-formatstring-macros "*) gt_api_version=3 ;;
9829 *" need-ngettext "*) gt_api_version=2 ;;
9830 *) gt_api_version=1 ;;
9832 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9833 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9835 if test "$USE_NLS" = "yes"; then
9836 gt_use_preinstalled_gnugettext=no
9839 if test $gt_api_version -ge 3; then
9840 gt_revision_test_code='
9841 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9842 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9844 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9847 gt_revision_test_code=
9849 if test $gt_api_version -ge 2; then
9850 gt_expression_test_code=' + * ngettext ("", "", 0)'
9852 gt_expression_test_code=
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9856 printf %s "checking for GNU gettext in libc... " >&6; }
9857 if eval test \${$gt_func_gnugettext_libc+y}
9859 printf %s "(cached) " >&6
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9864 #include <libintl.h>
9865 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9866 extern int _nl_msg_cat_cntr;
9867 extern int *_nl_domain_bindings;
9868 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9872 $gt_revision_test_code
9878 bindtextdomain ("", "");
9879 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9885 if ac_fn_c_try_link "$LINENO"
9887 eval "$gt_func_gnugettext_libc=yes"
9889 eval "$gt_func_gnugettext_libc=no"
9891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9892 conftest$ac_exeext conftest.$ac_ext
9894 eval ac_res=\$$gt_func_gnugettext_libc
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9896 printf "%s\n" "$ac_res" >&6; }
9898 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9904 am_save_CPPFLAGS="$CPPFLAGS"
9906 for element in $INCICONV; do
9908 for x in $CPPFLAGS; do
9910 acl_save_prefix="$prefix"
9911 prefix="$acl_final_prefix"
9912 acl_save_exec_prefix="$exec_prefix"
9913 exec_prefix="$acl_final_exec_prefix"
9915 exec_prefix="$acl_save_exec_prefix"
9916 prefix="$acl_save_prefix"
9918 if test "X$x" = "X$element"; then
9923 if test -z "$haveit"; then
9924 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9930 printf %s "checking for iconv... " >&6; }
9931 if test ${am_cv_func_iconv+y}
9933 printf %s "(cached) " >&6
9936 am_cv_func_iconv="no, consider installing GNU libiconv"
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9947 iconv_t cd = iconv_open("","");
9948 iconv(cd,NULL,NULL,NULL,NULL);
9954 if ac_fn_c_try_link "$LINENO"
9956 am_cv_func_iconv=yes
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test "$am_cv_func_iconv" != yes; then
9961 am_save_LIBS="$LIBS"
9962 LIBS="$LIBS $LIBICONV"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9972 iconv_t cd = iconv_open("","");
9973 iconv(cd,NULL,NULL,NULL,NULL);
9979 if ac_fn_c_try_link "$LINENO"
9982 am_cv_func_iconv=yes
9984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS="$am_save_LIBS"
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9991 printf "%s\n" "$am_cv_func_iconv" >&6; }
9992 if test "$am_cv_func_iconv" = yes; then
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9994 printf %s "checking for working iconv... " >&6; }
9995 if test ${am_cv_func_iconv_works+y}
9997 printf %s "(cached) " >&6
10000 am_save_LIBS="$LIBS"
10001 if test $am_cv_lib_iconv = yes; then
10002 LIBS="$LIBS $LIBICONV"
10004 am_cv_func_iconv_works=no
10005 for ac_iconv_const in '' 'const'; do
10006 if test "$cross_compiling" = yes
10009 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10010 *) am_cv_func_iconv_works="guessing yes" ;;
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10017 #include <string.h>
10019 #ifndef ICONV_CONST
10020 # define ICONV_CONST $ac_iconv_const
10027 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10030 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10031 if (cd_utf8_to_88591 != (iconv_t)(-1))
10033 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10035 ICONV_CONST char *inptr = input;
10036 size_t inbytesleft = strlen (input);
10037 char *outptr = buf;
10038 size_t outbytesleft = sizeof (buf);
10039 size_t res = iconv (cd_utf8_to_88591,
10040 &inptr, &inbytesleft,
10041 &outptr, &outbytesleft);
10044 iconv_close (cd_utf8_to_88591);
10047 /* Test against Solaris 10 bug: Failures are not distinguishable from
10048 successful returns. */
10050 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10051 if (cd_ascii_to_88591 != (iconv_t)(-1))
10053 static ICONV_CONST char input[] = "\263";
10055 ICONV_CONST char *inptr = input;
10056 size_t inbytesleft = strlen (input);
10057 char *outptr = buf;
10058 size_t outbytesleft = sizeof (buf);
10059 size_t res = iconv (cd_ascii_to_88591,
10060 &inptr, &inbytesleft,
10061 &outptr, &outbytesleft);
10064 iconv_close (cd_ascii_to_88591);
10067 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10069 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10070 if (cd_88591_to_utf8 != (iconv_t)(-1))
10072 static ICONV_CONST char input[] = "\304";
10073 static char buf[2] = { (char)0xDE, (char)0xAD };
10074 ICONV_CONST char *inptr = input;
10075 size_t inbytesleft = 1;
10076 char *outptr = buf;
10077 size_t outbytesleft = 1;
10078 size_t res = iconv (cd_88591_to_utf8,
10079 &inptr, &inbytesleft,
10080 &outptr, &outbytesleft);
10081 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10083 iconv_close (cd_88591_to_utf8);
10086 #if 0 /* This bug could be worked around by the caller. */
10087 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10089 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10090 if (cd_88591_to_utf8 != (iconv_t)(-1))
10092 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10094 ICONV_CONST char *inptr = input;
10095 size_t inbytesleft = strlen (input);
10096 char *outptr = buf;
10097 size_t outbytesleft = sizeof (buf);
10098 size_t res = iconv (cd_88591_to_utf8,
10099 &inptr, &inbytesleft,
10100 &outptr, &outbytesleft);
10103 iconv_close (cd_88591_to_utf8);
10107 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10110 /* Try standardized names. */
10111 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10112 /* Try IRIX, OSF/1 names. */
10113 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10114 /* Try AIX names. */
10115 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10116 /* Try HP-UX names. */
10117 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10118 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10119 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10121 if (cd1 != (iconv_t)(-1))
10123 if (cd2 != (iconv_t)(-1))
10125 if (cd3 != (iconv_t)(-1))
10127 if (cd4 != (iconv_t)(-1))
10136 if ac_fn_c_try_run "$LINENO"
10138 am_cv_func_iconv_works=yes
10140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10141 conftest.$ac_objext conftest.beam conftest.$ac_ext
10144 test "$am_cv_func_iconv_works" = no || break
10146 LIBS="$am_save_LIBS"
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10150 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10151 case "$am_cv_func_iconv_works" in
10152 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10153 *) am_func_iconv=yes ;;
10156 am_func_iconv=no am_cv_lib_iconv=no
10158 if test "$am_func_iconv" = yes; then
10160 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10163 if test "$am_cv_lib_iconv" = yes; then
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10165 printf %s "checking how to link with libiconv... " >&6; }
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10167 printf "%s\n" "$LIBICONV" >&6; }
10169 CPPFLAGS="$am_save_CPPFLAGS"
10185 acl_save_prefix="$prefix"
10186 prefix="$acl_final_prefix"
10187 acl_save_exec_prefix="$exec_prefix"
10188 exec_prefix="$acl_final_exec_prefix"
10190 eval additional_includedir=\"$includedir\"
10191 eval additional_libdir=\"$libdir\"
10192 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10193 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10195 exec_prefix="$acl_save_exec_prefix"
10196 prefix="$acl_save_prefix"
10199 # Check whether --with-libintl-prefix was given.
10200 if test ${with_libintl_prefix+y}
10202 withval=$with_libintl_prefix;
10203 if test "X$withval" = "Xno"; then
10206 if test "X$withval" = "X"; then
10208 acl_save_prefix="$prefix"
10209 prefix="$acl_final_prefix"
10210 acl_save_exec_prefix="$exec_prefix"
10211 exec_prefix="$acl_final_exec_prefix"
10213 eval additional_includedir=\"$includedir\"
10214 eval additional_libdir=\"$libdir\"
10215 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10216 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10218 exec_prefix="$acl_save_exec_prefix"
10219 prefix="$acl_save_prefix"
10222 additional_includedir="$withval/include"
10223 additional_libdir="$withval/$acl_libdirstem"
10224 additional_libdir2="$withval/$acl_libdirstem2"
10225 additional_libdir3="$withval/$acl_libdirstem3"
10231 if test "X$additional_libdir2" = "X$additional_libdir"; then
10232 additional_libdir2=
10234 if test "X$additional_libdir3" = "X$additional_libdir"; then
10235 additional_libdir3=
10244 names_already_handled=
10245 names_next_round='intl '
10246 while test -n "$names_next_round"; do
10247 names_this_round="$names_next_round"
10249 for name in $names_this_round; do
10251 for n in $names_already_handled; do
10252 if test "$n" = "$name"; then
10253 already_handled=yes
10257 if test -z "$already_handled"; then
10258 names_already_handled="$names_already_handled $name"
10259 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10260 eval value=\"\$HAVE_LIB$uppername\"
10261 if test -n "$value"; then
10262 if test "$value" = yes; then
10263 eval value=\"\$LIB$uppername\"
10264 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10265 eval value=\"\$LTLIB$uppername\"
10266 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10275 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10276 if test -n "$acl_shlibext"; then
10277 shrext=".$acl_shlibext" # typically: shrext=.so
10281 if test $use_additional = yes; then
10282 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10283 if test "X$found_dir" = "X"; then
10284 eval dir=\$$additional_libdir_variable
10285 if test -n "$dir"; then
10286 if test -n "$acl_shlibext"; then
10287 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10289 found_so="$dir/$libname$shrext"
10291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10292 ver=`(cd "$dir" && \
10293 for f in "$libname$shrext".*; do echo "$f"; done \
10294 | sed -e "s,^$libname$shrext\\\\.,," \
10295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10296 | sed 1q ) 2>/dev/null`
10297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10299 found_so="$dir/$libname$shrext.$ver"
10302 eval library_names=\"$acl_library_names_spec\"
10303 for f in $library_names; do
10304 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10313 if test "X$found_dir" = "X"; then
10314 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10316 found_a="$dir/$libname.$acl_libext"
10319 if test "X$found_dir" != "X"; then
10320 if test -f "$dir/$libname.la"; then
10321 found_la="$dir/$libname.la"
10328 if test "X$found_dir" = "X"; then
10329 for x in $LDFLAGS $LTLIBINTL; do
10331 acl_save_prefix="$prefix"
10332 prefix="$acl_final_prefix"
10333 acl_save_exec_prefix="$exec_prefix"
10334 exec_prefix="$acl_final_exec_prefix"
10336 exec_prefix="$acl_save_exec_prefix"
10337 prefix="$acl_save_prefix"
10341 dir=`echo "X$x" | sed -e 's/^X-L//'`
10342 if test -n "$acl_shlibext"; then
10343 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10345 found_so="$dir/$libname$shrext"
10347 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10348 ver=`(cd "$dir" && \
10349 for f in "$libname$shrext".*; do echo "$f"; done \
10350 | sed -e "s,^$libname$shrext\\\\.,," \
10351 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10352 | sed 1q ) 2>/dev/null`
10353 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10355 found_so="$dir/$libname$shrext.$ver"
10358 eval library_names=\"$acl_library_names_spec\"
10359 for f in $library_names; do
10360 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10369 if test "X$found_dir" = "X"; then
10370 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10372 found_a="$dir/$libname.$acl_libext"
10375 if test "X$found_dir" != "X"; then
10376 if test -f "$dir/$libname.la"; then
10377 found_la="$dir/$libname.la"
10382 if test "X$found_dir" != "X"; then
10387 if test "X$found_dir" != "X"; then
10388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10389 if test "X$found_so" != "X"; then
10390 if test "$enable_rpath" = no \
10391 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10392 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10393 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10394 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10397 for x in $ltrpathdirs; do
10398 if test "X$x" = "X$found_dir"; then
10403 if test -z "$haveit"; then
10404 ltrpathdirs="$ltrpathdirs $found_dir"
10406 if test "$acl_hardcode_direct" = yes; then
10407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10409 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10412 for x in $rpathdirs; do
10413 if test "X$x" = "X$found_dir"; then
10418 if test -z "$haveit"; then
10419 rpathdirs="$rpathdirs $found_dir"
10423 for x in $LDFLAGS $LIBINTL; do
10425 acl_save_prefix="$prefix"
10426 prefix="$acl_final_prefix"
10427 acl_save_exec_prefix="$exec_prefix"
10428 exec_prefix="$acl_final_exec_prefix"
10430 exec_prefix="$acl_save_exec_prefix"
10431 prefix="$acl_save_prefix"
10433 if test "X$x" = "X-L$found_dir"; then
10438 if test -z "$haveit"; then
10439 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10441 if test "$acl_hardcode_minus_L" != no; then
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10444 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10450 if test "X$found_a" != "X"; then
10451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10456 additional_includedir=
10457 case "$found_dir" in
10458 */$acl_libdirstem | */$acl_libdirstem/)
10459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10460 if test "$name" = 'intl'; then
10461 LIBINTL_PREFIX="$basedir"
10463 additional_includedir="$basedir/include"
10465 */$acl_libdirstem2 | */$acl_libdirstem2/)
10466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10467 if test "$name" = 'intl'; then
10468 LIBINTL_PREFIX="$basedir"
10470 additional_includedir="$basedir/include"
10472 */$acl_libdirstem3 | */$acl_libdirstem3/)
10473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10474 if test "$name" = 'intl'; then
10475 LIBINTL_PREFIX="$basedir"
10477 additional_includedir="$basedir/include"
10480 if test "X$additional_includedir" != "X"; then
10481 if test "X$additional_includedir" != "X/usr/include"; then
10483 if test "X$additional_includedir" = "X/usr/local/include"; then
10484 if test -n "$GCC"; then
10486 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10490 if test -z "$haveit"; then
10491 for x in $CPPFLAGS $INCINTL; do
10493 acl_save_prefix="$prefix"
10494 prefix="$acl_final_prefix"
10495 acl_save_exec_prefix="$exec_prefix"
10496 exec_prefix="$acl_final_exec_prefix"
10498 exec_prefix="$acl_save_exec_prefix"
10499 prefix="$acl_save_prefix"
10501 if test "X$x" = "X-I$additional_includedir"; then
10506 if test -z "$haveit"; then
10507 if test -d "$additional_includedir"; then
10508 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10514 if test -n "$found_la"; then
10515 save_libdir="$libdir"
10516 case "$found_la" in
10517 */* | *\\*) . "$found_la" ;;
10518 *) . "./$found_la" ;;
10520 libdir="$save_libdir"
10521 for dep in $dependency_libs; do
10524 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10525 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10526 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10527 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10529 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10530 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10531 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10532 if test -n "$GCC"; then
10534 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10538 if test -z "$haveit"; then
10540 for x in $LDFLAGS $LIBINTL; do
10542 acl_save_prefix="$prefix"
10543 prefix="$acl_final_prefix"
10544 acl_save_exec_prefix="$exec_prefix"
10545 exec_prefix="$acl_final_exec_prefix"
10547 exec_prefix="$acl_save_exec_prefix"
10548 prefix="$acl_save_prefix"
10550 if test "X$x" = "X-L$dependency_libdir"; then
10555 if test -z "$haveit"; then
10556 if test -d "$dependency_libdir"; then
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10561 for x in $LDFLAGS $LTLIBINTL; do
10563 acl_save_prefix="$prefix"
10564 prefix="$acl_final_prefix"
10565 acl_save_exec_prefix="$exec_prefix"
10566 exec_prefix="$acl_final_exec_prefix"
10568 exec_prefix="$acl_save_exec_prefix"
10569 prefix="$acl_save_prefix"
10571 if test "X$x" = "X-L$dependency_libdir"; then
10576 if test -z "$haveit"; then
10577 if test -d "$dependency_libdir"; then
10578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10586 if test "$enable_rpath" != no; then
10588 for x in $rpathdirs; do
10589 if test "X$x" = "X$dir"; then
10594 if test -z "$haveit"; then
10595 rpathdirs="$rpathdirs $dir"
10598 for x in $ltrpathdirs; do
10599 if test "X$x" = "X$dir"; then
10604 if test -z "$haveit"; then
10605 ltrpathdirs="$ltrpathdirs $dir"
10610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10630 if test "X$rpathdirs" != "X"; then
10631 if test -n "$acl_hardcode_libdir_separator"; then
10633 for found_dir in $rpathdirs; do
10634 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10636 acl_save_libdir="$libdir"
10638 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10639 libdir="$acl_save_libdir"
10640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10642 for found_dir in $rpathdirs; do
10643 acl_save_libdir="$libdir"
10644 libdir="$found_dir"
10645 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10646 libdir="$acl_save_libdir"
10647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10651 if test "X$ltrpathdirs" != "X"; then
10652 for found_dir in $ltrpathdirs; do
10653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10662 printf %s "checking for GNU gettext in libintl... " >&6; }
10663 if eval test \${$gt_func_gnugettext_libintl+y}
10665 printf %s "(cached) " >&6
10667 gt_save_CPPFLAGS="$CPPFLAGS"
10668 CPPFLAGS="$CPPFLAGS $INCINTL"
10669 gt_save_LIBS="$LIBS"
10670 LIBS="$LIBS $LIBINTL"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10674 #include <libintl.h>
10675 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10676 extern int _nl_msg_cat_cntr;
10681 const char *_nl_expand_alias (const char *);
10682 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10684 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10686 $gt_revision_test_code
10692 bindtextdomain ("", "");
10693 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10699 if ac_fn_c_try_link "$LINENO"
10701 eval "$gt_func_gnugettext_libintl=yes"
10703 eval "$gt_func_gnugettext_libintl=no"
10705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706 conftest$ac_exeext conftest.$ac_ext
10707 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10708 LIBS="$LIBS $LIBICONV"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 #include <libintl.h>
10713 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10714 extern int _nl_msg_cat_cntr;
10719 const char *_nl_expand_alias (const char *);
10720 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10722 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10724 $gt_revision_test_code
10730 bindtextdomain ("", "");
10731 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10737 if ac_fn_c_try_link "$LINENO"
10739 LIBINTL="$LIBINTL $LIBICONV"
10740 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10741 eval "$gt_func_gnugettext_libintl=yes"
10744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10745 conftest$ac_exeext conftest.$ac_ext
10747 CPPFLAGS="$gt_save_CPPFLAGS"
10748 LIBS="$gt_save_LIBS"
10750 eval ac_res=\$$gt_func_gnugettext_libintl
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10752 printf "%s\n" "$ac_res" >&6; }
10755 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10756 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10757 && test "$PACKAGE" != gettext-runtime \
10758 && test "$PACKAGE" != gettext-tools; }; then
10759 gt_use_preinstalled_gnugettext=yes
10768 if test -n "$INTL_MACOSX_LIBS"; then
10769 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10770 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10771 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10772 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10776 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10777 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10779 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10787 printf %s "checking whether to use NLS... " >&6; }
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10789 printf "%s\n" "$USE_NLS" >&6; }
10790 if test "$USE_NLS" = "yes"; then
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10792 printf %s "checking where the gettext function comes from... " >&6; }
10793 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10794 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10795 gt_source="external libintl"
10800 gt_source="included intl directory"
10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10803 printf "%s\n" "$gt_source" >&6; }
10806 if test "$USE_NLS" = "yes"; then
10808 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10809 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10811 printf %s "checking how to link with libintl... " >&6; }
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10813 printf "%s\n" "$LIBINTL" >&6; }
10815 for element in $INCINTL; do
10817 for x in $CPPFLAGS; do
10819 acl_save_prefix="$prefix"
10820 prefix="$acl_final_prefix"
10821 acl_save_exec_prefix="$exec_prefix"
10822 exec_prefix="$acl_final_exec_prefix"
10824 exec_prefix="$acl_save_exec_prefix"
10825 prefix="$acl_save_prefix"
10827 if test "X$x" = "X$element"; then
10832 if test -z "$haveit"; then
10833 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10840 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10843 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10852 INTLLIBS="$LIBINTL"
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10861 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10863 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10864 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10866 printf %s "(cached) " >&6
10868 cat >conftest.make <<\_ACEOF
10871 @echo '@@@%%%=$(MAKE)=@@@%%%'
10873 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10875 *@@@%%%=?*=@@@%%%*)
10876 eval ac_cv_prog_make_${ac_make}_set=yes;;
10878 eval ac_cv_prog_make_${ac_make}_set=no;;
10880 rm -f conftest.make
10882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 printf "%s\n" "yes" >&6; }
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 printf "%s\n" "no" >&6; }
10889 SET_MAKE="MAKE=${MAKE-make}"
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10893 printf %s "checking for GNU make... " >&6; }
10894 if test ${_cv_gnu_make_command+y}
10896 printf %s "(cached) " >&6
10898 _cv_gnu_make_command='' ;
10899 if test -n "$FORCE_NATIVE_MAKE" ; then
10902 MAKES="make gmake gnumake"
10904 for a in "$MAKE" $MAKES ; do
10905 if test -z "$a" ; then continue ; fi ;
10906 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10907 _cv_gnu_make_command=$a ;
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10914 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10915 if test "x$_cv_gnu_make_command" != "x" ; then
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10922 printf "%s\n" "\"Not found\"" >&6; };
10927 # Extract the first word of "ln", so it can be a program name with args.
10928 set dummy ln; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_path_LN+y}
10933 printf %s "(cached) " >&6
10937 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 case $as_dir in #(((
10947 *) as_dir=$as_dir/ ;;
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10951 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10959 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10964 if test -n "$LN"; then
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10966 printf "%s\n" "$LN" >&6; }
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 printf "%s\n" "no" >&6; }
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10977 printf %s "checking whether ln -s works... " >&6; }
10979 if test "$LN_S" = "ln -s"; then
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 printf "%s\n" "yes" >&6; }
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10984 printf "%s\n" "no, using $LN_S" >&6; }
10987 # Extract the first word of "mv", so it can be a program name with args.
10988 set dummy mv; ac_word=$2
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 printf %s "checking for $ac_word... " >&6; }
10991 if test ${ac_cv_path_MV+y}
10993 printf %s "(cached) " >&6
10997 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 case $as_dir in #(((
11007 *) as_dir=$as_dir/ ;;
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11011 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11019 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11024 if test -n "$MV"; then
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11026 printf "%s\n" "$MV" >&6; }
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 printf "%s\n" "no" >&6; }
11033 # Extract the first word of "cp", so it can be a program name with args.
11034 set dummy cp; ac_word=$2
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 printf %s "checking for $ac_word... " >&6; }
11037 if test ${ac_cv_path_CP+y}
11039 printf %s "(cached) " >&6
11043 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11050 case $as_dir in #(((
11053 *) as_dir=$as_dir/ ;;
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11057 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11065 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11070 if test -n "$CP"; then
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11072 printf "%s\n" "$CP" >&6; }
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 printf "%s\n" "no" >&6; }
11079 # Extract the first word of "rm", so it can be a program name with args.
11080 set dummy rm; ac_word=$2
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 printf %s "checking for $ac_word... " >&6; }
11083 if test ${ac_cv_path_RM+y}
11085 printf %s "(cached) " >&6
11089 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11096 case $as_dir in #(((
11099 *) as_dir=$as_dir/ ;;
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11103 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11111 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11116 if test -n "$RM"; then
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11118 printf "%s\n" "$RM" >&6; }
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 printf "%s\n" "no" >&6; }
11125 # Extract the first word of "chmod", so it can be a program name with args.
11126 set dummy chmod; ac_word=$2
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 printf %s "checking for $ac_word... " >&6; }
11129 if test ${ac_cv_path_CHMOD+y}
11131 printf %s "(cached) " >&6
11135 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11142 case $as_dir in #(((
11145 *) as_dir=$as_dir/ ;;
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11149 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11157 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11161 CHMOD=$ac_cv_path_CHMOD
11162 if test -n "$CHMOD"; then
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11164 printf "%s\n" "$CHMOD" >&6; }
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 printf "%s\n" "no" >&6; }
11171 for ac_prog in gawk mawk nawk awk
11173 # Extract the first word of "$ac_prog", so it can be a program name with args.
11174 set dummy $ac_prog; ac_word=$2
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 printf %s "checking for $ac_word... " >&6; }
11177 if test ${ac_cv_prog_AWK+y}
11179 printf %s "(cached) " >&6
11181 if test -n "$AWK"; then
11182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11188 case $as_dir in #(((
11191 *) as_dir=$as_dir/ ;;
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11195 ac_cv_prog_AWK="$ac_prog"
11196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11205 AWK=$ac_cv_prog_AWK
11206 if test -n "$AWK"; then
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11208 printf "%s\n" "$AWK" >&6; }
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 printf "%s\n" "no" >&6; }
11215 test -n "$AWK" && break
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11219 printf %s "checking for egrep... " >&6; }
11220 if test ${ac_cv_path_EGREP+y}
11222 printf %s "(cached) " >&6
11224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11225 then ac_cv_path_EGREP="$GREP -E"
11227 if test -z "$EGREP"; then
11228 ac_path_EGREP_found=false
11229 # Loop through the user's path and test for each of PROGNAME-LIST
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11234 case $as_dir in #(((
11237 *) as_dir=$as_dir/ ;;
11239 for ac_prog in egrep
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11243 as_fn_executable_p "$ac_path_EGREP" || continue
11244 # Check for GNU ac_path_EGREP and select it if it is found.
11245 # Check for GNU $ac_path_EGREP
11246 case `"$ac_path_EGREP" --version 2>&1` in
11248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11251 printf %s 0123456789 >"conftest.in"
11254 cat "conftest.in" "conftest.in" >"conftest.tmp"
11255 mv "conftest.tmp" "conftest.in"
11256 cp "conftest.in" "conftest.nl"
11257 printf "%s\n" 'EGREP' >> "conftest.nl"
11258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11260 as_fn_arith $ac_count + 1 && ac_count=$as_val
11261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11262 # Best one so far, save it but keep looking for a better one
11263 ac_cv_path_EGREP="$ac_path_EGREP"
11264 ac_path_EGREP_max=$ac_count
11266 # 10*(2^10) chars as input seems more than enough
11267 test $ac_count -gt 10 && break
11269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11272 $ac_path_EGREP_found && break 3
11277 if test -z "$ac_cv_path_EGREP"; then
11278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11281 ac_cv_path_EGREP=$EGREP
11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11287 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11288 EGREP="$ac_cv_path_EGREP"
11291 # Extract the first word of "sed", so it can be a program name with args.
11292 set dummy sed; ac_word=$2
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 printf %s "checking for $ac_word... " >&6; }
11295 if test ${ac_cv_path_SED+y}
11297 printf %s "(cached) " >&6
11301 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11308 case $as_dir in #(((
11311 *) as_dir=$as_dir/ ;;
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11315 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11323 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11327 SED=$ac_cv_path_SED
11328 if test -n "$SED"; then
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11330 printf "%s\n" "$SED" >&6; }
11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 printf "%s\n" "no" >&6; }
11337 # Extract the first word of "perl", so it can be a program name with args.
11338 set dummy perl; ac_word=$2
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 printf %s "checking for $ac_word... " >&6; }
11341 if test ${ac_cv_path_PERL+y}
11343 printf %s "(cached) " >&6
11347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11354 case $as_dir in #(((
11357 *) as_dir=$as_dir/ ;;
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11361 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11369 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11373 PERL=$ac_cv_path_PERL
11374 if test -n "$PERL"; then
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11376 printf "%s\n" "$PERL" >&6; }
11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 printf "%s\n" "no" >&6; }
11383 # Extract the first word of "ldconfig", so it can be a program name with args.
11384 set dummy ldconfig; ac_word=$2
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386 printf %s "checking for $ac_word... " >&6; }
11387 if test ${ac_cv_path_LDCONFIG+y}
11389 printf %s "(cached) " >&6
11393 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11400 case $as_dir in #(((
11403 *) as_dir=$as_dir/ ;;
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11407 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11415 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11419 LDCONFIG=$ac_cv_path_LDCONFIG
11420 if test -n "$LDCONFIG"; then
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11422 printf "%s\n" "$LDCONFIG" >&6; }
11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 printf "%s\n" "no" >&6; }
11429 if test -n "$ac_tool_prefix"; then
11430 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11431 set dummy ${ac_tool_prefix}ar; ac_word=$2
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 printf %s "checking for $ac_word... " >&6; }
11434 if test ${ac_cv_prog_AR+y}
11436 printf %s "(cached) " >&6
11438 if test -n "$AR"; then
11439 ac_cv_prog_AR="$AR" # Let the user override the test.
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11445 case $as_dir in #(((
11448 *) as_dir=$as_dir/ ;;
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11452 ac_cv_prog_AR="${ac_tool_prefix}ar"
11453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11463 if test -n "$AR"; then
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11465 printf "%s\n" "$AR" >&6; }
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 printf "%s\n" "no" >&6; }
11473 if test -z "$ac_cv_prog_AR"; then
11475 # Extract the first word of "ar", so it can be a program name with args.
11476 set dummy ar; ac_word=$2
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 printf %s "checking for $ac_word... " >&6; }
11479 if test ${ac_cv_prog_ac_ct_AR+y}
11481 printf %s "(cached) " >&6
11483 if test -n "$ac_ct_AR"; then
11484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 case $as_dir in #(((
11493 *) as_dir=$as_dir/ ;;
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11497 ac_cv_prog_ac_ct_AR="ar"
11498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11508 if test -n "$ac_ct_AR"; then
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11510 printf "%s\n" "$ac_ct_AR" >&6; }
11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 printf "%s\n" "no" >&6; }
11516 if test "x$ac_ct_AR" = x; then
11519 case $cross_compiling:$ac_tool_warned in
11521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11523 ac_tool_warned=yes ;;
11528 AR="$ac_cv_prog_AR"
11531 if test -n "$ac_tool_prefix"; then
11532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 printf %s "checking for $ac_word... " >&6; }
11536 if test ${ac_cv_prog_RANLIB+y}
11538 printf %s "(cached) " >&6
11540 if test -n "$RANLIB"; then
11541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11547 case $as_dir in #(((
11550 *) as_dir=$as_dir/ ;;
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11564 RANLIB=$ac_cv_prog_RANLIB
11565 if test -n "$RANLIB"; then
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11567 printf "%s\n" "$RANLIB" >&6; }
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 printf "%s\n" "no" >&6; }
11575 if test -z "$ac_cv_prog_RANLIB"; then
11576 ac_ct_RANLIB=$RANLIB
11577 # Extract the first word of "ranlib", so it can be a program name with args.
11578 set dummy ranlib; ac_word=$2
11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 printf %s "checking for $ac_word... " >&6; }
11581 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11583 printf %s "(cached) " >&6
11585 if test -n "$ac_ct_RANLIB"; then
11586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11592 case $as_dir in #(((
11595 *) as_dir=$as_dir/ ;;
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_ac_ct_RANLIB="ranlib"
11600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11610 if test -n "$ac_ct_RANLIB"; then
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11612 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 printf "%s\n" "no" >&6; }
11618 if test "x$ac_ct_RANLIB" = x; then
11621 case $cross_compiling:$ac_tool_warned in
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11625 ac_tool_warned=yes ;;
11627 RANLIB=$ac_ct_RANLIB
11630 RANLIB="$ac_cv_prog_RANLIB"
11633 if test -n "$ac_tool_prefix"; then
11634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11635 set dummy ${ac_tool_prefix}strip; ac_word=$2
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 printf %s "checking for $ac_word... " >&6; }
11638 if test ${ac_cv_prog_STRIP+y}
11640 printf %s "(cached) " >&6
11642 if test -n "$STRIP"; then
11643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 case $as_dir in #(((
11652 *) as_dir=$as_dir/ ;;
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11666 STRIP=$ac_cv_prog_STRIP
11667 if test -n "$STRIP"; then
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11669 printf "%s\n" "$STRIP" >&6; }
11671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 printf "%s\n" "no" >&6; }
11677 if test -z "$ac_cv_prog_STRIP"; then
11679 # Extract the first word of "strip", so it can be a program name with args.
11680 set dummy strip; ac_word=$2
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 printf %s "checking for $ac_word... " >&6; }
11683 if test ${ac_cv_prog_ac_ct_STRIP+y}
11685 printf %s "(cached) " >&6
11687 if test -n "$ac_ct_STRIP"; then
11688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11694 case $as_dir in #(((
11697 *) as_dir=$as_dir/ ;;
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11701 ac_cv_prog_ac_ct_STRIP="strip"
11702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11712 if test -n "$ac_ct_STRIP"; then
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11714 printf "%s\n" "$ac_ct_STRIP" >&6; }
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 printf "%s\n" "no" >&6; }
11720 if test "x$ac_ct_STRIP" = x; then
11723 case $cross_compiling:$ac_tool_warned in
11725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727 ac_tool_warned=yes ;;
11732 STRIP="$ac_cv_prog_STRIP"
11735 # Extract the first word of "makeinfo", so it can be a program name with args.
11736 set dummy makeinfo; ac_word=$2
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 printf %s "checking for $ac_word... " >&6; }
11739 if test ${ac_cv_prog_MAKEINFO+y}
11741 printf %s "(cached) " >&6
11743 if test -n "$MAKEINFO"; then
11744 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11750 case $as_dir in #(((
11753 *) as_dir=$as_dir/ ;;
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11757 ac_cv_prog_MAKEINFO="makeinfo"
11758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11767 MAKEINFO=$ac_cv_prog_MAKEINFO
11768 if test -n "$MAKEINFO"; then
11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11770 printf "%s\n" "$MAKEINFO" >&6; }
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 printf "%s\n" "no" >&6; }
11777 if test "_$MAKEINFO" = "_"; then
11778 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11780 case "$MAKEINFO" in
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11783 *** Makeinfo is missing. Info documentation will not be built." >&5
11784 printf "%s\n" "$as_me: WARNING:
11785 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11793 # See if we need a separate native compiler.
11794 if test $cross_compiling = no; then
11798 for ac_prog in gcc cc
11800 # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy $ac_prog; ac_word=$2
11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 printf %s "checking for $ac_word... " >&6; }
11804 if test ${ac_cv_prog_BUILD_CC+y}
11806 printf %s "(cached) " >&6
11808 if test -n "$BUILD_CC"; then
11809 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11815 case $as_dir in #(((
11818 *) as_dir=$as_dir/ ;;
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11822 ac_cv_prog_BUILD_CC="$ac_prog"
11823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11832 BUILD_CC=$ac_cv_prog_BUILD_CC
11833 if test -n "$BUILD_CC"; then
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11835 printf "%s\n" "$BUILD_CC" >&6; }
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 printf "%s\n" "no" >&6; }
11842 test -n "$BUILD_CC" && break
11846 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11847 if test "x$ac_cv_header_dirent_h" = xyes
11849 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11852 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11853 if test "x$ac_cv_header_errno_h" = xyes
11855 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11858 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11859 if test "x$ac_cv_header_execinfo_h" = xyes
11861 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11864 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11865 if test "x$ac_cv_header_getopt_h" = xyes
11867 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11870 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11871 if test "x$ac_cv_header_malloc_h" = xyes
11873 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11876 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11877 if test "x$ac_cv_header_mntent_h" = xyes
11879 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11882 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11883 if test "x$ac_cv_header_paths_h" = xyes
11885 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11888 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11889 if test "x$ac_cv_header_pthread_h" = xyes
11891 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11894 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11895 if test "x$ac_cv_header_semaphore_h" = xyes
11897 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11900 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11901 if test "x$ac_cv_header_setjmp_h" = xyes
11903 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11906 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11907 if test "x$ac_cv_header_signal_h" = xyes
11909 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11912 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11913 if test "x$ac_cv_header_stdarg_h" = xyes
11915 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11918 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11919 if test "x$ac_cv_header_stdint_h" = xyes
11921 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11924 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11925 if test "x$ac_cv_header_stdlib_h" = xyes
11927 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11930 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11931 if test "x$ac_cv_header_termios_h" = xyes
11933 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11936 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11937 if test "x$ac_cv_header_termio_h" = xyes
11939 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11942 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11943 if test "x$ac_cv_header_unistd_h" = xyes
11945 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11948 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11949 if test "x$ac_cv_header_utime_h" = xyes
11951 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11954 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11955 if test "x$ac_cv_header_attr_xattr_h" = xyes
11957 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11960 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11961 if test "x$ac_cv_header_linux_falloc_h" = xyes
11963 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11966 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11967 if test "x$ac_cv_header_linux_fd_h" = xyes
11969 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11972 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11973 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11975 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11978 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11979 if test "x$ac_cv_header_linux_major_h" = xyes
11981 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11984 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11985 if test "x$ac_cv_header_linux_loop_h" = xyes
11987 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11990 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_linux_types_h" = xyes
11993 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11996 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11997 if test "x$ac_cv_header_net_if_dl_h" = xyes
11999 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12002 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12003 if test "x$ac_cv_header_netinet_in_h" = xyes
12005 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12008 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12009 if test "x$ac_cv_header_sys_acl_h" = xyes
12011 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12014 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12015 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12017 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12020 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12021 if test "x$ac_cv_header_sys_disk_h" = xyes
12023 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12026 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12027 if test "x$ac_cv_header_sys_file_h" = xyes
12029 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12032 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12033 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12035 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12038 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12039 if test "x$ac_cv_header_sys_key_h" = xyes
12041 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12044 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12045 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12047 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12050 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12051 if test "x$ac_cv_header_sys_mman_h" = xyes
12053 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12056 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_sys_mount_h" = xyes
12059 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12062 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12063 if test "x$ac_cv_header_sys_prctl_h" = xyes
12065 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12068 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12069 if test "x$ac_cv_header_sys_random_h" = xyes
12071 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12074 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12075 if test "x$ac_cv_header_sys_resource_h" = xyes
12077 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12080 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12081 if test "x$ac_cv_header_sys_select_h" = xyes
12083 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12086 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12087 if test "x$ac_cv_header_sys_socket_h" = xyes
12089 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12092 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12093 if test "x$ac_cv_header_sys_sockio_h" = xyes
12095 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12098 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12099 if test "x$ac_cv_header_sys_stat_h" = xyes
12101 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12104 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12105 if test "x$ac_cv_header_sys_syscall_h" = xyes
12107 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12110 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12111 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12113 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12116 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12117 if test "x$ac_cv_header_sys_time_h" = xyes
12119 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12122 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_sys_types_h" = xyes
12125 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12128 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_sys_un_h" = xyes
12131 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12134 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12135 if test "x$ac_cv_header_sys_wait_h" = xyes
12137 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12140 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12141 if test "x$ac_cv_header_sys_xattr_h" = xyes
12143 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12149 # The above checks only detect system headers, not the headers in
12150 # ./include/mingw/, so explicitly define them to be available.
12151 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12153 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12155 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12157 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12159 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12164 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12166 for i in dd gdd ; do
12167 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12172 if test -n "$DD" ; then
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12174 printf "%s\n" "$DD" >&6; }
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12177 printf "%s\n" "not found, using dd" >&6; }
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12180 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12184 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12185 #if HAVE_SYS_TYPES_H
12186 #include <sys/types.h>
12188 #if HAVE_SYS_SOCKET
12189 #include <sys/socket.h>
12193 if test "x$ac_cv_header_net_if_h" = xyes
12195 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12200 for ac_item in $ac_func_c_list
12202 if test $ac_func; then
12203 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12204 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12205 echo "#define $ac_item 1" >> confdefs.h
12213 if test "x$ac_cv_func_vprintf" = xno
12215 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12216 if test "x$ac_cv_func__doprnt" = xyes
12219 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12224 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12226 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12229 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12233 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12234 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12237 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12242 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12244 if test "x$ac_cv_type_ssize_t" = xyes
12247 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12252 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12253 if test ${ac_cv_c_undeclared_builtin_options+y}
12255 printf %s "(cached) " >&6
12257 ac_save_CFLAGS=$CFLAGS
12258 ac_cv_c_undeclared_builtin_options='cannot detect'
12259 for ac_arg in '' -fno-builtin; do
12260 CFLAGS="$ac_save_CFLAGS $ac_arg"
12261 # This test program should *not* compile successfully.
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12273 if ac_fn_c_try_compile "$LINENO"
12277 # This test program should compile successfully.
12278 # No library function is consistently available on
12279 # freestanding implementations, so test against a dummy
12280 # declaration. Include always-available headers on the
12281 # off chance that they somehow elicit warnings.
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12285 #include <limits.h>
12286 #include <stdarg.h>
12287 #include <stddef.h>
12288 extern void ac_decl (int, char *);
12293 (void) ac_decl (0, (char *) 0);
12300 if ac_fn_c_try_compile "$LINENO"
12302 if test x"$ac_arg" = x
12304 ac_cv_c_undeclared_builtin_options='none needed'
12306 ac_cv_c_undeclared_builtin_options=$ac_arg
12310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12314 CFLAGS=$ac_save_CFLAGS
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12318 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12319 case $ac_cv_c_undeclared_builtin_options in #(
12321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12323 as_fn_error $? "cannot make $CC report undeclared builtins
12324 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12326 ac_c_undeclared_builtin_options='' ;; #(
12328 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12331 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12332 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12333 if test "x$ac_cv_have_decl_llseek" = xyes
12336 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12339 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12340 #define _LARGEFILE64_SOURCE
12341 #include <unistd.h>
12342 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12343 if test "x$ac_cv_have_decl_lseek64" = xyes
12346 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12350 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12351 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12352 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12355 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12358 # Check whether --enable-largefile was given.
12359 if test ${enable_largefile+y}
12361 enableval=$enable_largefile;
12364 if test "$enable_largefile" != no; then
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12367 printf %s "checking for special C compiler options needed for large files... " >&6; }
12368 if test ${ac_cv_sys_largefile_CC+y}
12370 printf %s "(cached) " >&6
12372 ac_cv_sys_largefile_CC=no
12373 if test "$GCC" != yes; then
12376 # IRIX 6.2 and later do not support large files by default,
12377 # so use the C compiler's -n32 option if that helps.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 #include <sys/types.h>
12381 /* Check that off_t can represent 2**63 - 1 correctly.
12382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12383 since some C++ compilers masquerading as C compilers
12384 incorrectly reject 9223372036854775807. */
12385 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12387 && LARGE_OFF_T % 2147483647 == 1)
12397 if ac_fn_c_try_compile "$LINENO"
12401 rm -f core conftest.err conftest.$ac_objext conftest.beam
12403 if ac_fn_c_try_compile "$LINENO"
12405 ac_cv_sys_largefile_CC=' -n32'; break
12407 rm -f core conftest.err conftest.$ac_objext conftest.beam
12411 rm -f conftest.$ac_ext
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12415 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12416 if test "$ac_cv_sys_largefile_CC" != no; then
12417 CC=$CC$ac_cv_sys_largefile_CC
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12421 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12422 if test ${ac_cv_sys_file_offset_bits+y}
12424 printf %s "(cached) " >&6
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 #include <sys/types.h>
12430 /* Check that off_t can represent 2**63 - 1 correctly.
12431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12432 since some C++ compilers masquerading as C compilers
12433 incorrectly reject 9223372036854775807. */
12434 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12436 && LARGE_OFF_T % 2147483647 == 1)
12446 if ac_fn_c_try_compile "$LINENO"
12448 ac_cv_sys_file_offset_bits=no; break
12450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 #define _FILE_OFFSET_BITS 64
12454 #include <sys/types.h>
12455 /* Check that off_t can represent 2**63 - 1 correctly.
12456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12457 since some C++ compilers masquerading as C compilers
12458 incorrectly reject 9223372036854775807. */
12459 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12461 && LARGE_OFF_T % 2147483647 == 1)
12471 if ac_fn_c_try_compile "$LINENO"
12473 ac_cv_sys_file_offset_bits=64; break
12475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12476 ac_cv_sys_file_offset_bits=unknown
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12481 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12482 case $ac_cv_sys_file_offset_bits in #(
12485 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12489 if test $ac_cv_sys_file_offset_bits = unknown; then
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12491 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12492 if test ${ac_cv_sys_large_files+y}
12494 printf %s "(cached) " >&6
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 #include <sys/types.h>
12500 /* Check that off_t can represent 2**63 - 1 correctly.
12501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12502 since some C++ compilers masquerading as C compilers
12503 incorrectly reject 9223372036854775807. */
12504 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12506 && LARGE_OFF_T % 2147483647 == 1)
12516 if ac_fn_c_try_compile "$LINENO"
12518 ac_cv_sys_large_files=no; break
12520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523 #define _LARGE_FILES 1
12524 #include <sys/types.h>
12525 /* Check that off_t can represent 2**63 - 1 correctly.
12526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12527 since some C++ compilers masquerading as C compilers
12528 incorrectly reject 9223372036854775807. */
12529 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12531 && LARGE_OFF_T % 2147483647 == 1)
12541 if ac_fn_c_try_compile "$LINENO"
12543 ac_cv_sys_large_files=1; break
12545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12546 ac_cv_sys_large_files=unknown
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12551 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12552 case $ac_cv_sys_large_files in #(
12555 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12567 printf %s "checking size of short... " >&6; }
12568 if test ${ac_cv_sizeof_short+y}
12570 printf %s "(cached) " >&6
12572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12576 if test "$ac_cv_type_short" = yes; then
12577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12579 as_fn_error 77 "cannot compute sizeof (short)
12580 See \`config.log' for more details" "$LINENO" 5; }
12582 ac_cv_sizeof_short=0
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12588 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12592 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12595 # The cast to long int works around a bug in the HP C Compiler
12596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598 # This bug is HP SR number 8606223364.
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12600 printf %s "checking size of int... " >&6; }
12601 if test ${ac_cv_sizeof_int+y}
12603 printf %s "(cached) " >&6
12605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12609 if test "$ac_cv_type_int" = yes; then
12610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12611 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12612 as_fn_error 77 "cannot compute sizeof (int)
12613 See \`config.log' for more details" "$LINENO" 5; }
12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12621 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12625 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12628 # The cast to long int works around a bug in the HP C Compiler
12629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631 # This bug is HP SR number 8606223364.
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12633 printf %s "checking size of long... " >&6; }
12634 if test ${ac_cv_sizeof_long+y}
12636 printf %s "(cached) " >&6
12638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12642 if test "$ac_cv_type_long" = yes; then
12643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12645 as_fn_error 77 "cannot compute sizeof (long)
12646 See \`config.log' for more details" "$LINENO" 5; }
12648 ac_cv_sizeof_long=0
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12654 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12658 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12666 printf %s "checking size of long long... " >&6; }
12667 if test ${ac_cv_sizeof_long_long+y}
12669 printf %s "(cached) " >&6
12671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12675 if test "$ac_cv_type_long_long" = yes; then
12676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12677 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12678 as_fn_error 77 "cannot compute sizeof (long long)
12679 See \`config.log' for more details" "$LINENO" 5; }
12681 ac_cv_sizeof_long_long=0
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12687 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12691 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12694 # The cast to long int works around a bug in the HP C Compiler
12695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697 # This bug is HP SR number 8606223364.
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12699 printf %s "checking size of off_t... " >&6; }
12700 if test ${ac_cv_sizeof_off_t+y}
12702 printf %s "(cached) " >&6
12704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12708 if test "$ac_cv_type_off_t" = yes; then
12709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12710 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12711 as_fn_error 77 "cannot compute sizeof (off_t)
12712 See \`config.log' for more details" "$LINENO" 5; }
12714 ac_cv_sizeof_off_t=0
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12720 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12724 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12727 # The cast to long int works around a bug in the HP C Compiler
12728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12730 # This bug is HP SR number 8606223364.
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12732 printf %s "checking size of time_t... " >&6; }
12733 if test ${ac_cv_sizeof_time_t+y}
12735 printf %s "(cached) " >&6
12737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12741 if test "$ac_cv_type_time_t" = yes; then
12742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12744 as_fn_error 77 "cannot compute sizeof (time_t)
12745 See \`config.log' for more details" "$LINENO" 5; }
12747 ac_cv_sizeof_time_t=0
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12753 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12757 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12760 SIZEOF_SHORT=$ac_cv_sizeof_short
12761 SIZEOF_INT=$ac_cv_sizeof_int
12762 SIZEOF_LONG=$ac_cv_sizeof_long
12763 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12764 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12765 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12773 printf %s "checking whether byte ordering is bigendian... " >&6; }
12774 if test ${ac_cv_c_bigendian+y}
12776 printf %s "(cached) " >&6
12778 ac_cv_c_bigendian=unknown
12779 # See if we're dealing with a universal compiler.
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #ifndef __APPLE_CC__
12783 not a universal capable compiler
12788 if ac_fn_c_try_compile "$LINENO"
12791 # Check for potential -arch flags. It is not universal unless
12792 # there are at least two -arch flags with different values.
12795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12796 if test -n "$ac_prev"; then
12798 i?86 | x86_64 | ppc | ppc64)
12799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12802 ac_cv_c_bigendian=universal
12808 elif test "x$ac_word" = "x-arch"; then
12813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12814 if test $ac_cv_c_bigendian = unknown; then
12815 # See if sys/param.h defines the BYTE_ORDER macro.
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <sys/types.h>
12819 #include <sys/param.h>
12824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12827 bogus endian macros
12834 if ac_fn_c_try_compile "$LINENO"
12836 # It does; now see whether it defined to BIG_ENDIAN or not.
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 #include <sys/types.h>
12840 #include <sys/param.h>
12845 #if BYTE_ORDER != BIG_ENDIAN
12853 if ac_fn_c_try_compile "$LINENO"
12855 ac_cv_c_bigendian=yes
12857 ac_cv_c_bigendian=no
12859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12863 if test $ac_cv_c_bigendian = unknown; then
12864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <limits.h>
12872 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12873 bogus endian macros
12880 if ac_fn_c_try_compile "$LINENO"
12882 # It does; now see whether it defined to _BIG_ENDIAN or not.
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885 #include <limits.h>
12890 #ifndef _BIG_ENDIAN
12898 if ac_fn_c_try_compile "$LINENO"
12900 ac_cv_c_bigendian=yes
12902 ac_cv_c_bigendian=no
12904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12908 if test $ac_cv_c_bigendian = unknown; then
12909 # Compile a test program.
12910 if test "$cross_compiling" = yes
12912 # Try to guess by grepping values from an object file.
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 unsigned short int ascii_mm[] =
12916 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12917 unsigned short int ascii_ii[] =
12918 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12919 int use_ascii (int i) {
12920 return ascii_mm[i] + ascii_ii[i];
12922 unsigned short int ebcdic_ii[] =
12923 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12924 unsigned short int ebcdic_mm[] =
12925 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12926 int use_ebcdic (int i) {
12927 return ebcdic_mm[i] + ebcdic_ii[i];
12934 return use_ascii (foo) == use_ebcdic (foo);
12939 if ac_fn_c_try_compile "$LINENO"
12941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12942 ac_cv_c_bigendian=yes
12944 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12945 if test "$ac_cv_c_bigendian" = unknown; then
12946 ac_cv_c_bigendian=no
12948 # finding both strings is unlikely to happen, but who knows?
12949 ac_cv_c_bigendian=unknown
12953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 $ac_includes_default
12962 /* Are we little or big endian? From Harbison&Steele. */
12966 char c[sizeof (long int)];
12969 return u.c[sizeof (long int) - 1] == 1;
12975 if ac_fn_c_try_run "$LINENO"
12977 ac_cv_c_bigendian=no
12979 ac_cv_c_bigendian=yes
12981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12982 conftest.$ac_objext conftest.beam conftest.$ac_ext
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12988 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12989 case $ac_cv_c_bigendian in #(
12991 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12997 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13001 as_fn_error $? "unknown endianness
13002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13005 if test $cross_compiling = no; then
13006 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13008 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13010 ASM_TYPES_HEADER=./asm_types.h
13012 echo "/* These defines are needed for the public ext2fs.h header file */" \
13014 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13015 uniq tmp_config.$$ >> public_config.h
13017 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13019 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13020 uniq tmp_config.$$ >> public_config.h
13022 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13024 rm -f tmp_config.$$
13025 PUBLIC_CONFIG_HEADER=./public_config.h
13027 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13028 if test "x$ac_cv_header_inttypes_h" = xyes
13030 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13034 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13035 if test "x$ac_cv_type_intptr_t" = xyes
13038 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13044 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13045 if test ${e2fsprogs_cv_struct_st_flags+y}
13047 printf %s "(cached) " >&6
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051 #include <sys/stat.h>
13055 struct stat stat; stat.st_flags = 0;
13060 if ac_fn_c_try_compile "$LINENO"
13062 e2fsprogs_cv_struct_st_flags=yes
13064 e2fsprogs_cv_struct_st_flags=no
13066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13070 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13071 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13073 printf %s "checking whether st_flags field is useful... " >&6; }
13074 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13076 printf %s "(cached) " >&6
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13080 #include <sys/stat.h>
13084 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13089 if ac_fn_c_try_compile "$LINENO"
13091 e2fsprogs_cv_struct_st_flags_immut=yes
13093 e2fsprogs_cv_struct_st_flags_immut=no
13095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13099 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13100 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13102 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13106 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13107 #include <sys/socket.h>
13109 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13112 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13116 if test -n "$BLKID_CMT"; then
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13118 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13119 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13121 printf %s "(cached) " >&6
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-lblkid $LIBS"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131 char blkid_probe_get_topology ();
13135 return blkid_probe_get_topology ();
13140 if ac_fn_c_try_link "$LINENO"
13142 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13144 ac_cv_lib_blkid_blkid_probe_get_topology=no
13146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13151 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13152 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13155 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13160 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13161 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13163 printf %s "(cached) " >&6
13165 ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-lblkid $LIBS"
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13173 char blkid_topology_get_dax ();
13177 return blkid_topology_get_dax ();
13182 if ac_fn_c_try_link "$LINENO"
13184 ac_cv_lib_blkid_blkid_topology_get_dax=yes
13186 ac_cv_lib_blkid_blkid_topology_get_dax=no
13188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13193 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13194 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13197 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13202 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13203 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13205 printf %s "(cached) " >&6
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lblkid $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 char blkid_probe_enable_partitions ();
13219 return blkid_probe_enable_partitions ();
13224 if ac_fn_c_try_link "$LINENO"
13226 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13228 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13235 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13236 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13239 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13244 if test -n "$DLOPEN_LIB" ; then
13245 ac_cv_func_dlopen=yes
13247 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13248 if test "x$ac_cv_func___secure_getenv" = xyes
13250 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13253 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13254 if test "x$ac_cv_func_add_key" = xyes
13256 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13259 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13260 if test "x$ac_cv_func_backtrace" = xyes
13262 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13265 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13266 if test "x$ac_cv_func_chflags" = xyes
13268 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13271 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13272 if test "x$ac_cv_func_dlopen" = xyes
13274 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13277 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13278 if test "x$ac_cv_func_fadvise64" = xyes
13280 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13283 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13284 if test "x$ac_cv_func_fallocate" = xyes
13286 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13289 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13290 if test "x$ac_cv_func_fallocate64" = xyes
13292 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13295 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13296 if test "x$ac_cv_func_fchown" = xyes
13298 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13301 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13302 if test "x$ac_cv_func_fcntl" = xyes
13304 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13307 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13308 if test "x$ac_cv_func_fdatasync" = xyes
13310 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13313 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13314 if test "x$ac_cv_func_fstat64" = xyes
13316 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13319 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13320 if test "x$ac_cv_func_fsync" = xyes
13322 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13325 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13326 if test "x$ac_cv_func_ftruncate64" = xyes
13328 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13331 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13332 if test "x$ac_cv_func_futimes" = xyes
13334 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13337 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13338 if test "x$ac_cv_func_getcwd" = xyes
13340 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13343 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13344 if test "x$ac_cv_func_getdtablesize" = xyes
13346 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13349 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13350 if test "x$ac_cv_func_getentropy" = xyes
13352 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13355 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13356 if test "x$ac_cv_func_gethostname" = xyes
13358 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13361 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13362 if test "x$ac_cv_func_getmntinfo" = xyes
13364 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13367 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13368 if test "x$ac_cv_func_getpwuid_r" = xyes
13370 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13373 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13374 if test "x$ac_cv_func_getrandom" = xyes
13376 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13379 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13380 if test "x$ac_cv_func_getrlimit" = xyes
13382 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13385 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13386 if test "x$ac_cv_func_getrusage" = xyes
13388 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13391 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13392 if test "x$ac_cv_func_jrand48" = xyes
13394 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13397 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13398 if test "x$ac_cv_func_keyctl" = xyes
13400 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13403 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13404 if test "x$ac_cv_func_llistxattr" = xyes
13406 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13409 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13410 if test "x$ac_cv_func_llseek" = xyes
13412 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13415 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13416 if test "x$ac_cv_func_lseek64" = xyes
13418 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13421 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13422 if test "x$ac_cv_func_mallinfo" = xyes
13424 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13427 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13428 if test "x$ac_cv_func_mallinfo2" = xyes
13430 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13433 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13434 if test "x$ac_cv_func_mbstowcs" = xyes
13436 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13439 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13440 if test "x$ac_cv_func_memalign" = xyes
13442 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13445 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13446 if test "x$ac_cv_func_mempcpy" = xyes
13448 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13451 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13452 if test "x$ac_cv_func_mmap" = xyes
13454 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13457 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13458 if test "x$ac_cv_func_msync" = xyes
13460 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13463 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13464 if test "x$ac_cv_func_nanosleep" = xyes
13466 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13469 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13470 if test "x$ac_cv_func_open64" = xyes
13472 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13475 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13476 if test "x$ac_cv_func_pathconf" = xyes
13478 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13481 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13482 if test "x$ac_cv_func_posix_fadvise" = xyes
13484 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13487 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13488 if test "x$ac_cv_func_posix_fadvise64" = xyes
13490 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13493 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13494 if test "x$ac_cv_func_posix_memalign" = xyes
13496 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13499 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13500 if test "x$ac_cv_func_prctl" = xyes
13502 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13505 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13506 if test "x$ac_cv_func_pread" = xyes
13508 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13511 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13512 if test "x$ac_cv_func_pwrite" = xyes
13514 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13517 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13518 if test "x$ac_cv_func_pread64" = xyes
13520 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13523 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13524 if test "x$ac_cv_func_pwrite64" = xyes
13526 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13529 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13530 if test "x$ac_cv_func_qsort_r" = xyes
13532 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13535 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13536 if test "x$ac_cv_func_secure_getenv" = xyes
13538 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13541 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13542 if test "x$ac_cv_func_setmntent" = xyes
13544 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13547 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13548 if test "x$ac_cv_func_setresgid" = xyes
13550 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13553 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13554 if test "x$ac_cv_func_setresuid" = xyes
13556 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13559 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13560 if test "x$ac_cv_func_snprintf" = xyes
13562 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13565 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13566 if test "x$ac_cv_func_srandom" = xyes
13568 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13571 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13572 if test "x$ac_cv_func_stpcpy" = xyes
13574 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13577 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13578 if test "x$ac_cv_func_strcasecmp" = xyes
13580 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13583 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13584 if test "x$ac_cv_func_strdup" = xyes
13586 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13589 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13590 if test "x$ac_cv_func_strnlen" = xyes
13592 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13595 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13596 if test "x$ac_cv_func_strptime" = xyes
13598 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13601 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13602 if test "x$ac_cv_func_strtoull" = xyes
13604 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13607 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13608 if test "x$ac_cv_func_sync_file_range" = xyes
13610 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13613 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13614 if test "x$ac_cv_func_sysconf" = xyes
13616 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13619 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13620 if test "x$ac_cv_func_usleep" = xyes
13622 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13625 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13626 if test "x$ac_cv_func_utime" = xyes
13628 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13631 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13632 if test "x$ac_cv_func_utimes" = xyes
13634 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13637 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13638 if test "x$ac_cv_func_valloc" = xyes
13640 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13646 printf %s "checking for socket in -lsocket... " >&6; }
13647 if test ${ac_cv_lib_socket_socket+y}
13649 printf %s "(cached) " >&6
13651 ac_check_lib_save_LIBS=$LIBS
13652 LIBS="-lsocket $LIBS"
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13668 if ac_fn_c_try_link "$LINENO"
13670 ac_cv_lib_socket_socket=yes
13672 ac_cv_lib_socket_socket=no
13674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13679 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13680 if test "x$ac_cv_lib_socket_socket" = xyes
13682 SOCKET_LIB=-lsocket
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13687 printf %s "checking for magic_file in -lmagic... " >&6; }
13688 if test ${ac_cv_lib_magic_magic_file+y}
13690 printf %s "(cached) " >&6
13692 ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-lmagic $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13700 char magic_file ();
13704 return magic_file ();
13709 if ac_fn_c_try_link "$LINENO"
13711 ac_cv_lib_magic_magic_file=yes
13713 ac_cv_lib_magic_magic_file=no
13715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13720 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13721 if test "x$ac_cv_lib_magic_magic_file" = xyes
13724 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13725 if test "x$ac_cv_header_magic_h" = xyes
13727 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13733 if test "$ac_cv_func_dlopen" = yes ; then
13734 MAGIC_LIB=$DLOPEN_LIB
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13738 printf %s "checking for archive_read_new in -larchive... " >&6; }
13739 if test ${ac_cv_lib_archive_archive_read_new+y}
13741 printf %s "(cached) " >&6
13743 ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-larchive $LIBS"
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13751 char archive_read_new ();
13755 return archive_read_new ();
13760 if ac_fn_c_try_link "$LINENO"
13762 ac_cv_lib_archive_archive_read_new=yes
13764 ac_cv_lib_archive_archive_read_new=no
13766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13767 conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13771 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13772 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13774 ARCHIVE_LIB=-larchive
13775 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13776 if test "x$ac_cv_header_archive_h" = xyes
13778 printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13784 if test "$ac_cv_func_dlopen" = yes ; then
13785 ARCHIVE_LIB=$DLOPEN_LIB
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13789 printf %s "checking for clock_gettime in -lrt... " >&6; }
13790 if test ${ac_cv_lib_rt_clock_gettime+y}
13792 printf %s "(cached) " >&6
13794 ac_check_lib_save_LIBS=$LIBS
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13802 char clock_gettime ();
13806 return clock_gettime ();
13811 if ac_fn_c_try_link "$LINENO"
13813 ac_cv_lib_rt_clock_gettime=yes
13815 ac_cv_lib_rt_clock_gettime=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13818 conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13822 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13823 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13825 CLOCK_GETTIME_LIB=-lrt
13831 # Check whether --enable-fuse2fs was given.
13832 if test ${enable_fuse2fs+y}
13834 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13838 printf "%s\n" "Disabling fuse2fs" >&6; }
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13843 #include <linux/fs.h>
13844 #include <linux/falloc.h>
13845 #include <linux/xattr.h>
13856 if ac_fn_c_try_cpp "$LINENO"
13860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13862 as_fn_error $? "Cannot find fuse2fs Linux headers.
13863 See \`config.log' for more details" "$LINENO" 5; }
13865 rm -f conftest.err conftest.i conftest.$ac_ext
13868 C compiler flags for fuse3, overriding pkg-config
13869 fuse3_LIBS linker flags for fuse3, overriding pkg-config
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13873 printf %s "checking for fuse3... " >&6; }
13875 if test -n "$fuse3_CFLAGS"; then
13876 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13877 elif test -n "$PKG_CONFIG"; then
13878 if test -n "$PKG_CONFIG" && \
13879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13880 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13883 test $ac_status = 0; }; then
13884 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13885 test "x$?" != "x0" && pkg_failed=yes
13892 if test -n "$fuse3_LIBS"; then
13893 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13894 elif test -n "$PKG_CONFIG"; then
13895 if test -n "$PKG_CONFIG" && \
13896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13897 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; then
13901 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13902 test "x$?" != "x0" && pkg_failed=yes
13912 if test $pkg_failed = yes; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 printf "%s\n" "no" >&6; }
13916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13917 _pkg_short_errors_supported=yes
13919 _pkg_short_errors_supported=no
13921 if test $_pkg_short_errors_supported = yes; then
13922 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13924 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13926 # Put the nasty error message in config.log where it belongs
13927 echo "$fuse3_PKG_ERRORS" >&5
13930 for ac_header in pthread.h fuse.h
13932 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13933 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13934 #define FUSE_USE_VERSION 29
13936 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13938 cat >>confdefs.h <<_ACEOF
13939 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13945 as_fn_error $? "Cannot find fuse2fs headers.
13946 See \`config.log' for more details" "$LINENO" 5; }
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13952 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13953 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13955 printf %s "(cached) " >&6
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-losxfuse $LIBS"
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13962 /* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
13969 return fuse_main ();
13974 if ac_fn_c_try_link "$LINENO"
13976 ac_cv_lib_osxfuse_fuse_main=yes
13978 ac_cv_lib_osxfuse_fuse_main=no
13980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13985 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13986 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13991 printf %s "checking for fuse_main in -lfuse... " >&6; }
13992 if test ${ac_cv_lib_fuse_fuse_main+y}
13994 printf %s "(cached) " >&6
13996 ac_check_lib_save_LIBS=$LIBS
13997 LIBS="-lfuse $LIBS"
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14008 return fuse_main ();
14013 if ac_fn_c_try_link "$LINENO"
14015 ac_cv_lib_fuse_fuse_main=yes
14017 ac_cv_lib_fuse_fuse_main=no
14019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14024 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14025 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14030 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14031 as_fn_error $? "Cannot find fuse library.
14032 See \`config.log' for more details" "$LINENO" 5; }
14038 elif test $pkg_failed = untried; then
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14042 for ac_header in pthread.h fuse.h
14044 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14046 #define FUSE_USE_VERSION 29
14048 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14050 cat >>confdefs.h <<_ACEOF
14051 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14056 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14057 as_fn_error $? "Cannot find fuse2fs headers.
14058 See \`config.log' for more details" "$LINENO" 5; }
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14064 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14065 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14067 printf %s "(cached) " >&6
14069 ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-losxfuse $LIBS"
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14081 return fuse_main ();
14086 if ac_fn_c_try_link "$LINENO"
14088 ac_cv_lib_osxfuse_fuse_main=yes
14090 ac_cv_lib_osxfuse_fuse_main=no
14092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14097 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14098 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14103 printf %s "checking for fuse_main in -lfuse... " >&6; }
14104 if test ${ac_cv_lib_fuse_fuse_main+y}
14106 printf %s "(cached) " >&6
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lfuse $LIBS"
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14120 return fuse_main ();
14125 if ac_fn_c_try_link "$LINENO"
14127 ac_cv_lib_fuse_fuse_main=yes
14129 ac_cv_lib_fuse_fuse_main=no
14131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14136 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14137 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14143 as_fn_error $? "Cannot find fuse library.
14144 See \`config.log' for more details" "$LINENO" 5; }
14151 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14152 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 printf "%s\n" "yes" >&6; }
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14160 printf "%s\n" "Enabling fuse2fs" >&6; }
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14167 printf %s "checking for fuse3... " >&6; }
14169 if test -n "$fuse3_CFLAGS"; then
14170 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14171 elif test -n "$PKG_CONFIG"; then
14172 if test -n "$PKG_CONFIG" && \
14173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14174 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177 test $ac_status = 0; }; then
14178 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14179 test "x$?" != "x0" && pkg_failed=yes
14186 if test -n "$fuse3_LIBS"; then
14187 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14188 elif test -n "$PKG_CONFIG"; then
14189 if test -n "$PKG_CONFIG" && \
14190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14191 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14194 test $ac_status = 0; }; then
14195 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14196 test "x$?" != "x0" && pkg_failed=yes
14206 if test $pkg_failed = yes; then
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 printf "%s\n" "no" >&6; }
14210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14211 _pkg_short_errors_supported=yes
14213 _pkg_short_errors_supported=no
14215 if test $_pkg_short_errors_supported = yes; then
14216 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14218 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14220 # Put the nasty error message in config.log where it belongs
14221 echo "$fuse3_PKG_ERRORS" >&5
14224 for ac_header in pthread.h fuse.h
14226 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14228 #define FUSE_USE_VERSION 29
14230 # include <linux/fs.h>
14231 # include <linux/falloc.h>
14232 # include <linux/xattr.h>
14235 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14237 cat >>confdefs.h <<_ACEOF
14238 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14246 if test -z "$FUSE_CMT"
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14249 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14250 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14252 printf %s "(cached) " >&6
14254 ac_check_lib_save_LIBS=$LIBS
14255 LIBS="-losxfuse $LIBS"
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14259 /* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
14266 return fuse_main ();
14271 if ac_fn_c_try_link "$LINENO"
14273 ac_cv_lib_osxfuse_fuse_main=yes
14275 ac_cv_lib_osxfuse_fuse_main=no
14277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14278 conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14282 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14283 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14288 printf %s "checking for fuse_main in -lfuse... " >&6; }
14289 if test ${ac_cv_lib_fuse_fuse_main+y}
14291 printf %s "(cached) " >&6
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lfuse $LIBS"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14298 /* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
14305 return fuse_main ();
14310 if ac_fn_c_try_link "$LINENO"
14312 ac_cv_lib_fuse_fuse_main=yes
14314 ac_cv_lib_fuse_fuse_main=no
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14321 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14322 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14333 elif test $pkg_failed = untried; then
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 printf "%s\n" "no" >&6; }
14337 for ac_header in pthread.h fuse.h
14339 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14341 #define FUSE_USE_VERSION 29
14343 # include <linux/fs.h>
14344 # include <linux/falloc.h>
14345 # include <linux/xattr.h>
14348 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14350 cat >>confdefs.h <<_ACEOF
14351 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14359 if test -z "$FUSE_CMT"
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14362 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14363 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14365 printf %s "(cached) " >&6
14367 ac_check_lib_save_LIBS=$LIBS
14368 LIBS="-losxfuse $LIBS"
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14372 /* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14379 return fuse_main ();
14384 if ac_fn_c_try_link "$LINENO"
14386 ac_cv_lib_osxfuse_fuse_main=yes
14388 ac_cv_lib_osxfuse_fuse_main=no
14390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14391 conftest$ac_exeext conftest.$ac_ext
14392 LIBS=$ac_check_lib_save_LIBS
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14395 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14396 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14401 printf %s "checking for fuse_main in -lfuse... " >&6; }
14402 if test ${ac_cv_lib_fuse_fuse_main+y}
14404 printf %s "(cached) " >&6
14406 ac_check_lib_save_LIBS=$LIBS
14407 LIBS="-lfuse $LIBS"
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14418 return fuse_main ();
14423 if ac_fn_c_try_link "$LINENO"
14425 ac_cv_lib_fuse_fuse_main=yes
14427 ac_cv_lib_fuse_fuse_main=no
14429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14434 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14435 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14447 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14448 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450 printf "%s\n" "yes" >&6; }
14455 if test -z "$FUSE_CMT"
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14458 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14465 if test "$FUSE_LIB" = "-lfuse3"
14467 FUSE_USE_VERSION=35
14468 CFLAGS="$CFLAGS $fuse3_CFLAGS"
14469 LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14470 for ac_header in pthread.h fuse.h
14472 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14474 #define FUSE_USE_VERSION 35
14476 #include <linux/fs.h>
14477 #include <linux/falloc.h>
14478 #include <linux/xattr.h>
14481 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14483 cat >>confdefs.h <<_ACEOF
14484 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14489 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14490 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14491 See \`config.log' for more details" "$LINENO" 5; }
14495 elif test -n "$FUSE_LIB"
14497 FUSE_USE_VERSION=29
14499 if test -n "$FUSE_USE_VERSION"
14502 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14506 printf %s "checking for optreset... " >&6; }
14507 if test ${ac_cv_have_optreset+y}
14509 printf %s "(cached) " >&6
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <unistd.h>
14516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14517 $EGREP "optreset" >/dev/null 2>&1
14519 ac_cv_have_optreset=yes
14521 ac_cv_have_optreset=no
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14527 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14528 if test $ac_cv_have_optreset = yes; then
14530 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14535 echo GL_THREADS_API: ${gl_threads_api}
14536 if test "${gl_threads_api}" != none
14538 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14539 if test "x$ac_cv_func_sem_init" = xyes
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14544 printf %s "checking for sem_init in -lpthread... " >&6; }
14545 if test ${ac_cv_lib_pthread_sem_init+y}
14547 printf %s "(cached) " >&6
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lpthread $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14561 return sem_init ();
14566 if ac_fn_c_try_link "$LINENO"
14568 ac_cv_lib_pthread_sem_init=yes
14570 ac_cv_lib_pthread_sem_init=no
14572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14577 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14578 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14580 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14582 SEM_INIT_LIB=-lpthread
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14585 printf %s "checking for sem_init in -lrt... " >&6; }
14586 if test ${ac_cv_lib_rt_sem_init+y}
14588 printf %s "(cached) " >&6
14590 ac_check_lib_save_LIBS=$LIBS
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14602 return sem_init ();
14607 if ac_fn_c_try_link "$LINENO"
14609 ac_cv_lib_rt_sem_init=yes
14611 ac_cv_lib_rt_sem_init=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14618 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14619 if test "x$ac_cv_lib_rt_sem_init" = xyes
14621 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14626 printf %s "checking for sem_init in -lposix4... " >&6; }
14627 if test ${ac_cv_lib_posix4_sem_init+y}
14629 printf %s "(cached) " >&6
14631 ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lposix4 $LIBS"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14643 return sem_init ();
14648 if ac_fn_c_try_link "$LINENO"
14650 ac_cv_lib_posix4_sem_init=yes
14652 ac_cv_lib_posix4_sem_init=no
14654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14659 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14660 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14662 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14664 SEM_INIT_LIB=-lposix4
14674 if test "$ac_cv_func_qsort_r" != no
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14678 printf %s "checking whether qsort_r is GNU version... " >&6; }
14679 if test ${e2_cv_gnu_qsort_r+y}
14681 printf %s "(cached) " >&6
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14686 #include <stdlib.h>
14687 void (qsort_r)(void *base, size_t nmemb, size_t size,
14688 int (*compar)(const void *, const void *, void *),
14699 if ac_fn_c_try_compile "$LINENO"
14701 e2_cv_gnu_qsort_r=yes
14703 e2_cv_gnu_qsort_r=no
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14709 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14711 printf %s "checking whether qsort_r is BSD version... " >&6; }
14712 if test ${e2_cv_bsd_qsort_r+y}
14714 printf %s "(cached) " >&6
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14719 #include <stdlib.h>
14720 void (qsort_r)(void *base, size_t nmemb, size_t size,
14721 void *arg, int (*compar)(void *, const void *, const void *));
14731 if ac_fn_c_try_compile "$LINENO"
14733 e2_cv_bsd_qsort_r=yes
14735 e2_cv_bsd_qsort_r=no
14737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14741 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14742 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14746 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14752 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14761 printf %s "checking for unified diff option... " >&6; }
14762 if diff -u $0 $0 > /dev/null 2>&1 ; then
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14768 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14773 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14778 printf %s "checking for mount 'nosuid' option... "
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 #include <sys/mount.h>
14785 void *temp = (void *)(MS_NOSUID); (void) temp;
14790 if ac_fn_c_try_compile "$LINENO"
14793 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14795 ac_cv_mount_nosuid=yes
14796 printf "%s\n" "yes"
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14800 #include <sys/mount.h>
14804 void *temp = (void *)(MNT_NOSUID); (void) temp;
14809 if ac_fn_c_try_compile "$LINENO"
14812 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14814 ac_cv_mount_nosuid=yes
14815 printf "%s\n" "yes"
14817 ac_cv_mount_nosuid=no
14821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14827 printf %s "checking for mount 'nodev' option... "
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 #include <sys/mount.h>
14834 void *temp = (void *)(MS_NODEV); (void) temp;
14839 if ac_fn_c_try_compile "$LINENO"
14842 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14844 ac_cv_mount_nodev=yes
14845 printf "%s\n" "yes"
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 #include <sys/mount.h>
14853 void *temp = (void *)(MNT_NODEV); (void) temp;
14858 if ac_fn_c_try_compile "$LINENO"
14861 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14863 ac_cv_mount_nodev=yes
14864 printf "%s\n" "yes"
14866 ac_cv_mount_nodev=no
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14875 # Check whether --enable-lto was given.
14876 if test ${enable_lto+y}
14878 enableval=$enable_lto;
14883 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14885 printf %s "checking if C compiler supports LTO... " >&6; }
14886 OLD_CFLAGS="$CFLAGS"
14887 OLD_LDFLAGS="$LDFLAGS"
14888 LTO_FLAGS="-g -flto -ffat-lto-objects"
14889 CFLAGS="$CFLAGS $LTO_FLAGS"
14890 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14902 if ac_fn_c_try_link "$LINENO"
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14905 printf "%s\n" "yes" >&6; }
14906 lto_cflags=$LTO_FLAGS
14907 lto_ldflags=$LTO_FLAGS
14908 # Extract the first word of "gcc-ar", so it can be a program name with args.
14909 set dummy gcc-ar; ac_word=$2
14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14911 printf %s "checking for $ac_word... " >&6; }
14912 if test ${ac_cv_path_gcc_ar+y}
14914 printf %s "(cached) " >&6
14918 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14925 case $as_dir in #(((
14928 *) as_dir=$as_dir/ ;;
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14932 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14943 gcc_ar=$ac_cv_path_gcc_ar
14944 if test -n "$gcc_ar"; then
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14946 printf "%s\n" "$gcc_ar" >&6; }
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 printf "%s\n" "no" >&6; }
14953 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14954 set dummy gcc-ranlib; ac_word=$2
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 printf %s "checking for $ac_word... " >&6; }
14957 if test ${ac_cv_path_gcc_ranlib+y}
14959 printf %s "(cached) " >&6
14961 case $gcc_ranlib in
14963 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14970 case $as_dir in #(((
14973 *) as_dir=$as_dir/ ;;
14975 for ac_exec_ext in '' $ac_executable_extensions; do
14976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14977 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14988 gcc_ranlib=$ac_cv_path_gcc_ranlib
14989 if test -n "$gcc_ranlib"; then
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14991 printf "%s\n" "$gcc_ranlib" >&6; }
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 printf "%s\n" "no" >&6; }
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 printf "%s\n" "no" >&6; }
15002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15003 conftest$ac_exeext conftest.$ac_ext
15004 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15007 RANLIB="${gcc_ranlib}"
15009 CFLAGS="${OLD_CFLAGS}"
15010 LDFLAGS="${OLD_LDFLAGS}"
15015 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15016 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15018 # Check whether --enable-ubsan was given.
15019 if test ${enable_ubsan+y}
15021 enableval=$enable_ubsan;
15026 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15028 printf %s "checking if C compiler supports UBSAN... " >&6; }
15029 OLD_CFLAGS="$CFLAGS"
15030 OLD_LDFLAGS="$LDFLAGS"
15031 UBSAN_FLAGS="-fsanitize=undefined"
15032 CFLAGS="$CFLAGS $UBSAN_FLAGS"
15033 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15045 if ac_fn_c_try_link "$LINENO"
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15048 printf "%s\n" "yes" >&6; }
15049 ubsan_cflags=$UBSAN_FLAGS
15050 ubsan_ldflags=$UBSAN_FLAGS
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 printf "%s\n" "no" >&6; }
15056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15057 conftest$ac_exeext conftest.$ac_ext
15058 CFLAGS="${OLD_CFLAGS}"
15059 LDFLAGS="${OLD_LDFLAGS}"
15064 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15065 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15067 # Check whether --enable-addrsan was given.
15068 if test ${enable_addrsan+y}
15070 enableval=$enable_addrsan;
15075 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15077 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
15078 OLD_CFLAGS="$CFLAGS"
15079 OLD_LDFLAGS="$LDFLAGS"
15080 ADDRSAN_FLAGS="-fsanitize=address"
15081 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15082 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15094 if ac_fn_c_try_link "$LINENO"
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 printf "%s\n" "yes" >&6; }
15098 addrsan_cflags=$ADDRSAN_FLAGS
15099 addrsan_ldflags=$ADDRSAN_FLAGS
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 printf "%s\n" "no" >&6; }
15105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15106 conftest$ac_exeext conftest.$ac_ext
15107 CFLAGS="${OLD_CFLAGS}"
15108 LDFLAGS="${OLD_LDFLAGS}"
15113 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15114 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15116 # Check whether --enable-threadsan was given.
15117 if test ${enable_threadsan+y}
15119 enableval=$enable_threadsan;
15121 enable_threadsan=no
15124 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15126 printf %s "checking if C compiler supports THREADSAN... " >&6; }
15127 OLD_CFLAGS="$CFLAGS"
15128 OLD_LDFLAGS="$LDFLAGS"
15129 THREADSAN_FLAGS="-fsanitize=thread"
15130 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15131 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15143 if ac_fn_c_try_link "$LINENO"
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 printf "%s\n" "yes" >&6; }
15147 threadsan_cflags=$THREADSAN_FLAGS
15148 threadsan_ldflags=$THREADSAN_FLAGS
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 printf "%s\n" "no" >&6; }
15154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15155 conftest$ac_exeext conftest.$ac_ext
15156 CFLAGS="${OLD_CFLAGS}"
15157 LDFLAGS="${OLD_LDFLAGS}"
15162 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15163 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15165 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15167 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
15170 # Check whether --enable-fuzzing was given.
15171 if test ${enable_fuzzing+y}
15173 enableval=$enable_fuzzing;
15178 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15186 ac_cpp='$CXXCPP $CPPFLAGS'
15187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15190 if test -z "$CXX"; then
15191 if test -n "$CCC"; then
15194 if test -n "$ac_tool_prefix"; then
15195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15200 printf %s "checking for $ac_word... " >&6; }
15201 if test ${ac_cv_prog_CXX+y}
15203 printf %s "(cached) " >&6
15205 if test -n "$CXX"; then
15206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15212 case $as_dir in #(((
15215 *) as_dir=$as_dir/ ;;
15217 for ac_exec_ext in '' $ac_executable_extensions; do
15218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15219 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15229 CXX=$ac_cv_prog_CXX
15230 if test -n "$CXX"; then
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15232 printf "%s\n" "$CXX" >&6; }
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235 printf "%s\n" "no" >&6; }
15239 test -n "$CXX" && break
15242 if test -z "$CXX"; then
15244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15246 # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249 printf %s "checking for $ac_word... " >&6; }
15250 if test ${ac_cv_prog_ac_ct_CXX+y}
15252 printf %s "(cached) " >&6
15254 if test -n "$ac_ct_CXX"; then
15255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15261 case $as_dir in #(((
15264 *) as_dir=$as_dir/ ;;
15266 for ac_exec_ext in '' $ac_executable_extensions; do
15267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15268 ac_cv_prog_ac_ct_CXX="$ac_prog"
15269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15279 if test -n "$ac_ct_CXX"; then
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15281 printf "%s\n" "$ac_ct_CXX" >&6; }
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 printf "%s\n" "no" >&6; }
15288 test -n "$ac_ct_CXX" && break
15291 if test "x$ac_ct_CXX" = x; then
15294 case $cross_compiling:$ac_tool_warned in
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15297 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15298 ac_tool_warned=yes ;;
15306 # Provide some information about the compiler.
15307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15310 for ac_option in --version -v -V -qversion; do
15311 { { ac_try="$ac_compiler $ac_option >&5"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15317 printf "%s\n" "$ac_try_echo"; } >&5
15318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15320 if test -s conftest.err; then
15322 ... rest of stderr output deleted ...
15323 10q' conftest.err >conftest.er1
15324 cat conftest.er1 >&5
15326 rm -f conftest.er1 conftest.err
15327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328 test $ac_status = 0; }
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15332 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15333 if test ${ac_cv_cxx_compiler_gnu+y}
15335 printf %s "(cached) " >&6
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15351 if ac_fn_cxx_try_compile "$LINENO"
15353 ac_compiler_gnu=yes
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15362 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15365 if test $ac_compiler_gnu = yes; then
15370 ac_test_CXXFLAGS=${CXXFLAGS+y}
15371 ac_save_CXXFLAGS=$CXXFLAGS
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15373 printf %s "checking whether $CXX accepts -g... " >&6; }
15374 if test ${ac_cv_prog_cxx_g+y}
15376 printf %s "(cached) " >&6
15378 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15379 ac_cxx_werror_flag=yes
15380 ac_cv_prog_cxx_g=no
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15393 if ac_fn_cxx_try_compile "$LINENO"
15395 ac_cv_prog_cxx_g=yes
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15409 if ac_fn_cxx_try_compile "$LINENO"
15413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15426 if ac_fn_cxx_try_compile "$LINENO"
15428 ac_cv_prog_cxx_g=yes
15430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15438 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15439 if test $ac_test_CXXFLAGS; then
15440 CXXFLAGS=$ac_save_CXXFLAGS
15441 elif test $ac_cv_prog_cxx_g = yes; then
15442 if test "$GXX" = yes; then
15448 if test "$GXX" = yes; then
15454 ac_prog_cxx_stdcxx=no
15455 if test x$ac_prog_cxx_stdcxx = xno
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15458 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15459 if test ${ac_cv_prog_cxx_cxx11+y}
15461 printf %s "(cached) " >&6
15463 ac_cv_prog_cxx_cxx11=no
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 $ac_cxx_conftest_cxx11_program
15469 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15471 CXX="$ac_save_CXX $ac_arg"
15472 if ac_fn_cxx_try_compile "$LINENO"
15474 ac_cv_prog_cxx_cxx11=$ac_arg
15476 rm -f core conftest.err conftest.$ac_objext conftest.beam
15477 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15479 rm -f conftest.$ac_ext
15483 if test "x$ac_cv_prog_cxx_cxx11" = xno
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15486 printf "%s\n" "unsupported" >&6; }
15488 if test "x$ac_cv_prog_cxx_cxx11" = x
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15491 printf "%s\n" "none needed" >&6; }
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15494 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15495 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15497 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15498 ac_prog_cxx_stdcxx=cxx11
15501 if test x$ac_prog_cxx_stdcxx = xno
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15504 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15505 if test ${ac_cv_prog_cxx_cxx98+y}
15507 printf %s "(cached) " >&6
15509 ac_cv_prog_cxx_cxx98=no
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 $ac_cxx_conftest_cxx98_program
15515 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15517 CXX="$ac_save_CXX $ac_arg"
15518 if ac_fn_cxx_try_compile "$LINENO"
15520 ac_cv_prog_cxx_cxx98=$ac_arg
15522 rm -f core conftest.err conftest.$ac_objext conftest.beam
15523 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15525 rm -f conftest.$ac_ext
15529 if test "x$ac_cv_prog_cxx_cxx98" = xno
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15532 printf "%s\n" "unsupported" >&6; }
15534 if test "x$ac_cv_prog_cxx_cxx98" = x
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15537 printf "%s\n" "none needed" >&6; }
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15540 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15541 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15543 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15544 ac_prog_cxx_stdcxx=cxx98
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15555 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15557 ac_cpp='$CXXCPP $CPPFLAGS'
15558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15562 OLD_CXXFLAGS="$CXXFLAGS"
15563 OLD_LDFLAGS="$LDFLAGS"
15564 FUZZER_FLAGS="-fsanitize=fuzzer"
15565 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15566 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15571 #include <stddef.h>
15572 #include <stdint.h>
15582 if ac_fn_cxx_try_compile "$LINENO"
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15585 printf "%s\n" "yes" >&6; }
15586 fuzzer_cflags=$FUZZER_FLAGS
15587 fuzzer_ldflags=$FUZZER_FLAGS
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592 printf "%s\n" "no" >&6; }
15593 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15596 CXXFLAGS="${OLD_CXXFLAGS}"
15597 LDFLAGS="${OLD_LDFLAGS}"
15599 ac_cpp='$CPP $CPPFLAGS'
15600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15608 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15609 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15627 E2SCRUB_CMT="$LINUX_CMT"
15630 linux* | gnu* | k*bsd*-gnu)
15631 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15634 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15639 linux* | gnu* | k*bsd*-gnu)
15640 if test "$prefix" = NONE ; then
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15643 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15644 if test "$mandir" = '${prefix}/man' ; then
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15646 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15647 mandir=/usr/share/man
15652 if test "$root_prefix" = NONE ; then
15653 if test "$prefix" = NONE ; then
15654 root_prefix="$ac_default_prefix"
15656 root_prefix="$prefix"
15658 root_bindir=$bindir
15659 root_sbindir=$sbindir
15660 root_libdir=$libdir
15661 root_sysconfdir=$sysconfdir
15663 root_bindir='${root_prefix}/bin'
15664 root_sbindir='${root_prefix}/sbin'
15665 root_libdir='${root_prefix}/lib'
15666 root_sysconfdir='${root_prefix}/etc'
15668 if test "$bindir" != '${exec_prefix}/bin'; then
15669 root_bindir=$bindir
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15671 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15673 if test "$sbindir" != '${exec_prefix}/sbin'; then
15674 root_sbindir=$sbindir
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15676 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15678 if test "$libdir" != '${exec_prefix}/lib'; then
15679 root_libdir=$libdir
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15681 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15683 if test "$sysconfdir" != '${prefix}/etc'; then
15684 root_sysconfdir=$sysconfdir
15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15686 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15694 # Check whether --with-multiarch was given.
15695 if test ${with_multiarch+y}
15697 withval=$with_multiarch; if test "$withval" = "lib64"; then
15701 libdir=$libdir/$withval
15702 root_libdir=$root_libdir/$withval
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15708 printf %s "checking whether we can link with -static... " >&6; }
15709 if test ${ac_cv_e2fsprogs_use_static+y}
15711 printf %s "(cached) " >&6
15713 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15725 if ac_fn_c_try_link "$LINENO"
15727 ac_cv_e2fsprogs_use_static=yes
15729 ac_cv_e2fsprogs_use_static=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15732 conftest$ac_exeext conftest.$ac_ext
15733 LDFLAGS=$SAVE_LDFLAGS
15738 ac_cv_e2fsprogs_use_static=no
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15742 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15743 if test $ac_cv_e2fsprogs_use_static = yes; then
15744 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15750 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15752 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15756 if test "$cross_compiling" = yes ; then
15759 DO_TEST_SUITE=check
15762 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15763 if test -n "$CPPFLAGS" ; then
15764 INCLUDES="$INCLUDES $CPPFLAGS"
15766 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15767 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15769 if test -n "$WITH_DIET_LIBC" ; then
15770 INCLUDES="$INCLUDES -D_REENTRANT"
15774 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15778 if test $cross_compiling = no; then
15779 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15780 BUILD_LDFLAGS="$LDFLAGS"
15784 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15785 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15786 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15792 # Check whether --with-udev_rules_dir was given.
15793 if test ${with_udev_rules_dir+y}
15795 withval=$with_udev_rules_dir;
15797 with_udev_rules_dir=yes
15800 if test "x${with_udev_rules_dir}" != "xno"
15803 if test "x${with_udev_rules_dir}" = "xyes"
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15809 printf %s "checking for udev... " >&6; }
15811 if test -n "$udev_CFLAGS"; then
15812 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15813 elif test -n "$PKG_CONFIG"; then
15814 if test -n "$PKG_CONFIG" && \
15815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15816 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15819 test $ac_status = 0; }; then
15820 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15821 test "x$?" != "x0" && pkg_failed=yes
15828 if test -n "$udev_LIBS"; then
15829 pkg_cv_udev_LIBS="$udev_LIBS"
15830 elif test -n "$PKG_CONFIG"; then
15831 if test -n "$PKG_CONFIG" && \
15832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15833 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; then
15837 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15838 test "x$?" != "x0" && pkg_failed=yes
15848 if test $pkg_failed = yes; then
15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15850 printf "%s\n" "no" >&6; }
15852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15853 _pkg_short_errors_supported=yes
15855 _pkg_short_errors_supported=no
15857 if test $_pkg_short_errors_supported = yes; then
15858 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15860 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15862 # Put the nasty error message in config.log where it belongs
15863 echo "$udev_PKG_ERRORS" >&5
15866 with_udev_rules_dir=""
15868 elif test $pkg_failed = untried; then
15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 printf "%s\n" "no" >&6; }
15872 with_udev_rules_dir=""
15875 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15876 udev_LIBS=$pkg_cv_udev_LIBS
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15878 printf "%s\n" "yes" >&6; }
15880 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15886 printf %s "checking for udev rules dir... " >&6; }
15887 pkg_udev_rules_dir="${with_udev_rules_dir}"
15888 if test -n "${pkg_udev_rules_dir}"
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15892 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 printf "%s\n" "no" >&6; }
15905 have_udev="disabled"
15912 # Check whether --with-crond_dir was given.
15913 if test ${with_crond_dir+y}
15915 withval=$with_crond_dir;
15920 if test "x${with_crond_dir}" != "xno"
15923 if test "x${with_crond_dir}" = "xyes"
15926 if test -d "/etc/cron.d"
15928 with_crond_dir="/etc/cron.d"
15930 have_crond="no"; with_crond_dir=""
15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15935 printf %s "checking for system crontab dir... " >&6; }
15936 crond_dir="${with_crond_dir}"
15937 if test -n "${crond_dir}"
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15941 printf "%s\n" "${crond_dir}" >&6; }
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 printf "%s\n" "no" >&6; }
15954 have_crond="disabled"
15961 # Check whether --with-systemd_unit_dir was given.
15962 if test ${with_systemd_unit_dir+y}
15964 withval=$with_systemd_unit_dir;
15966 with_systemd_unit_dir=yes
15969 if test "x${with_systemd_unit_dir}" != "xno"
15972 if test "x${with_systemd_unit_dir}" = "xyes"
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15978 printf %s "checking for systemd... " >&6; }
15980 if test -n "$systemd_CFLAGS"; then
15981 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15982 elif test -n "$PKG_CONFIG"; then
15983 if test -n "$PKG_CONFIG" && \
15984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15985 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15988 test $ac_status = 0; }; then
15989 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15990 test "x$?" != "x0" && pkg_failed=yes
15997 if test -n "$systemd_LIBS"; then
15998 pkg_cv_systemd_LIBS="$systemd_LIBS"
15999 elif test -n "$PKG_CONFIG"; then
16000 if test -n "$PKG_CONFIG" && \
16001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16002 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; }; then
16006 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16007 test "x$?" != "x0" && pkg_failed=yes
16017 if test $pkg_failed = yes; then
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16019 printf "%s\n" "no" >&6; }
16021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16022 _pkg_short_errors_supported=yes
16024 _pkg_short_errors_supported=no
16026 if test $_pkg_short_errors_supported = yes; then
16027 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16029 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16031 # Put the nasty error message in config.log where it belongs
16032 echo "$systemd_PKG_ERRORS" >&5
16035 with_systemd_unit_dir=""
16037 elif test $pkg_failed = untried; then
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 printf "%s\n" "no" >&6; }
16041 with_systemd_unit_dir=""
16044 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16045 systemd_LIBS=$pkg_cv_systemd_LIBS
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047 printf "%s\n" "yes" >&6; }
16049 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16056 printf %s "checking for systemd system unit dir... " >&6; }
16057 systemd_system_unit_dir="${with_systemd_unit_dir}"
16058 if test -n "${systemd_system_unit_dir}"
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16062 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 printf "%s\n" "no" >&6; }
16075 have_systemd="disabled"
16083 OS_IO_FILE=windows_io
16091 test -d lib || mkdir lib
16092 test -d include || mkdir include
16093 test -d include/linux || mkdir include/linux
16094 test -d include/asm || mkdir include/asm
16095 if test -z "$UUID_CMT" ; then
16096 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16097 lib/uuid/uuid_types.h"
16099 if test -z "$BLKID_CMT" ; then
16100 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16101 lib/blkid/blkid_types.h"
16103 for i in MCONFIG Makefile \
16104 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16105 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16106 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16107 $uuid_out_list $blkid_out_list lib/support/Makefile \
16108 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16109 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16110 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16111 tests/fuzz/Makefile resize/Makefile doc/Makefile \
16112 po/Makefile.in scrub/Makefile; do
16113 if test -d `dirname ${srcdir}/$i` ; then
16114 outlist="$outlist $i"
16117 ac_config_files="$ac_config_files $outlist"
16119 cat >confcache <<\_ACEOF
16120 # This file is a shell script that caches the results of configure
16121 # tests run on this system so they can be shared between configure
16122 # scripts and configure runs, see configure's option --config-cache.
16123 # It is not useful on other systems. If it contains results you don't
16124 # want to keep, you may remove or edit it.
16126 # config.status only pays attention to the cache file if you give it
16127 # the --recheck option to rerun configure.
16129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16131 # following values.
16135 # The following way of writing the cache mishandles newlines in values,
16136 # but we know of no workaround that is simple, portable, and efficient.
16137 # So, we kill variables containing newlines.
16138 # Ultrix sh set writes to stderr and can't be redirected directly,
16139 # and sets the high bit in the cache file unless we assign to the vars.
16141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16142 eval ac_val=\$$ac_var
16146 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16147 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16150 _ | IFS | as_nl) ;; #(
16151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16152 *) { eval $ac_var=; unset $ac_var;} ;;
16158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16159 *${as_nl}ac_space=\ *)
16160 # `set' does not quote correctly, so add quotes: double-quote
16161 # substitution turns \\\\ into \\, and sed turns \\ into \.
16164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16167 # `set' quotes correctly as required by POSIX, so do not add quotes.
16168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16177 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16182 if test -w "$cache_file"; then
16183 if test "x$cache_file" != "x/dev/null"; then
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16185 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16186 if test ! -f "$cache_file" || test -h "$cache_file"; then
16187 cat confcache >"$cache_file"
16189 case $cache_file in #(
16191 mv -f confcache "$cache_file"$$ &&
16192 mv -f "$cache_file"$$ "$cache_file" ;; #(
16194 mv -f confcache "$cache_file" ;;
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16200 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16206 # Let make expand exec_prefix.
16207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16209 DEFS=-DHAVE_CONFIG_H
16214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16215 # 1. Remove the extension, and $U if already installed.
16216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16217 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16219 # will be set to the directory where LIBOBJS objects are built.
16220 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16221 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16223 LIBOBJS=$ac_libobjs
16225 LTLIBOBJS=$ac_ltlibobjs
16230 : "${CONFIG_STATUS=./config.status}"
16232 ac_clean_files_save=$ac_clean_files
16233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16235 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16239 # Generated by $as_me.
16240 # Run this file to recreate the current configuration.
16241 # Compiler output produced by configure, useful for debugging
16242 # configure, is in config.log if it exists.
16245 ac_cs_recheck=false
16248 SHELL=\${CONFIG_SHELL-$SHELL}
16251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16252 ## -------------------- ##
16253 ## M4sh Initialization. ##
16254 ## -------------------- ##
16256 # Be more Bourne compatible
16257 DUALCASE=1; export DUALCASE # for MKS sh
16259 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16264 # is contrary to our usage. Disable this feature.
16265 alias -g '${1+"$@"}'='"$@"'
16266 setopt NO_GLOB_SUBST
16268 case `(set -o) 2>/dev/null` in #(
16278 # Reset variables that may have inherited troublesome values from
16281 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16282 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16283 # side effect of setting IFS to empty, thus disabling word splitting.)
16284 # Quoting is to prevent editors from complaining about space-tab.
16294 # Ensure predictable behavior from utilities with locale-dependent output.
16300 # We cannot yet rely on "unset" to work, but we need these variables
16301 # to be unset--not just set to an empty or harmless value--now, to
16302 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16303 # also avoids known problems related to "unset" and subshell syntax
16304 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16305 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16306 do eval test \${$as_var+y} \
16307 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16310 # Ensure that fds 0, 1, and 2 are open.
16311 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16312 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16313 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16315 # The user is always right.
16316 if ${PATH_SEPARATOR+false} :; then
16318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16325 # Find who we are. Look in the path if we contain no directory separator.
16328 *[\\/]* ) as_myself=$0 ;;
16329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16330 for as_dir in $PATH
16333 case $as_dir in #(((
16336 *) as_dir=$as_dir/ ;;
16338 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16344 # We did not find ourselves, most probably we were run as `sh COMMAND'
16345 # in which case we are not to be found in the path.
16346 if test "x$as_myself" = x; then
16349 if test ! -f "$as_myself"; then
16350 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16356 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16357 # ----------------------------------------
16358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16360 # script with STATUS, using 1 if that was 0.
16363 as_status=$1; test $as_status -eq 0 && as_status=1
16365 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16368 printf "%s\n" "$as_me: error: $2" >&2
16369 as_fn_exit $as_status
16374 # as_fn_set_status STATUS
16375 # -----------------------
16376 # Set $? to STATUS, without forking.
16377 as_fn_set_status ()
16380 } # as_fn_set_status
16382 # as_fn_exit STATUS
16383 # -----------------
16384 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16388 as_fn_set_status $1
16394 # Portably unset VAR.
16397 { eval $1=; unset $1;}
16399 as_unset=as_fn_unset
16401 # as_fn_append VAR VALUE
16402 # ----------------------
16403 # Append the text in VALUE to the end of the definition contained in VAR. Take
16404 # advantage of any shell optimizations that allow amortized linear growth over
16405 # repeated appends, instead of the typical quadratic growth present in naive
16407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16409 eval 'as_fn_append ()
16420 # as_fn_arith ARG...
16421 # ------------------
16422 # Perform arithmetic evaluation on the ARGs, and store the result in the
16423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16424 # must be portable across $(()) and expr.
16425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16427 eval 'as_fn_arith ()
16434 as_val=`expr "$@" || test $? -eq 1`
16439 if expr a : '\(a\)' >/dev/null 2>&1 &&
16440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16447 as_basename=basename
16452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16458 as_me=`$as_basename -- "$0" ||
16459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16460 X"$0" : 'X\(//\)$' \| \
16461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16462 printf "%s\n" X/"$0" |
16463 sed '/^.*\/\([^/][^/]*\)\/*$/{
16477 # Avoid depending upon Character Ranges.
16478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16481 as_cr_digits='0123456789'
16482 as_cr_alnum=$as_cr_Letters$as_cr_digits
16485 # Determine whether it's possible to make 'echo' print without a newline.
16486 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16487 # for compatibility with existing Makefiles.
16488 ECHO_C= ECHO_N= ECHO_T=
16489 case `echo -n x` in #(((((
16491 case `echo 'xy\c'` in
16492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16501 # For backward compatibility with old third-party macros, we provide
16502 # the shell variables $as_echo and $as_echo_n. New code should use
16503 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16504 as_echo='printf %s\n'
16505 as_echo_n='printf %s'
16507 rm -f conf$$ conf$$.exe conf$$.file
16508 if test -d conf$$.dir; then
16509 rm -f conf$$.dir/conf$$.file
16512 mkdir conf$$.dir 2>/dev/null
16514 if (echo >conf$$.file) 2>/dev/null; then
16515 if ln -s conf$$.file conf$$ 2>/dev/null; then
16517 # ... but there are two gotchas:
16518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16520 # In both cases, we have to default to `cp -pR'.
16521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16523 elif ln conf$$.file conf$$ 2>/dev/null; then
16531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16532 rmdir conf$$.dir 2>/dev/null
16537 # Create "$as_dir" as a directory, including parents if necessary.
16542 -*) as_dir=./$as_dir;;
16544 test -d "$as_dir" || eval $as_mkdir_p || {
16548 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16549 *) as_qdir=$as_dir;;
16551 as_dirs="'$as_qdir' $as_dirs"
16552 as_dir=`$as_dirname -- "$as_dir" ||
16553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16554 X"$as_dir" : 'X\(//\)[^/]' \| \
16555 X"$as_dir" : 'X\(//\)$' \| \
16556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16557 printf "%s\n" X"$as_dir" |
16558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16562 /^X\(\/\/\)[^/].*/{
16575 test -d "$as_dir" && break
16577 test -z "$as_dirs" || eval "mkdir $as_dirs"
16578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16582 if mkdir -p . 2>/dev/null; then
16583 as_mkdir_p='mkdir -p "$as_dir"'
16585 test -d ./-p && rmdir ./-p
16590 # as_fn_executable_p FILE
16591 # -----------------------
16592 # Test if FILE is an executable regular file.
16593 as_fn_executable_p ()
16595 test -f "$1" && test -x "$1"
16596 } # as_fn_executable_p
16597 as_test_x='test -x'
16598 as_executable_p=as_fn_executable_p
16600 # Sed expression to map a string onto a valid CPP name.
16601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16603 # Sed expression to map a string onto a valid variable name.
16604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16608 ## ----------------------------------- ##
16609 ## Main body of $CONFIG_STATUS script. ##
16610 ## ----------------------------------- ##
16612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 # Save the log message, to keep $0 and so on meaningful, and to
16616 # report actual input values of CONFIG_FILES etc. instead of their
16617 # values after options handling.
16619 This file was extended by $as_me, which was
16620 generated by GNU Autoconf 2.71. Invocation command line was
16622 CONFIG_FILES = $CONFIG_FILES
16623 CONFIG_HEADERS = $CONFIG_HEADERS
16624 CONFIG_LINKS = $CONFIG_LINKS
16625 CONFIG_COMMANDS = $CONFIG_COMMANDS
16628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16633 case $ac_config_files in *"
16634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16637 case $ac_config_headers in *"
16638 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643 # Files that config.status was made for.
16644 config_files="$ac_config_files"
16645 config_headers="$ac_config_headers"
16646 config_commands="$ac_config_commands"
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 \`$as_me' instantiates files and other configuration actions
16653 from templates according to the current configuration. Unless the files
16654 and actions are specified as TAGs, all are instantiated by default.
16656 Usage: $0 [OPTION]... [TAG]...
16658 -h, --help print this help, then exit
16659 -V, --version print version number and configuration settings, then exit
16660 --config print configuration, then exit
16661 -q, --quiet, --silent
16662 do not print progress messages
16663 -d, --debug don't remove temporary files
16664 --recheck update $as_me by reconfiguring in the same conditions
16665 --file=FILE[:TEMPLATE]
16666 instantiate the configuration file FILE
16667 --header=FILE[:TEMPLATE]
16668 instantiate the configuration header FILE
16670 Configuration files:
16673 Configuration headers:
16676 Configuration commands:
16679 Report bugs to the package provider."
16682 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16683 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 ac_cs_config='$ac_cs_config_escaped'
16688 configured by $0, generated by GNU Autoconf 2.71,
16689 with options \\"\$ac_cs_config\\"
16691 Copyright (C) 2021 Free Software Foundation, Inc.
16692 This config.status script is free software; the Free Software Foundation
16693 gives unlimited permission to copy, distribute and modify it."
16700 test -n "\$AWK" || AWK=awk
16703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16704 # The default lists apply if the user does not specify any file.
16710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16727 # Handling of the options.
16728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16731 printf "%s\n" "$ac_cs_version"; exit ;;
16732 --config | --confi | --conf | --con | --co | --c )
16733 printf "%s\n" "$ac_cs_config"; exit ;;
16734 --debug | --debu | --deb | --de | --d | -d )
16736 --file | --fil | --fi | --f )
16739 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16740 '') as_fn_error $? "missing file argument" ;;
16742 as_fn_append CONFIG_FILES " '$ac_optarg'"
16743 ac_need_defaults=false;;
16744 --header | --heade | --head | --hea )
16747 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16749 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16750 ac_need_defaults=false;;
16752 # Conflict between --help and --header
16753 as_fn_error $? "ambiguous option: \`$1'
16754 Try \`$0 --help' for more information.";;
16755 --help | --hel | -h )
16756 printf "%s\n" "$ac_cs_usage"; exit ;;
16757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16761 # This is an error.
16762 -*) as_fn_error $? "unrecognized option: \`$1'
16763 Try \`$0 --help' for more information." ;;
16765 *) as_fn_append ac_config_targets " $1"
16766 ac_need_defaults=false ;;
16772 ac_configure_extra_args=
16774 if $ac_cs_silent; then
16776 ac_configure_extra_args="$ac_configure_extra_args --silent"
16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781 if \$ac_cs_recheck; then
16782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16784 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16785 CONFIG_SHELL='$SHELL'
16786 export CONFIG_SHELL
16791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16796 ## Running $as_me. ##
16798 printf "%s\n" "$ac_log"
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16807 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16808 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16809 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16810 LINGUAS="${LINGUAS-%UNSET%}"
16815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817 # Handling of arguments.
16818 for ac_config_target in $ac_config_targets
16820 case $ac_config_target in
16821 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16822 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16823 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16825 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16830 # If the user did not use the arguments to specify the items to instantiate,
16831 # then the envvar interface is used. Set only those that are not.
16832 # We use the long form for the default assignment because of an extremely
16833 # bizarre bug on SunOS 4.1.3.
16834 if $ac_need_defaults; then
16835 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16836 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16837 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16840 # Have a temporary directory for convenience. Make it in the build tree
16841 # simply because there is no reason against having it here, and in addition,
16842 # creating and moving files from /tmp can sometimes cause problems.
16843 # Hook for its removal unless debugging.
16844 # Note that there is a small window in which the directory will not be cleaned:
16845 # after its creation but before its name has been assigned to `$tmp'.
16849 trap 'exit_status=$?
16850 : "${ac_tmp:=$tmp}"
16851 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16853 trap 'as_fn_exit 1' 1 2 13 15
16855 # Create a (secure) tmp directory for tmp files.
16858 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16862 tmp=./conf$$-$RANDOM
16863 (umask 077 && mkdir "$tmp")
16864 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16867 # Set up the scripts for CONFIG_FILES section.
16868 # No need to generate them if there are no CONFIG_FILES.
16869 # This happens for instance with `./config.status config.h'.
16870 if test -n "$CONFIG_FILES"; then
16872 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16873 ac_cs_awk_getline=:
16874 ac_cs_awk_pipe_init=
16875 ac_cs_awk_read_file='
16876 while ((getline aline < (F[key])) > 0)
16879 ac_cs_awk_pipe_fini=
16881 ac_cs_awk_getline=false
16882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16883 ac_cs_awk_read_file='
16885 print "cat " F[key] " &&"
16886 '$ac_cs_awk_pipe_init
16887 # The final `:' finishes the AND list.
16888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16890 ac_cr=`echo X | tr X '\015'`
16891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16892 # But we know of no other shell where ac_cr would be empty at this
16893 # point, so we can use a bashism as a fallback.
16894 if test "x$ac_cr" = x; then
16895 eval ac_cr=\$\'\\r\'
16897 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16901 ac_cs_awk_cr=$ac_cr
16904 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16907 # Create commands to substitute file output variables.
16909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16910 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16914 } >conf$$files.sh &&
16915 . ./conf$$files.sh ||
16916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16917 rm -f conf$$files.sh
16920 echo "cat >conf$$subs.awk <<_ACEOF" &&
16921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16923 } >conf$$subs.sh ||
16924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16927 for ac_last_try in false false false false false :; do
16928 . ./conf$$subs.sh ||
16929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16932 if test $ac_delim_n = $ac_delim_num; then
16934 elif $ac_last_try; then
16935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16940 rm -f conf$$subs.sh
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16947 s/^/S["/; s/!.*/"]=/
16957 s/\(.\{148\}\)..*/\1/
16959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16971 s/\(.\{148\}\)..*/\1/
16973 s/["\\]/\\&/g; s/^/"/; s/$/"/
16977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16982 ' <conf$$subs.awk | sed '
16987 ' >>$CONFIG_STATUS || ac_write_fail=1
16988 rm -f conf$$subs.awk
16989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16992 for (key in S) S_is_set[key] = 1
16994 \$ac_cs_awk_pipe_init
16998 nfields = split(line, field, "@")
17000 len = length(field[1])
17001 for (i = 2; i < nfields; i++) {
17003 keylen = length(key)
17004 if (S_is_set[key]) {
17006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17007 len += length(value) + length(field[++i])
17012 if (nfields == 3 && !substed) {
17014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17015 \$ac_cs_awk_read_file
17021 \$ac_cs_awk_pipe_fini
17024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17035 # trailing colons and then remove the whole line if VPATH becomes empty
17036 # (actually we leave an empty line to preserve line numbers).
17037 if test "x$srcdir" = x.; then
17038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 fi # test -n "$CONFIG_FILES"
17059 # Set up the scripts for CONFIG_HEADERS section.
17060 # No need to generate them if there are no CONFIG_HEADERS.
17061 # This happens for instance with `./config.status Makefile'.
17062 if test -n "$CONFIG_HEADERS"; then
17063 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17067 # Transform confdefs.h into an awk script `defines.awk', embedded as
17068 # here-document in config.status, that substitutes the proper values into
17069 # config.h.in to produce config.h.
17071 # Create a delimiter string that does not exist in confdefs.h, to ease
17072 # handling of long lines.
17074 for ac_last_try in false false :; do
17075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17076 if test -z "$ac_tt"; then
17078 elif $ac_last_try; then
17079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17085 # For the awk script, D is an array of macro values keyed by name,
17086 # likewise P contains macro parameters if any. Preserve backslash
17087 # newline sequences.
17089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17091 s/.\{148\}/&'"$ac_delim"'/g
17094 s/^[ ]*#[ ]*define[ ][ ]*/ /
17101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17108 D["\1"]=" \3\\\\\\n"\\/p
17110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17115 s/.\{148\}/&'"$ac_delim"'/g
17120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17125 ' <confdefs.h | sed '
17126 s/'"$ac_delim"'/"\\\
17127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 for (key in D) D_is_set[key] = 1
17133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17135 split(line, arg, " ")
17136 if (arg[1] == "#") {
17140 defundef = substr(arg[1], 2)
17143 split(mac1, mac2, "(") #)
17145 prefix = substr(line, 1, index(line, defundef) - 1)
17146 if (D_is_set[macro]) {
17147 # Preserve the white space surrounding the "#".
17148 print prefix "define", macro P[macro] D[macro]
17151 # Replace #undef with comments. This is necessary, for example,
17152 # in the case of _POSIX_SOURCE, which is predefined and required
17153 # on some systems where configure will not decide to define it.
17154 if (defundef == "undef") {
17155 print "/*", prefix defundef, macro, "*/"
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17165 fi # test -n "$CONFIG_HEADERS"
17168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17173 :[FHLC]) ac_mode=$ac_tag; continue;;
17175 case $ac_mode$ac_tag in
17177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17178 :[FH]-) ac_tag=-:-;;
17179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17196 -) ac_f="$ac_tmp/stdin";;
17197 *) # Look for the file first in the build tree, then in the source tree
17198 # (if the path is not absolute). The absolute path cannot be DOS-style,
17199 # because $ac_f cannot contain `:'.
17203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17207 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17208 as_fn_append ac_file_inputs " '$ac_f'"
17211 # Let's still pretend it is `configure' which instantiates (i.e., don't
17212 # use $as_me), people would be surprised to read:
17213 # /* config.h. Generated by config.status. */
17214 configure_input='Generated from '`
17215 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17217 if test x"$ac_file" != x-; then
17218 configure_input="$ac_file. $configure_input"
17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17220 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17222 # Neutralize special characters interpreted by sed in replacement strings.
17223 case $configure_input in #(
17224 *\&* | *\|* | *\\* )
17225 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17227 *) ac_sed_conf_input=$configure_input;;
17231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17237 ac_dir=`$as_dirname -- "$ac_file" ||
17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$ac_file" : 'X\(//\)[^/]' \| \
17240 X"$ac_file" : 'X\(//\)$' \| \
17241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17242 printf "%s\n" X"$ac_file" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17247 /^X\(\/\/\)[^/].*/{
17260 as_dir="$ac_dir"; as_fn_mkdir_p
17264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17266 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17267 # A ".." for each directory in $ac_dir_suffix.
17268 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17269 case $ac_top_builddir_sub in
17270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17274 ac_abs_top_builddir=$ac_pwd
17275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17276 # for backward compatibility:
17277 ac_top_builddir=$ac_top_build_prefix
17280 .) # We are building in place.
17282 ac_top_srcdir=$ac_top_builddir_sub
17283 ac_abs_top_srcdir=$ac_pwd ;;
17284 [\\/]* | ?:[\\/]* ) # Absolute name.
17285 ac_srcdir=$srcdir$ac_dir_suffix;
17286 ac_top_srcdir=$srcdir
17287 ac_abs_top_srcdir=$srcdir ;;
17288 *) # Relative name.
17289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17290 ac_top_srcdir=$ac_top_build_prefix$srcdir
17291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17306 ac_MKDIR_P=$MKDIR_P
17308 [\\/$]* | ?:[\\/]* ) ;;
17309 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17314 # If the template does not know about datarootdir, expand it.
17315 # FIXME: This hack should be removed a few years after 2.60.
17316 ac_datarootdir_hack=; ac_datarootdir_seen=
17327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17328 *datarootdir*) ac_datarootdir_seen=yes;;
17329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17331 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17334 ac_datarootdir_hack='
17335 s&@datadir@&$datadir&g
17336 s&@docdir@&$docdir&g
17337 s&@infodir@&$infodir&g
17338 s&@localedir@&$localedir&g
17339 s&@mandir@&$mandir&g
17340 s&\\\${datarootdir}&$datarootdir&g' ;;
17344 # Neutralize VPATH when `$srcdir' = `.'.
17345 # Shell code in configure.ac might set extrasub.
17346 # FIXME: do we really want to maintain this feature?
17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 ac_sed_extra="$ac_vpsub
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17354 s|@configure_input@|$ac_sed_conf_input|;t t
17355 s&@top_builddir@&$ac_top_builddir_sub&;t t
17356 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17357 s&@srcdir@&$ac_srcdir&;t t
17358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17359 s&@top_srcdir@&$ac_top_srcdir&;t t
17360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17361 s&@builddir@&$ac_builddir&;t t
17362 s&@abs_builddir@&$ac_abs_builddir&;t t
17363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17364 s&@INSTALL@&$ac_INSTALL&;t t
17365 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17366 $ac_datarootdir_hack
17368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17369 if $ac_cs_awk_getline; then
17370 $AWK -f "$ac_tmp/subs.awk"
17372 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17381 which seems to be undefined. Please make sure it is defined" >&5
17382 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17383 which seems to be undefined. Please make sure it is defined" >&2;}
17385 rm -f "$ac_tmp/stdin"
17387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17396 if test x"$ac_file" != x-; then
17398 printf "%s\n" "/* $configure_input */" >&1 \
17399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17400 } >"$ac_tmp/config.h" \
17401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17404 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17407 mv "$ac_tmp/config.h" "$ac_file" \
17408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17411 printf "%s\n" "/* $configure_input */" >&1 \
17412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17413 || as_fn_error $? "could not create -" "$LINENO" 5
17417 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17418 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17423 case $ac_file$ac_mode in
17424 "po-directories":C)
17425 for ac_file in $CONFIG_FILES; do
17426 # Support "outfile[:infile[:infile...]]"
17428 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17430 # PO directories have a Makefile.in generated from Makefile.in.in.
17431 case "$ac_file" in */Makefile.in)
17432 # Adjust a relative srcdir.
17433 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17434 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17435 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17436 # In autoconf-2.13 it is called $ac_given_srcdir.
17437 # In autoconf-2.50 it is called $srcdir.
17438 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17439 case "$ac_given_srcdir" in
17440 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17441 /*) top_srcdir="$ac_given_srcdir" ;;
17442 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17444 # Treat a directory as a PO directory if and only if it has a
17445 # POTFILES.in file. This allows packages to have multiple PO
17446 # directories under different names or in different locations.
17447 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17448 rm -f "$ac_dir/POTFILES"
17449 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17450 gt_tab=`printf '\t'`
17451 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"
17452 POMAKEFILEDEPS="POTFILES.in"
17453 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17454 # on $ac_dir but don't depend on user-specified configuration
17456 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17457 # The LINGUAS file contains the set of available languages.
17458 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17459 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17461 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17462 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17464 # The set of available languages was given in configure.in.
17465 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17468 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17469 # Compute UPDATEPOFILES
17470 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17471 # Compute DUMMYPOFILES
17472 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17474 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17475 case "$ac_given_srcdir" in
17477 *) srcdirpre='$(srcdir)/' ;;
17483 for lang in $ALL_LINGUAS; do
17484 POFILES="$POFILES $srcdirpre$lang.po"
17485 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17486 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17487 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17489 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17490 # environment variable.
17492 if test -n "$ALL_LINGUAS"; then
17493 for presentlang in $ALL_LINGUAS; do
17495 if test "%UNSET%" != "$LINGUAS"; then
17496 desiredlanguages="$LINGUAS"
17498 desiredlanguages="$ALL_LINGUAS"
17500 for desiredlang in $desiredlanguages; do
17501 # Use the presentlang catalog if desiredlang is
17502 # a. equal to presentlang, or
17503 # b. a variant of presentlang (because in this case,
17504 # presentlang can be used as a fallback for messages
17505 # which are not translated in the desiredlang catalog).
17506 case "$desiredlang" in
17507 "$presentlang"*) useit=yes;;
17510 if test $useit = yes; then
17511 INST_LINGUAS="$INST_LINGUAS $presentlang"
17516 if test -n "$INST_LINGUAS"; then
17517 for lang in $INST_LINGUAS; do
17518 CATALOGS="$CATALOGS $lang.gmo"
17521 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17522 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"
17523 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17524 if test -f "$f"; then
17526 *.orig | *.bak | *~) ;;
17527 *) cat "$f" >> "$ac_dir/Makefile" ;;
17542 ac_clean_files=$ac_clean_files_save
17544 test $ac_write_fail = 0 ||
17545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17548 # configure is writing to config.log, and then calls config.status.
17549 # config.status does its own redirection, appending to config.log.
17550 # Unfortunately, on DOS this fails, as config.log is still kept open
17551 # by configure, so config.status won't be able to write to it; its
17552 # output is simply discarded. So we exec the FD to /dev/null,
17553 # effectively closing config.log, so it can be properly (re)opened and
17554 # appended to by config.status. When coming back to configure, we
17555 # need to make the FD available again.
17556 if test "$no_create" != yes; then
17558 ac_config_status_args=
17559 test "$silent" = yes &&
17560 ac_config_status_args="$ac_config_status_args --quiet"
17562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565 # would make configure fail if this is the last instruction.
17566 $ac_cs_success || as_fn_exit 1
17568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17570 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17573 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi