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
743 XGETTEXT_EXTRA_OPTIONS
744 MSGMERGE_FOR_MSGFMT_OPTION
751 GETTEXT_MACRO_VERSION
869 program_transform_name
880 ac_subst_files='MCONFIG
886 PUBLIC_CONFIG_HEADER'
888 enable_option_checking
894 enable_maintainer_mode
895 enable_symlink_install
896 enable_relative_symlinks
897 enable_symlink_relative_symlinks
899 enable_verbose_makecmds
908 enable_developer_features
918 enable_e2initrd_helper
925 enable_bmap_stats_ops
940 with_systemd_unit_dir
943 ac_precious_vars='build_alias
966 # Initialize some variables set by options.
968 ac_init_version=false
969 ac_unrecognized_opts=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
980 program_transform_name=s,x,x,
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 runstatedir='${localstatedir}/run'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1027 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 case $ac_dashdash$ac_option in
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039 bindir=$ac_optarg ;;
1041 -build | --build | --buil | --bui | --bu)
1042 ac_prev=build_alias ;;
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044 build_alias=$ac_optarg ;;
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048 ac_prev=cache_file ;;
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051 cache_file=$ac_optarg ;;
1053 --config-cache | -C)
1054 cache_file=config.cache ;;
1056 -datadir | --datadir | --datadi | --datad)
1058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059 datadir=$ac_optarg ;;
1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1063 ac_prev=datarootdir ;;
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066 datarootdir=$ac_optarg ;;
1068 -disable-* | --disable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=no ;;
1084 -docdir | --docdir | --docdi | --doc | --do)
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval enable_$ac_useropt=\$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 htmldir=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -runstatedir | --runstatedir | --runstatedi | --runstated \
1254 | --runstate | --runstat | --runsta | --runst | --runs \
1255 | --run | --ru | --r)
1256 ac_prev=runstatedir ;;
1257 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1258 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1259 | --run=* | --ru=* | --r=*)
1260 runstatedir=$ac_optarg ;;
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 sbindir=$ac_optarg ;;
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 sharedstatedir=$ac_optarg ;;
1279 -site | --site | --sit)
1281 -site=* | --site=* | --sit=*)
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: \`$ac_useropt'"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval with_$ac_useropt=\$ac_optarg ;;
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: \`$ac_useropt'"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1337 eval with_$ac_useropt=no ;;
1340 # Obsolete; use --with-x.
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1345 ac_prev=x_includes ;;
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348 x_includes=$ac_optarg ;;
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352 ac_prev=x_libraries ;;
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355 x_libraries=$ac_optarg ;;
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1368 eval $ac_envvar=\$ac_optarg
1369 export $ac_envvar ;;
1372 # FIXME: should be removed in autoconf 3.0.
1373 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1382 if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $? "missing argument to $ac_option"
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir runstatedir
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1408 # Be sure to have absolute directory names.
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1421 target=$target_alias
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 elif test "x$build_alias" != "x$host_alias"; then
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error $? "pwd does not report name of working directory"
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 printf "%s\n" X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking ...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 if test -n "$ac_init_help"; then
1581 --disable-option-checking ignore unrecognized --enable/--with options
1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584 --enable-maintainer-mode
1585 enable makefile rules useful for maintainers
1586 --enable-symlink-install
1587 use symlinks when installing instead of hard links
1588 --enable-relative-symlinks
1589 use relative symlinks when installing
1591 --enable-symlink-build use symlinks while building instead of hard links
1592 --enable-verbose-makecmds
1593 enable verbose make command output
1594 --enable-elf-shlibs select ELF shared libraries
1595 --enable-bsd-shlibs select BSD shared libraries
1596 --enable-profile build profiling libraries
1597 --enable-gcov build for coverage testing using gcov
1598 --enable-hardening build for coverage testing using gcov
1599 --enable-jbd-debug enable journal debugging
1600 --enable-blkid-debug enable blkid debugging
1601 --disable-testio-debug disable the use of the test I/O manager for
1603 --enable-developer-features
1604 enable features for use by ext4 developers
1605 --enable-libuuid build and use private uuid library
1606 --enable-libblkid build and use private blkid library
1607 --enable-subset enable subset-only build
1608 --disable-backtrace disable use backtrace
1609 --disable-debugfs disable support of debugfs program
1610 --disable-imager disable support of e2image program
1611 --disable-resizer disable support of e2resize program
1612 --disable-defrag disable support of e4defrag program
1613 --enable-fsck build fsck wrapper program
1614 --enable-e2initrd-helper
1615 build e2initrd-helper program
1616 --disable-tls disable use of thread local support
1617 --disable-uuidd disable building the uuid daemon
1618 --disable-mmp disable support mmp, Multi Mount Protection
1619 --disable-tdb disable tdb support
1620 --disable-bmap-stats disable collection of bitmap stats
1621 --enable-bmap-stats-ops enable collection of additional bitmap stats
1622 --disable-nls do not use Native Language Support
1623 --disable-rpath do not hardcode runtime library paths
1624 --disable-fuse2fs do not build fuse2fs
1625 --enable-lto enable link time optimization
1626 --enable-ubsan enable undefined behavior sanitizer
1627 --enable-addrsan enable address sanitizer
1628 --enable-threadsan enable thread sanitizer
1629 --enable-fuzzing enable fuzzing sanitizer
1630 --disable-largefile omit support for large files
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-diet-libc use diet libc
1636 --with-cc no longer supported, use CC= instead
1637 --with-ccopts no longer supported, use CFLAGS= instead
1638 --with-ldopts no longer supported, use LDFLAGS= instead
1639 --with-root-prefix=PREFIX
1640 override prefix variable for files to be placed in
1642 --without-pthread disable use of pthread support
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1646 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1647 --without-libintl-prefix don't search for libintl in includedir and libdir
1648 --with-multiarch=ARCH specify the multiarch triplet
1649 --with-udev-rules-dir[=DIR]
1650 Install udev rules into DIR.
1651 --with-crond-dir[=DIR] Install system crontabs into DIR.
1652 --with-systemd-unit-dir[=DIR]
1653 Install systemd system units into DIR.
1655 Some influential environment variables:
1656 CC C compiler command
1657 CFLAGS C compiler flags
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1659 nonstandard directory <lib dir>
1660 LIBS libraries to pass to the linker, e.g. -l<library>
1661 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1662 you have headers in a nonstandard directory <include dir>
1664 PKG_CONFIG path to pkg-config utility
1666 directories to add to pkg-config's search path
1668 path overriding pkg-config's built-in search path
1669 CXX C++ compiler command
1670 CXXFLAGS C++ compiler flags
1671 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1672 udev_LIBS linker flags for udev, overriding pkg-config
1674 C compiler flags for systemd, overriding pkg-config
1676 linker flags for systemd, overriding pkg-config
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1711 .) # We are building in place.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for configure.gnu first; this name is used for a wrapper for
1728 # Metaconfig's "Configure" on case-insensitive file systems.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1736 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1746 generated by GNU Autoconf 2.71
1748 Copyright (C) 2021 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1759 # ac_fn_c_try_compile LINENO
1760 # --------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest.beam
1766 if { { ac_try="$ac_compile"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 printf "%s\n" "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext
1788 printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_compile
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 printf %s "checking for $2... " >&6; }
1807 if eval test \${$3+y}
1809 printf %s "(cached) " >&6
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1816 if ac_fn_c_try_compile "$LINENO"
1822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 printf "%s\n" "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 test -x conftest$ac_exeext
1863 printf "%s\n" "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 printf "%s\n" "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } > conftest.i && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1906 printf "%s\n" "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1916 # ac_fn_c_try_run LINENO
1917 # ----------------------
1918 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1919 # executables *can* be run.
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_link"
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 printf "%s\n" "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>&5
1932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1934 { { case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 printf "%s\n" "$ac_try_echo"; } >&5
1940 (eval "$ac_try") 2>&5
1942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; }; }
1947 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1948 printf "%s\n" "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=$ac_status
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 printf %s "checking for $2... " >&6; }
1967 if eval test \${$3+y}
1969 printf %s "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below. */
1983 /* Override any GCC internal prototype to avoid an error.
1984 Use char because int might match the return type of a GCC
1985 builtin and then its argument prototype would still apply. */
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined __stub_$2 || defined __stub___$2
2005 if ac_fn_c_try_link "$LINENO"
2011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2012 conftest$ac_exeext conftest.$ac_ext
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 printf "%s\n" "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 } # ac_fn_c_check_func
2021 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2022 # ----------------------------------------------------
2023 # Tries to find if the field MEMBER exists in type AGGR, after including
2024 # INCLUDES, setting cache variable VAR accordingly.
2025 ac_fn_c_check_member ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2029 printf %s "checking for $2.$3... " >&6; }
2030 if eval test \${$4+y}
2032 printf %s "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2047 if ac_fn_c_try_compile "$LINENO"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2058 if (sizeof ac_aggr.$3)
2064 if ac_fn_c_try_compile "$LINENO"
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 printf "%s\n" "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_member
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 printf %s "checking for $2... " >&6; }
2090 if eval test \${$3+y}
2092 printf %s "(cached) " >&6
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2107 if ac_fn_c_try_compile "$LINENO"
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 printf "%s\n" "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_type
2138 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2139 # ------------------------------------------------------------------
2140 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2141 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 as_decl_name=`echo $2|sed 's/ *(.*//'`
2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2147 printf %s "checking whether $as_decl_name is declared... " >&6; }
2148 if eval test \${$3+y}
2150 printf %s "(cached) " >&6
2152 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153 eval ac_save_FLAGS=\$$6
2154 as_fn_append $6 " $5"
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 #ifndef $as_decl_name
2163 (void) $as_decl_use;
2165 (void) $as_decl_name;
2173 if ac_fn_c_try_compile "$LINENO"
2179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2180 eval $6=\$ac_save_FLAGS
2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 printf "%s\n" "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_check_decl
2190 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2191 # --------------------------------------------
2192 # Tries to find the compile-time value of EXPR in a program that includes
2193 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2195 ac_fn_c_compute_int ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 if test "$cross_compiling" = yes; then
2199 # Depending upon the size, compute the lo and hi bounds.
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 static int test_array [1 - 2 * !(($2) >= 0)];
2208 return test_array [0];
2214 if ac_fn_c_try_compile "$LINENO"
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"
2234 ac_hi=$ac_mid; break
2236 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2237 if test $ac_lo -le $ac_mid; then
2241 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) < 0)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272 return test_array [0];
2278 if ac_fn_c_try_compile "$LINENO"
2280 ac_lo=$ac_mid; break
2282 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2283 if test $ac_mid -le $ac_hi; then
2287 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 # Binary search between lo and hi bounds.
2298 while test "x$ac_lo" != "x$ac_hi"; do
2299 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2308 return test_array [0];
2314 if ac_fn_c_try_compile "$LINENO"
2318 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2323 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2330 static long int longval (void) { return $2; }
2331 static unsigned long int ulongval (void) { return $2; }
2338 FILE *f = fopen ("conftest.val", "w");
2343 long int i = longval ();
2346 fprintf (f, "%ld", i);
2350 unsigned long int i = ulongval ();
2353 fprintf (f, "%lu", i);
2355 /* Do not output a trailing newline, as this causes \r\n confusion
2356 on some platforms. */
2357 return ferror (f) || fclose (f) != 0;
2363 if ac_fn_c_try_run "$LINENO"
2365 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2370 conftest.$ac_objext conftest.beam conftest.$ac_ext
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375 as_fn_set_status $ac_retval
2377 } # ac_fn_c_compute_int
2379 # ac_fn_cxx_try_compile LINENO
2380 # ----------------------------
2381 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2382 ac_fn_cxx_try_compile ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 rm -f conftest.$ac_objext conftest.beam
2386 if { { ac_try="$ac_compile"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 printf "%s\n" "$ac_try_echo"; } >&5
2393 (eval "$ac_compile") 2>conftest.err
2395 if test -s conftest.err; then
2396 grep -v '^ *+' conftest.err >conftest.er1
2397 cat conftest.er1 >&5
2398 mv -f conftest.er1 conftest.err
2400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && {
2402 test -z "$ac_cxx_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest.$ac_objext
2408 printf "%s\n" "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 as_fn_set_status $ac_retval
2416 } # ac_fn_cxx_try_compile
2417 ac_configure_args_raw=
2422 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 as_fn_append ac_configure_args_raw " '$ac_arg'"
2427 case $ac_configure_args_raw in
2431 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2432 ac_unsafe_a="$ac_unsafe_z#~"
2433 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2434 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2437 cat >config.log <<_ACEOF
2438 This file contains any messages produced by compilers while
2439 running configure, to aid debugging if configure makes a mistake.
2441 It was created by $as_me, which was
2442 generated by GNU Autoconf 2.71. Invocation command line was
2444 $ $0$ac_configure_args_raw
2454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 case $as_dir in #(((
2480 *) as_dir=$as_dir/ ;;
2482 printf "%s\n" "PATH: $as_dir"
2498 # Keep a trace of the command line.
2499 # Strip out --no-create and --no-recursion so they do not pile up.
2500 # Strip out --silent because we don't want to record it for future runs.
2501 # Also quote any args containing shell meta-characters.
2502 # Make two passes to allow for proper duplicate-argument suppression.
2506 ac_must_keep_next=false
2512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2514 | -silent | --silent | --silen | --sile | --sil)
2517 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2520 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2522 as_fn_append ac_configure_args1 " '$ac_arg'"
2523 if test $ac_must_keep_next = true; then
2524 ac_must_keep_next=false # Got value, back to normal.
2527 *=* | --config-cache | -C | -disable-* | --disable-* \
2528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2530 | -with-* | --with-* | -without-* | --without-* | --x)
2531 case "$ac_configure_args0 " in
2532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2535 -* ) ac_must_keep_next=true ;;
2538 as_fn_append ac_configure_args " '$ac_arg'"
2543 { ac_configure_args0=; unset ac_configure_args0;}
2544 { ac_configure_args1=; unset ac_configure_args1;}
2546 # When interrupted or exit'd, cleanup temporary files, and complete
2547 # config.log. We remove comments because anyway the quotes in there
2548 # would cause problems or look ugly.
2549 # WARNING: Use '\'' to represent an apostrophe within the trap.
2550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2551 trap 'exit_status=$?
2554 # Save into config.log some information that might help in debugging.
2558 printf "%s\n" "## ---------------- ##
2559 ## Cache variables. ##
2560 ## ---------------- ##"
2562 # The following way of writing the cache mishandles newlines in values,
2564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2565 eval ac_val=\$$ac_var
2569 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2570 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2573 _ | IFS | as_nl) ;; #(
2574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2575 *) { eval $ac_var=; unset $ac_var;} ;;
2580 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2581 *${as_nl}ac_space=\ *)
2583 "s/'\''/'\''\\\\'\'''\''/g;
2584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2594 printf "%s\n" "## ----------------- ##
2595 ## Output variables. ##
2596 ## ----------------- ##"
2598 for ac_var in $ac_subst_vars
2600 eval ac_val=\$$ac_var
2602 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604 printf "%s\n" "$ac_var='\''$ac_val'\''"
2608 if test -n "$ac_subst_files"; then
2609 printf "%s\n" "## ------------------- ##
2610 ## File substitutions. ##
2611 ## ------------------- ##"
2613 for ac_var in $ac_subst_files
2615 eval ac_val=\$$ac_var
2617 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619 printf "%s\n" "$ac_var='\''$ac_val'\''"
2624 if test -s confdefs.h; then
2625 printf "%s\n" "## ----------- ##
2632 test "$ac_signal" != 0 &&
2633 printf "%s\n" "$as_me: caught signal $ac_signal"
2634 printf "%s\n" "$as_me: exit $exit_status"
2636 rm -f core *.core core.conftest.* &&
2637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2640 for ac_signal in 1 2 13 15; do
2641 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2646 rm -f -r conftest* confdefs.h
2648 printf "%s\n" "/* confdefs.h */" > confdefs.h
2650 # Predefined preprocessor variables.
2652 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2654 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2656 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2658 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2660 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2662 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2665 # Let the site file select an alternate cache file if it wants to.
2666 # Prefer an explicitly selected file to automatically selected ones.
2667 if test -n "$CONFIG_SITE"; then
2668 ac_site_files="$CONFIG_SITE"
2669 elif test "x$prefix" != xNONE; then
2670 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2672 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2675 for ac_site_file in $ac_site_files
2677 case $ac_site_file in #(
2681 ac_site_file=./$ac_site_file ;;
2683 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2685 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2686 sed 's/^/| /' "$ac_site_file" >&5
2688 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2690 as_fn_error $? "failed to load site script $ac_site_file
2691 See \`config.log' for more details" "$LINENO" 5; }
2695 if test -r "$cache_file"; then
2696 # Some versions of bash will fail to source /dev/null (special files
2697 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2698 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2700 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2703 *) . "./$cache_file";;
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2708 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2712 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2713 # Test code for whether the C compiler supports C89 (global declarations)
2714 ac_c_conftest_c89_globals='
2715 /* Does the compiler advertise C89 conformance?
2716 Do not test the value of __STDC__, because some compilers set it to 0
2717 while being otherwise adequately conformant. */
2718 #if !defined __STDC__
2719 # error "Compiler does not advertise C89 conformance"
2725 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2726 struct buf { int x; };
2727 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2728 static char *e (p, i)
2734 static char *f (char * (*g) (char **, int), char **p, ...)
2739 s = g (p, va_arg (v,int));
2744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2745 function prototypes and stuff, but not \xHH hex character constants.
2746 These do not provoke an error unfortunately, instead are silently treated
2747 as an "x". The following induces an error, until -std is added to get
2748 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2749 array size at least. It is necessary to write \x00 == 0 to get something
2750 that is true only with -std. */
2751 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2754 inside strings and character constants. */
2755 #define FOO(x) '\''x'\''
2756 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2764 # Test code for whether the C compiler supports C89 (body of main).
2765 ac_c_conftest_c89_main='
2766 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2769 # Test code for whether the C compiler supports C99 (global declarations)
2770 ac_c_conftest_c99_globals='
2771 // Does the compiler advertise C99 conformance?
2772 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2773 # error "Compiler does not advertise C99 conformance"
2776 #include <stdbool.h>
2777 extern int puts (const char *);
2778 extern int printf (const char *, ...);
2779 extern int dprintf (int, const char *, ...);
2780 extern void *malloc (size_t);
2782 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2783 // dprintf is used instead of fprintf to avoid needing to declare
2785 #define debug(...) dprintf (2, __VA_ARGS__)
2786 #define showlist(...) puts (#__VA_ARGS__)
2787 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2789 test_varargs_macros (void)
2794 debug ("X = %d\n", x);
2795 showlist (The first, second, and third items.);
2796 report (x>y, "x is %d but y is %d", x, y);
2799 // Check long long types.
2800 #define BIG64 18446744073709551615ull
2801 #define BIG32 4294967295ul
2802 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2804 #error "your preprocessor is broken"
2808 #error "your preprocessor is broken"
2810 static long long int bignum = -9223372036854775807LL;
2811 static unsigned long long int ubignum = BIG64;
2813 struct incomplete_array
2821 const wchar_t *name;
2825 typedef const char *ccp;
2828 test_restrict (ccp restrict text)
2830 // See if C++-style comments work.
2831 // Iterate through items via the restricted pointer.
2832 // Also check for declarations in for loops.
2833 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2838 // Check varargs and va_copy.
2840 test_varargs (const char *format, ...)
2843 va_start (args, format);
2845 va_copy (args_copy, args);
2847 const char *str = "";
2855 case '\''s'\'': // string
2856 str = va_arg (args_copy, const char *);
2858 case '\''d'\'': // int
2859 number = va_arg (args_copy, int);
2861 case '\''f'\'': // float
2862 fnumber = va_arg (args_copy, double);
2871 return *str && number && fnumber;
2875 # Test code for whether the C compiler supports C99 (body of main).
2876 ac_c_conftest_c99_main='
2878 _Bool success = false;
2879 success |= (argc != 0);
2882 if (test_restrict ("String literal") == 0)
2884 char *restrict newvar = "Another string";
2887 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2888 test_varargs_macros ();
2890 // Check flexible array members.
2891 struct incomplete_array *ia =
2892 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2894 for (int i = 0; i < ia->datasize; ++i)
2895 ia->data[i] = i * 1.234;
2897 // Check named initializers.
2898 struct named_init ni = {
2900 .name = L"Test wide string",
2901 .average = 543.34343,
2906 int dynamic_array[ni.number];
2907 dynamic_array[0] = argv[0][0];
2908 dynamic_array[ni.number - 1] = 543;
2910 // work around unused variable warnings
2911 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2912 || dynamic_array[ni.number - 1] != 543);
2915 # Test code for whether the C compiler supports C11 (global declarations)
2916 ac_c_conftest_c11_globals='
2917 // Does the compiler advertise C11 conformance?
2918 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2919 # error "Compiler does not advertise C11 conformance"
2923 char _Alignas (double) aligned_as_double;
2924 char _Alignas (0) no_special_alignment;
2925 extern char aligned_as_int;
2926 char _Alignas (0) _Alignas (int) aligned_as_int;
2931 int_alignment = _Alignof (int),
2932 int_array_alignment = _Alignof (int[100]),
2933 char_alignment = _Alignof (char)
2935 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2938 int _Noreturn does_not_return (void) { for (;;) continue; }
2940 // Check _Static_assert.
2941 struct test_static_assert
2944 _Static_assert (sizeof (int) <= sizeof (long int),
2945 "_Static_assert does not work in struct");
2949 // Check UTF-8 literals.
2950 #define u8 syntax error!
2951 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2953 // Check duplicate typedefs.
2954 typedef long *long_ptr;
2955 typedef long int *long_ptr;
2956 typedef long_ptr long_ptr;
2958 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2962 struct { int i; int j; };
2963 struct { int k; long int l; } w;
2969 # Test code for whether the C compiler supports C11 (body of main).
2970 ac_c_conftest_c11_main='
2971 _Static_assert ((offsetof (struct anonymous, i)
2972 == offsetof (struct anonymous, w.k)),
2973 "Anonymous union alignment botch");
2979 # Test code for whether the C compiler supports C11 (complete).
2980 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2981 ${ac_c_conftest_c99_globals}
2982 ${ac_c_conftest_c11_globals}
2985 main (int argc, char **argv)
2988 ${ac_c_conftest_c89_main}
2989 ${ac_c_conftest_c99_main}
2990 ${ac_c_conftest_c11_main}
2995 # Test code for whether the C compiler supports C99 (complete).
2996 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2997 ${ac_c_conftest_c99_globals}
3000 main (int argc, char **argv)
3003 ${ac_c_conftest_c89_main}
3004 ${ac_c_conftest_c99_main}
3009 # Test code for whether the C compiler supports C89 (complete).
3010 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3013 main (int argc, char **argv)
3016 ${ac_c_conftest_c89_main}
3021 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3022 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3023 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3024 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3025 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3026 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3027 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3028 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3029 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3030 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3031 gt_needs="$gt_needs "
3032 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3033 # Test code for whether the C++ compiler supports C++98 (global declarations)
3034 ac_cxx_conftest_cxx98_globals='
3035 // Does the compiler advertise C++98 conformance?
3036 #if !defined __cplusplus || __cplusplus < 199711L
3037 # error "Compiler does not advertise C++98 conformance"
3040 // These inclusions are to reject old compilers that
3041 // lack the unsuffixed header files.
3043 #include <exception>
3045 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3046 extern void assert (int);
3048 extern int strcmp (const char *, const char *);
3051 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3052 using std::exception;
3057 void test_exception_syntax()
3061 } catch (const char *s) {
3062 // Extra parentheses suppress a warning when building autoconf itself,
3063 // due to lint rules shared with more typical C programs.
3064 assert (!(strcmp) (s, "test"));
3068 template <typename T> struct test_template
3071 explicit test_template(T t) : val(t) {}
3072 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3075 } // anonymous namespace
3078 # Test code for whether the C++ compiler supports C++98 (body of main)
3079 ac_cxx_conftest_cxx98_main='
3083 test_exception_syntax ();
3084 test_template<double> tt (2.0);
3085 assert (tt.add (4) == 6.0);
3086 assert (true && !false);
3090 # Test code for whether the C++ compiler supports C++11 (global declarations)
3091 ac_cxx_conftest_cxx11_globals='
3092 // Does the compiler advertise C++ 2011 conformance?
3093 #if !defined __cplusplus || __cplusplus < 201103L
3094 # error "Compiler does not advertise C++11 conformance"
3099 constexpr int get_val() { return 20; }
3110 delegate(int n) : n(n) {}
3111 delegate(): delegate(2354) {}
3113 virtual int getval() { return this->n; };
3118 class overridden : public delegate
3121 overridden(int n): delegate(n) {}
3122 virtual int getval() override final { return this->n * 2; }
3128 nocopy(int i): i(i) {}
3130 nocopy(const nocopy&) = delete;
3131 nocopy & operator=(const nocopy&) = delete;
3136 // for testing lambda expressions
3137 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3142 // for testing variadic templates and trailing return types
3143 template <typename V> auto sum(V first) -> V
3147 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3149 return first + sum(rest...);
3154 # Test code for whether the C++ compiler supports C++11 (body of main)
3155 ac_cxx_conftest_cxx11_main='
3157 // Test auto and decltype
3159 auto a2 = 48573953.4;
3160 auto a3 = "String literal";
3163 for (auto i = a3; *i; ++i) { total += *i; }
3165 decltype(a2) a4 = 34895.034;
3169 short sa[cxx11test::get_val()] = { 0 };
3172 // Test initializer lists
3173 cxx11test::testinit il = { 4323, 435234.23544 };
3176 // Test range-based for
3177 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3178 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3179 for (auto &x : array) { x += 23; }
3182 // Test lambda expressions
3183 using cxx11test::eval;
3184 assert (eval ([](int x) { return x*2; }, 21) == 42);
3186 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3188 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3192 // Test use of variadic templates
3193 using cxx11test::sum;
3196 auto c = sum(1.0, 2.0, 3.0);
3199 // Test constructor delegation
3200 cxx11test::delegate d1;
3201 cxx11test::delegate d2();
3202 cxx11test::delegate d3(45);
3205 // Test override and final
3206 cxx11test::overridden o1(55464);
3213 // Test template brackets
3214 test_template<::test_template<int>> v(test_template<int>(12));
3218 char const *utf8 = u8"UTF-8 string \u2500";
3219 char16_t const *utf16 = u"UTF-8 string \u2500";
3220 char32_t const *utf32 = U"UTF-32 string \u2500";
3224 # Test code for whether the C compiler supports C++11 (complete).
3225 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3226 ${ac_cxx_conftest_cxx11_globals}
3229 main (int argc, char **argv)
3232 ${ac_cxx_conftest_cxx98_main}
3233 ${ac_cxx_conftest_cxx11_main}
3238 # Test code for whether the C compiler supports C++98 (complete).
3239 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3241 main (int argc, char **argv)
3244 ${ac_cxx_conftest_cxx98_main}
3250 # Auxiliary files required by this configure script.
3251 ac_aux_files="config.rpath install-sh config.guess config.sub"
3253 # Locations in which to look for auxiliary files.
3254 ac_aux_dir_candidates="${srcdir}/config"
3256 # Search for a directory containing all of the required auxiliary files,
3257 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3258 # If we don't find one directory that contains all the files we need,
3259 # we report the set of missing files from the *first* directory in
3260 # $ac_aux_dir_candidates and give up.
3261 ac_missing_aux_files=""
3262 ac_first_candidate=:
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $ac_aux_dir_candidates
3269 case $as_dir in #(((
3272 *) as_dir=$as_dir/ ;;
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3277 ac_aux_dir_found=yes
3279 for ac_aux in $ac_aux_files
3281 # As a special case, if "install-sh" is required, that requirement
3282 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3283 # and $ac_install_sh is set appropriately for whichever one is found.
3284 if test x"$ac_aux" = x"install-sh"
3286 if test -f "${as_dir}install-sh"; then
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3288 ac_install_sh="${as_dir}install-sh -c"
3289 elif test -f "${as_dir}install.sh"; then
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3291 ac_install_sh="${as_dir}install.sh -c"
3292 elif test -f "${as_dir}shtool"; then
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3294 ac_install_sh="${as_dir}shtool install -c"
3297 if $ac_first_candidate; then
3298 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3304 if test -f "${as_dir}${ac_aux}"; then
3305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3308 if $ac_first_candidate; then
3309 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3316 if test "$ac_aux_dir_found" = yes; then
3317 ac_aux_dir="$as_dir"
3320 ac_first_candidate=false
3329 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3333 # These three variables are undocumented and unsupported,
3334 # and are intended to be withdrawn in a future Autoconf release.
3335 # They can cause serious problems if a builder's source tree is in a directory
3336 # whose full name contains unusual characters.
3337 if test -f "${ac_aux_dir}config.guess"; then
3338 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3340 if test -f "${ac_aux_dir}config.sub"; then
3341 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3343 if test -f "$ac_aux_dir/configure"; then
3344 ac_configure="$SHELL ${ac_aux_dir}configure"
3347 # Check that the precious variables saved in the cache have kept the same
3349 ac_cache_corrupted=false
3350 for ac_var in $ac_precious_vars; do
3351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352 eval ac_new_set=\$ac_env_${ac_var}_set
3353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354 eval ac_new_val=\$ac_env_${ac_var}_value
3355 case $ac_old_set,$ac_new_set in
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3358 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3362 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363 ac_cache_corrupted=: ;;
3366 if test "x$ac_old_val" != "x$ac_new_val"; then
3367 # differences in whitespace do not lead to failure.
3368 ac_old_val_w=`echo x $ac_old_val`
3369 ac_new_val_w=`echo x $ac_new_val`
3370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3372 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373 ac_cache_corrupted=:
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3376 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377 eval $ac_var=\$ac_old_val
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3380 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3382 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3385 # Pass precious variables to config.status.
3386 if test "$ac_new_set" = set; then
3388 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389 *) ac_arg=$ac_var=$ac_new_val ;;
3391 case " $ac_configure_args " in
3392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3397 if $ac_cache_corrupted; then
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3401 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3402 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3403 and start over" "$LINENO" 5
3405 ## -------------------- ##
3406 ## Main body of script. ##
3407 ## -------------------- ##
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_config_headers="$ac_config_headers lib/config.h"
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 printf %s "checking for $ac_word... " >&6; }
3441 if test ${ac_cv_prog_CC+y}
3443 printf %s "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 case $as_dir in #(((
3455 *) as_dir=$as_dir/ ;;
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3470 if test -n "$CC"; then
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 printf "%s\n" "$CC" >&6; }
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 printf "%s\n" "no" >&6; }
3480 if test -z "$ac_cv_prog_CC"; then
3482 # Extract the first word of "gcc", so it can be a program name with args.
3483 set dummy gcc; ac_word=$2
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 printf %s "checking for $ac_word... " >&6; }
3486 if test ${ac_cv_prog_ac_ct_CC+y}
3488 printf %s "(cached) " >&6
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 case $as_dir in #(((
3500 *) as_dir=$as_dir/ ;;
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_ac_ct_CC="gcc"
3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 printf "%s\n" "$ac_ct_CC" >&6; }
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3523 if test "x$ac_ct_CC" = x; then
3526 case $cross_compiling:$ac_tool_warned in
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3530 ac_tool_warned=yes ;;
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}cc; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_CC+y}
3546 printf %s "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 case $as_dir in #(((
3558 *) as_dir=$as_dir/ ;;
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_CC="${ac_tool_prefix}cc"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 printf "%s\n" "$CC" >&6; }
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_CC+y}
3591 printf %s "(cached) " >&6
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 case $as_dir in #(((
3604 *) as_dir=$as_dir/ ;;
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3609 ac_prog_rejected=yes
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3620 if test $ac_prog_rejected = yes; then
3621 # We found a bogon in the path, so make sure we never use it.
3622 set dummy $ac_cv_prog_CC
3624 if test $# != 0; then
3625 # We chose a different compiler from the bogus one.
3626 # However, it has the same basename, so the bogon will be chosen
3627 # first if we set CC to just the basename; use the full file name.
3629 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3635 if test -n "$CC"; then
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 for ac_prog in cl.exe
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 printf %s "checking for $ac_word... " >&6; }
3653 if test ${ac_cv_prog_CC+y}
3655 printf %s "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 case $as_dir in #(((
3667 *) as_dir=$as_dir/ ;;
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3682 if test -n "$CC"; then
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 printf "%s\n" "$CC" >&6; }
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3691 test -n "$CC" && break
3694 if test -z "$CC"; then
3696 for ac_prog in cl.exe
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 printf %s "checking for $ac_word... " >&6; }
3702 if test ${ac_cv_prog_ac_ct_CC+y}
3704 printf %s "(cached) " >&6
3706 if test -n "$ac_ct_CC"; then
3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 case $as_dir in #(((
3716 *) as_dir=$as_dir/ ;;
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_ac_ct_CC="$ac_prog"
3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 printf "%s\n" "$ac_ct_CC" >&6; }
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 printf "%s\n" "no" >&6; }
3740 test -n "$ac_ct_CC" && break
3743 if test "x$ac_ct_CC" = x; then
3746 case $cross_compiling:$ac_tool_warned in
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3757 if test -z "$CC"; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}clang; ac_word=$2
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 printf %s "checking for $ac_word... " >&6; }
3763 if test ${ac_cv_prog_CC+y}
3765 printf %s "(cached) " >&6
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 case $as_dir in #(((
3777 *) as_dir=$as_dir/ ;;
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC="${ac_tool_prefix}clang"
3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792 if test -n "$CC"; then
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794 printf "%s\n" "$CC" >&6; }
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 printf "%s\n" "no" >&6; }
3802 if test -z "$ac_cv_prog_CC"; then
3804 # Extract the first word of "clang", so it can be a program name with args.
3805 set dummy clang; ac_word=$2
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 printf %s "checking for $ac_word... " >&6; }
3808 if test ${ac_cv_prog_ac_ct_CC+y}
3810 printf %s "(cached) " >&6
3812 if test -n "$ac_ct_CC"; then
3813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 case $as_dir in #(((
3822 *) as_dir=$as_dir/ ;;
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_ac_ct_CC="clang"
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3837 if test -n "$ac_ct_CC"; then
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3839 printf "%s\n" "$ac_ct_CC" >&6; }
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 printf "%s\n" "no" >&6; }
3845 if test "x$ac_ct_CC" = x; then
3848 case $cross_compiling:$ac_tool_warned in
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3852 ac_tool_warned=yes ;;
3863 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "no acceptable C compiler found in \$PATH
3866 See \`config.log' for more details" "$LINENO" 5; }
3868 # Provide some information about the compiler.
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3872 for ac_option in --version -v -V -qversion -version; do
3873 { { ac_try="$ac_compiler $ac_option >&5"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 printf "%s\n" "$ac_try_echo"; } >&5
3880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882 if test -s conftest.err; then
3884 ... rest of stderr output deleted ...
3885 10q' conftest.err >conftest.er1
3886 cat conftest.er1 >&5
3888 rm -f conftest.er1 conftest.err
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 ac_clean_files_save=$ac_clean_files
3905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3906 # Try to create an executable without -o first, disregard a.out.
3907 # It will help us diagnose broken compilers, and finding out an intuition
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910 printf %s "checking whether the C compiler works... " >&6; }
3911 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3913 # The possible output files:
3914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3917 for ac_file in $ac_files
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926 if { { ac_try="$ac_link_default"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 printf "%s\n" "$ac_try_echo"; } >&5
3933 (eval "$ac_link_default") 2>&5
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }
3938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3939 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3940 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3941 # so that the user can short-circuit this test for compilers unknown to
3943 for ac_file in $ac_files ''
3945 test -f "$ac_file" || continue
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3950 # We found the default executable, but exeext='' is most
3954 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 # We set ac_cv_exeext here because the later test for it is not
3959 # safe: cross compilers may not add the suffix if given an `-o'
3960 # argument, so we may need to know it at that point already.
3961 # Even if this section looks crufty: it has the advantage of
3968 test "$ac_cv_exeext" = no && ac_cv_exeext=
3973 if test -z "$ac_file"
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 printf "%s\n" "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error 77 "C compiler cannot create executables
3983 See \`config.log' for more details" "$LINENO" 5; }
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 printf "%s\n" "yes" >&6; }
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3989 printf %s "checking for C compiler default output file name... " >&6; }
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3991 printf "%s\n" "$ac_file" >&6; }
3992 ac_exeext=$ac_cv_exeext
3994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3995 ac_clean_files=$ac_clean_files_save
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3997 printf %s "checking for suffix of executables... " >&6; }
3998 if { { ac_try="$ac_link"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005 (eval "$ac_link") 2>&5
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest$ac_cv_exeext
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 printf "%s\n" "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 printf %s "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try="$ac_link"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 printf "%s\n" "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 printf "%s\n" "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4079 if test "$cross_compiling" = maybe; then
4082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error 77 "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 printf "%s\n" "$cross_compiling" >&6; }
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 printf %s "checking for suffix of object files... " >&6; }
4097 if test ${ac_cv_objext+y}
4099 printf %s "(cached) " >&6
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 printf "%s\n" "$ac_try_echo"; } >&5
4120 (eval "$ac_compile") 2>&5
4122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }
4125 for ac_file in conftest.o conftest.obj conftest.*; do
4126 test -f "$ac_file" || continue;
4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4134 printf "%s\n" "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4139 as_fn_error $? "cannot compute suffix of object files: cannot compile
4140 See \`config.log' for more details" "$LINENO" 5; }
4142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4145 printf "%s\n" "$ac_cv_objext" >&6; }
4146 OBJEXT=$ac_cv_objext
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4149 printf %s "checking whether the compiler supports GNU C... " >&6; }
4150 if test ${ac_cv_c_compiler_gnu+y}
4152 printf %s "(cached) " >&6
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"
4174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4179 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 if test $ac_compiler_gnu = yes; then
4187 ac_test_CFLAGS=${CFLAGS+y}
4188 ac_save_CFLAGS=$CFLAGS
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4190 printf %s "checking whether $CC accepts -g... " >&6; }
4191 if test ${ac_cv_prog_cc_g+y}
4193 printf %s "(cached) " >&6
4195 ac_save_c_werror_flag=$ac_c_werror_flag
4196 ac_c_werror_flag=yes
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4210 if ac_fn_c_try_compile "$LINENO"
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4226 if ac_fn_c_try_compile "$LINENO"
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4243 if ac_fn_c_try_compile "$LINENO"
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4252 ac_c_werror_flag=$ac_save_c_werror_flag
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4255 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4256 if test $ac_test_CFLAGS; then
4257 CFLAGS=$ac_save_CFLAGS
4258 elif test $ac_cv_prog_cc_g = yes; then
4259 if test "$GCC" = yes; then
4265 if test "$GCC" = yes; then
4272 if test x$ac_prog_cc_stdc = xno
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4275 printf %s "checking for $CC option to enable C11 features... " >&6; }
4276 if test ${ac_cv_prog_cc_c11+y}
4278 printf %s "(cached) " >&6
4280 ac_cv_prog_cc_c11=no
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 $ac_c_conftest_c11_program
4286 for ac_arg in '' -std=gnu11
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"
4291 ac_cv_prog_cc_c11=$ac_arg
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam
4294 test "x$ac_cv_prog_cc_c11" != "xno" && break
4296 rm -f conftest.$ac_ext
4300 if test "x$ac_cv_prog_cc_c11" = xno
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 printf "%s\n" "unsupported" >&6; }
4305 if test "x$ac_cv_prog_cc_c11" = x
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 printf "%s\n" "none needed" >&6; }
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4311 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4312 CC="$CC $ac_cv_prog_cc_c11"
4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4318 if test x$ac_prog_cc_stdc = xno
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4321 printf %s "checking for $CC option to enable C99 features... " >&6; }
4322 if test ${ac_cv_prog_cc_c99+y}
4324 printf %s "(cached) " >&6
4326 ac_cv_prog_cc_c99=no
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 $ac_c_conftest_c99_program
4332 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4334 CC="$ac_save_CC $ac_arg"
4335 if ac_fn_c_try_compile "$LINENO"
4337 ac_cv_prog_cc_c99=$ac_arg
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340 test "x$ac_cv_prog_cc_c99" != "xno" && break
4342 rm -f conftest.$ac_ext
4346 if test "x$ac_cv_prog_cc_c99" = xno
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4351 if test "x$ac_cv_prog_cc_c99" = x
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4358 CC="$CC $ac_cv_prog_cc_c99"
4360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4364 if test x$ac_prog_cc_stdc = xno
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4367 printf %s "checking for $CC option to enable C89 features... " >&6; }
4368 if test ${ac_cv_prog_cc_c89+y}
4370 printf %s "(cached) " >&6
4372 ac_cv_prog_cc_c89=no
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 $ac_c_conftest_c89_program
4378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380 CC="$ac_save_CC $ac_arg"
4381 if ac_fn_c_try_compile "$LINENO"
4383 ac_cv_prog_cc_c89=$ac_arg
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam
4386 test "x$ac_cv_prog_cc_c89" != "xno" && break
4388 rm -f conftest.$ac_ext
4392 if test "x$ac_cv_prog_cc_c89" = xno
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 printf "%s\n" "unsupported" >&6; }
4397 if test "x$ac_cv_prog_cc_c89" = x
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400 printf "%s\n" "none needed" >&6; }
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4404 CC="$CC $ac_cv_prog_cc_c89"
4406 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 ac_header= ac_cache=
4419 for ac_item in $ac_header_c_list
4421 if test $ac_cache; then
4422 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4423 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4424 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4426 ac_header= ac_cache=
4427 elif test $ac_header; then
4441 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4444 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4454 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4455 if test ${ac_cv_safe_to_define___extensions__+y}
4457 printf %s "(cached) " >&6
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4462 # define __EXTENSIONS__ 1
4463 $ac_includes_default
4472 if ac_fn_c_try_compile "$LINENO"
4474 ac_cv_safe_to_define___extensions__=yes
4476 ac_cv_safe_to_define___extensions__=no
4478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4481 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4484 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4485 if test ${ac_cv_should_define__xopen_source+y}
4487 printf %s "(cached) " >&6
4489 ac_cv_should_define__xopen_source=no
4490 if test $ac_cv_header_wchar_h = yes
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4505 if ac_fn_c_try_compile "$LINENO"
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 #define _XOPEN_SOURCE 500
4523 if ac_fn_c_try_compile "$LINENO"
4525 ac_cv_should_define__xopen_source=yes
4527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4533 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4535 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4537 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4539 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4541 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4543 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4545 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4547 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4549 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4551 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4553 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4555 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4557 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4559 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4561 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4563 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4565 if test $ac_cv_header_minix_config_h = yes
4568 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4570 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4572 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4577 if test $ac_cv_safe_to_define___extensions__ = yes
4579 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4582 if test $ac_cv_should_define__xopen_source = yes
4584 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4591 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4592 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4593 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4594 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4595 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4597 if expr $YEAR ">" 1900 > /dev/null ; then
4598 E2FSPROGS_YEAR=$YEAR
4599 elif expr $YEAR ">" 90 >/dev/null ; then
4600 E2FSPROGS_YEAR=19$YEAR
4602 E2FSPROGS_YEAR=20$YEAR
4606 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4607 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4608 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4609 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4610 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4611 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4612 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4613 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4614 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4615 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4616 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4617 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4618 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4619 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4622 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4623 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4625 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4627 case $E2FSPROGS_VERSION in
4629 E2FSPROGS_PKGVER="$base_ver"
4630 E2FSPROGS_PKGREL="WIP.$date_spec"
4633 E2FSPROGS_PKGVER="$base_ver"
4634 E2FSPROGS_PKGREL="$base_rel"
4638 unset DATE MONTH YEAR base_ver pre_vers date_spec
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4640 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4642 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4644 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4654 # Check whether --with-diet-libc was given.
4655 if test ${with_diet_libc+y}
4657 withval=$with_diet_libc; CC="diet cc -nostdinc"
4663 LIBS="$LIBS -lcompat"
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4666 printf "%s\n" "CC=$CC" >&6; }
4671 # Make sure we can run config.sub.
4672 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4673 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4676 printf %s "checking build system type... " >&6; }
4677 if test ${ac_cv_build+y}
4679 printf %s "(cached) " >&6
4681 ac_build_alias=$build_alias
4682 test "x$ac_build_alias" = x &&
4683 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4684 test "x$ac_build_alias" = x &&
4685 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4686 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4687 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4691 printf "%s\n" "$ac_cv_build" >&6; }
4692 case $ac_cv_build in
4694 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4697 ac_save_IFS=$IFS; IFS='-'
4703 # Remember, the first character of IFS is used to create $*,
4704 # except with old shells:
4707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4711 printf %s "checking host system type... " >&6; }
4712 if test ${ac_cv_host+y}
4714 printf %s "(cached) " >&6
4716 if test "x$host_alias" = x; then
4717 ac_cv_host=$ac_cv_build
4719 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4720 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4725 printf "%s\n" "$ac_cv_host" >&6; }
4728 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4731 ac_save_IFS=$IFS; IFS='-'
4737 # Remember, the first character of IFS is used to create $*,
4738 # except with old shells:
4741 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4746 printf %s "checking for dlopen in -ldl... " >&6; }
4747 if test ${ac_cv_lib_dl_dlopen+y}
4749 printf %s "(cached) " >&6
4751 ac_check_lib_save_LIBS=$LIBS
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4756 /* Override any GCC internal prototype to avoid an error.
4757 Use char because int might match the return type of a GCC
4758 builtin and then its argument prototype would still apply. */
4768 if ac_fn_c_try_link "$LINENO"
4770 ac_cv_lib_dl_dlopen=yes
4772 ac_cv_lib_dl_dlopen=no
4774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4775 conftest$ac_exeext conftest.$ac_ext
4776 LIBS=$ac_check_lib_save_LIBS
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4779 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4780 if test "x$ac_cv_lib_dl_dlopen" = xyes
4787 # Check whether --with-cc was given.
4788 if test ${with_cc+y}
4790 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4794 # Check whether --with-ccopts was given.
4795 if test ${with_ccopts+y}
4797 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4801 # Check whether --with-ldopts was given.
4802 if test ${with_ldopts+y}
4804 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_CC+y}
4819 printf %s "(cached) " >&6
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 case $as_dir in #(((
4831 *) as_dir=$as_dir/ ;;
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4846 if test -n "$CC"; then
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848 printf "%s\n" "$CC" >&6; }
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4856 if test -z "$ac_cv_prog_CC"; then
4858 # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 printf %s "checking for $ac_word... " >&6; }
4862 if test ${ac_cv_prog_ac_ct_CC+y}
4864 printf %s "(cached) " >&6
4866 if test -n "$ac_ct_CC"; then
4867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 case $as_dir in #(((
4876 *) as_dir=$as_dir/ ;;
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_CC="gcc"
4881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 printf "%s\n" "$ac_ct_CC" >&6; }
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 printf "%s\n" "no" >&6; }
4899 if test "x$ac_ct_CC" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4914 if test -z "$CC"; then
4915 if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}cc; ac_word=$2
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 printf %s "checking for $ac_word... " >&6; }
4920 if test ${ac_cv_prog_CC+y}
4922 printf %s "(cached) " >&6
4924 if test -n "$CC"; then
4925 ac_cv_prog_CC="$CC" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 case $as_dir in #(((
4934 *) as_dir=$as_dir/ ;;
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_CC="${ac_tool_prefix}cc"
4939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4949 if test -n "$CC"; then
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4951 printf "%s\n" "$CC" >&6; }
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 printf "%s\n" "no" >&6; }
4960 if test -z "$CC"; then
4961 # Extract the first word of "cc", so it can be a program name with args.
4962 set dummy cc; ac_word=$2
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 printf %s "checking for $ac_word... " >&6; }
4965 if test ${ac_cv_prog_CC+y}
4967 printf %s "(cached) " >&6
4969 if test -n "$CC"; then
4970 ac_cv_prog_CC="$CC" # Let the user override the test.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 case $as_dir in #(((
4980 *) as_dir=$as_dir/ ;;
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4984 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4985 ac_prog_rejected=yes
4989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4996 if test $ac_prog_rejected = yes; then
4997 # We found a bogon in the path, so make sure we never use it.
4998 set dummy $ac_cv_prog_CC
5000 if test $# != 0; then
5001 # We chose a different compiler from the bogus one.
5002 # However, it has the same basename, so the bogon will be chosen
5003 # first if we set CC to just the basename; use the full file name.
5005 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5011 if test -n "$CC"; then
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5013 printf "%s\n" "$CC" >&6; }
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 printf "%s\n" "no" >&6; }
5021 if test -z "$CC"; then
5022 if test -n "$ac_tool_prefix"; then
5023 for ac_prog in cl.exe
5025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 printf %s "checking for $ac_word... " >&6; }
5029 if test ${ac_cv_prog_CC+y}
5031 printf %s "(cached) " >&6
5033 if test -n "$CC"; then
5034 ac_cv_prog_CC="$CC" # Let the user override the test.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 case $as_dir in #(((
5043 *) as_dir=$as_dir/ ;;
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5058 if test -n "$CC"; then
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5060 printf "%s\n" "$CC" >&6; }
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 printf "%s\n" "no" >&6; }
5067 test -n "$CC" && break
5070 if test -z "$CC"; then
5072 for ac_prog in cl.exe
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 printf %s "checking for $ac_word... " >&6; }
5078 if test ${ac_cv_prog_ac_ct_CC+y}
5080 printf %s "(cached) " >&6
5082 if test -n "$ac_ct_CC"; then
5083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 case $as_dir in #(((
5092 *) as_dir=$as_dir/ ;;
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_ac_ct_CC="$ac_prog"
5097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5107 if test -n "$ac_ct_CC"; then
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5109 printf "%s\n" "$ac_ct_CC" >&6; }
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 printf "%s\n" "no" >&6; }
5116 test -n "$ac_ct_CC" && break
5119 if test "x$ac_ct_CC" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5133 if test -z "$CC"; then
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}clang; ac_word=$2
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 printf %s "checking for $ac_word... " >&6; }
5139 if test ${ac_cv_prog_CC+y}
5141 printf %s "(cached) " >&6
5143 if test -n "$CC"; then
5144 ac_cv_prog_CC="$CC" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 case $as_dir in #(((
5153 *) as_dir=$as_dir/ ;;
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_CC="${ac_tool_prefix}clang"
5158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5168 if test -n "$CC"; then
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5170 printf "%s\n" "$CC" >&6; }
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 printf "%s\n" "no" >&6; }
5178 if test -z "$ac_cv_prog_CC"; then
5180 # Extract the first word of "clang", so it can be a program name with args.
5181 set dummy clang; ac_word=$2
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 printf %s "checking for $ac_word... " >&6; }
5184 if test ${ac_cv_prog_ac_ct_CC+y}
5186 printf %s "(cached) " >&6
5188 if test -n "$ac_ct_CC"; then
5189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 case $as_dir in #(((
5198 *) as_dir=$as_dir/ ;;
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_CC="clang"
5203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5213 if test -n "$ac_ct_CC"; then
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5215 printf "%s\n" "$ac_ct_CC" >&6; }
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 printf "%s\n" "no" >&6; }
5221 if test "x$ac_ct_CC" = x; then
5224 case $cross_compiling:$ac_tool_warned in
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5239 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error $? "no acceptable C compiler found in \$PATH
5242 See \`config.log' for more details" "$LINENO" 5; }
5244 # Provide some information about the compiler.
5245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5248 for ac_option in --version -v -V -qversion -version; do
5249 { { ac_try="$ac_compiler $ac_option >&5"
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255 printf "%s\n" "$ac_try_echo"; } >&5
5256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5258 if test -s conftest.err; then
5260 ... rest of stderr output deleted ...
5261 10q' conftest.err >conftest.er1
5262 cat conftest.er1 >&5
5264 rm -f conftest.er1 conftest.err
5265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5270 printf %s "checking whether the compiler supports GNU C... " >&6; }
5271 if test ${ac_cv_c_compiler_gnu+y}
5273 printf %s "(cached) " >&6
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5289 if ac_fn_c_try_compile "$LINENO"
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5300 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303 if test $ac_compiler_gnu = yes; then
5308 ac_test_CFLAGS=${CFLAGS+y}
5309 ac_save_CFLAGS=$CFLAGS
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5311 printf %s "checking whether $CC accepts -g... " >&6; }
5312 if test ${ac_cv_prog_cc_g+y}
5314 printf %s "(cached) " >&6
5316 ac_save_c_werror_flag=$ac_c_werror_flag
5317 ac_c_werror_flag=yes
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5331 if ac_fn_c_try_compile "$LINENO"
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5347 if ac_fn_c_try_compile "$LINENO"
5351 ac_c_werror_flag=$ac_save_c_werror_flag
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5364 if ac_fn_c_try_compile "$LINENO"
5368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373 ac_c_werror_flag=$ac_save_c_werror_flag
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5376 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5377 if test $ac_test_CFLAGS; then
5378 CFLAGS=$ac_save_CFLAGS
5379 elif test $ac_cv_prog_cc_g = yes; then
5380 if test "$GCC" = yes; then
5386 if test "$GCC" = yes; then
5393 if test x$ac_prog_cc_stdc = xno
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5396 printf %s "checking for $CC option to enable C11 features... " >&6; }
5397 if test ${ac_cv_prog_cc_c11+y}
5399 printf %s "(cached) " >&6
5401 ac_cv_prog_cc_c11=no
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 $ac_c_conftest_c11_program
5407 for ac_arg in '' -std=gnu11
5409 CC="$ac_save_CC $ac_arg"
5410 if ac_fn_c_try_compile "$LINENO"
5412 ac_cv_prog_cc_c11=$ac_arg
5414 rm -f core conftest.err conftest.$ac_objext conftest.beam
5415 test "x$ac_cv_prog_cc_c11" != "xno" && break
5417 rm -f conftest.$ac_ext
5421 if test "x$ac_cv_prog_cc_c11" = xno
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5424 printf "%s\n" "unsupported" >&6; }
5426 if test "x$ac_cv_prog_cc_c11" = x
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5429 printf "%s\n" "none needed" >&6; }
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5432 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5433 CC="$CC $ac_cv_prog_cc_c11"
5435 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5439 if test x$ac_prog_cc_stdc = xno
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5442 printf %s "checking for $CC option to enable C99 features... " >&6; }
5443 if test ${ac_cv_prog_cc_c99+y}
5445 printf %s "(cached) " >&6
5447 ac_cv_prog_cc_c99=no
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 $ac_c_conftest_c99_program
5453 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5455 CC="$ac_save_CC $ac_arg"
5456 if ac_fn_c_try_compile "$LINENO"
5458 ac_cv_prog_cc_c99=$ac_arg
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam
5461 test "x$ac_cv_prog_cc_c99" != "xno" && break
5463 rm -f conftest.$ac_ext
5467 if test "x$ac_cv_prog_cc_c99" = xno
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470 printf "%s\n" "unsupported" >&6; }
5472 if test "x$ac_cv_prog_cc_c99" = x
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5475 printf "%s\n" "none needed" >&6; }
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5478 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5479 CC="$CC $ac_cv_prog_cc_c99"
5481 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5485 if test x$ac_prog_cc_stdc = xno
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5488 printf %s "checking for $CC option to enable C89 features... " >&6; }
5489 if test ${ac_cv_prog_cc_c89+y}
5491 printf %s "(cached) " >&6
5493 ac_cv_prog_cc_c89=no
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 $ac_c_conftest_c89_program
5499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5501 CC="$ac_save_CC $ac_arg"
5502 if ac_fn_c_try_compile "$LINENO"
5504 ac_cv_prog_cc_c89=$ac_arg
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam
5507 test "x$ac_cv_prog_cc_c89" != "xno" && break
5509 rm -f conftest.$ac_ext
5513 if test "x$ac_cv_prog_cc_c89" = xno
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5516 printf "%s\n" "unsupported" >&6; }
5518 if test "x$ac_cv_prog_cc_c89" = x
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5521 printf "%s\n" "none needed" >&6; }
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5524 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5525 CC="$CC $ac_cv_prog_cc_c89"
5527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5538 if test "$GCC" = yes; then
5539 RDYNAMIC="-rdynamic"
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5548 printf %s "checking how to run the C preprocessor... " >&6; }
5549 # On Suns, sometimes $CPP names a directory.
5550 if test -n "$CPP" && test -d "$CPP"; then
5553 if test -z "$CPP"; then
5554 if test ${ac_cv_prog_CPP+y}
5556 printf %s "(cached) " >&6
5558 # Double quotes because $CC needs to be expanded
5559 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5562 for ac_c_preproc_warn_flag in '' yes
5564 # Use a header file that comes with gcc, so configuring glibc
5565 # with a fresh cross-compiler works.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5573 if ac_fn_c_try_cpp "$LINENO"
5577 # Broken: fails on valid input.
5580 rm -f conftest.err conftest.i conftest.$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5588 if ac_fn_c_try_cpp "$LINENO"
5590 # Broken: success on invalid input.
5593 # Passes both tests.
5597 rm -f conftest.err conftest.i conftest.$ac_ext
5600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601 rm -f conftest.i conftest.err conftest.$ac_ext
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5616 printf "%s\n" "$CPP" >&6; }
5618 for ac_c_preproc_warn_flag in '' yes
5620 # Use a header file that comes with gcc, so configuring glibc
5621 # with a fresh cross-compiler works.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5629 if ac_fn_c_try_cpp "$LINENO"
5633 # Broken: fails on valid input.
5636 rm -f conftest.err conftest.i conftest.$ac_ext
5638 # OK, works on sane cases. Now check whether nonexistent headers
5639 # can be detected and how.
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <ac_nonexistent.h>
5644 if ac_fn_c_try_cpp "$LINENO"
5646 # Broken: success on invalid input.
5649 # Passes both tests.
5653 rm -f conftest.err conftest.i conftest.$ac_ext
5656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5657 rm -f conftest.i conftest.err conftest.$ac_ext
5662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5664 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5665 See \`config.log' for more details" "$LINENO" 5; }
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5675 printf %s "checking for additional special compiler flags... " >&6; }
5676 if test "$GCC" = yes
5679 alpha) addcflags="-mieee" ;;
5682 if test "x$addcflags" != x
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5685 printf "%s\n" "$addcflags" >&6; }
5686 CFLAGS="$addcflags $CFLAGS"
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5689 printf "%s\n" "(none)" >&6; }
5695 # Check whether --with-root-prefix was given.
5696 if test ${with_root_prefix+y}
5698 withval=$with_root_prefix; root_prefix=$withval
5702 # Check whether --enable-maintainer-mode was given.
5703 if test ${enable_maintainer_mode+y}
5705 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5709 printf "%s\n" "Disabling maintainer mode" >&6; }
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5713 printf "%s\n" "Enabling maintainer mode" >&6; }
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5719 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5724 # Check whether --enable-symlink-install was given.
5725 if test ${enable_symlink_install+y}
5727 enableval=$enable_symlink_install; if test "$enableval" = "no"
5729 LINK_INSTALL_FLAGS=-f
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5731 printf "%s\n" "Disabling symlinks for install" >&6; }
5733 LINK_INSTALL_FLAGS=-sf
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5735 printf "%s\n" "Enabling symlinks for install" >&6; }
5739 LINK_INSTALL_FLAGS=-f
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5741 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5746 relative_symlink_defined=
5747 # Check whether --enable-relative-symlinks was given.
5748 if test ${enable_relative_symlinks+y}
5750 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5753 relative_symlink_defined=yes
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5755 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5757 SYMLINK_RELATIVE=--relative
5758 relative_symlink_defined=yes
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5760 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5764 # Check whether --enable-symlink-relative-symlinks was given.
5765 if test ${enable_symlink_relative_symlinks+y}
5767 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5769 SYMLINK_RELATIVE=yes
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5771 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5773 SYMLINK_RELATIVE=--relative
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5775 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5779 if test -z "$relative_symlink_defined"
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5783 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5789 # Check whether --enable-symlink-build was given.
5790 if test ${enable_symlink_build+y}
5792 enableval=$enable_symlink_build; if test "$enableval" = "no"
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5796 printf "%s\n" "Disabling symlinks for build" >&6; }
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5800 printf "%s\n" "Enabling symlinks for build" >&6; }
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5806 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5811 # Check whether --enable-verbose-makecmds was given.
5812 if test ${enable_verbose_makecmds+y}
5814 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5817 printf "%s\n" "Disabling verbose make commands" >&6; }
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5823 printf "%s\n" "Enabling verbose make commands" >&6; }
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5831 printf "%s\n" "Disabling verbose make commands" >&6; }
5841 E2_PKG_CONFIG_STATIC=--static
5844 # Check whether --enable-elf-shlibs was given.
5845 if test ${enable_elf_shlibs+y}
5847 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5850 MAKEFILE_ELF=/dev/null
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5852 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5854 E2_PKG_CONFIG_STATIC=
5856 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5859 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5865 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5867 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5871 MAKEFILE_ELF=/dev/null
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5874 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5880 # Check whether --enable-bsd-shlibs was given.
5881 if test ${enable_bsd_shlibs+y}
5883 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5886 MAKEFILE_BSDLIB=/dev/null
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5888 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5890 E2_PKG_CONFIG_STATIC=
5892 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5896 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5901 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5905 MAKEFILE_BSDLIB=/dev/null
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5908 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5914 # Check whether --enable-profile was given.
5915 if test ${enable_profile+y}
5917 enableval=$enable_profile; if test "$enableval" = "no"
5920 MAKEFILE_PROFILE=/dev/null
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5922 printf "%s\n" "Disabling profiling libraries" >&6; }
5925 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5926 PROFILED_LIB_EXT=_p.a
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5928 printf "%s\n" "Building profiling libraries" >&6; }
5933 MAKEFILE_PROFILE=/dev/null
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5935 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5941 # Check whether --enable-gcov was given.
5942 if test ${enable_gcov+y}
5944 enableval=$enable_gcov; if test "$enableval" = "yes"
5946 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5947 LDFLAGS="-fprofile-arcs -ftest-coverage"
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5949 printf "%s\n" "Enabling gcov support" >&6; }
5954 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5955 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5956 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5957 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5958 # Check whether --enable-hardening was given.
5959 if test ${enable_hardening+y}
5961 enableval=$enable_hardening; if test "$enableval" = "yes"
5963 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5964 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5965 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5966 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5967 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5968 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5969 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5970 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5972 printf "%s\n" "Enabling hardening support" >&6; }
5982 # Check whether --enable-jbd-debug was given.
5983 if test ${enable_jbd_debug+y}
5985 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5988 printf "%s\n" "Disabling journal debugging" >&6; }
5991 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5994 printf "%s\n" "Enabling journal debugging" >&6; }
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5999 printf "%s\n" "Disabling journal debugging by default" >&6; }
6003 # Check whether --enable-blkid-debug was given.
6004 if test ${enable_blkid_debug+y}
6006 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6009 printf "%s\n" "Disabling blkid debugging" >&6; }
6012 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6015 printf "%s\n" "Enabling blkid debugging" >&6; }
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6020 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6024 # Check whether --enable-testio-debug was given.
6025 if test ${enable_testio_debug+y}
6027 enableval=$enable_testio_debug;
6028 if test "$enableval" = "no"
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6031 printf "%s\n" "Disabling testio debugging" >&6; }
6035 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6038 printf "%s\n" "Enabling testio debugging" >&6; }
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6043 printf "%s\n" "Enabling testio debugging by default" >&6; }
6044 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6051 # Check whether --enable-developer-features was given.
6052 if test ${enable_developer_features+y}
6054 enableval=$enable_developer_features;
6055 if test "$enableval" = "yes"
6058 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6061 printf "%s\n" "Enabling ext4 developer features" >&6; }
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6064 printf "%s\n" "Disabling ext4 developer features" >&6; }
6065 DEV_FEATURES_CMT="#"
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6070 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6083 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6084 if test -n "$ac_tool_prefix"; then
6085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 printf %s "checking for $ac_word... " >&6; }
6089 if test ${ac_cv_path_PKG_CONFIG+y}
6091 printf %s "(cached) " >&6
6095 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 case $as_dir in #(((
6105 *) as_dir=$as_dir/ ;;
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6109 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6121 if test -n "$PKG_CONFIG"; then
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6123 printf "%s\n" "$PKG_CONFIG" >&6; }
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 printf "%s\n" "no" >&6; }
6131 if test -z "$ac_cv_path_PKG_CONFIG"; then
6132 ac_pt_PKG_CONFIG=$PKG_CONFIG
6133 # Extract the first word of "pkg-config", so it can be a program name with args.
6134 set dummy pkg-config; ac_word=$2
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 printf %s "checking for $ac_word... " >&6; }
6137 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6139 printf %s "(cached) " >&6
6141 case $ac_pt_PKG_CONFIG in
6143 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 case $as_dir in #(((
6153 *) as_dir=$as_dir/ ;;
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6157 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6168 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6169 if test -n "$ac_pt_PKG_CONFIG"; then
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6171 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 printf "%s\n" "no" >&6; }
6177 if test "x$ac_pt_PKG_CONFIG" = x; then
6180 case $cross_compiling:$ac_tool_warned in
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6186 PKG_CONFIG=$ac_pt_PKG_CONFIG
6189 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6193 if test -n "$PKG_CONFIG"; then
6194 _pkg_min_version=0.9.0
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6196 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6197 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199 printf "%s\n" "yes" >&6; }
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 printf "%s\n" "no" >&6; }
6211 DEPPROFILED_LIBUUID=
6213 # Check whether --enable-libuuid was given.
6214 if test ${enable_libuuid+y}
6216 enableval=$enable_libuuid; if test "$enableval" = "no"
6218 if test -z "$PKG_CONFIG"; then
6219 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6223 printf %s "checking for uuid_generate in -luuid... " >&6; }
6224 if test ${ac_cv_lib_uuid_uuid_generate+y}
6226 printf %s "(cached) " >&6
6228 ac_check_lib_save_LIBS=$LIBS
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6236 char uuid_generate ();
6240 return uuid_generate ();
6245 if ac_fn_c_try_link "$LINENO"
6247 ac_cv_lib_uuid_uuid_generate=yes
6249 ac_cv_lib_uuid_uuid_generate=no
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6252 conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6256 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6257 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6259 LIBUUID=`$PKG_CONFIG --libs uuid`;
6260 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6262 as_fn_error $? "external uuid library not found" "$LINENO" 5
6265 PROFILED_LIBUUID=$LIBUUID
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6268 printf "%s\n" "Disabling private uuid library" >&6; }
6270 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6272 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6273 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6274 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6275 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6277 printf "%s\n" "Enabling private uuid library" >&6; }
6281 if test -n "$PKG_CONFIG"; then
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6283 printf %s "checking for uuid_generate in -luuid... " >&6; }
6284 if test ${ac_cv_lib_uuid_uuid_generate+y}
6286 printf %s "(cached) " >&6
6288 ac_check_lib_save_LIBS=$LIBS
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6293 /* Override any GCC internal prototype to avoid an error.
6294 Use char because int might match the return type of a GCC
6295 builtin and then its argument prototype would still apply. */
6296 char uuid_generate ();
6300 return uuid_generate ();
6305 if ac_fn_c_try_link "$LINENO"
6307 ac_cv_lib_uuid_uuid_generate=yes
6309 ac_cv_lib_uuid_uuid_generate=no
6311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6312 conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6316 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6317 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6319 LIBUUID=`$PKG_CONFIG --libs uuid`;
6320 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6324 if test -n "$LIBUUID"; then
6325 PROFILED_LIBUUID=$LIBUUID
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6328 printf "%s\n" "Using system uuid by default" >&6; }
6330 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6332 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6333 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6334 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6335 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6337 printf "%s\n" "Enabling private uuid library by default" >&6; }
6356 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6357 if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 printf %s "checking for $ac_word... " >&6; }
6362 if test ${ac_cv_path_PKG_CONFIG+y}
6364 printf %s "(cached) " >&6
6368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 case $as_dir in #(((
6378 *) as_dir=$as_dir/ ;;
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6382 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6393 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6394 if test -n "$PKG_CONFIG"; then
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6396 printf "%s\n" "$PKG_CONFIG" >&6; }
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 printf "%s\n" "no" >&6; }
6404 if test -z "$ac_cv_path_PKG_CONFIG"; then
6405 ac_pt_PKG_CONFIG=$PKG_CONFIG
6406 # Extract the first word of "pkg-config", so it can be a program name with args.
6407 set dummy pkg-config; ac_word=$2
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 printf %s "checking for $ac_word... " >&6; }
6410 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6412 printf %s "(cached) " >&6
6414 case $ac_pt_PKG_CONFIG in
6416 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 case $as_dir in #(((
6426 *) as_dir=$as_dir/ ;;
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6441 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6442 if test -n "$ac_pt_PKG_CONFIG"; then
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6444 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
6450 if test "x$ac_pt_PKG_CONFIG" = x; then
6453 case $cross_compiling:$ac_tool_warned in
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6459 PKG_CONFIG=$ac_pt_PKG_CONFIG
6462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6466 if test -n "$PKG_CONFIG"; then
6467 _pkg_min_version=0.9.0
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6469 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6472 printf "%s\n" "yes" >&6; }
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 printf "%s\n" "no" >&6; }
6484 DEPPROFILED_LIBBLKID=
6487 # Check whether --enable-libblkid was given.
6488 if test ${enable_libblkid+y}
6490 enableval=$enable_libblkid; if test "$enableval" = "no"
6492 if test -z "$PKG_CONFIG"; then
6493 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6497 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6498 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6500 printf %s "(cached) " >&6
6502 ac_check_lib_save_LIBS=$LIBS
6503 LIBS="-lblkid -luuid $LIBS"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 /* Override any GCC internal prototype to avoid an error.
6508 Use char because int might match the return type of a GCC
6509 builtin and then its argument prototype would still apply. */
6510 char blkid_get_cache ();
6514 return blkid_get_cache ();
6519 if ac_fn_c_try_link "$LINENO"
6521 ac_cv_lib_blkid_blkid_get_cache=yes
6523 ac_cv_lib_blkid_blkid_get_cache=no
6525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6526 conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_check_lib_save_LIBS
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6530 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6531 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6533 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6534 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6536 as_fn_error $? "external blkid library not found" "$LINENO" 5
6540 PROFILED_LIBBLKID=$LIBBLKID
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6542 printf "%s\n" "Disabling private blkid library" >&6; }
6544 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6545 DEPLIBBLKID=$LIBBLKID
6546 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6547 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6548 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6549 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6550 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6553 printf "%s\n" "Enabling private blkid library" >&6; }
6557 if test -n "$PKG_CONFIG"; then
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6559 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6560 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6562 printf %s "(cached) " >&6
6564 ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-lblkid $LIBS"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6572 char blkid_get_cache ();
6576 return blkid_get_cache ();
6581 if ac_fn_c_try_link "$LINENO"
6583 ac_cv_lib_blkid_blkid_get_cache=yes
6585 ac_cv_lib_blkid_blkid_get_cache=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6588 conftest$ac_exeext conftest.$ac_ext
6589 LIBS=$ac_check_lib_save_LIBS
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6592 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6593 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6595 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6596 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6600 if test -n "$LIBBLKID"; then
6602 PROFILED_LIBBLKID=$LIBBLKID
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6604 printf "%s\n" "Using system blkid library by default" >&6; }
6606 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6607 DEPLIBBLKID=$LIBBLKID
6608 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6609 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6610 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6611 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6612 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6615 printf "%s\n" "Enabling private blkid library by default" >&6; }
6629 # Check whether --enable-subset was given.
6630 if test ${enable_subset+y}
6632 enableval=$enable_subset; if test "$enableval" = "no"
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6636 printf "%s\n" "Disabling subset-only build" >&6; }
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6640 printf "%s\n" "Enabling subset-only-build" >&6; }
6648 # Check whether --enable-backtrace was given.
6649 if test ${enable_backtrace+y}
6651 enableval=$enable_backtrace; if test "$enableval" = "no"
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6654 printf "%s\n" "Disabling use of backtrace" >&6; }
6655 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6659 printf "%s\n" "Enabling use of backtrace" >&6; }
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6664 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6668 # Check whether --enable-debugfs was given.
6669 if test ${enable_debugfs+y}
6671 enableval=$enable_debugfs; if test "$enableval" = "no"
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6674 printf "%s\n" "Disabling debugfs support" >&6; }
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6679 printf "%s\n" "Enabling debugfs support" >&6; }
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6684 printf "%s\n" "Enabling debugfs support by default" >&6; }
6690 # Check whether --enable-imager was given.
6691 if test ${enable_imager+y}
6693 enableval=$enable_imager; if test "$enableval" = "no"
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6696 printf "%s\n" "Disabling e2image support" >&6; }
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6701 printf "%s\n" "Enabling e2image support" >&6; }
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6706 printf "%s\n" "Enabling e2image support by default" >&6; }
6712 # Check whether --enable-resizer was given.
6713 if test ${enable_resizer+y}
6715 enableval=$enable_resizer; if test "$enableval" = "no"
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6718 printf "%s\n" "Disabling e2resize support" >&6; }
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6723 printf "%s\n" "Enabling e2resize support" >&6; }
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6728 printf "%s\n" "Enabling e2resize support by default" >&6; }
6734 # Check whether --enable-defrag was given.
6735 if test ${enable_defrag+y}
6737 enableval=$enable_defrag; if test "$enableval" = "no"
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6740 printf "%s\n" "Disabling e4defrag support" >&6; }
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6745 printf "%s\n" "Enabling e4defrag support" >&6; }
6749 if test -z "$WITH_DIET_LIBC"
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6752 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6756 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6763 # Check whether --enable-fsck was given.
6764 if test ${enable_fsck+y}
6766 enableval=$enable_fsck; if test "$enableval" = "no"
6768 FSCK_PROG='' FSCK_MAN=''
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6770 printf "%s\n" "Not building fsck wrapper" >&6; }
6772 FSCK_PROG=fsck FSCK_MAN=fsck.8
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6774 printf "%s\n" "Building fsck wrapper" >&6; }
6780 FSCK_PROG='' FSCK_MAN=''
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6782 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6785 FSCK_PROG=fsck FSCK_MAN=fsck.8
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6787 printf "%s\n" "Building fsck wrapper by default" >&6; }
6794 # Check whether --enable-e2initrd-helper was given.
6795 if test ${enable_e2initrd_helper+y}
6797 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6799 E2INITRD_PROG='' E2INITRD_MAN=''
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6801 printf "%s\n" "Not building e2initrd helper" >&6; }
6803 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6805 printf "%s\n" "Building e2initrd helper" >&6; }
6809 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6811 printf "%s\n" "Building e2initrd helper by default" >&6; }
6817 # Check whether --enable-tls was given.
6818 if test ${enable_tls+y}
6820 enableval=$enable_tls; if test "$enableval" = "no"
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6824 printf "%s\n" "Disabling thread local support" >&6; }
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6828 printf "%s\n" "Enabling thread local support" >&6; }
6832 if test -n "$WITH_DIET_LIBC"
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6836 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6840 printf "%s\n" "Try using thread local support by default" >&6; }
6845 if test "$try_tls" = "yes"
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6849 printf %s "checking for thread local storage (TLS) class... " >&6; }
6850 if test ${ac_cv_tls+y}
6852 printf %s "(cached) " >&6
6855 ax_tls_keywords="__thread __declspec(thread) none"
6856 for ax_tls_keyword in $ax_tls_keywords; do
6857 case $ax_tls_keyword in
6858 none) ac_cv_tls=none ; break ;;
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6865 static $ax_tls_keyword int bar;
6876 if ac_fn_c_try_compile "$LINENO"
6878 ac_cv_tls=$ax_tls_keyword ; break
6883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6890 if test "$ac_cv_tls" != "none"; then
6892 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6896 printf "%s\n" "$ac_cv_tls" >&6; }
6900 # Check whether --with-pthread was given.
6901 if test ${with_pthread+y}
6903 withval=$with_pthread; if test "$withval" = "no"
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6907 printf "%s\n" "Disabling pthread support" >&6; }
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6911 printf "%s\n" "Testing for pthread support" >&6; }
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6917 printf "%s\n" "Try testing for pthread support by default" >&6; }
6921 if test "$try_pthread" = "yes"
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6924 printf %s "checking for a sed that does not truncate output... " >&6; }
6925 if test ${ac_cv_path_SED+y}
6927 printf %s "(cached) " >&6
6929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6930 for ac_i in 1 2 3 4 5 6 7; do
6931 ac_script="$ac_script$as_nl$ac_script"
6933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6934 { ac_script=; unset ac_script;}
6935 if test -z "$SED"; then
6936 ac_path_SED_found=false
6937 # Loop through the user's path and test for each of PROGNAME-LIST
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 case $as_dir in #(((
6945 *) as_dir=$as_dir/ ;;
6947 for ac_prog in sed gsed
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6951 as_fn_executable_p "$ac_path_SED" || continue
6952 # Check for GNU ac_path_SED and select it if it is found.
6953 # Check for GNU $ac_path_SED
6954 case `"$ac_path_SED" --version 2>&1` in
6956 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6959 printf %s 0123456789 >"conftest.in"
6962 cat "conftest.in" "conftest.in" >"conftest.tmp"
6963 mv "conftest.tmp" "conftest.in"
6964 cp "conftest.in" "conftest.nl"
6965 printf "%s\n" '' >> "conftest.nl"
6966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6968 as_fn_arith $ac_count + 1 && ac_count=$as_val
6969 if test $ac_count -gt ${ac_path_SED_max-0}; then
6970 # Best one so far, save it but keep looking for a better one
6971 ac_cv_path_SED="$ac_path_SED"
6972 ac_path_SED_max=$ac_count
6974 # 10*(2^10) chars as input seems more than enough
6975 test $ac_count -gt 10 && break
6977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6980 $ac_path_SED_found && break 3
6985 if test -z "$ac_cv_path_SED"; then
6986 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6994 printf "%s\n" "$ac_cv_path_SED" >&6; }
6995 SED="$ac_cv_path_SED"
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7000 printf %s "checking for grep that handles long lines and -e... " >&6; }
7001 if test ${ac_cv_path_GREP+y}
7003 printf %s "(cached) " >&6
7005 if test -z "$GREP"; then
7006 ac_path_GREP_found=false
7007 # Loop through the user's path and test for each of PROGNAME-LIST
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7012 case $as_dir in #(((
7015 *) as_dir=$as_dir/ ;;
7017 for ac_prog in grep ggrep
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7021 as_fn_executable_p "$ac_path_GREP" || continue
7022 # Check for GNU ac_path_GREP and select it if it is found.
7023 # Check for GNU $ac_path_GREP
7024 case `"$ac_path_GREP" --version 2>&1` in
7026 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7029 printf %s 0123456789 >"conftest.in"
7032 cat "conftest.in" "conftest.in" >"conftest.tmp"
7033 mv "conftest.tmp" "conftest.in"
7034 cp "conftest.in" "conftest.nl"
7035 printf "%s\n" 'GREP' >> "conftest.nl"
7036 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7038 as_fn_arith $ac_count + 1 && ac_count=$as_val
7039 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7040 # Best one so far, save it but keep looking for a better one
7041 ac_cv_path_GREP="$ac_path_GREP"
7042 ac_path_GREP_max=$ac_count
7044 # 10*(2^10) chars as input seems more than enough
7045 test $ac_count -gt 10 && break
7047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7050 $ac_path_GREP_found && break 3
7055 if test -z "$ac_cv_path_GREP"; then
7056 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7059 ac_cv_path_GREP=$GREP
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7064 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7065 GREP="$ac_cv_path_GREP"
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7069 printf %s "checking for egrep... " >&6; }
7070 if test ${ac_cv_path_EGREP+y}
7072 printf %s "(cached) " >&6
7074 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7075 then ac_cv_path_EGREP="$GREP -E"
7077 if test -z "$EGREP"; then
7078 ac_path_EGREP_found=false
7079 # Loop through the user's path and test for each of PROGNAME-LIST
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7084 case $as_dir in #(((
7087 *) as_dir=$as_dir/ ;;
7089 for ac_prog in egrep
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7093 as_fn_executable_p "$ac_path_EGREP" || continue
7094 # Check for GNU ac_path_EGREP and select it if it is found.
7095 # Check for GNU $ac_path_EGREP
7096 case `"$ac_path_EGREP" --version 2>&1` in
7098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7101 printf %s 0123456789 >"conftest.in"
7104 cat "conftest.in" "conftest.in" >"conftest.tmp"
7105 mv "conftest.tmp" "conftest.in"
7106 cp "conftest.in" "conftest.nl"
7107 printf "%s\n" 'EGREP' >> "conftest.nl"
7108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7110 as_fn_arith $ac_count + 1 && ac_count=$as_val
7111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7112 # Best one so far, save it but keep looking for a better one
7113 ac_cv_path_EGREP="$ac_path_EGREP"
7114 ac_path_EGREP_max=$ac_count
7116 # 10*(2^10) chars as input seems more than enough
7117 test $ac_count -gt 10 && break
7119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7122 $ac_path_EGREP_found && break 3
7127 if test -z "$ac_cv_path_EGREP"; then
7128 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7131 ac_cv_path_EGREP=$EGREP
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7137 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7138 EGREP="$ac_cv_path_EGREP"
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153 # We used to check for pthread.h first, but this fails if pthread.h
7154 # requires special compiler flags (e.g. on Tru64 or Sequent).
7155 # It gets checked for in the link test anyway.
7157 # First of all, check if the user has set any of the PTHREAD_LIBS,
7158 # etcetera environment variables, and if threads linking works using
7160 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7161 ax_pthread_save_CC="$CC"
7162 ax_pthread_save_CFLAGS="$CFLAGS"
7163 ax_pthread_save_LIBS="$LIBS"
7164 if test "x$PTHREAD_CC" != "x"
7168 if test "x$PTHREAD_CXX" != "x"
7172 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7173 LIBS="$PTHREAD_LIBS $LIBS"
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7175 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7179 /* Override any GCC internal prototype to avoid an error.
7180 Use char because int might match the return type of a GCC
7181 builtin and then its argument prototype would still apply. */
7182 char pthread_join ();
7186 return pthread_join ();
7191 if ac_fn_c_try_link "$LINENO"
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7196 conftest$ac_exeext conftest.$ac_ext
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7198 printf "%s\n" "$ax_pthread_ok" >&6; }
7199 if test "x$ax_pthread_ok" = "xno"; then
7203 CC="$ax_pthread_save_CC"
7204 CFLAGS="$ax_pthread_save_CFLAGS"
7205 LIBS="$ax_pthread_save_LIBS"
7208 # We must check for the threads library under a number of different
7209 # names; the ordering is very important because some systems
7210 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7211 # libraries is broken (non-POSIX).
7213 # Create a list of thread flags to try. Items with a "," contain both
7214 # C compiler flags (before ",") and linker flags (after ","). Other items
7215 # starting with a "-" are C compiler flags, and remaining items are
7216 # library names, except for "none" which indicates that we try without
7217 # any flags at all, and "pthread-config" which is a program returning
7218 # the flags for the Pth emulation library.
7220 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7222 # The ordering *is* (sometimes) important. Some notes on the
7223 # individual items follow:
7225 # pthreads: AIX (must check this before -lpthread)
7226 # none: in case threads are in libc; should be tried before -Kthread and
7227 # other compiler flags to prevent continual compiler warnings
7228 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7229 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7230 # (Note: HP C rejects this with "bad form for `-t' option")
7231 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7232 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7233 # doesn't hurt to check since this sometimes defines pthreads and
7234 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7235 # is present but should not be used directly; and before -mthreads,
7236 # because the compiler interprets this as "-mt" + "-hreads")
7237 # -mthreads: Mingw32/gcc, Lynx/gcc
7238 # pthread: Linux, etcetera
7239 # --thread-safe: KAI C++
7240 # pthread-config: use pthread-config program (for GNU Pth library)
7246 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7247 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7249 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7254 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7255 # multi-threading and also sets -lpthread."
7257 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7262 # IBM z/OS requires a feature-test macro to be defined in order to
7263 # enable POSIX threads at all, so give the user a hint if this is
7264 # not set. (We don't define these ourselves, as they can affect
7265 # other portions of the system API in unpredictable ways.)
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7270 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7271 AX_PTHREAD_ZOS_MISSING
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7278 { 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
7279 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7287 # On Solaris (at least, for some versions), libc contains stubbed
7288 # (non-functional) versions of the pthreads routines, so link-based
7289 # tests will erroneously succeed. (N.B.: The stubs are missing
7290 # pthread_cleanup_push, or rather a function called by this macro,
7291 # so we could check for that, but who knows whether they'll stub
7292 # that too in a future libc.) So we'll check first for the
7293 # standard Solaris way of linking pthreads (-mt -lpthread).
7295 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7299 # Are we compiling with Clang?
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7302 printf %s "checking whether $CC is Clang... " >&6; }
7303 if test ${ax_cv_PTHREAD_CLANG+y}
7305 printf %s "(cached) " >&6
7307 ax_cv_PTHREAD_CLANG=no
7308 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7309 if test "x$GCC" = "xyes"; then
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7313 # if defined(__clang__) && defined(__llvm__)
7314 AX_PTHREAD_CC_IS_CLANG
7318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7319 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7321 ax_cv_PTHREAD_CLANG=yes
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7329 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7330 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7333 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7335 # Note that for GCC and Clang -pthread generally implies -lpthread,
7336 # except when -nostdlib is passed.
7337 # This is problematic using libtool to build C++ shared libraries with pthread:
7338 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7339 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7340 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7341 # To solve this, first try -pthread together with -lpthread for GCC
7343 if test "x$GCC" = "xyes"
7345 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7348 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7350 if test "x$ax_pthread_clang" = "xyes"
7352 ax_pthread_flags="-pthread,-lpthread -pthread"
7356 # The presence of a feature test macro requesting re-entrant function
7357 # definitions is, on some systems, a strong hint that pthreads support is
7361 darwin* | hpux* | linux* | osf* | solaris*)
7362 ax_pthread_check_macro="_REENTRANT"
7366 ax_pthread_check_macro="_THREAD_SAFE"
7370 ax_pthread_check_macro="--"
7373 if test "x$ax_pthread_check_macro" = "x--"
7375 ax_pthread_check_cond=0
7377 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7381 if test "x$ax_pthread_ok" = "xno"; then
7382 for ax_pthread_try_flag in $ax_pthread_flags; do
7384 case $ax_pthread_try_flag in
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7387 printf %s "checking whether pthreads work without any flags... " >&6; }
7391 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7392 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7394 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7399 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7400 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7404 # Extract the first word of "pthread-config", so it can be a program name with args.
7405 set dummy pthread-config; ac_word=$2
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 printf %s "checking for $ac_word... " >&6; }
7408 if test ${ac_cv_prog_ax_pthread_config+y}
7410 printf %s "(cached) " >&6
7412 if test -n "$ax_pthread_config"; then
7413 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 case $as_dir in #(((
7422 *) as_dir=$as_dir/ ;;
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_ax_pthread_config="yes"
7427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7434 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7437 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7438 if test -n "$ax_pthread_config"; then
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7440 printf "%s\n" "$ax_pthread_config" >&6; }
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 printf "%s\n" "no" >&6; }
7447 if test "x$ax_pthread_config" = "xno"
7451 PTHREAD_CFLAGS="`pthread-config --cflags`"
7452 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7457 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7458 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7462 ax_pthread_save_CFLAGS="$CFLAGS"
7463 ax_pthread_save_LIBS="$LIBS"
7464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7465 LIBS="$PTHREAD_LIBS $LIBS"
7467 # Check for various functions. We must include pthread.h,
7468 # since some functions may be macros. (On the Sequent, we
7469 # need a special flag -Kthread to make this header compile.)
7470 # We check for pthread_join because it is in -lpthread on IRIX
7471 # while pthread_create is in libc. We check for pthread_attr_init
7472 # due to DEC craziness with -lpthreads. We check for
7473 # pthread_cleanup_push because it is one of the few pthread
7474 # functions on Solaris that doesn't have a non-functional libc stub.
7475 # We try pthread_create on general principles.
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <pthread.h>
7480 # if $ax_pthread_check_cond
7481 # error "$ax_pthread_check_macro must be defined"
7483 static void *some_global = NULL;
7484 static void routine(void *a)
7486 /* To avoid any unused-parameter or
7487 unused-but-set-parameter warning. */
7490 static void *start_routine(void *a) { return a; }
7494 pthread_t th; pthread_attr_t attr;
7495 pthread_create(&th, 0, start_routine, 0);
7496 pthread_join(th, 0);
7497 pthread_attr_init(&attr);
7498 pthread_cleanup_push(routine, 0);
7499 pthread_cleanup_pop(0) /* ; */
7504 if ac_fn_c_try_link "$LINENO"
7508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7509 conftest$ac_exeext conftest.$ac_ext
7511 CFLAGS="$ax_pthread_save_CFLAGS"
7512 LIBS="$ax_pthread_save_LIBS"
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7515 printf "%s\n" "$ax_pthread_ok" >&6; }
7516 if test "x$ax_pthread_ok" = "xyes"
7527 # Clang needs special handling, because older versions handle the -pthread
7528 # option in a rather... idiosyncratic way
7530 if test "x$ax_pthread_clang" = "xyes"; then
7532 # Clang takes -pthread; it has never supported any other flag
7534 # (Note 1: This will need to be revisited if a system that Clang
7535 # supports has POSIX threads in a separate library. This tends not
7536 # to be the way of modern systems, but it's conceivable.)
7538 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7539 # to get POSIX threads support; the API is always present and
7540 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7541 # -pthread does define _REENTRANT, and while the Darwin headers
7542 # ignore this macro, third-party headers might not.)
7544 # However, older versions of Clang make a point of warning the user
7545 # that, in an invocation where only linking and no compilation is
7546 # taking place, the -pthread option has no effect ("argument unused
7547 # during compilation"). They expect -pthread to be passed in only
7548 # when source code is being compiled.
7550 # Problem is, this is at odds with the way Automake and most other
7551 # C build frameworks function, which is that the same flags used in
7552 # compilation (CFLAGS) are also used in linking. Many systems
7553 # supported by AX_PTHREAD require exactly this for POSIX threads
7554 # support, and in fact it is often not straightforward to specify a
7555 # flag that is used only in the compilation phase and not in
7556 # linking. Such a scenario is extremely rare in practice.
7558 # Even though use of the -pthread flag in linking would only print
7559 # a warning, this can be a nuisance for well-run software projects
7560 # that build with -Werror. So if the active version of Clang has
7561 # this misfeature, we search for an option to squash it.
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7564 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7565 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7567 printf %s "(cached) " >&6
7569 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7570 # Create an alternate version of $ac_link that compiles and
7571 # links in two steps (.c -> .o, .o -> exe) instead of one
7572 # (.c -> exe), because the warning occurs only in the second
7574 ax_pthread_save_ac_link="$ac_link"
7575 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7576 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7577 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7578 ax_pthread_save_CFLAGS="$CFLAGS"
7579 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7580 if test "x$ax_pthread_try" = "xunknown"
7584 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7585 ac_link="$ax_pthread_save_ac_link"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 int main(void){return 0;}
7590 if ac_fn_c_try_link "$LINENO"
7592 ac_link="$ax_pthread_2step_ac_link"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int main(void){return 0;}
7597 if ac_fn_c_try_link "$LINENO"
7601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7602 conftest$ac_exeext conftest.$ac_ext
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606 conftest$ac_exeext conftest.$ac_ext
7608 ac_link="$ax_pthread_save_ac_link"
7609 CFLAGS="$ax_pthread_save_CFLAGS"
7610 if test "x$ax_pthread_try" = "x"
7614 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7618 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7620 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7622 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7625 fi # $ax_pthread_clang = yes
7629 # Various other checks:
7630 if test "x$ax_pthread_ok" = "xyes"; then
7631 ax_pthread_save_CFLAGS="$CFLAGS"
7632 ax_pthread_save_LIBS="$LIBS"
7633 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7634 LIBS="$PTHREAD_LIBS $LIBS"
7636 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7638 printf %s "checking for joinable pthread attribute... " >&6; }
7639 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7641 printf %s "(cached) " >&6
7643 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7644 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <pthread.h>
7651 int attr = $ax_pthread_attr; return attr /* ; */
7656 if ac_fn_c_try_link "$LINENO"
7658 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7661 conftest$ac_exeext conftest.$ac_ext
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7666 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7667 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7668 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7669 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7672 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7674 ax_pthread_joinable_attr_defined=yes
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7679 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7680 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7682 printf %s "(cached) " >&6
7684 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7687 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7693 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7694 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7695 test "x$ax_pthread_special_flags_added" != "xyes"
7697 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7698 ax_pthread_special_flags_added=yes
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7702 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7703 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7705 printf %s "(cached) " >&6
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 #include <pthread.h>
7713 int i = PTHREAD_PRIO_INHERIT;
7719 if ac_fn_c_try_link "$LINENO"
7721 ax_cv_PTHREAD_PRIO_INHERIT=yes
7723 ax_cv_PTHREAD_PRIO_INHERIT=no
7725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7726 conftest$ac_exeext conftest.$ac_ext
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7730 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7731 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7732 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7735 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7737 ax_pthread_prio_inherit_defined=yes
7741 CFLAGS="$ax_pthread_save_CFLAGS"
7742 LIBS="$ax_pthread_save_LIBS"
7744 # More AIX lossage: compile with *_r variant
7745 if test "x$GCC" != "xyes"; then
7749 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7750 #handle absolute path differently from PATH based program lookup
7754 if as_fn_executable_p ${CC}_r
7756 PTHREAD_CC="${CC}_r"
7758 if test "x${CXX}" != "x"
7760 if as_fn_executable_p ${CXX}_r
7762 PTHREAD_CXX="${CXX}_r"
7768 for ac_prog in ${CC}_r
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_PTHREAD_CC+y}
7776 printf %s "(cached) " >&6
7778 if test -n "$PTHREAD_CC"; then
7779 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 case $as_dir in #(((
7788 *) as_dir=$as_dir/ ;;
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_PTHREAD_CC="$ac_prog"
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7802 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7803 if test -n "$PTHREAD_CC"; then
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7805 printf "%s\n" "$PTHREAD_CC" >&6; }
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 printf "%s\n" "no" >&6; }
7812 test -n "$PTHREAD_CC" && break
7814 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7816 if test "x${CXX}" != "x"
7818 for ac_prog in ${CXX}_r
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 printf %s "checking for $ac_word... " >&6; }
7824 if test ${ac_cv_prog_PTHREAD_CXX+y}
7826 printf %s "(cached) " >&6
7828 if test -n "$PTHREAD_CXX"; then
7829 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 case $as_dir in #(((
7838 *) as_dir=$as_dir/ ;;
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7852 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7853 if test -n "$PTHREAD_CXX"; then
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7855 printf "%s\n" "$PTHREAD_CXX" >&6; }
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 printf "%s\n" "no" >&6; }
7862 test -n "$PTHREAD_CXX" && break
7864 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7879 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7880 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7887 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7888 if test "x$ax_pthread_ok" = "xyes"; then
7890 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7909 # Check whether --enable-uuidd was given.
7910 if test ${enable_uuidd+y}
7912 enableval=$enable_uuidd; if test "$enableval" = "no"
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7915 printf "%s\n" "Not building uuidd" >&6; }
7918 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7922 printf "%s\n" "Building uuidd" >&6; }
7926 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7928 if test -z "$UUID_CMT"
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7932 printf "%s\n" "Building uuidd by default" >&6; }
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7936 printf "%s\n" "Disabling uuidd by default" >&6; }
7943 # Check whether --enable-mmp was given.
7944 if test ${enable_mmp+y}
7946 enableval=$enable_mmp; if test "$enableval" = "no"
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7949 printf "%s\n" "Disabling mmp support" >&6; }
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7952 printf "%s\n" "Enabling mmp support" >&6; }
7953 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7959 printf "%s\n" "Enabling mmp support by default" >&6; }
7960 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7966 # Check whether --enable-tdb was given.
7967 if test ${enable_tdb+y}
7969 enableval=$enable_tdb;
7970 if test "$enableval" = "no"
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7973 printf "%s\n" "Disabling tdb support" >&6; }
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7977 printf "%s\n" "Enabling tdb support" >&6; }
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7987 printf "%s\n" "Disabling tdb support by default" >&6; }
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7992 printf "%s\n" "Enabling tdb support by default" >&6; }
8000 if test "$CONFIG_TDB" = "1"
8002 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8008 TDB_MAN_COMMENT='.\"'
8013 # Check whether --enable-bmap-stats was given.
8014 if test ${enable_bmap_stats+y}
8016 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8019 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8022 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8023 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8029 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8030 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8036 # Check whether --enable-bmap-stats-ops was given.
8037 if test ${enable_bmap_stats_ops+y}
8039 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8042 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8044 if test "x${enable_bmap_stats}" = "xno"
8046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8048 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8049 See \`config.log' for more details" "$LINENO" 5; }
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8053 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8054 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8060 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8064 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8066 GETTEXT_PACKAGE=e2fsprogs
8068 VERSION="$E2FSPROGS_VERSION"
8071 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8074 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8081 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8083 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8084 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8086 printf %s "(cached) " >&6
8088 cat >conftest.make <<\_ACEOF
8091 @echo '@@@%%%=$(MAKE)=@@@%%%'
8093 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8096 eval ac_cv_prog_make_${ac_make}_set=yes;;
8098 eval ac_cv_prog_make_${ac_make}_set=no;;
8102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8104 printf "%s\n" "yes" >&6; }
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 printf "%s\n" "no" >&6; }
8109 SET_MAKE="MAKE=${MAKE-make}"
8113 # Find a good install program. We prefer a C program (faster),
8114 # so one script is as good as another. But avoid the broken or
8115 # incompatible versions:
8116 # SysV /etc/install, /usr/sbin/install
8117 # SunOS /usr/etc/install
8118 # IRIX /sbin/install
8120 # AmigaOS /C/install, which installs bootblocks on floppy discs
8121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8124 # OS/2's system install, which has a completely different semantic
8125 # ./install, which can be erroneously created by make from ./install.sh.
8126 # Reject install programs that cannot install multiple files.
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8128 printf %s "checking for a BSD-compatible install... " >&6; }
8129 if test -z "$INSTALL"; then
8130 if test ${ac_cv_path_install+y}
8132 printf %s "(cached) " >&6
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 case $as_dir in #(((
8141 *) as_dir=$as_dir/ ;;
8143 # Account for fact that we put trailing slashes in our PATH walk.
8146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8147 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8150 # OSF1 and SCO ODT 3.0 have their own names for install.
8151 # Don't use installbsd from OSF since it installs stuff as root
8153 for ac_prog in ginstall scoinst install; do
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8156 if test $ac_prog = install &&
8157 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8158 # AIX install. It has an incompatible calling convention.
8160 elif test $ac_prog = install &&
8161 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8162 # program-specific install script used by HP pwplus--don't use.
8165 rm -rf conftest.one conftest.two conftest.dir
8166 echo one > conftest.one
8167 echo two > conftest.two
8169 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8170 test -s conftest.one && test -s conftest.two &&
8171 test -s conftest.dir/conftest.one &&
8172 test -s conftest.dir/conftest.two
8174 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8187 rm -rf conftest.one conftest.two conftest.dir
8190 if test ${ac_cv_path_install+y}; then
8191 INSTALL=$ac_cv_path_install
8193 # As a last resort, use the slow shell script. Don't cache a
8194 # value for INSTALL within a source directory, because that will
8195 # break other packages using the cache if that directory is
8196 # removed, or if the value is a relative name.
8197 INSTALL=$ac_install_sh
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8201 printf "%s\n" "$INSTALL" >&6; }
8203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8204 # It thinks the first close brace ends the variable substitution.
8205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8213 printf %s "checking for a race-free mkdir -p... " >&6; }
8214 if test -z "$MKDIR_P"; then
8215 if test ${ac_cv_path_mkdir+y}
8217 printf %s "(cached) " >&6
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8223 case $as_dir in #(((
8226 *) as_dir=$as_dir/ ;;
8228 for ac_prog in mkdir gmkdir; do
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8231 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8232 'mkdir ('*'coreutils) '* | \
8234 'mkdir (fileutils) '4.1*)
8235 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8245 test -d ./--version && rmdir ./--version
8246 if test ${ac_cv_path_mkdir+y}; then
8247 MKDIR_P="$ac_cv_path_mkdir -p"
8249 # As a last resort, use the slow shell script. Don't cache a
8250 # value for MKDIR_P within a source directory, because that will
8251 # break other packages using the cache if that directory is
8252 # removed, or if the value is a relative name.
8253 MKDIR_P="$ac_install_sh -d"
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8257 printf "%s\n" "$MKDIR_P" >&6; }
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8261 printf %s "checking whether NLS is requested... " >&6; }
8262 # Check whether --enable-nls was given.
8263 if test ${enable_nls+y}
8265 enableval=$enable_nls; USE_NLS=$enableval
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8271 printf "%s\n" "$USE_NLS" >&6; }
8276 GETTEXT_MACRO_VERSION=0.20
8281 # Prepare PATH_SEPARATOR.
8282 # The user is always right.
8283 if test "${PATH_SEPARATOR+set}" != set; then
8284 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8285 # contains only /bin. Note that ksh looks also at the FPATH variable,
8286 # so we have to set that as well for the test.
8288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8289 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8290 || PATH_SEPARATOR=';'
8294 # Find out how to test for executable files. Don't use a zero-byte file,
8295 # as systems may use methods other than mode bits to determine executability.
8296 cat >conf$$.file <<_ASEOF
8300 chmod +x conf$$.file
8301 if test -x conf$$.file >/dev/null 2>&1; then
8302 ac_executable_p="test -x"
8304 ac_executable_p="test -f"
8308 # Extract the first word of "msgfmt", so it can be a program name with args.
8309 set dummy msgfmt; ac_word=$2
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 printf %s "checking for $ac_word... " >&6; }
8312 if test ${ac_cv_path_MSGFMT+y}
8314 printf %s "(cached) " >&6
8318 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8321 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8322 for ac_dir in $PATH; do
8324 test -z "$ac_dir" && ac_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8327 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8328 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8329 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8330 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8337 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8341 MSGFMT="$ac_cv_path_MSGFMT"
8342 if test "$MSGFMT" != ":"; then
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8344 printf "%s\n" "$MSGFMT" >&6; }
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 printf "%s\n" "no" >&6; }
8350 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8351 set dummy gmsgfmt; ac_word=$2
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 printf %s "checking for $ac_word... " >&6; }
8354 if test ${ac_cv_path_GMSGFMT+y}
8356 printf %s "(cached) " >&6
8360 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 case $as_dir in #(((
8370 *) as_dir=$as_dir/ ;;
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8374 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8382 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8386 GMSGFMT=$ac_cv_path_GMSGFMT
8387 if test -n "$GMSGFMT"; then
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8389 printf "%s\n" "$GMSGFMT" >&6; }
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 printf "%s\n" "no" >&6; }
8397 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8398 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8399 *) GMSGFMT_015=$GMSGFMT ;;
8404 # Prepare PATH_SEPARATOR.
8405 # The user is always right.
8406 if test "${PATH_SEPARATOR+set}" != set; then
8407 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8408 # contains only /bin. Note that ksh looks also at the FPATH variable,
8409 # so we have to set that as well for the test.
8411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8412 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8413 || PATH_SEPARATOR=';'
8417 # Find out how to test for executable files. Don't use a zero-byte file,
8418 # as systems may use methods other than mode bits to determine executability.
8419 cat >conf$$.file <<_ASEOF
8423 chmod +x conf$$.file
8424 if test -x conf$$.file >/dev/null 2>&1; then
8425 ac_executable_p="test -x"
8427 ac_executable_p="test -f"
8431 # Extract the first word of "xgettext", so it can be a program name with args.
8432 set dummy xgettext; ac_word=$2
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 printf %s "checking for $ac_word... " >&6; }
8435 if test ${ac_cv_path_XGETTEXT+y}
8437 printf %s "(cached) " >&6
8441 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8445 for ac_dir in $PATH; do
8447 test -z "$ac_dir" && ac_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8450 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8451 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8452 (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
8453 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8460 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8464 XGETTEXT="$ac_cv_path_XGETTEXT"
8465 if test "$XGETTEXT" != ":"; then
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8467 printf "%s\n" "$XGETTEXT" >&6; }
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 printf "%s\n" "no" >&6; }
8475 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8476 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8477 *) XGETTEXT_015=$XGETTEXT ;;
8482 # Prepare PATH_SEPARATOR.
8483 # The user is always right.
8484 if test "${PATH_SEPARATOR+set}" != set; then
8485 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8486 # contains only /bin. Note that ksh looks also at the FPATH variable,
8487 # so we have to set that as well for the test.
8489 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8490 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8491 || PATH_SEPARATOR=';'
8495 # Find out how to test for executable files. Don't use a zero-byte file,
8496 # as systems may use methods other than mode bits to determine executability.
8497 cat >conf$$.file <<_ASEOF
8501 chmod +x conf$$.file
8502 if test -x conf$$.file >/dev/null 2>&1; then
8503 ac_executable_p="test -x"
8505 ac_executable_p="test -f"
8509 # Extract the first word of "msgmerge", so it can be a program name with args.
8510 set dummy msgmerge; ac_word=$2
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 printf %s "checking for $ac_word... " >&6; }
8513 if test ${ac_cv_path_MSGMERGE+y}
8515 printf %s "(cached) " >&6
8519 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8523 for ac_dir in $PATH; do
8525 test -z "$ac_dir" && ac_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8528 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8529 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8530 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8537 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8541 MSGMERGE="$ac_cv_path_MSGMERGE"
8542 if test "$MSGMERGE" != ":"; then
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8544 printf "%s\n" "$MSGMERGE" >&6; }
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 printf "%s\n" "no" >&6; }
8551 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8552 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8554 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8555 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8557 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8562 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8565 ac_config_commands="$ac_config_commands po-directories"
8569 if test "X$prefix" = "XNONE"; then
8570 acl_final_prefix="$ac_default_prefix"
8572 acl_final_prefix="$prefix"
8574 if test "X$exec_prefix" = "XNONE"; then
8575 acl_final_exec_prefix='${prefix}'
8577 acl_final_exec_prefix="$exec_prefix"
8579 acl_save_prefix="$prefix"
8580 prefix="$acl_final_prefix"
8581 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8582 prefix="$acl_save_prefix"
8586 # Check whether --with-gnu-ld was given.
8587 if test ${with_gnu_ld+y}
8589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8594 # Prepare PATH_SEPARATOR.
8595 # The user is always right.
8596 if test "${PATH_SEPARATOR+set}" != set; then
8597 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8598 # contains only /bin. Note that ksh looks also at the FPATH variable,
8599 # so we have to set that as well for the test.
8601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8602 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8603 || PATH_SEPARATOR=';'
8607 if test -n "$LD"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8609 printf %s "checking for ld... " >&6; }
8610 elif test "$GCC" = yes; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8612 printf %s "checking for ld used by $CC... " >&6; }
8613 elif test "$with_gnu_ld" = yes; then
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8615 printf %s "checking for GNU ld... " >&6; }
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8618 printf %s "checking for non-GNU ld... " >&6; }
8620 if test -n "$LD"; then
8621 # Let the user override the test with a path.
8624 if test ${acl_cv_path_LD+y}
8626 printf %s "(cached) " >&6
8629 acl_cv_path_LD= # Final result of this test
8630 ac_prog=ld # Program to search in $PATH
8631 if test "$GCC" = yes; then
8632 # Check if gcc -print-prog-name=ld gives a path.
8635 # gcc leaves a trailing carriage return which upsets mingw
8636 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8638 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8641 # Accept absolute paths.
8643 re_direlt='/[^/][^/]*/\.\./'
8644 # Canonicalize the pathname of ld
8645 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8646 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8647 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8649 # Got the pathname. No search in PATH is needed.
8650 acl_cv_path_LD="$acl_output"
8654 # If it fails, then pretend we aren't using GCC.
8657 # If it is relative, then search for the first ld in PATH.
8662 if test -n "$ac_prog"; then
8663 # Search for $ac_prog in $PATH.
8664 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8665 for ac_dir in $PATH; do
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8669 acl_cv_path_LD="$ac_dir/$ac_prog"
8670 # Check to see if the program is GNU ld. I'd rather use --version,
8671 # but apparently some variants of GNU ld only accept -v.
8672 # Break only if it was the GNU/non-GNU ld that we prefer.
8673 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8674 *GNU* | *'with BFD'*)
8675 test "$with_gnu_ld" != no && break
8678 test "$with_gnu_ld" != yes && break
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #if defined __powerpc64__ || defined _ARCH_PPC64
8696 if ac_fn_c_try_compile "$LINENO"
8698 # The compiler produces 64-bit code. Add option '-b64' so that the
8699 # linker groks 64-bit object files.
8700 case "$acl_cv_path_LD " in
8702 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #if defined __sparcv9 || defined __arch64__
8718 if ac_fn_c_try_compile "$LINENO"
8722 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8723 # so that the linker groks 32-bit object files.
8724 case "$acl_cv_path_LD " in
8725 *" -m elf32_sparc "*) ;;
8726 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8736 LD="$acl_cv_path_LD"
8738 if test -n "$LD"; then
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8740 printf "%s\n" "$LD" >&6; }
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 printf "%s\n" "no" >&6; }
8744 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8747 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8748 if test ${acl_cv_prog_gnu_ld+y}
8750 printf %s "(cached) " >&6
8752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8753 case `$LD -v 2>&1 </dev/null` in
8754 *GNU* | *'with BFD'*)
8755 acl_cv_prog_gnu_ld=yes
8758 acl_cv_prog_gnu_ld=no
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8763 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8764 with_gnu_ld=$acl_cv_prog_gnu_ld
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8772 printf %s "checking for shared library run path origin... " >&6; }
8773 if test ${acl_cv_rpath+y}
8775 printf %s "(cached) " >&6
8778 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8779 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8786 printf "%s\n" "$acl_cv_rpath" >&6; }
8788 acl_libext="$acl_cv_libext"
8789 acl_shlibext="$acl_cv_shlibext"
8790 acl_libname_spec="$acl_cv_libname_spec"
8791 acl_library_names_spec="$acl_cv_library_names_spec"
8792 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8793 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8794 acl_hardcode_direct="$acl_cv_hardcode_direct"
8795 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8796 # Check whether --enable-rpath was given.
8797 if test ${enable_rpath+y}
8799 enableval=$enable_rpath; :
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8808 printf %s "checking 32-bit host C ABI... " >&6; }
8809 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8811 printf %s "(cached) " >&6
8813 if test -n "$gl_cv_host_cpu_c_abi"; then
8814 case "$gl_cv_host_cpu_c_abi" in
8815 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8816 gl_cv_host_cpu_c_abi_32bit=yes ;;
8817 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8818 gl_cv_host_cpu_c_abi_32bit=no ;;
8820 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8825 # CPUs that only support a 32-bit ABI.
8834 | microblaze | microblazeel \
8835 | nds32 | nds32le | nds32be \
8836 | nios2 | nios2eb | nios2el \
8839 | sh | sh1234 | sh1234elb \
8842 gl_cv_host_cpu_c_abi_32bit=yes
8845 # CPUs that only support a 64-bit ABI.
8846 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8848 gl_cv_host_cpu_c_abi_32bit=no
8852 gl_cv_host_cpu_c_abi_32bit=yes
8856 # On x86_64 systems, the C compiler may be generating code in one of
8858 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8859 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8860 # with native Windows (mingw, MSVC).
8861 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8862 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #if (defined __x86_64__ || defined __amd64__ \
8866 || defined _M_X64 || defined _M_AMD64) \
8867 && !(defined __ILP32__ || defined _ILP32)
8874 if ac_fn_c_try_compile "$LINENO"
8876 gl_cv_host_cpu_c_abi_32bit=no
8878 gl_cv_host_cpu_c_abi_32bit=yes
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884 # Assume arm with EABI.
8885 # On arm64 systems, the C compiler may be generating code in one of
8887 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8888 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8889 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8899 if ac_fn_c_try_compile "$LINENO"
8901 gl_cv_host_cpu_c_abi_32bit=no
8903 gl_cv_host_cpu_c_abi_32bit=yes
8905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8908 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8909 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8910 # code. In the latter case, it defines _LP64 and __LP64__.
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8920 if ac_fn_c_try_compile "$LINENO"
8922 gl_cv_host_cpu_c_abi_32bit=no
8924 gl_cv_host_cpu_c_abi_32bit=yes
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8930 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8931 # 32-bit code. In the latter case, it defines _ILP32.
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8941 if ac_fn_c_try_compile "$LINENO"
8943 gl_cv_host_cpu_c_abi_32bit=yes
8945 gl_cv_host_cpu_c_abi_32bit=no
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8951 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8962 if ac_fn_c_try_compile "$LINENO"
8964 gl_cv_host_cpu_c_abi_32bit=no
8966 gl_cv_host_cpu_c_abi_32bit=yes
8968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8972 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8973 # No need to distinguish them here; the caller may distinguish
8974 # them based on the OS.
8975 # On powerpc64 systems, the C compiler may still be generating
8976 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8977 # be generating 64-bit code.
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 #if defined __powerpc64__ || defined _ARCH_PPC64
8987 if ac_fn_c_try_compile "$LINENO"
8989 gl_cv_host_cpu_c_abi_32bit=no
8991 gl_cv_host_cpu_c_abi_32bit=yes
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8997 gl_cv_host_cpu_c_abi_32bit=yes
9001 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9002 # Size of 'long' and 'void *':
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #if defined __LP64__
9012 if ac_fn_c_try_compile "$LINENO"
9014 gl_cv_host_cpu_c_abi_32bit=no
9016 gl_cv_host_cpu_c_abi_32bit=yes
9018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9022 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9023 # or 31-bit (= s390) code.
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 #if defined __LP64__ || defined __s390x__
9033 if ac_fn_c_try_compile "$LINENO"
9035 gl_cv_host_cpu_c_abi_32bit=no
9037 gl_cv_host_cpu_c_abi_32bit=yes
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9043 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9044 # C compiler still generates 32-bit code.
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #if defined __sparcv9 || defined __arch64__
9054 if ac_fn_c_try_compile "$LINENO"
9056 gl_cv_host_cpu_c_abi_32bit=no
9058 gl_cv_host_cpu_c_abi_32bit=yes
9060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9064 gl_cv_host_cpu_c_abi_32bit=unknown
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9071 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9073 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9080 printf %s "checking for ELF binary format... " >&6; }
9081 if test ${gl_cv_elf+y}
9083 printf %s "(cached) " >&6
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9088 Extensible Linking Format
9092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9093 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9104 printf "%s\n" "$gl_cv_elf" >&6; }
9105 if test $gl_cv_elf; then
9106 # Extract the ELF class of a file (5th byte) in decimal.
9107 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9108 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9112 od -A n -t d1 -j 4 -N 1
9118 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9122 case $HOST_CPU_C_ABI_32BIT in
9125 acl_is_expected_elfclass ()
9127 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9132 acl_is_expected_elfclass ()
9134 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9139 acl_is_expected_elfclass ()
9146 acl_is_expected_elfclass ()
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9153 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9154 if test ${acl_cv_libdirstems+y}
9156 printf %s "(cached) " >&6
9163 if test $HOST_CPU_C_ABI_32BIT = no; then
9164 acl_libdirstem2=lib/64
9166 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9167 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9172 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9173 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9174 if test $HOST_CPU_C_ABI_32BIT != no; then
9175 # 32-bit or unknown ABI.
9176 if test -d /usr/lib32; then
9177 acl_libdirstem2=lib32
9180 if test $HOST_CPU_C_ABI_32BIT != yes; then
9181 # 64-bit or unknown ABI.
9182 if test -d /usr/lib64; then
9183 acl_libdirstem3=lib64
9186 if test -n "$searchpath"; then
9187 acl_save_IFS="${IFS= }"; IFS=":"
9188 for searchdir in $searchpath; do
9189 if test -d "$searchdir"; then
9190 case "$searchdir" in
9191 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9192 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9194 # Better ignore directories of this form. They are misleading.
9196 *) searchdir=`cd "$searchdir" && pwd`
9197 case "$searchdir" in
9198 */lib32 ) acl_libdirstem2=lib32 ;;
9199 */lib64 ) acl_libdirstem3=lib64 ;;
9205 if test $HOST_CPU_C_ABI_32BIT = yes; then
9209 if test $HOST_CPU_C_ABI_32BIT = no; then
9216 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9217 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9218 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9222 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9223 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9224 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9225 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9239 acl_save_prefix="$prefix"
9240 prefix="$acl_final_prefix"
9241 acl_save_exec_prefix="$exec_prefix"
9242 exec_prefix="$acl_final_exec_prefix"
9244 eval additional_includedir=\"$includedir\"
9245 eval additional_libdir=\"$libdir\"
9246 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9247 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9249 exec_prefix="$acl_save_exec_prefix"
9250 prefix="$acl_save_prefix"
9253 # Check whether --with-libiconv-prefix was given.
9254 if test ${with_libiconv_prefix+y}
9256 withval=$with_libiconv_prefix;
9257 if test "X$withval" = "Xno"; then
9260 if test "X$withval" = "X"; then
9262 acl_save_prefix="$prefix"
9263 prefix="$acl_final_prefix"
9264 acl_save_exec_prefix="$exec_prefix"
9265 exec_prefix="$acl_final_exec_prefix"
9267 eval additional_includedir=\"$includedir\"
9268 eval additional_libdir=\"$libdir\"
9269 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9270 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9272 exec_prefix="$acl_save_exec_prefix"
9273 prefix="$acl_save_prefix"
9276 additional_includedir="$withval/include"
9277 additional_libdir="$withval/$acl_libdirstem"
9278 additional_libdir2="$withval/$acl_libdirstem2"
9279 additional_libdir3="$withval/$acl_libdirstem3"
9285 if test "X$additional_libdir2" = "X$additional_libdir"; then
9288 if test "X$additional_libdir3" = "X$additional_libdir"; then
9298 names_already_handled=
9299 names_next_round='iconv '
9300 while test -n "$names_next_round"; do
9301 names_this_round="$names_next_round"
9303 for name in $names_this_round; do
9305 for n in $names_already_handled; do
9306 if test "$n" = "$name"; then
9311 if test -z "$already_handled"; then
9312 names_already_handled="$names_already_handled $name"
9313 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9314 eval value=\"\$HAVE_LIB$uppername\"
9315 if test -n "$value"; then
9316 if test "$value" = yes; then
9317 eval value=\"\$LIB$uppername\"
9318 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9319 eval value=\"\$LTLIB$uppername\"
9320 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9329 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9330 if test -n "$acl_shlibext"; then
9331 shrext=".$acl_shlibext" # typically: shrext=.so
9335 if test $use_additional = yes; then
9336 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9337 if test "X$found_dir" = "X"; then
9338 eval dir=\$$additional_libdir_variable
9339 if test -n "$dir"; then
9340 if test -n "$acl_shlibext"; then
9341 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9343 found_so="$dir/$libname$shrext"
9345 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9346 ver=`(cd "$dir" && \
9347 for f in "$libname$shrext".*; do echo "$f"; done \
9348 | sed -e "s,^$libname$shrext\\\\.,," \
9349 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9350 | sed 1q ) 2>/dev/null`
9351 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9353 found_so="$dir/$libname$shrext.$ver"
9356 eval library_names=\"$acl_library_names_spec\"
9357 for f in $library_names; do
9358 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9367 if test "X$found_dir" = "X"; then
9368 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9370 found_a="$dir/$libname.$acl_libext"
9373 if test "X$found_dir" != "X"; then
9374 if test -f "$dir/$libname.la"; then
9375 found_la="$dir/$libname.la"
9382 if test "X$found_dir" = "X"; then
9383 for x in $LDFLAGS $LTLIBICONV; do
9385 acl_save_prefix="$prefix"
9386 prefix="$acl_final_prefix"
9387 acl_save_exec_prefix="$exec_prefix"
9388 exec_prefix="$acl_final_exec_prefix"
9390 exec_prefix="$acl_save_exec_prefix"
9391 prefix="$acl_save_prefix"
9395 dir=`echo "X$x" | sed -e 's/^X-L//'`
9396 if test -n "$acl_shlibext"; then
9397 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9399 found_so="$dir/$libname$shrext"
9401 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9402 ver=`(cd "$dir" && \
9403 for f in "$libname$shrext".*; do echo "$f"; done \
9404 | sed -e "s,^$libname$shrext\\\\.,," \
9405 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9406 | sed 1q ) 2>/dev/null`
9407 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9409 found_so="$dir/$libname$shrext.$ver"
9412 eval library_names=\"$acl_library_names_spec\"
9413 for f in $library_names; do
9414 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9423 if test "X$found_dir" = "X"; then
9424 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9426 found_a="$dir/$libname.$acl_libext"
9429 if test "X$found_dir" != "X"; then
9430 if test -f "$dir/$libname.la"; then
9431 found_la="$dir/$libname.la"
9436 if test "X$found_dir" != "X"; then
9441 if test "X$found_dir" != "X"; then
9442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9443 if test "X$found_so" != "X"; then
9444 if test "$enable_rpath" = no \
9445 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9446 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9447 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9451 for x in $ltrpathdirs; do
9452 if test "X$x" = "X$found_dir"; then
9457 if test -z "$haveit"; then
9458 ltrpathdirs="$ltrpathdirs $found_dir"
9460 if test "$acl_hardcode_direct" = yes; then
9461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9463 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9466 for x in $rpathdirs; do
9467 if test "X$x" = "X$found_dir"; then
9472 if test -z "$haveit"; then
9473 rpathdirs="$rpathdirs $found_dir"
9477 for x in $LDFLAGS $LIBICONV; do
9479 acl_save_prefix="$prefix"
9480 prefix="$acl_final_prefix"
9481 acl_save_exec_prefix="$exec_prefix"
9482 exec_prefix="$acl_final_exec_prefix"
9484 exec_prefix="$acl_save_exec_prefix"
9485 prefix="$acl_save_prefix"
9487 if test "X$x" = "X-L$found_dir"; then
9492 if test -z "$haveit"; then
9493 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9495 if test "$acl_hardcode_minus_L" != no; then
9496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9498 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9504 if test "X$found_a" != "X"; then
9505 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9510 additional_includedir=
9511 case "$found_dir" in
9512 */$acl_libdirstem | */$acl_libdirstem/)
9513 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9514 if test "$name" = 'iconv'; then
9515 LIBICONV_PREFIX="$basedir"
9517 additional_includedir="$basedir/include"
9519 */$acl_libdirstem2 | */$acl_libdirstem2/)
9520 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9521 if test "$name" = 'iconv'; then
9522 LIBICONV_PREFIX="$basedir"
9524 additional_includedir="$basedir/include"
9526 */$acl_libdirstem3 | */$acl_libdirstem3/)
9527 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9528 if test "$name" = 'iconv'; then
9529 LIBICONV_PREFIX="$basedir"
9531 additional_includedir="$basedir/include"
9534 if test "X$additional_includedir" != "X"; then
9535 if test "X$additional_includedir" != "X/usr/include"; then
9537 if test "X$additional_includedir" = "X/usr/local/include"; then
9538 if test -n "$GCC"; then
9540 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9544 if test -z "$haveit"; then
9545 for x in $CPPFLAGS $INCICONV; do
9547 acl_save_prefix="$prefix"
9548 prefix="$acl_final_prefix"
9549 acl_save_exec_prefix="$exec_prefix"
9550 exec_prefix="$acl_final_exec_prefix"
9552 exec_prefix="$acl_save_exec_prefix"
9553 prefix="$acl_save_prefix"
9555 if test "X$x" = "X-I$additional_includedir"; then
9560 if test -z "$haveit"; then
9561 if test -d "$additional_includedir"; then
9562 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9568 if test -n "$found_la"; then
9569 save_libdir="$libdir"
9571 */* | *\\*) . "$found_la" ;;
9572 *) . "./$found_la" ;;
9574 libdir="$save_libdir"
9575 for dep in $dependency_libs; do
9578 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9579 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9580 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9581 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9583 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9584 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9585 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9586 if test -n "$GCC"; then
9588 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9592 if test -z "$haveit"; then
9594 for x in $LDFLAGS $LIBICONV; do
9596 acl_save_prefix="$prefix"
9597 prefix="$acl_final_prefix"
9598 acl_save_exec_prefix="$exec_prefix"
9599 exec_prefix="$acl_final_exec_prefix"
9601 exec_prefix="$acl_save_exec_prefix"
9602 prefix="$acl_save_prefix"
9604 if test "X$x" = "X-L$dependency_libdir"; then
9609 if test -z "$haveit"; then
9610 if test -d "$dependency_libdir"; then
9611 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9615 for x in $LDFLAGS $LTLIBICONV; do
9617 acl_save_prefix="$prefix"
9618 prefix="$acl_final_prefix"
9619 acl_save_exec_prefix="$exec_prefix"
9620 exec_prefix="$acl_final_exec_prefix"
9622 exec_prefix="$acl_save_exec_prefix"
9623 prefix="$acl_save_prefix"
9625 if test "X$x" = "X-L$dependency_libdir"; then
9630 if test -z "$haveit"; then
9631 if test -d "$dependency_libdir"; then
9632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9639 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9640 if test "$enable_rpath" != no; then
9642 for x in $rpathdirs; do
9643 if test "X$x" = "X$dir"; then
9648 if test -z "$haveit"; then
9649 rpathdirs="$rpathdirs $dir"
9652 for x in $ltrpathdirs; do
9653 if test "X$x" = "X$dir"; then
9658 if test -z "$haveit"; then
9659 ltrpathdirs="$ltrpathdirs $dir"
9664 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9670 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9677 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9684 if test "X$rpathdirs" != "X"; then
9685 if test -n "$acl_hardcode_libdir_separator"; then
9687 for found_dir in $rpathdirs; do
9688 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9690 acl_save_libdir="$libdir"
9692 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9693 libdir="$acl_save_libdir"
9694 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9696 for found_dir in $rpathdirs; do
9697 acl_save_libdir="$libdir"
9699 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9700 libdir="$acl_save_libdir"
9701 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9705 if test "X$ltrpathdirs" != "X"; then
9706 for found_dir in $ltrpathdirs; do
9707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9740 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9741 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9743 printf %s "(cached) " >&6
9745 gt_save_LIBS="$LIBS"
9746 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <CoreFoundation/CFPreferences.h>
9753 CFPreferencesCopyAppValue(NULL, NULL)
9758 if ac_fn_c_try_link "$LINENO"
9760 gt_cv_func_CFPreferencesCopyAppValue=yes
9762 gt_cv_func_CFPreferencesCopyAppValue=no
9764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS="$gt_save_LIBS"
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9769 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9770 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9772 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9776 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9777 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9779 printf %s "(cached) " >&6
9781 gt_save_LIBS="$LIBS"
9782 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 #include <CoreFoundation/CFLocale.h>
9789 CFLocaleCopyPreferredLanguages();
9794 if ac_fn_c_try_link "$LINENO"
9796 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9798 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LIBS="$gt_save_LIBS"
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9805 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9806 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9808 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9812 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9813 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9814 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9826 case " $gt_needs " in
9827 *" need-formatstring-macros "*) gt_api_version=3 ;;
9828 *" need-ngettext "*) gt_api_version=2 ;;
9829 *) gt_api_version=1 ;;
9831 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9832 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9834 if test "$USE_NLS" = "yes"; then
9835 gt_use_preinstalled_gnugettext=no
9838 if test $gt_api_version -ge 3; then
9839 gt_revision_test_code='
9840 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9841 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9843 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9846 gt_revision_test_code=
9848 if test $gt_api_version -ge 2; then
9849 gt_expression_test_code=' + * ngettext ("", "", 0)'
9851 gt_expression_test_code=
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9855 printf %s "checking for GNU gettext in libc... " >&6; }
9856 if eval test \${$gt_func_gnugettext_libc+y}
9858 printf %s "(cached) " >&6
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9863 #include <libintl.h>
9864 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9865 extern int _nl_msg_cat_cntr;
9866 extern int *_nl_domain_bindings;
9867 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9869 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9871 $gt_revision_test_code
9877 bindtextdomain ("", "");
9878 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9884 if ac_fn_c_try_link "$LINENO"
9886 eval "$gt_func_gnugettext_libc=yes"
9888 eval "$gt_func_gnugettext_libc=no"
9890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9891 conftest$ac_exeext conftest.$ac_ext
9893 eval ac_res=\$$gt_func_gnugettext_libc
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9895 printf "%s\n" "$ac_res" >&6; }
9897 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9903 am_save_CPPFLAGS="$CPPFLAGS"
9905 for element in $INCICONV; do
9907 for x in $CPPFLAGS; do
9909 acl_save_prefix="$prefix"
9910 prefix="$acl_final_prefix"
9911 acl_save_exec_prefix="$exec_prefix"
9912 exec_prefix="$acl_final_exec_prefix"
9914 exec_prefix="$acl_save_exec_prefix"
9915 prefix="$acl_save_prefix"
9917 if test "X$x" = "X$element"; then
9922 if test -z "$haveit"; then
9923 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9929 printf %s "checking for iconv... " >&6; }
9930 if test ${am_cv_func_iconv+y}
9932 printf %s "(cached) " >&6
9935 am_cv_func_iconv="no, consider installing GNU libiconv"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9946 iconv_t cd = iconv_open("","");
9947 iconv(cd,NULL,NULL,NULL,NULL);
9953 if ac_fn_c_try_link "$LINENO"
9955 am_cv_func_iconv=yes
9957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9958 conftest$ac_exeext conftest.$ac_ext
9959 if test "$am_cv_func_iconv" != yes; then
9960 am_save_LIBS="$LIBS"
9961 LIBS="$LIBS $LIBICONV"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9971 iconv_t cd = iconv_open("","");
9972 iconv(cd,NULL,NULL,NULL,NULL);
9978 if ac_fn_c_try_link "$LINENO"
9981 am_cv_func_iconv=yes
9983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS="$am_save_LIBS"
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9990 printf "%s\n" "$am_cv_func_iconv" >&6; }
9991 if test "$am_cv_func_iconv" = yes; then
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9993 printf %s "checking for working iconv... " >&6; }
9994 if test ${am_cv_func_iconv_works+y}
9996 printf %s "(cached) " >&6
9999 am_save_LIBS="$LIBS"
10000 if test $am_cv_lib_iconv = yes; then
10001 LIBS="$LIBS $LIBICONV"
10003 am_cv_func_iconv_works=no
10004 for ac_iconv_const in '' 'const'; do
10005 if test "$cross_compiling" = yes
10008 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10009 *) am_cv_func_iconv_works="guessing yes" ;;
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10016 #include <string.h>
10018 #ifndef ICONV_CONST
10019 # define ICONV_CONST $ac_iconv_const
10026 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10029 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10030 if (cd_utf8_to_88591 != (iconv_t)(-1))
10032 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10034 ICONV_CONST char *inptr = input;
10035 size_t inbytesleft = strlen (input);
10036 char *outptr = buf;
10037 size_t outbytesleft = sizeof (buf);
10038 size_t res = iconv (cd_utf8_to_88591,
10039 &inptr, &inbytesleft,
10040 &outptr, &outbytesleft);
10043 iconv_close (cd_utf8_to_88591);
10046 /* Test against Solaris 10 bug: Failures are not distinguishable from
10047 successful returns. */
10049 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10050 if (cd_ascii_to_88591 != (iconv_t)(-1))
10052 static ICONV_CONST char input[] = "\263";
10054 ICONV_CONST char *inptr = input;
10055 size_t inbytesleft = strlen (input);
10056 char *outptr = buf;
10057 size_t outbytesleft = sizeof (buf);
10058 size_t res = iconv (cd_ascii_to_88591,
10059 &inptr, &inbytesleft,
10060 &outptr, &outbytesleft);
10063 iconv_close (cd_ascii_to_88591);
10066 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10068 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10069 if (cd_88591_to_utf8 != (iconv_t)(-1))
10071 static ICONV_CONST char input[] = "\304";
10072 static char buf[2] = { (char)0xDE, (char)0xAD };
10073 ICONV_CONST char *inptr = input;
10074 size_t inbytesleft = 1;
10075 char *outptr = buf;
10076 size_t outbytesleft = 1;
10077 size_t res = iconv (cd_88591_to_utf8,
10078 &inptr, &inbytesleft,
10079 &outptr, &outbytesleft);
10080 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10082 iconv_close (cd_88591_to_utf8);
10085 #if 0 /* This bug could be worked around by the caller. */
10086 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10088 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10089 if (cd_88591_to_utf8 != (iconv_t)(-1))
10091 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10093 ICONV_CONST char *inptr = input;
10094 size_t inbytesleft = strlen (input);
10095 char *outptr = buf;
10096 size_t outbytesleft = sizeof (buf);
10097 size_t res = iconv (cd_88591_to_utf8,
10098 &inptr, &inbytesleft,
10099 &outptr, &outbytesleft);
10102 iconv_close (cd_88591_to_utf8);
10106 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10109 /* Try standardized names. */
10110 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10111 /* Try IRIX, OSF/1 names. */
10112 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10113 /* Try AIX names. */
10114 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10115 /* Try HP-UX names. */
10116 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10117 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10118 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10120 if (cd1 != (iconv_t)(-1))
10122 if (cd2 != (iconv_t)(-1))
10124 if (cd3 != (iconv_t)(-1))
10126 if (cd4 != (iconv_t)(-1))
10135 if ac_fn_c_try_run "$LINENO"
10137 am_cv_func_iconv_works=yes
10139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10140 conftest.$ac_objext conftest.beam conftest.$ac_ext
10143 test "$am_cv_func_iconv_works" = no || break
10145 LIBS="$am_save_LIBS"
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10149 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10150 case "$am_cv_func_iconv_works" in
10151 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10152 *) am_func_iconv=yes ;;
10155 am_func_iconv=no am_cv_lib_iconv=no
10157 if test "$am_func_iconv" = yes; then
10159 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10162 if test "$am_cv_lib_iconv" = yes; then
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10164 printf %s "checking how to link with libiconv... " >&6; }
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10166 printf "%s\n" "$LIBICONV" >&6; }
10168 CPPFLAGS="$am_save_CPPFLAGS"
10184 acl_save_prefix="$prefix"
10185 prefix="$acl_final_prefix"
10186 acl_save_exec_prefix="$exec_prefix"
10187 exec_prefix="$acl_final_exec_prefix"
10189 eval additional_includedir=\"$includedir\"
10190 eval additional_libdir=\"$libdir\"
10191 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10192 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10198 # Check whether --with-libintl-prefix was given.
10199 if test ${with_libintl_prefix+y}
10201 withval=$with_libintl_prefix;
10202 if test "X$withval" = "Xno"; then
10205 if test "X$withval" = "X"; then
10207 acl_save_prefix="$prefix"
10208 prefix="$acl_final_prefix"
10209 acl_save_exec_prefix="$exec_prefix"
10210 exec_prefix="$acl_final_exec_prefix"
10212 eval additional_includedir=\"$includedir\"
10213 eval additional_libdir=\"$libdir\"
10214 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10215 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10217 exec_prefix="$acl_save_exec_prefix"
10218 prefix="$acl_save_prefix"
10221 additional_includedir="$withval/include"
10222 additional_libdir="$withval/$acl_libdirstem"
10223 additional_libdir2="$withval/$acl_libdirstem2"
10224 additional_libdir3="$withval/$acl_libdirstem3"
10230 if test "X$additional_libdir2" = "X$additional_libdir"; then
10231 additional_libdir2=
10233 if test "X$additional_libdir3" = "X$additional_libdir"; then
10234 additional_libdir3=
10243 names_already_handled=
10244 names_next_round='intl '
10245 while test -n "$names_next_round"; do
10246 names_this_round="$names_next_round"
10248 for name in $names_this_round; do
10250 for n in $names_already_handled; do
10251 if test "$n" = "$name"; then
10252 already_handled=yes
10256 if test -z "$already_handled"; then
10257 names_already_handled="$names_already_handled $name"
10258 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10259 eval value=\"\$HAVE_LIB$uppername\"
10260 if test -n "$value"; then
10261 if test "$value" = yes; then
10262 eval value=\"\$LIB$uppername\"
10263 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10264 eval value=\"\$LTLIB$uppername\"
10265 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10274 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10275 if test -n "$acl_shlibext"; then
10276 shrext=".$acl_shlibext" # typically: shrext=.so
10280 if test $use_additional = yes; then
10281 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10282 if test "X$found_dir" = "X"; then
10283 eval dir=\$$additional_libdir_variable
10284 if test -n "$dir"; then
10285 if test -n "$acl_shlibext"; then
10286 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10288 found_so="$dir/$libname$shrext"
10290 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10291 ver=`(cd "$dir" && \
10292 for f in "$libname$shrext".*; do echo "$f"; done \
10293 | sed -e "s,^$libname$shrext\\\\.,," \
10294 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10295 | sed 1q ) 2>/dev/null`
10296 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10298 found_so="$dir/$libname$shrext.$ver"
10301 eval library_names=\"$acl_library_names_spec\"
10302 for f in $library_names; do
10303 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10312 if test "X$found_dir" = "X"; then
10313 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10315 found_a="$dir/$libname.$acl_libext"
10318 if test "X$found_dir" != "X"; then
10319 if test -f "$dir/$libname.la"; then
10320 found_la="$dir/$libname.la"
10327 if test "X$found_dir" = "X"; then
10328 for x in $LDFLAGS $LTLIBINTL; do
10330 acl_save_prefix="$prefix"
10331 prefix="$acl_final_prefix"
10332 acl_save_exec_prefix="$exec_prefix"
10333 exec_prefix="$acl_final_exec_prefix"
10335 exec_prefix="$acl_save_exec_prefix"
10336 prefix="$acl_save_prefix"
10340 dir=`echo "X$x" | sed -e 's/^X-L//'`
10341 if test -n "$acl_shlibext"; then
10342 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10344 found_so="$dir/$libname$shrext"
10346 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10347 ver=`(cd "$dir" && \
10348 for f in "$libname$shrext".*; do echo "$f"; done \
10349 | sed -e "s,^$libname$shrext\\\\.,," \
10350 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10351 | sed 1q ) 2>/dev/null`
10352 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10354 found_so="$dir/$libname$shrext.$ver"
10357 eval library_names=\"$acl_library_names_spec\"
10358 for f in $library_names; do
10359 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10368 if test "X$found_dir" = "X"; then
10369 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10371 found_a="$dir/$libname.$acl_libext"
10374 if test "X$found_dir" != "X"; then
10375 if test -f "$dir/$libname.la"; then
10376 found_la="$dir/$libname.la"
10381 if test "X$found_dir" != "X"; then
10386 if test "X$found_dir" != "X"; then
10387 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10388 if test "X$found_so" != "X"; then
10389 if test "$enable_rpath" = no \
10390 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10391 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10392 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10396 for x in $ltrpathdirs; do
10397 if test "X$x" = "X$found_dir"; then
10402 if test -z "$haveit"; then
10403 ltrpathdirs="$ltrpathdirs $found_dir"
10405 if test "$acl_hardcode_direct" = yes; then
10406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10408 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411 for x in $rpathdirs; do
10412 if test "X$x" = "X$found_dir"; then
10417 if test -z "$haveit"; then
10418 rpathdirs="$rpathdirs $found_dir"
10422 for x in $LDFLAGS $LIBINTL; do
10424 acl_save_prefix="$prefix"
10425 prefix="$acl_final_prefix"
10426 acl_save_exec_prefix="$exec_prefix"
10427 exec_prefix="$acl_final_exec_prefix"
10429 exec_prefix="$acl_save_exec_prefix"
10430 prefix="$acl_save_prefix"
10432 if test "X$x" = "X-L$found_dir"; then
10437 if test -z "$haveit"; then
10438 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10440 if test "$acl_hardcode_minus_L" != no; then
10441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10443 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10449 if test "X$found_a" != "X"; then
10450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10452 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10455 additional_includedir=
10456 case "$found_dir" in
10457 */$acl_libdirstem | */$acl_libdirstem/)
10458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10459 if test "$name" = 'intl'; then
10460 LIBINTL_PREFIX="$basedir"
10462 additional_includedir="$basedir/include"
10464 */$acl_libdirstem2 | */$acl_libdirstem2/)
10465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10466 if test "$name" = 'intl'; then
10467 LIBINTL_PREFIX="$basedir"
10469 additional_includedir="$basedir/include"
10471 */$acl_libdirstem3 | */$acl_libdirstem3/)
10472 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10473 if test "$name" = 'intl'; then
10474 LIBINTL_PREFIX="$basedir"
10476 additional_includedir="$basedir/include"
10479 if test "X$additional_includedir" != "X"; then
10480 if test "X$additional_includedir" != "X/usr/include"; then
10482 if test "X$additional_includedir" = "X/usr/local/include"; then
10483 if test -n "$GCC"; then
10485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10489 if test -z "$haveit"; then
10490 for x in $CPPFLAGS $INCINTL; do
10492 acl_save_prefix="$prefix"
10493 prefix="$acl_final_prefix"
10494 acl_save_exec_prefix="$exec_prefix"
10495 exec_prefix="$acl_final_exec_prefix"
10497 exec_prefix="$acl_save_exec_prefix"
10498 prefix="$acl_save_prefix"
10500 if test "X$x" = "X-I$additional_includedir"; then
10505 if test -z "$haveit"; then
10506 if test -d "$additional_includedir"; then
10507 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10513 if test -n "$found_la"; then
10514 save_libdir="$libdir"
10515 case "$found_la" in
10516 */* | *\\*) . "$found_la" ;;
10517 *) . "./$found_la" ;;
10519 libdir="$save_libdir"
10520 for dep in $dependency_libs; do
10523 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10524 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10525 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10526 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10528 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10529 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10530 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10531 if test -n "$GCC"; then
10533 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10537 if test -z "$haveit"; then
10539 for x in $LDFLAGS $LIBINTL; do
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 acl_save_exec_prefix="$exec_prefix"
10544 exec_prefix="$acl_final_exec_prefix"
10546 exec_prefix="$acl_save_exec_prefix"
10547 prefix="$acl_save_prefix"
10549 if test "X$x" = "X-L$dependency_libdir"; then
10554 if test -z "$haveit"; then
10555 if test -d "$dependency_libdir"; then
10556 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10560 for x in $LDFLAGS $LTLIBINTL; do
10562 acl_save_prefix="$prefix"
10563 prefix="$acl_final_prefix"
10564 acl_save_exec_prefix="$exec_prefix"
10565 exec_prefix="$acl_final_exec_prefix"
10567 exec_prefix="$acl_save_exec_prefix"
10568 prefix="$acl_save_prefix"
10570 if test "X$x" = "X-L$dependency_libdir"; then
10575 if test -z "$haveit"; then
10576 if test -d "$dependency_libdir"; then
10577 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10584 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10585 if test "$enable_rpath" != no; then
10587 for x in $rpathdirs; do
10588 if test "X$x" = "X$dir"; then
10593 if test -z "$haveit"; then
10594 rpathdirs="$rpathdirs $dir"
10597 for x in $ltrpathdirs; do
10598 if test "X$x" = "X$dir"; then
10603 if test -z "$haveit"; then
10604 ltrpathdirs="$ltrpathdirs $dir"
10609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10615 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10616 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10622 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10623 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10629 if test "X$rpathdirs" != "X"; then
10630 if test -n "$acl_hardcode_libdir_separator"; then
10632 for found_dir in $rpathdirs; do
10633 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10635 acl_save_libdir="$libdir"
10637 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10638 libdir="$acl_save_libdir"
10639 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10641 for found_dir in $rpathdirs; do
10642 acl_save_libdir="$libdir"
10643 libdir="$found_dir"
10644 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10645 libdir="$acl_save_libdir"
10646 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10650 if test "X$ltrpathdirs" != "X"; then
10651 for found_dir in $ltrpathdirs; do
10652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10661 printf %s "checking for GNU gettext in libintl... " >&6; }
10662 if eval test \${$gt_func_gnugettext_libintl+y}
10664 printf %s "(cached) " >&6
10666 gt_save_CPPFLAGS="$CPPFLAGS"
10667 CPPFLAGS="$CPPFLAGS $INCINTL"
10668 gt_save_LIBS="$LIBS"
10669 LIBS="$LIBS $LIBINTL"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 #include <libintl.h>
10674 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10675 extern int _nl_msg_cat_cntr;
10680 const char *_nl_expand_alias (const char *);
10681 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10683 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10685 $gt_revision_test_code
10691 bindtextdomain ("", "");
10692 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10698 if ac_fn_c_try_link "$LINENO"
10700 eval "$gt_func_gnugettext_libintl=yes"
10702 eval "$gt_func_gnugettext_libintl=no"
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705 conftest$ac_exeext conftest.$ac_ext
10706 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10707 LIBS="$LIBS $LIBICONV"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 #include <libintl.h>
10712 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10713 extern int _nl_msg_cat_cntr;
10718 const char *_nl_expand_alias (const char *);
10719 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10721 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10723 $gt_revision_test_code
10729 bindtextdomain ("", "");
10730 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10736 if ac_fn_c_try_link "$LINENO"
10738 LIBINTL="$LIBINTL $LIBICONV"
10739 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10740 eval "$gt_func_gnugettext_libintl=yes"
10743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10744 conftest$ac_exeext conftest.$ac_ext
10746 CPPFLAGS="$gt_save_CPPFLAGS"
10747 LIBS="$gt_save_LIBS"
10749 eval ac_res=\$$gt_func_gnugettext_libintl
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10751 printf "%s\n" "$ac_res" >&6; }
10754 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10755 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10756 && test "$PACKAGE" != gettext-runtime \
10757 && test "$PACKAGE" != gettext-tools; }; then
10758 gt_use_preinstalled_gnugettext=yes
10767 if test -n "$INTL_MACOSX_LIBS"; then
10768 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10769 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10771 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10775 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10776 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10778 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10786 printf %s "checking whether to use NLS... " >&6; }
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10788 printf "%s\n" "$USE_NLS" >&6; }
10789 if test "$USE_NLS" = "yes"; then
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10791 printf %s "checking where the gettext function comes from... " >&6; }
10792 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10793 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10794 gt_source="external libintl"
10799 gt_source="included intl directory"
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10802 printf "%s\n" "$gt_source" >&6; }
10805 if test "$USE_NLS" = "yes"; then
10807 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10808 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10810 printf %s "checking how to link with libintl... " >&6; }
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10812 printf "%s\n" "$LIBINTL" >&6; }
10814 for element in $INCINTL; do
10816 for x in $CPPFLAGS; do
10818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10826 if test "X$x" = "X$element"; then
10831 if test -z "$haveit"; then
10832 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10839 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10842 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10851 INTLLIBS="$LIBINTL"
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10860 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10862 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10863 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10865 printf %s "(cached) " >&6
10867 cat >conftest.make <<\_ACEOF
10870 @echo '@@@%%%=$(MAKE)=@@@%%%'
10872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10874 *@@@%%%=?*=@@@%%%*)
10875 eval ac_cv_prog_make_${ac_make}_set=yes;;
10877 eval ac_cv_prog_make_${ac_make}_set=no;;
10879 rm -f conftest.make
10881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10883 printf "%s\n" "yes" >&6; }
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 printf "%s\n" "no" >&6; }
10888 SET_MAKE="MAKE=${MAKE-make}"
10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10892 printf %s "checking for GNU make... " >&6; }
10893 if test ${_cv_gnu_make_command+y}
10895 printf %s "(cached) " >&6
10897 _cv_gnu_make_command='' ;
10898 if test -n "$FORCE_NATIVE_MAKE" ; then
10901 MAKES="make gmake gnumake"
10903 for a in "$MAKE" $MAKES ; do
10904 if test -z "$a" ; then continue ; fi ;
10905 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10906 _cv_gnu_make_command=$a ;
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10913 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10914 if test "x$_cv_gnu_make_command" != "x" ; then
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10921 printf "%s\n" "\"Not found\"" >&6; };
10926 # Extract the first word of "ln", so it can be a program name with args.
10927 set dummy ln; ac_word=$2
10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 printf %s "checking for $ac_word... " >&6; }
10930 if test ${ac_cv_path_LN+y}
10932 printf %s "(cached) " >&6
10936 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10943 case $as_dir in #(((
10946 *) as_dir=$as_dir/ ;;
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10950 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10958 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10963 if test -n "$LN"; then
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10965 printf "%s\n" "$LN" >&6; }
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 printf "%s\n" "no" >&6; }
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10976 printf %s "checking whether ln -s works... " >&6; }
10978 if test "$LN_S" = "ln -s"; then
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 printf "%s\n" "yes" >&6; }
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10983 printf "%s\n" "no, using $LN_S" >&6; }
10986 # Extract the first word of "mv", so it can be a program name with args.
10987 set dummy mv; ac_word=$2
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 printf %s "checking for $ac_word... " >&6; }
10990 if test ${ac_cv_path_MV+y}
10992 printf %s "(cached) " >&6
10996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11003 case $as_dir in #(((
11006 *) as_dir=$as_dir/ ;;
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11010 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11018 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11023 if test -n "$MV"; then
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11025 printf "%s\n" "$MV" >&6; }
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 printf "%s\n" "no" >&6; }
11032 # Extract the first word of "cp", so it can be a program name with args.
11033 set dummy cp; ac_word=$2
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035 printf %s "checking for $ac_word... " >&6; }
11036 if test ${ac_cv_path_CP+y}
11038 printf %s "(cached) " >&6
11042 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11049 case $as_dir in #(((
11052 *) as_dir=$as_dir/ ;;
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11056 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11064 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11069 if test -n "$CP"; then
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11071 printf "%s\n" "$CP" >&6; }
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 printf "%s\n" "no" >&6; }
11078 # Extract the first word of "rm", so it can be a program name with args.
11079 set dummy rm; ac_word=$2
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 printf %s "checking for $ac_word... " >&6; }
11082 if test ${ac_cv_path_RM+y}
11084 printf %s "(cached) " >&6
11088 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11095 case $as_dir in #(((
11098 *) as_dir=$as_dir/ ;;
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11102 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11110 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11115 if test -n "$RM"; then
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11117 printf "%s\n" "$RM" >&6; }
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 printf "%s\n" "no" >&6; }
11124 # Extract the first word of "chmod", so it can be a program name with args.
11125 set dummy chmod; ac_word=$2
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 printf %s "checking for $ac_word... " >&6; }
11128 if test ${ac_cv_path_CHMOD+y}
11130 printf %s "(cached) " >&6
11134 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11141 case $as_dir in #(((
11144 *) as_dir=$as_dir/ ;;
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11148 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11156 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11160 CHMOD=$ac_cv_path_CHMOD
11161 if test -n "$CHMOD"; then
11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11163 printf "%s\n" "$CHMOD" >&6; }
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 printf "%s\n" "no" >&6; }
11170 for ac_prog in gawk mawk nawk awk
11172 # Extract the first word of "$ac_prog", so it can be a program name with args.
11173 set dummy $ac_prog; ac_word=$2
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 printf %s "checking for $ac_word... " >&6; }
11176 if test ${ac_cv_prog_AWK+y}
11178 printf %s "(cached) " >&6
11180 if test -n "$AWK"; then
11181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 case $as_dir in #(((
11190 *) as_dir=$as_dir/ ;;
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11194 ac_cv_prog_AWK="$ac_prog"
11195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11204 AWK=$ac_cv_prog_AWK
11205 if test -n "$AWK"; then
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11207 printf "%s\n" "$AWK" >&6; }
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 printf "%s\n" "no" >&6; }
11214 test -n "$AWK" && break
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11218 printf %s "checking for egrep... " >&6; }
11219 if test ${ac_cv_path_EGREP+y}
11221 printf %s "(cached) " >&6
11223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11224 then ac_cv_path_EGREP="$GREP -E"
11226 if test -z "$EGREP"; then
11227 ac_path_EGREP_found=false
11228 # Loop through the user's path and test for each of PROGNAME-LIST
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11233 case $as_dir in #(((
11236 *) as_dir=$as_dir/ ;;
11238 for ac_prog in egrep
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11242 as_fn_executable_p "$ac_path_EGREP" || continue
11243 # Check for GNU ac_path_EGREP and select it if it is found.
11244 # Check for GNU $ac_path_EGREP
11245 case `"$ac_path_EGREP" --version 2>&1` in
11247 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11250 printf %s 0123456789 >"conftest.in"
11253 cat "conftest.in" "conftest.in" >"conftest.tmp"
11254 mv "conftest.tmp" "conftest.in"
11255 cp "conftest.in" "conftest.nl"
11256 printf "%s\n" 'EGREP' >> "conftest.nl"
11257 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11259 as_fn_arith $ac_count + 1 && ac_count=$as_val
11260 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11261 # Best one so far, save it but keep looking for a better one
11262 ac_cv_path_EGREP="$ac_path_EGREP"
11263 ac_path_EGREP_max=$ac_count
11265 # 10*(2^10) chars as input seems more than enough
11266 test $ac_count -gt 10 && break
11268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11271 $ac_path_EGREP_found && break 3
11276 if test -z "$ac_cv_path_EGREP"; then
11277 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11280 ac_cv_path_EGREP=$EGREP
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11286 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11287 EGREP="$ac_cv_path_EGREP"
11290 # Extract the first word of "sed", so it can be a program name with args.
11291 set dummy sed; ac_word=$2
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 printf %s "checking for $ac_word... " >&6; }
11294 if test ${ac_cv_path_SED+y}
11296 printf %s "(cached) " >&6
11300 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 case $as_dir in #(((
11310 *) as_dir=$as_dir/ ;;
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11314 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11322 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11326 SED=$ac_cv_path_SED
11327 if test -n "$SED"; then
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11329 printf "%s\n" "$SED" >&6; }
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 printf "%s\n" "no" >&6; }
11336 # Extract the first word of "perl", so it can be a program name with args.
11337 set dummy perl; ac_word=$2
11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339 printf %s "checking for $ac_word... " >&6; }
11340 if test ${ac_cv_path_PERL+y}
11342 printf %s "(cached) " >&6
11346 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11353 case $as_dir in #(((
11356 *) as_dir=$as_dir/ ;;
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11360 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11368 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11372 PERL=$ac_cv_path_PERL
11373 if test -n "$PERL"; then
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11375 printf "%s\n" "$PERL" >&6; }
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 printf "%s\n" "no" >&6; }
11382 # Extract the first word of "ldconfig", so it can be a program name with args.
11383 set dummy ldconfig; ac_word=$2
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 printf %s "checking for $ac_word... " >&6; }
11386 if test ${ac_cv_path_LDCONFIG+y}
11388 printf %s "(cached) " >&6
11392 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11399 case $as_dir in #(((
11402 *) as_dir=$as_dir/ ;;
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11406 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11414 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11418 LDCONFIG=$ac_cv_path_LDCONFIG
11419 if test -n "$LDCONFIG"; then
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11421 printf "%s\n" "$LDCONFIG" >&6; }
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 printf "%s\n" "no" >&6; }
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}ar; ac_word=$2
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 printf %s "checking for $ac_word... " >&6; }
11433 if test ${ac_cv_prog_AR+y}
11435 printf %s "(cached) " >&6
11437 if test -n "$AR"; then
11438 ac_cv_prog_AR="$AR" # Let the user override the test.
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11444 case $as_dir in #(((
11447 *) as_dir=$as_dir/ ;;
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11451 ac_cv_prog_AR="${ac_tool_prefix}ar"
11452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11462 if test -n "$AR"; then
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11464 printf "%s\n" "$AR" >&6; }
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 printf "%s\n" "no" >&6; }
11472 if test -z "$ac_cv_prog_AR"; then
11474 # Extract the first word of "ar", so it can be a program name with args.
11475 set dummy ar; ac_word=$2
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 printf %s "checking for $ac_word... " >&6; }
11478 if test ${ac_cv_prog_ac_ct_AR+y}
11480 printf %s "(cached) " >&6
11482 if test -n "$ac_ct_AR"; then
11483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11489 case $as_dir in #(((
11492 *) as_dir=$as_dir/ ;;
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_ac_ct_AR="ar"
11497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11507 if test -n "$ac_ct_AR"; then
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11509 printf "%s\n" "$ac_ct_AR" >&6; }
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 printf "%s\n" "no" >&6; }
11515 if test "x$ac_ct_AR" = x; then
11518 case $cross_compiling:$ac_tool_warned in
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11527 AR="$ac_cv_prog_AR"
11530 if test -n "$ac_tool_prefix"; then
11531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 printf %s "checking for $ac_word... " >&6; }
11535 if test ${ac_cv_prog_RANLIB+y}
11537 printf %s "(cached) " >&6
11539 if test -n "$RANLIB"; then
11540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11546 case $as_dir in #(((
11549 *) as_dir=$as_dir/ ;;
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11563 RANLIB=$ac_cv_prog_RANLIB
11564 if test -n "$RANLIB"; then
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11566 printf "%s\n" "$RANLIB" >&6; }
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 printf "%s\n" "no" >&6; }
11574 if test -z "$ac_cv_prog_RANLIB"; then
11575 ac_ct_RANLIB=$RANLIB
11576 # Extract the first word of "ranlib", so it can be a program name with args.
11577 set dummy ranlib; ac_word=$2
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 printf %s "checking for $ac_word... " >&6; }
11580 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11582 printf %s "(cached) " >&6
11584 if test -n "$ac_ct_RANLIB"; then
11585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11591 case $as_dir in #(((
11594 *) as_dir=$as_dir/ ;;
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_ac_ct_RANLIB="ranlib"
11599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11609 if test -n "$ac_ct_RANLIB"; then
11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11611 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 printf "%s\n" "no" >&6; }
11617 if test "x$ac_ct_RANLIB" = x; then
11620 case $cross_compiling:$ac_tool_warned in
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11624 ac_tool_warned=yes ;;
11626 RANLIB=$ac_ct_RANLIB
11629 RANLIB="$ac_cv_prog_RANLIB"
11632 if test -n "$ac_tool_prefix"; then
11633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11634 set dummy ${ac_tool_prefix}strip; ac_word=$2
11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 printf %s "checking for $ac_word... " >&6; }
11637 if test ${ac_cv_prog_STRIP+y}
11639 printf %s "(cached) " >&6
11641 if test -n "$STRIP"; then
11642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11648 case $as_dir in #(((
11651 *) as_dir=$as_dir/ ;;
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11665 STRIP=$ac_cv_prog_STRIP
11666 if test -n "$STRIP"; then
11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11668 printf "%s\n" "$STRIP" >&6; }
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 printf "%s\n" "no" >&6; }
11676 if test -z "$ac_cv_prog_STRIP"; then
11678 # Extract the first word of "strip", so it can be a program name with args.
11679 set dummy strip; ac_word=$2
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 printf %s "checking for $ac_word... " >&6; }
11682 if test ${ac_cv_prog_ac_ct_STRIP+y}
11684 printf %s "(cached) " >&6
11686 if test -n "$ac_ct_STRIP"; then
11687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 case $as_dir in #(((
11696 *) as_dir=$as_dir/ ;;
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11700 ac_cv_prog_ac_ct_STRIP="strip"
11701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11711 if test -n "$ac_ct_STRIP"; then
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11713 printf "%s\n" "$ac_ct_STRIP" >&6; }
11715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 printf "%s\n" "no" >&6; }
11719 if test "x$ac_ct_STRIP" = x; then
11722 case $cross_compiling:$ac_tool_warned in
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11726 ac_tool_warned=yes ;;
11731 STRIP="$ac_cv_prog_STRIP"
11734 # Extract the first word of "makeinfo", so it can be a program name with args.
11735 set dummy makeinfo; ac_word=$2
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 printf %s "checking for $ac_word... " >&6; }
11738 if test ${ac_cv_prog_MAKEINFO+y}
11740 printf %s "(cached) " >&6
11742 if test -n "$MAKEINFO"; then
11743 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 case $as_dir in #(((
11752 *) as_dir=$as_dir/ ;;
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_MAKEINFO="makeinfo"
11757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11766 MAKEINFO=$ac_cv_prog_MAKEINFO
11767 if test -n "$MAKEINFO"; then
11768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11769 printf "%s\n" "$MAKEINFO" >&6; }
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 printf "%s\n" "no" >&6; }
11776 if test "_$MAKEINFO" = "_"; then
11777 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11779 case "$MAKEINFO" in
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11782 *** Makeinfo is missing. Info documentation will not be built." >&5
11783 printf "%s\n" "$as_me: WARNING:
11784 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11792 # See if we need a separate native compiler.
11793 if test $cross_compiling = no; then
11797 for ac_prog in gcc cc
11799 # Extract the first word of "$ac_prog", so it can be a program name with args.
11800 set dummy $ac_prog; ac_word=$2
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 printf %s "checking for $ac_word... " >&6; }
11803 if test ${ac_cv_prog_BUILD_CC+y}
11805 printf %s "(cached) " >&6
11807 if test -n "$BUILD_CC"; then
11808 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11814 case $as_dir in #(((
11817 *) as_dir=$as_dir/ ;;
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11821 ac_cv_prog_BUILD_CC="$ac_prog"
11822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11831 BUILD_CC=$ac_cv_prog_BUILD_CC
11832 if test -n "$BUILD_CC"; then
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11834 printf "%s\n" "$BUILD_CC" >&6; }
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 printf "%s\n" "no" >&6; }
11841 test -n "$BUILD_CC" && break
11845 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11846 if test "x$ac_cv_header_dirent_h" = xyes
11848 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11851 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11852 if test "x$ac_cv_header_errno_h" = xyes
11854 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11857 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11858 if test "x$ac_cv_header_execinfo_h" = xyes
11860 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11863 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11864 if test "x$ac_cv_header_getopt_h" = xyes
11866 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11869 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11870 if test "x$ac_cv_header_malloc_h" = xyes
11872 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11875 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11876 if test "x$ac_cv_header_mntent_h" = xyes
11878 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11881 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11882 if test "x$ac_cv_header_paths_h" = xyes
11884 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11887 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11888 if test "x$ac_cv_header_pthread_h" = xyes
11890 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11893 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11894 if test "x$ac_cv_header_semaphore_h" = xyes
11896 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11899 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11900 if test "x$ac_cv_header_setjmp_h" = xyes
11902 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11905 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11906 if test "x$ac_cv_header_signal_h" = xyes
11908 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11911 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11912 if test "x$ac_cv_header_stdarg_h" = xyes
11914 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11917 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11918 if test "x$ac_cv_header_stdint_h" = xyes
11920 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11923 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11924 if test "x$ac_cv_header_stdlib_h" = xyes
11926 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11929 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_termios_h" = xyes
11932 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11935 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11936 if test "x$ac_cv_header_termio_h" = xyes
11938 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11941 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11942 if test "x$ac_cv_header_unistd_h" = xyes
11944 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11947 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11948 if test "x$ac_cv_header_utime_h" = xyes
11950 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11953 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11954 if test "x$ac_cv_header_attr_xattr_h" = xyes
11956 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11959 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11960 if test "x$ac_cv_header_linux_falloc_h" = xyes
11962 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11965 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11966 if test "x$ac_cv_header_linux_fd_h" = xyes
11968 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11971 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11972 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11974 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11977 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11978 if test "x$ac_cv_header_linux_major_h" = xyes
11980 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11983 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11984 if test "x$ac_cv_header_linux_loop_h" = xyes
11986 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11989 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11990 if test "x$ac_cv_header_linux_types_h" = xyes
11992 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11995 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11996 if test "x$ac_cv_header_net_if_dl_h" = xyes
11998 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12001 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12002 if test "x$ac_cv_header_netinet_in_h" = xyes
12004 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12007 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12008 if test "x$ac_cv_header_sys_acl_h" = xyes
12010 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12013 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12014 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12016 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12019 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12020 if test "x$ac_cv_header_sys_disk_h" = xyes
12022 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12025 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12026 if test "x$ac_cv_header_sys_file_h" = xyes
12028 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12031 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12032 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12034 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12037 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12038 if test "x$ac_cv_header_sys_key_h" = xyes
12040 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12043 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12044 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12046 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12049 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12050 if test "x$ac_cv_header_sys_mman_h" = xyes
12052 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12055 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12056 if test "x$ac_cv_header_sys_mount_h" = xyes
12058 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12061 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12062 if test "x$ac_cv_header_sys_prctl_h" = xyes
12064 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12067 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12068 if test "x$ac_cv_header_sys_random_h" = xyes
12070 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12073 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12074 if test "x$ac_cv_header_sys_resource_h" = xyes
12076 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12079 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_sys_select_h" = xyes
12082 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12085 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12086 if test "x$ac_cv_header_sys_socket_h" = xyes
12088 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12091 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12092 if test "x$ac_cv_header_sys_sockio_h" = xyes
12094 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12097 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12098 if test "x$ac_cv_header_sys_stat_h" = xyes
12100 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12103 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12104 if test "x$ac_cv_header_sys_syscall_h" = xyes
12106 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12109 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12110 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12112 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12115 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12116 if test "x$ac_cv_header_sys_time_h" = xyes
12118 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12121 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12122 if test "x$ac_cv_header_sys_types_h" = xyes
12124 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12127 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12128 if test "x$ac_cv_header_sys_un_h" = xyes
12130 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12133 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12134 if test "x$ac_cv_header_sys_wait_h" = xyes
12136 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12139 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12140 if test "x$ac_cv_header_sys_xattr_h" = xyes
12142 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12148 # The above checks only detect system headers, not the headers in
12149 # ./include/mingw/, so explicitly define them to be available.
12150 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12152 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12154 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12156 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12158 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12163 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12165 for i in dd gdd ; do
12166 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12171 if test -n "$DD" ; then
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12173 printf "%s\n" "$DD" >&6; }
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12176 printf "%s\n" "not found, using dd" >&6; }
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12179 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12183 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12184 #if HAVE_SYS_TYPES_H
12185 #include <sys/types.h>
12187 #if HAVE_SYS_SOCKET
12188 #include <sys/socket.h>
12192 if test "x$ac_cv_header_net_if_h" = xyes
12194 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12199 for ac_item in $ac_func_c_list
12201 if test $ac_func; then
12202 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12203 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12204 echo "#define $ac_item 1" >> confdefs.h
12212 if test "x$ac_cv_func_vprintf" = xno
12214 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12215 if test "x$ac_cv_func__doprnt" = xyes
12218 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12223 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12225 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12228 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12232 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12233 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12236 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12241 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12243 if test "x$ac_cv_type_ssize_t" = xyes
12246 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12251 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12252 if test ${ac_cv_c_undeclared_builtin_options+y}
12254 printf %s "(cached) " >&6
12256 ac_save_CFLAGS=$CFLAGS
12257 ac_cv_c_undeclared_builtin_options='cannot detect'
12258 for ac_arg in '' -fno-builtin; do
12259 CFLAGS="$ac_save_CFLAGS $ac_arg"
12260 # This test program should *not* compile successfully.
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12272 if ac_fn_c_try_compile "$LINENO"
12276 # This test program should compile successfully.
12277 # No library function is consistently available on
12278 # freestanding implementations, so test against a dummy
12279 # declaration. Include always-available headers on the
12280 # off chance that they somehow elicit warnings.
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 #include <limits.h>
12285 #include <stdarg.h>
12286 #include <stddef.h>
12287 extern void ac_decl (int, char *);
12292 (void) ac_decl (0, (char *) 0);
12299 if ac_fn_c_try_compile "$LINENO"
12301 if test x"$ac_arg" = x
12303 ac_cv_c_undeclared_builtin_options='none needed'
12305 ac_cv_c_undeclared_builtin_options=$ac_arg
12309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12313 CFLAGS=$ac_save_CFLAGS
12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12317 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12318 case $ac_cv_c_undeclared_builtin_options in #(
12320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12321 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12322 as_fn_error $? "cannot make $CC report undeclared builtins
12323 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12325 ac_c_undeclared_builtin_options='' ;; #(
12327 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12330 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12331 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12332 if test "x$ac_cv_have_decl_llseek" = xyes
12335 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12338 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12339 #define _LARGEFILE64_SOURCE
12340 #include <unistd.h>
12341 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12342 if test "x$ac_cv_have_decl_lseek64" = xyes
12345 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12349 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12350 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12351 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12354 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12357 # The cast to long int works around a bug in the HP C Compiler
12358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12360 # This bug is HP SR number 8606223364.
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12362 printf %s "checking size of short... " >&6; }
12363 if test ${ac_cv_sizeof_short+y}
12365 printf %s "(cached) " >&6
12367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12371 if test "$ac_cv_type_short" = yes; then
12372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12374 as_fn_error 77 "cannot compute sizeof (short)
12375 See \`config.log' for more details" "$LINENO" 5; }
12377 ac_cv_sizeof_short=0
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12383 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12387 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12390 # The cast to long int works around a bug in the HP C Compiler
12391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12393 # This bug is HP SR number 8606223364.
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12395 printf %s "checking size of int... " >&6; }
12396 if test ${ac_cv_sizeof_int+y}
12398 printf %s "(cached) " >&6
12400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12404 if test "$ac_cv_type_int" = yes; then
12405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12407 as_fn_error 77 "cannot compute sizeof (int)
12408 See \`config.log' for more details" "$LINENO" 5; }
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12416 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12420 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12423 # The cast to long int works around a bug in the HP C Compiler
12424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12426 # This bug is HP SR number 8606223364.
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12428 printf %s "checking size of long... " >&6; }
12429 if test ${ac_cv_sizeof_long+y}
12431 printf %s "(cached) " >&6
12433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12437 if test "$ac_cv_type_long" = yes; then
12438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12440 as_fn_error 77 "cannot compute sizeof (long)
12441 See \`config.log' for more details" "$LINENO" 5; }
12443 ac_cv_sizeof_long=0
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12449 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12453 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12456 # The cast to long int works around a bug in the HP C Compiler
12457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12459 # This bug is HP SR number 8606223364.
12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12461 printf %s "checking size of long long... " >&6; }
12462 if test ${ac_cv_sizeof_long_long+y}
12464 printf %s "(cached) " >&6
12466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12470 if test "$ac_cv_type_long_long" = yes; then
12471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12473 as_fn_error 77 "cannot compute sizeof (long long)
12474 See \`config.log' for more details" "$LINENO" 5; }
12476 ac_cv_sizeof_long_long=0
12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12482 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12486 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12489 # The cast to long int works around a bug in the HP C Compiler
12490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12492 # This bug is HP SR number 8606223364.
12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12494 printf %s "checking size of off_t... " >&6; }
12495 if test ${ac_cv_sizeof_off_t+y}
12497 printf %s "(cached) " >&6
12499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12503 if test "$ac_cv_type_off_t" = yes; then
12504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error 77 "cannot compute sizeof (off_t)
12507 See \`config.log' for more details" "$LINENO" 5; }
12509 ac_cv_sizeof_off_t=0
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12515 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12519 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12522 # The cast to long int works around a bug in the HP C Compiler
12523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525 # This bug is HP SR number 8606223364.
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12527 printf %s "checking size of time_t... " >&6; }
12528 if test ${ac_cv_sizeof_time_t+y}
12530 printf %s "(cached) " >&6
12532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12536 if test "$ac_cv_type_time_t" = yes; then
12537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12539 as_fn_error 77 "cannot compute sizeof (time_t)
12540 See \`config.log' for more details" "$LINENO" 5; }
12542 ac_cv_sizeof_time_t=0
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12548 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12552 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12555 SIZEOF_SHORT=$ac_cv_sizeof_short
12556 SIZEOF_INT=$ac_cv_sizeof_int
12557 SIZEOF_LONG=$ac_cv_sizeof_long
12558 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12559 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12560 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12568 printf %s "checking whether byte ordering is bigendian... " >&6; }
12569 if test ${ac_cv_c_bigendian+y}
12571 printf %s "(cached) " >&6
12573 ac_cv_c_bigendian=unknown
12574 # See if we're dealing with a universal compiler.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #ifndef __APPLE_CC__
12578 not a universal capable compiler
12583 if ac_fn_c_try_compile "$LINENO"
12586 # Check for potential -arch flags. It is not universal unless
12587 # there are at least two -arch flags with different values.
12590 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12591 if test -n "$ac_prev"; then
12593 i?86 | x86_64 | ppc | ppc64)
12594 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12597 ac_cv_c_bigendian=universal
12603 elif test "x$ac_word" = "x-arch"; then
12608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12609 if test $ac_cv_c_bigendian = unknown; then
12610 # See if sys/param.h defines the BYTE_ORDER macro.
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613 #include <sys/types.h>
12614 #include <sys/param.h>
12619 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12620 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12622 bogus endian macros
12629 if ac_fn_c_try_compile "$LINENO"
12631 # It does; now see whether it defined to BIG_ENDIAN or not.
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <sys/types.h>
12635 #include <sys/param.h>
12640 #if BYTE_ORDER != BIG_ENDIAN
12648 if ac_fn_c_try_compile "$LINENO"
12650 ac_cv_c_bigendian=yes
12652 ac_cv_c_bigendian=no
12654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12658 if test $ac_cv_c_bigendian = unknown; then
12659 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 #include <limits.h>
12667 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12668 bogus endian macros
12675 if ac_fn_c_try_compile "$LINENO"
12677 # It does; now see whether it defined to _BIG_ENDIAN or not.
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 #include <limits.h>
12685 #ifndef _BIG_ENDIAN
12693 if ac_fn_c_try_compile "$LINENO"
12695 ac_cv_c_bigendian=yes
12697 ac_cv_c_bigendian=no
12699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12703 if test $ac_cv_c_bigendian = unknown; then
12704 # Compile a test program.
12705 if test "$cross_compiling" = yes
12707 # Try to guess by grepping values from an object file.
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 unsigned short int ascii_mm[] =
12711 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12712 unsigned short int ascii_ii[] =
12713 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12714 int use_ascii (int i) {
12715 return ascii_mm[i] + ascii_ii[i];
12717 unsigned short int ebcdic_ii[] =
12718 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12719 unsigned short int ebcdic_mm[] =
12720 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12721 int use_ebcdic (int i) {
12722 return ebcdic_mm[i] + ebcdic_ii[i];
12729 return use_ascii (foo) == use_ebcdic (foo);
12734 if ac_fn_c_try_compile "$LINENO"
12736 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12737 ac_cv_c_bigendian=yes
12739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12740 if test "$ac_cv_c_bigendian" = unknown; then
12741 ac_cv_c_bigendian=no
12743 # finding both strings is unlikely to happen, but who knows?
12744 ac_cv_c_bigendian=unknown
12748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 $ac_includes_default
12757 /* Are we little or big endian? From Harbison&Steele. */
12761 char c[sizeof (long int)];
12764 return u.c[sizeof (long int) - 1] == 1;
12770 if ac_fn_c_try_run "$LINENO"
12772 ac_cv_c_bigendian=no
12774 ac_cv_c_bigendian=yes
12776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12777 conftest.$ac_objext conftest.beam conftest.$ac_ext
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12783 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12784 case $ac_cv_c_bigendian in #(
12786 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12792 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12796 as_fn_error $? "unknown endianness
12797 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12800 if test $cross_compiling = no; then
12801 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12803 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12805 ASM_TYPES_HEADER=./asm_types.h
12807 echo "/* These defines are needed for the public ext2fs.h header file */" \
12809 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12810 uniq tmp_config.$$ >> public_config.h
12812 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12814 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12815 uniq tmp_config.$$ >> public_config.h
12817 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12819 rm -f tmp_config.$$
12820 PUBLIC_CONFIG_HEADER=./public_config.h
12822 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_inttypes_h" = xyes
12825 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12829 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12830 if test "x$ac_cv_type_intptr_t" = xyes
12833 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12839 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12840 if test ${e2fsprogs_cv_struct_st_flags+y}
12842 printf %s "(cached) " >&6
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <sys/stat.h>
12850 struct stat stat; stat.st_flags = 0;
12855 if ac_fn_c_try_compile "$LINENO"
12857 e2fsprogs_cv_struct_st_flags=yes
12859 e2fsprogs_cv_struct_st_flags=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12865 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12866 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12868 printf %s "checking whether st_flags field is useful... " >&6; }
12869 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12871 printf %s "(cached) " >&6
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <sys/stat.h>
12879 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12884 if ac_fn_c_try_compile "$LINENO"
12886 e2fsprogs_cv_struct_st_flags_immut=yes
12888 e2fsprogs_cv_struct_st_flags_immut=no
12890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12894 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12895 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12897 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12901 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12902 #include <sys/socket.h>
12904 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12907 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12911 if test -n "$BLKID_CMT"; then
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12913 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12914 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12916 printf %s "(cached) " >&6
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lblkid $LIBS"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 char blkid_probe_get_topology ();
12930 return blkid_probe_get_topology ();
12935 if ac_fn_c_try_link "$LINENO"
12937 ac_cv_lib_blkid_blkid_probe_get_topology=yes
12939 ac_cv_lib_blkid_blkid_probe_get_topology=no
12941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12946 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12947 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12950 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12955 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12956 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12958 printf %s "(cached) " >&6
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-lblkid $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 char blkid_topology_get_dax ();
12972 return blkid_topology_get_dax ();
12977 if ac_fn_c_try_link "$LINENO"
12979 ac_cv_lib_blkid_blkid_topology_get_dax=yes
12981 ac_cv_lib_blkid_blkid_topology_get_dax=no
12983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12988 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12989 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12992 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12997 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12998 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13000 printf %s "(cached) " >&6
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lblkid $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010 char blkid_probe_enable_partitions ();
13014 return blkid_probe_enable_partitions ();
13019 if ac_fn_c_try_link "$LINENO"
13021 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13023 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13030 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13031 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13034 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13039 if test -n "$DLOPEN_LIB" ; then
13040 ac_cv_func_dlopen=yes
13042 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13043 if test "x$ac_cv_func___secure_getenv" = xyes
13045 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13048 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13049 if test "x$ac_cv_func_add_key" = xyes
13051 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13054 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13055 if test "x$ac_cv_func_backtrace" = xyes
13057 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13060 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13061 if test "x$ac_cv_func_chflags" = xyes
13063 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13067 if test "x$ac_cv_func_dlopen" = xyes
13069 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13072 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13073 if test "x$ac_cv_func_fadvise64" = xyes
13075 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13078 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13079 if test "x$ac_cv_func_fallocate" = xyes
13081 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13084 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13085 if test "x$ac_cv_func_fallocate64" = xyes
13087 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13090 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13091 if test "x$ac_cv_func_fchown" = xyes
13093 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13096 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13097 if test "x$ac_cv_func_fcntl" = xyes
13099 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13102 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13103 if test "x$ac_cv_func_fdatasync" = xyes
13105 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13108 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13109 if test "x$ac_cv_func_fstat64" = xyes
13111 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13114 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13115 if test "x$ac_cv_func_fsync" = xyes
13117 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13120 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13121 if test "x$ac_cv_func_ftruncate64" = xyes
13123 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13126 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13127 if test "x$ac_cv_func_futimes" = xyes
13129 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13132 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13133 if test "x$ac_cv_func_getcwd" = xyes
13135 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13138 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13139 if test "x$ac_cv_func_getdtablesize" = xyes
13141 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13144 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13145 if test "x$ac_cv_func_getentropy" = xyes
13147 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13150 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13151 if test "x$ac_cv_func_gethostname" = xyes
13153 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13156 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13157 if test "x$ac_cv_func_getmntinfo" = xyes
13159 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13162 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13163 if test "x$ac_cv_func_getpwuid_r" = xyes
13165 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13168 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13169 if test "x$ac_cv_func_getrandom" = xyes
13171 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13174 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13175 if test "x$ac_cv_func_getrlimit" = xyes
13177 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13180 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13181 if test "x$ac_cv_func_getrusage" = xyes
13183 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13186 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13187 if test "x$ac_cv_func_jrand48" = xyes
13189 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13192 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13193 if test "x$ac_cv_func_keyctl" = xyes
13195 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13198 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13199 if test "x$ac_cv_func_llistxattr" = xyes
13201 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13204 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13205 if test "x$ac_cv_func_llseek" = xyes
13207 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13210 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13211 if test "x$ac_cv_func_lseek64" = xyes
13213 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13216 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13217 if test "x$ac_cv_func_mallinfo" = xyes
13219 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13222 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13223 if test "x$ac_cv_func_mallinfo2" = xyes
13225 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13228 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13229 if test "x$ac_cv_func_mbstowcs" = xyes
13231 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13234 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13235 if test "x$ac_cv_func_memalign" = xyes
13237 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13240 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13241 if test "x$ac_cv_func_mempcpy" = xyes
13243 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13246 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13247 if test "x$ac_cv_func_mmap" = xyes
13249 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13252 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13253 if test "x$ac_cv_func_msync" = xyes
13255 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13258 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13259 if test "x$ac_cv_func_nanosleep" = xyes
13261 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13264 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13265 if test "x$ac_cv_func_open64" = xyes
13267 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13270 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13271 if test "x$ac_cv_func_pathconf" = xyes
13273 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13276 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13277 if test "x$ac_cv_func_posix_fadvise" = xyes
13279 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13282 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13283 if test "x$ac_cv_func_posix_fadvise64" = xyes
13285 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13288 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13289 if test "x$ac_cv_func_posix_memalign" = xyes
13291 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13294 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13295 if test "x$ac_cv_func_prctl" = xyes
13297 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13300 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13301 if test "x$ac_cv_func_pread" = xyes
13303 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13306 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13307 if test "x$ac_cv_func_pwrite" = xyes
13309 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13312 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13313 if test "x$ac_cv_func_pread64" = xyes
13315 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13318 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13319 if test "x$ac_cv_func_pwrite64" = xyes
13321 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13324 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13325 if test "x$ac_cv_func_qsort_r" = xyes
13327 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13330 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13331 if test "x$ac_cv_func_secure_getenv" = xyes
13333 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13336 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13337 if test "x$ac_cv_func_setmntent" = xyes
13339 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13342 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13343 if test "x$ac_cv_func_setresgid" = xyes
13345 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13348 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13349 if test "x$ac_cv_func_setresuid" = xyes
13351 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13354 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13355 if test "x$ac_cv_func_snprintf" = xyes
13357 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13360 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13361 if test "x$ac_cv_func_srandom" = xyes
13363 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13366 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13367 if test "x$ac_cv_func_stpcpy" = xyes
13369 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13372 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13373 if test "x$ac_cv_func_strcasecmp" = xyes
13375 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13378 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13379 if test "x$ac_cv_func_strdup" = xyes
13381 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13384 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13385 if test "x$ac_cv_func_strnlen" = xyes
13387 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13390 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13391 if test "x$ac_cv_func_strptime" = xyes
13393 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13396 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13397 if test "x$ac_cv_func_strtoull" = xyes
13399 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13402 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13403 if test "x$ac_cv_func_sync_file_range" = xyes
13405 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13408 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13409 if test "x$ac_cv_func_sysconf" = xyes
13411 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13414 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13415 if test "x$ac_cv_func_usleep" = xyes
13417 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13420 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13421 if test "x$ac_cv_func_utime" = xyes
13423 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13426 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13427 if test "x$ac_cv_func_utimes" = xyes
13429 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13432 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13433 if test "x$ac_cv_func_valloc" = xyes
13435 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13441 printf %s "checking for socket in -lsocket... " >&6; }
13442 if test ${ac_cv_lib_socket_socket+y}
13444 printf %s "(cached) " >&6
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lsocket $LIBS"
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13463 if ac_fn_c_try_link "$LINENO"
13465 ac_cv_lib_socket_socket=yes
13467 ac_cv_lib_socket_socket=no
13469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13474 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13475 if test "x$ac_cv_lib_socket_socket" = xyes
13477 SOCKET_LIB=-lsocket
13481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13482 printf %s "checking for magic_file in -lmagic... " >&6; }
13483 if test ${ac_cv_lib_magic_magic_file+y}
13485 printf %s "(cached) " >&6
13487 ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lmagic $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495 char magic_file ();
13499 return magic_file ();
13504 if ac_fn_c_try_link "$LINENO"
13506 ac_cv_lib_magic_magic_file=yes
13508 ac_cv_lib_magic_magic_file=no
13510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13515 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13516 if test "x$ac_cv_lib_magic_magic_file" = xyes
13519 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13520 if test "x$ac_cv_header_magic_h" = xyes
13522 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13528 if test "$ac_cv_func_dlopen" = yes ; then
13529 MAGIC_LIB=$DLOPEN_LIB
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13533 printf %s "checking for clock_gettime in -lrt... " >&6; }
13534 if test ${ac_cv_lib_rt_clock_gettime+y}
13536 printf %s "(cached) " >&6
13538 ac_check_lib_save_LIBS=$LIBS
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13543 /* Override any GCC internal prototype to avoid an error.
13544 Use char because int might match the return type of a GCC
13545 builtin and then its argument prototype would still apply. */
13546 char clock_gettime ();
13550 return clock_gettime ();
13555 if ac_fn_c_try_link "$LINENO"
13557 ac_cv_lib_rt_clock_gettime=yes
13559 ac_cv_lib_rt_clock_gettime=no
13561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13566 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13567 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13569 CLOCK_GETTIME_LIB=-lrt
13575 # Check whether --enable-fuse2fs was given.
13576 if test ${enable_fuse2fs+y}
13578 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13582 printf "%s\n" "Disabling fuse2fs" >&6; }
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13587 #include <linux/fs.h>
13588 #include <linux/falloc.h>
13589 #include <linux/xattr.h>
13600 if ac_fn_c_try_cpp "$LINENO"
13604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13606 as_fn_error $? "Cannot find fuse2fs Linux headers.
13607 See \`config.log' for more details" "$LINENO" 5; }
13609 rm -f conftest.err conftest.i conftest.$ac_ext
13612 C compiler flags for fuse3, overriding pkg-config
13613 fuse3_LIBS linker flags for fuse3, overriding pkg-config
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13617 printf %s "checking for fuse3... " >&6; }
13619 if test -n "$fuse3_CFLAGS"; then
13620 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13621 elif test -n "$PKG_CONFIG"; then
13622 if test -n "$PKG_CONFIG" && \
13623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13624 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627 test $ac_status = 0; }; then
13628 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13629 test "x$?" != "x0" && pkg_failed=yes
13636 if test -n "$fuse3_LIBS"; then
13637 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13638 elif test -n "$PKG_CONFIG"; then
13639 if test -n "$PKG_CONFIG" && \
13640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13641 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644 test $ac_status = 0; }; then
13645 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13646 test "x$?" != "x0" && pkg_failed=yes
13656 if test $pkg_failed = yes; then
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 printf "%s\n" "no" >&6; }
13660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13661 _pkg_short_errors_supported=yes
13663 _pkg_short_errors_supported=no
13665 if test $_pkg_short_errors_supported = yes; then
13666 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13668 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13670 # Put the nasty error message in config.log where it belongs
13671 echo "$fuse3_PKG_ERRORS" >&5
13674 for ac_header in pthread.h fuse.h
13676 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13678 #define FUSE_USE_VERSION 29
13680 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13682 cat >>confdefs.h <<_ACEOF
13683 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13687 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13688 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13689 as_fn_error $? "Cannot find fuse2fs headers.
13690 See \`config.log' for more details" "$LINENO" 5; }
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13696 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13697 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13699 printf %s "(cached) " >&6
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-losxfuse $LIBS"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13713 return fuse_main ();
13718 if ac_fn_c_try_link "$LINENO"
13720 ac_cv_lib_osxfuse_fuse_main=yes
13722 ac_cv_lib_osxfuse_fuse_main=no
13724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13729 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13730 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13735 printf %s "checking for fuse_main in -lfuse... " >&6; }
13736 if test ${ac_cv_lib_fuse_fuse_main+y}
13738 printf %s "(cached) " >&6
13740 ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-lfuse $LIBS"
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13745 /* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13752 return fuse_main ();
13757 if ac_fn_c_try_link "$LINENO"
13759 ac_cv_lib_fuse_fuse_main=yes
13761 ac_cv_lib_fuse_fuse_main=no
13763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13764 conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13768 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13769 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13774 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13775 as_fn_error $? "Cannot find fuse library.
13776 See \`config.log' for more details" "$LINENO" 5; }
13782 elif test $pkg_failed = untried; then
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 printf "%s\n" "no" >&6; }
13786 for ac_header in pthread.h fuse.h
13788 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13790 #define FUSE_USE_VERSION 29
13792 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13794 cat >>confdefs.h <<_ACEOF
13795 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error $? "Cannot find fuse2fs headers.
13802 See \`config.log' for more details" "$LINENO" 5; }
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13808 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13809 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13811 printf %s "(cached) " >&6
13813 ac_check_lib_save_LIBS=$LIBS
13814 LIBS="-losxfuse $LIBS"
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13825 return fuse_main ();
13830 if ac_fn_c_try_link "$LINENO"
13832 ac_cv_lib_osxfuse_fuse_main=yes
13834 ac_cv_lib_osxfuse_fuse_main=no
13836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13841 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13842 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13847 printf %s "checking for fuse_main in -lfuse... " >&6; }
13848 if test ${ac_cv_lib_fuse_fuse_main+y}
13850 printf %s "(cached) " >&6
13852 ac_check_lib_save_LIBS=$LIBS
13853 LIBS="-lfuse $LIBS"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13857 /* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
13864 return fuse_main ();
13869 if ac_fn_c_try_link "$LINENO"
13871 ac_cv_lib_fuse_fuse_main=yes
13873 ac_cv_lib_fuse_fuse_main=no
13875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13876 conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13880 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13881 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13887 as_fn_error $? "Cannot find fuse library.
13888 See \`config.log' for more details" "$LINENO" 5; }
13895 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
13896 fuse3_LIBS=$pkg_cv_fuse3_LIBS
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13898 printf "%s\n" "yes" >&6; }
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13904 printf "%s\n" "Enabling fuse2fs" >&6; }
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13911 printf %s "checking for fuse3... " >&6; }
13913 if test -n "$fuse3_CFLAGS"; then
13914 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13915 elif test -n "$PKG_CONFIG"; then
13916 if test -n "$PKG_CONFIG" && \
13917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13918 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }; then
13922 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13923 test "x$?" != "x0" && pkg_failed=yes
13930 if test -n "$fuse3_LIBS"; then
13931 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13932 elif test -n "$PKG_CONFIG"; then
13933 if test -n "$PKG_CONFIG" && \
13934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13935 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938 test $ac_status = 0; }; then
13939 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13940 test "x$?" != "x0" && pkg_failed=yes
13950 if test $pkg_failed = yes; then
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 printf "%s\n" "no" >&6; }
13954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13955 _pkg_short_errors_supported=yes
13957 _pkg_short_errors_supported=no
13959 if test $_pkg_short_errors_supported = yes; then
13960 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13962 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13964 # Put the nasty error message in config.log where it belongs
13965 echo "$fuse3_PKG_ERRORS" >&5
13968 for ac_header in pthread.h fuse.h
13970 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13972 #define FUSE_USE_VERSION 29
13974 # include <linux/fs.h>
13975 # include <linux/falloc.h>
13976 # include <linux/xattr.h>
13979 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13981 cat >>confdefs.h <<_ACEOF
13982 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13990 if test -z "$FUSE_CMT"
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13993 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13994 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13996 printf %s "(cached) " >&6
13998 ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-losxfuse $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14010 return fuse_main ();
14015 if ac_fn_c_try_link "$LINENO"
14017 ac_cv_lib_osxfuse_fuse_main=yes
14019 ac_cv_lib_osxfuse_fuse_main=no
14021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14026 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14027 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14032 printf %s "checking for fuse_main in -lfuse... " >&6; }
14033 if test ${ac_cv_lib_fuse_fuse_main+y}
14035 printf %s "(cached) " >&6
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lfuse $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14049 return fuse_main ();
14054 if ac_fn_c_try_link "$LINENO"
14056 ac_cv_lib_fuse_fuse_main=yes
14058 ac_cv_lib_fuse_fuse_main=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14065 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14066 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14077 elif test $pkg_failed = untried; then
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 printf "%s\n" "no" >&6; }
14081 for ac_header in pthread.h fuse.h
14083 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14085 #define FUSE_USE_VERSION 29
14087 # include <linux/fs.h>
14088 # include <linux/falloc.h>
14089 # include <linux/xattr.h>
14092 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14094 cat >>confdefs.h <<_ACEOF
14095 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14103 if test -z "$FUSE_CMT"
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14106 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14107 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14109 printf %s "(cached) " >&6
14111 ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-losxfuse $LIBS"
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14116 /* Override any GCC internal prototype to avoid an error.
14117 Use char because int might match the return type of a GCC
14118 builtin and then its argument prototype would still apply. */
14123 return fuse_main ();
14128 if ac_fn_c_try_link "$LINENO"
14130 ac_cv_lib_osxfuse_fuse_main=yes
14132 ac_cv_lib_osxfuse_fuse_main=no
14134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14139 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14140 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14145 printf %s "checking for fuse_main in -lfuse... " >&6; }
14146 if test ${ac_cv_lib_fuse_fuse_main+y}
14148 printf %s "(cached) " >&6
14150 ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-lfuse $LIBS"
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14155 /* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
14162 return fuse_main ();
14167 if ac_fn_c_try_link "$LINENO"
14169 ac_cv_lib_fuse_fuse_main=yes
14171 ac_cv_lib_fuse_fuse_main=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LIBS=$ac_check_lib_save_LIBS
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14178 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14179 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14191 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14192 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14194 printf "%s\n" "yes" >&6; }
14199 if test -z "$FUSE_CMT"
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14202 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14209 if test "$FUSE_LIB" = "-lfuse3"
14211 FUSE_USE_VERSION=35
14212 CFLAGS="$CFLAGS $fuse3_CFLAGS"
14213 LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14214 for ac_header in pthread.h fuse.h
14216 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14218 #define FUSE_USE_VERSION 35
14220 #include <linux/fs.h>
14221 #include <linux/falloc.h>
14222 #include <linux/xattr.h>
14225 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14227 cat >>confdefs.h <<_ACEOF
14228 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14234 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14235 See \`config.log' for more details" "$LINENO" 5; }
14239 elif test -n "$FUSE_LIB"
14241 FUSE_USE_VERSION=29
14243 if test -n "$FUSE_USE_VERSION"
14246 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14250 printf %s "checking for optreset... " >&6; }
14251 if test ${ac_cv_have_optreset+y}
14253 printf %s "(cached) " >&6
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <unistd.h>
14260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14261 $EGREP "optreset" >/dev/null 2>&1
14263 ac_cv_have_optreset=yes
14265 ac_cv_have_optreset=no
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14271 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14272 if test $ac_cv_have_optreset = yes; then
14274 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14279 echo GL_THREADS_API: ${gl_threads_api}
14280 if test "${gl_threads_api}" != none
14282 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14283 if test "x$ac_cv_func_sem_init" = xyes
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14288 printf %s "checking for sem_init in -lpthread... " >&6; }
14289 if test ${ac_cv_lib_pthread_sem_init+y}
14291 printf %s "(cached) " >&6
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lpthread $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 sem_init ();
14310 if ac_fn_c_try_link "$LINENO"
14312 ac_cv_lib_pthread_sem_init=yes
14314 ac_cv_lib_pthread_sem_init=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_pthread_sem_init" >&5
14321 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14322 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14324 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14326 SEM_INIT_LIB=-lpthread
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14329 printf %s "checking for sem_init in -lrt... " >&6; }
14330 if test ${ac_cv_lib_rt_sem_init+y}
14332 printf %s "(cached) " >&6
14334 ac_check_lib_save_LIBS=$LIBS
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14346 return sem_init ();
14351 if ac_fn_c_try_link "$LINENO"
14353 ac_cv_lib_rt_sem_init=yes
14355 ac_cv_lib_rt_sem_init=no
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14358 conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14362 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14363 if test "x$ac_cv_lib_rt_sem_init" = xyes
14365 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14370 printf %s "checking for sem_init in -lposix4... " >&6; }
14371 if test ${ac_cv_lib_posix4_sem_init+y}
14373 printf %s "(cached) " >&6
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lposix4 $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14387 return sem_init ();
14392 if ac_fn_c_try_link "$LINENO"
14394 ac_cv_lib_posix4_sem_init=yes
14396 ac_cv_lib_posix4_sem_init=no
14398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14399 conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14403 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14404 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14406 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14408 SEM_INIT_LIB=-lposix4
14418 if test "$ac_cv_func_qsort_r" != no
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14422 printf %s "checking whether qsort_r is GNU version... " >&6; }
14423 if test ${e2_cv_gnu_qsort_r+y}
14425 printf %s "(cached) " >&6
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14430 #include <stdlib.h>
14431 void (qsort_r)(void *base, size_t nmemb, size_t size,
14432 int (*compar)(const void *, const void *, void *),
14443 if ac_fn_c_try_compile "$LINENO"
14445 e2_cv_gnu_qsort_r=yes
14447 e2_cv_gnu_qsort_r=no
14449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14453 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14455 printf %s "checking whether qsort_r is BSD version... " >&6; }
14456 if test ${e2_cv_bsd_qsort_r+y}
14458 printf %s "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14463 #include <stdlib.h>
14464 void (qsort_r)(void *base, size_t nmemb, size_t size,
14465 void *arg, int (*compar)(void *, const void *, const void *));
14475 if ac_fn_c_try_compile "$LINENO"
14477 e2_cv_bsd_qsort_r=yes
14479 e2_cv_bsd_qsort_r=no
14481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14485 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14486 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14490 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14496 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14505 printf %s "checking for unified diff option... " >&6; }
14506 if diff -u $0 $0 > /dev/null 2>&1 ; then
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14512 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14517 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14522 printf %s "checking for mount 'nosuid' option... "
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 #include <sys/mount.h>
14529 void *temp = (void *)(MS_NOSUID); (void) temp;
14534 if ac_fn_c_try_compile "$LINENO"
14537 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14539 ac_cv_mount_nosuid=yes
14540 printf "%s\n" "yes"
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <sys/mount.h>
14548 void *temp = (void *)(MNT_NOSUID); (void) temp;
14553 if ac_fn_c_try_compile "$LINENO"
14556 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14558 ac_cv_mount_nosuid=yes
14559 printf "%s\n" "yes"
14561 ac_cv_mount_nosuid=no
14565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14571 printf %s "checking for mount 'nodev' option... "
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 #include <sys/mount.h>
14578 void *temp = (void *)(MS_NODEV); (void) temp;
14583 if ac_fn_c_try_compile "$LINENO"
14586 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14588 ac_cv_mount_nodev=yes
14589 printf "%s\n" "yes"
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <sys/mount.h>
14597 void *temp = (void *)(MNT_NODEV); (void) temp;
14602 if ac_fn_c_try_compile "$LINENO"
14605 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14607 ac_cv_mount_nodev=yes
14608 printf "%s\n" "yes"
14610 ac_cv_mount_nodev=no
14614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14619 # Check whether --enable-lto was given.
14620 if test ${enable_lto+y}
14622 enableval=$enable_lto;
14627 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14629 printf %s "checking if C compiler supports LTO... " >&6; }
14630 OLD_CFLAGS="$CFLAGS"
14631 OLD_LDFLAGS="$LDFLAGS"
14632 LTO_FLAGS="-g -flto -ffat-lto-objects"
14633 CFLAGS="$CFLAGS $LTO_FLAGS"
14634 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14646 if ac_fn_c_try_link "$LINENO"
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 printf "%s\n" "yes" >&6; }
14650 lto_cflags=$LTO_FLAGS
14651 lto_ldflags=$LTO_FLAGS
14652 # Extract the first word of "gcc-ar", so it can be a program name with args.
14653 set dummy gcc-ar; ac_word=$2
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 printf %s "checking for $ac_word... " >&6; }
14656 if test ${ac_cv_path_gcc_ar+y}
14658 printf %s "(cached) " >&6
14662 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14669 case $as_dir in #(((
14672 *) as_dir=$as_dir/ ;;
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14676 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14687 gcc_ar=$ac_cv_path_gcc_ar
14688 if test -n "$gcc_ar"; then
14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14690 printf "%s\n" "$gcc_ar" >&6; }
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 printf "%s\n" "no" >&6; }
14697 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14698 set dummy gcc-ranlib; ac_word=$2
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 printf %s "checking for $ac_word... " >&6; }
14701 if test ${ac_cv_path_gcc_ranlib+y}
14703 printf %s "(cached) " >&6
14705 case $gcc_ranlib in
14707 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 case $as_dir in #(((
14717 *) as_dir=$as_dir/ ;;
14719 for ac_exec_ext in '' $ac_executable_extensions; do
14720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14721 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14732 gcc_ranlib=$ac_cv_path_gcc_ranlib
14733 if test -n "$gcc_ranlib"; then
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14735 printf "%s\n" "$gcc_ranlib" >&6; }
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 printf "%s\n" "no" >&6; }
14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 printf "%s\n" "no" >&6; }
14746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14747 conftest$ac_exeext conftest.$ac_ext
14748 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14751 RANLIB="${gcc_ranlib}"
14753 CFLAGS="${OLD_CFLAGS}"
14754 LDFLAGS="${OLD_LDFLAGS}"
14759 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14760 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14762 # Check whether --enable-ubsan was given.
14763 if test ${enable_ubsan+y}
14765 enableval=$enable_ubsan;
14770 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14772 printf %s "checking if C compiler supports UBSAN... " >&6; }
14773 OLD_CFLAGS="$CFLAGS"
14774 OLD_LDFLAGS="$LDFLAGS"
14775 UBSAN_FLAGS="-fsanitize=undefined"
14776 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14777 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14789 if ac_fn_c_try_link "$LINENO"
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14792 printf "%s\n" "yes" >&6; }
14793 ubsan_cflags=$UBSAN_FLAGS
14794 ubsan_ldflags=$UBSAN_FLAGS
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 printf "%s\n" "no" >&6; }
14800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14801 conftest$ac_exeext conftest.$ac_ext
14802 CFLAGS="${OLD_CFLAGS}"
14803 LDFLAGS="${OLD_LDFLAGS}"
14808 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14809 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14811 # Check whether --enable-addrsan was given.
14812 if test ${enable_addrsan+y}
14814 enableval=$enable_addrsan;
14819 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14821 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14822 OLD_CFLAGS="$CFLAGS"
14823 OLD_LDFLAGS="$LDFLAGS"
14824 ADDRSAN_FLAGS="-fsanitize=address"
14825 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14826 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14838 if ac_fn_c_try_link "$LINENO"
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14841 printf "%s\n" "yes" >&6; }
14842 addrsan_cflags=$ADDRSAN_FLAGS
14843 addrsan_ldflags=$ADDRSAN_FLAGS
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 printf "%s\n" "no" >&6; }
14849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14850 conftest$ac_exeext conftest.$ac_ext
14851 CFLAGS="${OLD_CFLAGS}"
14852 LDFLAGS="${OLD_LDFLAGS}"
14857 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14858 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14860 # Check whether --enable-threadsan was given.
14861 if test ${enable_threadsan+y}
14863 enableval=$enable_threadsan;
14865 enable_threadsan=no
14868 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14870 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14871 OLD_CFLAGS="$CFLAGS"
14872 OLD_LDFLAGS="$LDFLAGS"
14873 THREADSAN_FLAGS="-fsanitize=thread"
14874 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14875 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14887 if ac_fn_c_try_link "$LINENO"
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890 printf "%s\n" "yes" >&6; }
14891 threadsan_cflags=$THREADSAN_FLAGS
14892 threadsan_ldflags=$THREADSAN_FLAGS
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14899 conftest$ac_exeext conftest.$ac_ext
14900 CFLAGS="${OLD_CFLAGS}"
14901 LDFLAGS="${OLD_LDFLAGS}"
14906 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14907 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14909 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14911 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14914 # Check whether --enable-fuzzing was given.
14915 if test ${enable_fuzzing+y}
14917 enableval=$enable_fuzzing;
14922 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14930 ac_cpp='$CXXCPP $CPPFLAGS'
14931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14934 if test -z "$CXX"; then
14935 if test -n "$CCC"; then
14938 if test -n "$ac_tool_prefix"; then
14939 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944 printf %s "checking for $ac_word... " >&6; }
14945 if test ${ac_cv_prog_CXX+y}
14947 printf %s "(cached) " >&6
14949 if test -n "$CXX"; then
14950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $PATH
14956 case $as_dir in #(((
14959 *) as_dir=$as_dir/ ;;
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14973 CXX=$ac_cv_prog_CXX
14974 if test -n "$CXX"; then
14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14976 printf "%s\n" "$CXX" >&6; }
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 printf "%s\n" "no" >&6; }
14983 test -n "$CXX" && break
14986 if test -z "$CXX"; then
14988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14990 # Extract the first word of "$ac_prog", so it can be a program name with args.
14991 set dummy $ac_prog; ac_word=$2
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993 printf %s "checking for $ac_word... " >&6; }
14994 if test ${ac_cv_prog_ac_ct_CXX+y}
14996 printf %s "(cached) " >&6
14998 if test -n "$ac_ct_CXX"; then
14999 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15005 case $as_dir in #(((
15008 *) as_dir=$as_dir/ ;;
15010 for ac_exec_ext in '' $ac_executable_extensions; do
15011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15012 ac_cv_prog_ac_ct_CXX="$ac_prog"
15013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15023 if test -n "$ac_ct_CXX"; then
15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15025 printf "%s\n" "$ac_ct_CXX" >&6; }
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 printf "%s\n" "no" >&6; }
15032 test -n "$ac_ct_CXX" && break
15035 if test "x$ac_ct_CXX" = x; then
15038 case $cross_compiling:$ac_tool_warned in
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15042 ac_tool_warned=yes ;;
15050 # Provide some information about the compiler.
15051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15054 for ac_option in --version -v -V -qversion; do
15055 { { ac_try="$ac_compiler $ac_option >&5"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15061 printf "%s\n" "$ac_try_echo"; } >&5
15062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15064 if test -s conftest.err; then
15066 ... rest of stderr output deleted ...
15067 10q' conftest.err >conftest.er1
15068 cat conftest.er1 >&5
15070 rm -f conftest.er1 conftest.err
15071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072 test $ac_status = 0; }
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15076 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15077 if test ${ac_cv_cxx_compiler_gnu+y}
15079 printf %s "(cached) " >&6
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15095 if ac_fn_cxx_try_compile "$LINENO"
15097 ac_compiler_gnu=yes
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15102 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15106 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15109 if test $ac_compiler_gnu = yes; then
15114 ac_test_CXXFLAGS=${CXXFLAGS+y}
15115 ac_save_CXXFLAGS=$CXXFLAGS
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15117 printf %s "checking whether $CXX accepts -g... " >&6; }
15118 if test ${ac_cv_prog_cxx_g+y}
15120 printf %s "(cached) " >&6
15122 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15123 ac_cxx_werror_flag=yes
15124 ac_cv_prog_cxx_g=no
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15137 if ac_fn_cxx_try_compile "$LINENO"
15139 ac_cv_prog_cxx_g=yes
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15153 if ac_fn_cxx_try_compile "$LINENO"
15157 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15170 if ac_fn_cxx_try_compile "$LINENO"
15172 ac_cv_prog_cxx_g=yes
15174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15182 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15183 if test $ac_test_CXXFLAGS; then
15184 CXXFLAGS=$ac_save_CXXFLAGS
15185 elif test $ac_cv_prog_cxx_g = yes; then
15186 if test "$GXX" = yes; then
15192 if test "$GXX" = yes; then
15198 ac_prog_cxx_stdcxx=no
15199 if test x$ac_prog_cxx_stdcxx = xno
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15202 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15203 if test ${ac_cv_prog_cxx_cxx11+y}
15205 printf %s "(cached) " >&6
15207 ac_cv_prog_cxx_cxx11=no
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 $ac_cxx_conftest_cxx11_program
15213 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15215 CXX="$ac_save_CXX $ac_arg"
15216 if ac_fn_cxx_try_compile "$LINENO"
15218 ac_cv_prog_cxx_cxx11=$ac_arg
15220 rm -f core conftest.err conftest.$ac_objext conftest.beam
15221 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15223 rm -f conftest.$ac_ext
15227 if test "x$ac_cv_prog_cxx_cxx11" = xno
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15230 printf "%s\n" "unsupported" >&6; }
15232 if test "x$ac_cv_prog_cxx_cxx11" = x
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15235 printf "%s\n" "none needed" >&6; }
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15238 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15239 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15241 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15242 ac_prog_cxx_stdcxx=cxx11
15245 if test x$ac_prog_cxx_stdcxx = xno
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15248 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15249 if test ${ac_cv_prog_cxx_cxx98+y}
15251 printf %s "(cached) " >&6
15253 ac_cv_prog_cxx_cxx98=no
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 $ac_cxx_conftest_cxx98_program
15259 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15261 CXX="$ac_save_CXX $ac_arg"
15262 if ac_fn_cxx_try_compile "$LINENO"
15264 ac_cv_prog_cxx_cxx98=$ac_arg
15266 rm -f core conftest.err conftest.$ac_objext conftest.beam
15267 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15269 rm -f conftest.$ac_ext
15273 if test "x$ac_cv_prog_cxx_cxx98" = xno
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15276 printf "%s\n" "unsupported" >&6; }
15278 if test "x$ac_cv_prog_cxx_cxx98" = x
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15281 printf "%s\n" "none needed" >&6; }
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15284 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15285 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15287 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15288 ac_prog_cxx_stdcxx=cxx98
15293 ac_cpp='$CPP $CPPFLAGS'
15294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15299 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15301 ac_cpp='$CXXCPP $CPPFLAGS'
15302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15306 OLD_CXXFLAGS="$CXXFLAGS"
15307 OLD_LDFLAGS="$LDFLAGS"
15308 FUZZER_FLAGS="-fsanitize=fuzzer"
15309 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15310 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15315 #include <stddef.h>
15316 #include <stdint.h>
15326 if ac_fn_cxx_try_compile "$LINENO"
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329 printf "%s\n" "yes" >&6; }
15330 fuzzer_cflags=$FUZZER_FLAGS
15331 fuzzer_ldflags=$FUZZER_FLAGS
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15336 printf "%s\n" "no" >&6; }
15337 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15340 CXXFLAGS="${OLD_CXXFLAGS}"
15341 LDFLAGS="${OLD_LDFLAGS}"
15343 ac_cpp='$CPP $CPPFLAGS'
15344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15352 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15353 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15371 E2SCRUB_CMT="$LINUX_CMT"
15374 linux* | gnu* | k*bsd*-gnu)
15375 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15378 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15383 linux* | gnu* | k*bsd*-gnu)
15384 if test "$prefix" = NONE ; then
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15387 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15388 if test "$mandir" = '${prefix}/man' ; then
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15390 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15391 mandir=/usr/share/man
15396 if test "$root_prefix" = NONE ; then
15397 if test "$prefix" = NONE ; then
15398 root_prefix="$ac_default_prefix"
15400 root_prefix="$prefix"
15402 root_bindir=$bindir
15403 root_sbindir=$sbindir
15404 root_libdir=$libdir
15405 root_sysconfdir=$sysconfdir
15407 root_bindir='${root_prefix}/bin'
15408 root_sbindir='${root_prefix}/sbin'
15409 root_libdir='${root_prefix}/lib'
15410 root_sysconfdir='${root_prefix}/etc'
15412 if test "$bindir" != '${exec_prefix}/bin'; then
15413 root_bindir=$bindir
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15415 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15417 if test "$sbindir" != '${exec_prefix}/sbin'; then
15418 root_sbindir=$sbindir
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15420 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15422 if test "$libdir" != '${exec_prefix}/lib'; then
15423 root_libdir=$libdir
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15425 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15427 if test "$sysconfdir" != '${prefix}/etc'; then
15428 root_sysconfdir=$sysconfdir
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15430 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15438 # Check whether --with-multiarch was given.
15439 if test ${with_multiarch+y}
15441 withval=$with_multiarch; if test "$withval" = "lib64"; then
15445 libdir=$libdir/$withval
15446 root_libdir=$root_libdir/$withval
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15452 printf %s "checking whether we can link with -static... " >&6; }
15453 if test ${ac_cv_e2fsprogs_use_static+y}
15455 printf %s "(cached) " >&6
15457 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15469 if ac_fn_c_try_link "$LINENO"
15471 ac_cv_e2fsprogs_use_static=yes
15473 ac_cv_e2fsprogs_use_static=no
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LDFLAGS=$SAVE_LDFLAGS
15482 ac_cv_e2fsprogs_use_static=no
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15486 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15487 if test $ac_cv_e2fsprogs_use_static = yes; then
15488 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15494 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15496 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15500 if test "$cross_compiling" = yes ; then
15503 DO_TEST_SUITE=check
15506 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15507 if test -n "$CPPFLAGS" ; then
15508 INCLUDES="$INCLUDES $CPPFLAGS"
15510 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15511 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15513 if test -n "$WITH_DIET_LIBC" ; then
15514 INCLUDES="$INCLUDES -D_REENTRANT"
15518 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15522 if test $cross_compiling = no; then
15523 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15524 BUILD_LDFLAGS="$LDFLAGS"
15528 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15529 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15530 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15536 # Check whether --with-udev_rules_dir was given.
15537 if test ${with_udev_rules_dir+y}
15539 withval=$with_udev_rules_dir;
15541 with_udev_rules_dir=yes
15544 if test "x${with_udev_rules_dir}" != "xno"
15547 if test "x${with_udev_rules_dir}" = "xyes"
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15553 printf %s "checking for udev... " >&6; }
15555 if test -n "$udev_CFLAGS"; then
15556 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15557 elif test -n "$PKG_CONFIG"; then
15558 if test -n "$PKG_CONFIG" && \
15559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15560 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; }; then
15564 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15565 test "x$?" != "x0" && pkg_failed=yes
15572 if test -n "$udev_LIBS"; then
15573 pkg_cv_udev_LIBS="$udev_LIBS"
15574 elif test -n "$PKG_CONFIG"; then
15575 if test -n "$PKG_CONFIG" && \
15576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15577 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15580 test $ac_status = 0; }; then
15581 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15582 test "x$?" != "x0" && pkg_failed=yes
15592 if test $pkg_failed = yes; then
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 printf "%s\n" "no" >&6; }
15596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15597 _pkg_short_errors_supported=yes
15599 _pkg_short_errors_supported=no
15601 if test $_pkg_short_errors_supported = yes; then
15602 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15604 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15606 # Put the nasty error message in config.log where it belongs
15607 echo "$udev_PKG_ERRORS" >&5
15610 with_udev_rules_dir=""
15612 elif test $pkg_failed = untried; then
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 printf "%s\n" "no" >&6; }
15616 with_udev_rules_dir=""
15619 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15620 udev_LIBS=$pkg_cv_udev_LIBS
15621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15622 printf "%s\n" "yes" >&6; }
15624 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15630 printf %s "checking for udev rules dir... " >&6; }
15631 pkg_udev_rules_dir="${with_udev_rules_dir}"
15632 if test -n "${pkg_udev_rules_dir}"
15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15636 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 printf "%s\n" "no" >&6; }
15649 have_udev="disabled"
15656 # Check whether --with-crond_dir was given.
15657 if test ${with_crond_dir+y}
15659 withval=$with_crond_dir;
15664 if test "x${with_crond_dir}" != "xno"
15667 if test "x${with_crond_dir}" = "xyes"
15670 if test -d "/etc/cron.d"
15672 with_crond_dir="/etc/cron.d"
15674 have_crond="no"; with_crond_dir=""
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15679 printf %s "checking for system crontab dir... " >&6; }
15680 crond_dir="${with_crond_dir}"
15681 if test -n "${crond_dir}"
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15685 printf "%s\n" "${crond_dir}" >&6; }
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 printf "%s\n" "no" >&6; }
15698 have_crond="disabled"
15705 # Check whether --with-systemd_unit_dir was given.
15706 if test ${with_systemd_unit_dir+y}
15708 withval=$with_systemd_unit_dir;
15710 with_systemd_unit_dir=yes
15713 if test "x${with_systemd_unit_dir}" != "xno"
15716 if test "x${with_systemd_unit_dir}" = "xyes"
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15722 printf %s "checking for systemd... " >&6; }
15724 if test -n "$systemd_CFLAGS"; then
15725 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15726 elif test -n "$PKG_CONFIG"; then
15727 if test -n "$PKG_CONFIG" && \
15728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15729 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; }; then
15733 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15734 test "x$?" != "x0" && pkg_failed=yes
15741 if test -n "$systemd_LIBS"; then
15742 pkg_cv_systemd_LIBS="$systemd_LIBS"
15743 elif test -n "$PKG_CONFIG"; then
15744 if test -n "$PKG_CONFIG" && \
15745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15746 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15749 test $ac_status = 0; }; then
15750 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15751 test "x$?" != "x0" && pkg_failed=yes
15761 if test $pkg_failed = yes; then
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 printf "%s\n" "no" >&6; }
15765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15766 _pkg_short_errors_supported=yes
15768 _pkg_short_errors_supported=no
15770 if test $_pkg_short_errors_supported = yes; then
15771 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15773 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15775 # Put the nasty error message in config.log where it belongs
15776 echo "$systemd_PKG_ERRORS" >&5
15779 with_systemd_unit_dir=""
15781 elif test $pkg_failed = untried; then
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 printf "%s\n" "no" >&6; }
15785 with_systemd_unit_dir=""
15788 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15789 systemd_LIBS=$pkg_cv_systemd_LIBS
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 printf "%s\n" "yes" >&6; }
15793 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15800 printf %s "checking for systemd system unit dir... " >&6; }
15801 systemd_system_unit_dir="${with_systemd_unit_dir}"
15802 if test -n "${systemd_system_unit_dir}"
15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15806 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 printf "%s\n" "no" >&6; }
15819 have_systemd="disabled"
15827 OS_IO_FILE=windows_io
15835 # Check whether --enable-largefile was given.
15836 if test ${enable_largefile+y}
15838 enableval=$enable_largefile;
15841 if test "$enable_largefile" != no; then
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15844 printf %s "checking for special C compiler options needed for large files... " >&6; }
15845 if test ${ac_cv_sys_largefile_CC+y}
15847 printf %s "(cached) " >&6
15849 ac_cv_sys_largefile_CC=no
15850 if test "$GCC" != yes; then
15853 # IRIX 6.2 and later do not support large files by default,
15854 # so use the C compiler's -n32 option if that helps.
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15857 #include <sys/types.h>
15858 /* Check that off_t can represent 2**63 - 1 correctly.
15859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15860 since some C++ compilers masquerading as C compilers
15861 incorrectly reject 9223372036854775807. */
15862 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15864 && LARGE_OFF_T % 2147483647 == 1)
15874 if ac_fn_c_try_compile "$LINENO"
15878 rm -f core conftest.err conftest.$ac_objext conftest.beam
15880 if ac_fn_c_try_compile "$LINENO"
15882 ac_cv_sys_largefile_CC=' -n32'; break
15884 rm -f core conftest.err conftest.$ac_objext conftest.beam
15888 rm -f conftest.$ac_ext
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15892 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15893 if test "$ac_cv_sys_largefile_CC" != no; then
15894 CC=$CC$ac_cv_sys_largefile_CC
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15898 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15899 if test ${ac_cv_sys_file_offset_bits+y}
15901 printf %s "(cached) " >&6
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <sys/types.h>
15907 /* Check that off_t can represent 2**63 - 1 correctly.
15908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15909 since some C++ compilers masquerading as C compilers
15910 incorrectly reject 9223372036854775807. */
15911 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15913 && LARGE_OFF_T % 2147483647 == 1)
15923 if ac_fn_c_try_compile "$LINENO"
15925 ac_cv_sys_file_offset_bits=no; break
15927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 #define _FILE_OFFSET_BITS 64
15931 #include <sys/types.h>
15932 /* Check that off_t can represent 2**63 - 1 correctly.
15933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15934 since some C++ compilers masquerading as C compilers
15935 incorrectly reject 9223372036854775807. */
15936 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15938 && LARGE_OFF_T % 2147483647 == 1)
15948 if ac_fn_c_try_compile "$LINENO"
15950 ac_cv_sys_file_offset_bits=64; break
15952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15953 ac_cv_sys_file_offset_bits=unknown
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15958 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15959 case $ac_cv_sys_file_offset_bits in #(
15962 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15966 if test $ac_cv_sys_file_offset_bits = unknown; then
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15968 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15969 if test ${ac_cv_sys_large_files+y}
15971 printf %s "(cached) " >&6
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <sys/types.h>
15977 /* Check that off_t can represent 2**63 - 1 correctly.
15978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15979 since some C++ compilers masquerading as C compilers
15980 incorrectly reject 9223372036854775807. */
15981 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15983 && LARGE_OFF_T % 2147483647 == 1)
15993 if ac_fn_c_try_compile "$LINENO"
15995 ac_cv_sys_large_files=no; break
15997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #define _LARGE_FILES 1
16001 #include <sys/types.h>
16002 /* Check that off_t can represent 2**63 - 1 correctly.
16003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16004 since some C++ compilers masquerading as C compilers
16005 incorrectly reject 9223372036854775807. */
16006 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16008 && LARGE_OFF_T % 2147483647 == 1)
16018 if ac_fn_c_try_compile "$LINENO"
16020 ac_cv_sys_large_files=1; break
16022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16023 ac_cv_sys_large_files=unknown
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16028 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
16029 case $ac_cv_sys_large_files in #(
16032 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
16040 test -d lib || mkdir lib
16041 test -d include || mkdir include
16042 test -d include/linux || mkdir include/linux
16043 test -d include/asm || mkdir include/asm
16044 if test -z "$UUID_CMT" ; then
16045 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16046 lib/uuid/uuid_types.h"
16048 if test -z "$BLKID_CMT" ; then
16049 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16050 lib/blkid/blkid_types.h"
16052 for i in MCONFIG Makefile \
16053 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16054 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16055 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16056 $uuid_out_list $blkid_out_list lib/support/Makefile \
16057 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16058 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16059 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16060 tests/fuzz/Makefile resize/Makefile doc/Makefile \
16061 po/Makefile.in scrub/Makefile; do
16062 if test -d `dirname ${srcdir}/$i` ; then
16063 outlist="$outlist $i"
16066 ac_config_files="$ac_config_files $outlist"
16068 cat >confcache <<\_ACEOF
16069 # This file is a shell script that caches the results of configure
16070 # tests run on this system so they can be shared between configure
16071 # scripts and configure runs, see configure's option --config-cache.
16072 # It is not useful on other systems. If it contains results you don't
16073 # want to keep, you may remove or edit it.
16075 # config.status only pays attention to the cache file if you give it
16076 # the --recheck option to rerun configure.
16078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16080 # following values.
16084 # The following way of writing the cache mishandles newlines in values,
16085 # but we know of no workaround that is simple, portable, and efficient.
16086 # So, we kill variables containing newlines.
16087 # Ultrix sh set writes to stderr and can't be redirected directly,
16088 # and sets the high bit in the cache file unless we assign to the vars.
16090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16091 eval ac_val=\$$ac_var
16095 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16096 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16099 _ | IFS | as_nl) ;; #(
16100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16101 *) { eval $ac_var=; unset $ac_var;} ;;
16107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16108 *${as_nl}ac_space=\ *)
16109 # `set' does not quote correctly, so add quotes: double-quote
16110 # substitution turns \\\\ into \\, and sed turns \\ into \.
16113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16116 # `set' quotes correctly as required by POSIX, so do not add quotes.
16117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16126 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16131 if test -w "$cache_file"; then
16132 if test "x$cache_file" != "x/dev/null"; then
16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16134 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16135 if test ! -f "$cache_file" || test -h "$cache_file"; then
16136 cat confcache >"$cache_file"
16138 case $cache_file in #(
16140 mv -f confcache "$cache_file"$$ &&
16141 mv -f "$cache_file"$$ "$cache_file" ;; #(
16143 mv -f confcache "$cache_file" ;;
16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16149 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16155 # Let make expand exec_prefix.
16156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16158 DEFS=-DHAVE_CONFIG_H
16163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16164 # 1. Remove the extension, and $U if already installed.
16165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16166 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16168 # will be set to the directory where LIBOBJS objects are built.
16169 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16170 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16172 LIBOBJS=$ac_libobjs
16174 LTLIBOBJS=$ac_ltlibobjs
16179 : "${CONFIG_STATUS=./config.status}"
16181 ac_clean_files_save=$ac_clean_files
16182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16184 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16186 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16188 # Generated by $as_me.
16189 # Run this file to recreate the current configuration.
16190 # Compiler output produced by configure, useful for debugging
16191 # configure, is in config.log if it exists.
16194 ac_cs_recheck=false
16197 SHELL=\${CONFIG_SHELL-$SHELL}
16200 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16201 ## -------------------- ##
16202 ## M4sh Initialization. ##
16203 ## -------------------- ##
16205 # Be more Bourne compatible
16206 DUALCASE=1; export DUALCASE # for MKS sh
16208 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16213 # is contrary to our usage. Disable this feature.
16214 alias -g '${1+"$@"}'='"$@"'
16215 setopt NO_GLOB_SUBST
16217 case `(set -o) 2>/dev/null` in #(
16227 # Reset variables that may have inherited troublesome values from
16230 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16231 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16232 # side effect of setting IFS to empty, thus disabling word splitting.)
16233 # Quoting is to prevent editors from complaining about space-tab.
16243 # Ensure predictable behavior from utilities with locale-dependent output.
16249 # We cannot yet rely on "unset" to work, but we need these variables
16250 # to be unset--not just set to an empty or harmless value--now, to
16251 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16252 # also avoids known problems related to "unset" and subshell syntax
16253 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16254 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16255 do eval test \${$as_var+y} \
16256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16259 # Ensure that fds 0, 1, and 2 are open.
16260 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16261 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16262 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16264 # The user is always right.
16265 if ${PATH_SEPARATOR+false} :; then
16267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16268 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16274 # Find who we are. Look in the path if we contain no directory separator.
16277 *[\\/]* ) as_myself=$0 ;;
16278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16282 case $as_dir in #(((
16285 *) as_dir=$as_dir/ ;;
16287 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16293 # We did not find ourselves, most probably we were run as `sh COMMAND'
16294 # in which case we are not to be found in the path.
16295 if test "x$as_myself" = x; then
16298 if test ! -f "$as_myself"; then
16299 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16305 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16306 # ----------------------------------------
16307 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16308 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16309 # script with STATUS, using 1 if that was 0.
16312 as_status=$1; test $as_status -eq 0 && as_status=1
16314 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16317 printf "%s\n" "$as_me: error: $2" >&2
16318 as_fn_exit $as_status
16323 # as_fn_set_status STATUS
16324 # -----------------------
16325 # Set $? to STATUS, without forking.
16326 as_fn_set_status ()
16329 } # as_fn_set_status
16331 # as_fn_exit STATUS
16332 # -----------------
16333 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16337 as_fn_set_status $1
16343 # Portably unset VAR.
16346 { eval $1=; unset $1;}
16348 as_unset=as_fn_unset
16350 # as_fn_append VAR VALUE
16351 # ----------------------
16352 # Append the text in VALUE to the end of the definition contained in VAR. Take
16353 # advantage of any shell optimizations that allow amortized linear growth over
16354 # repeated appends, instead of the typical quadratic growth present in naive
16356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16358 eval 'as_fn_append ()
16369 # as_fn_arith ARG...
16370 # ------------------
16371 # Perform arithmetic evaluation on the ARGs, and store the result in the
16372 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16373 # must be portable across $(()) and expr.
16374 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16376 eval 'as_fn_arith ()
16383 as_val=`expr "$@" || test $? -eq 1`
16388 if expr a : '\(a\)' >/dev/null 2>&1 &&
16389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16396 as_basename=basename
16401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16407 as_me=`$as_basename -- "$0" ||
16408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16409 X"$0" : 'X\(//\)$' \| \
16410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16411 printf "%s\n" X/"$0" |
16412 sed '/^.*\/\([^/][^/]*\)\/*$/{
16426 # Avoid depending upon Character Ranges.
16427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16430 as_cr_digits='0123456789'
16431 as_cr_alnum=$as_cr_Letters$as_cr_digits
16434 # Determine whether it's possible to make 'echo' print without a newline.
16435 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16436 # for compatibility with existing Makefiles.
16437 ECHO_C= ECHO_N= ECHO_T=
16438 case `echo -n x` in #(((((
16440 case `echo 'xy\c'` in
16441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16443 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16450 # For backward compatibility with old third-party macros, we provide
16451 # the shell variables $as_echo and $as_echo_n. New code should use
16452 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16453 as_echo='printf %s\n'
16454 as_echo_n='printf %s'
16456 rm -f conf$$ conf$$.exe conf$$.file
16457 if test -d conf$$.dir; then
16458 rm -f conf$$.dir/conf$$.file
16461 mkdir conf$$.dir 2>/dev/null
16463 if (echo >conf$$.file) 2>/dev/null; then
16464 if ln -s conf$$.file conf$$ 2>/dev/null; then
16466 # ... but there are two gotchas:
16467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16469 # In both cases, we have to default to `cp -pR'.
16470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16472 elif ln conf$$.file conf$$ 2>/dev/null; then
16480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16481 rmdir conf$$.dir 2>/dev/null
16486 # Create "$as_dir" as a directory, including parents if necessary.
16491 -*) as_dir=./$as_dir;;
16493 test -d "$as_dir" || eval $as_mkdir_p || {
16497 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16498 *) as_qdir=$as_dir;;
16500 as_dirs="'$as_qdir' $as_dirs"
16501 as_dir=`$as_dirname -- "$as_dir" ||
16502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16503 X"$as_dir" : 'X\(//\)[^/]' \| \
16504 X"$as_dir" : 'X\(//\)$' \| \
16505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16506 printf "%s\n" X"$as_dir" |
16507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16511 /^X\(\/\/\)[^/].*/{
16524 test -d "$as_dir" && break
16526 test -z "$as_dirs" || eval "mkdir $as_dirs"
16527 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16531 if mkdir -p . 2>/dev/null; then
16532 as_mkdir_p='mkdir -p "$as_dir"'
16534 test -d ./-p && rmdir ./-p
16539 # as_fn_executable_p FILE
16540 # -----------------------
16541 # Test if FILE is an executable regular file.
16542 as_fn_executable_p ()
16544 test -f "$1" && test -x "$1"
16545 } # as_fn_executable_p
16546 as_test_x='test -x'
16547 as_executable_p=as_fn_executable_p
16549 # Sed expression to map a string onto a valid CPP name.
16550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16552 # Sed expression to map a string onto a valid variable name.
16553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16557 ## ----------------------------------- ##
16558 ## Main body of $CONFIG_STATUS script. ##
16559 ## ----------------------------------- ##
16561 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 # Save the log message, to keep $0 and so on meaningful, and to
16565 # report actual input values of CONFIG_FILES etc. instead of their
16566 # values after options handling.
16568 This file was extended by $as_me, which was
16569 generated by GNU Autoconf 2.71. Invocation command line was
16571 CONFIG_FILES = $CONFIG_FILES
16572 CONFIG_HEADERS = $CONFIG_HEADERS
16573 CONFIG_LINKS = $CONFIG_LINKS
16574 CONFIG_COMMANDS = $CONFIG_COMMANDS
16577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16582 case $ac_config_files in *"
16583 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16586 case $ac_config_headers in *"
16587 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592 # Files that config.status was made for.
16593 config_files="$ac_config_files"
16594 config_headers="$ac_config_headers"
16595 config_commands="$ac_config_commands"
16599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 \`$as_me' instantiates files and other configuration actions
16602 from templates according to the current configuration. Unless the files
16603 and actions are specified as TAGs, all are instantiated by default.
16605 Usage: $0 [OPTION]... [TAG]...
16607 -h, --help print this help, then exit
16608 -V, --version print version number and configuration settings, then exit
16609 --config print configuration, then exit
16610 -q, --quiet, --silent
16611 do not print progress messages
16612 -d, --debug don't remove temporary files
16613 --recheck update $as_me by reconfiguring in the same conditions
16614 --file=FILE[:TEMPLATE]
16615 instantiate the configuration file FILE
16616 --header=FILE[:TEMPLATE]
16617 instantiate the configuration header FILE
16619 Configuration files:
16622 Configuration headers:
16625 Configuration commands:
16628 Report bugs to the package provider."
16631 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16632 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16634 ac_cs_config='$ac_cs_config_escaped'
16637 configured by $0, generated by GNU Autoconf 2.71,
16638 with options \\"\$ac_cs_config\\"
16640 Copyright (C) 2021 Free Software Foundation, Inc.
16641 This config.status script is free software; the Free Software Foundation
16642 gives unlimited permission to copy, distribute and modify it."
16649 test -n "\$AWK" || AWK=awk
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 # The default lists apply if the user does not specify any file.
16659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16676 # Handling of the options.
16677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16680 printf "%s\n" "$ac_cs_version"; exit ;;
16681 --config | --confi | --conf | --con | --co | --c )
16682 printf "%s\n" "$ac_cs_config"; exit ;;
16683 --debug | --debu | --deb | --de | --d | -d )
16685 --file | --fil | --fi | --f )
16688 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16689 '') as_fn_error $? "missing file argument" ;;
16691 as_fn_append CONFIG_FILES " '$ac_optarg'"
16692 ac_need_defaults=false;;
16693 --header | --heade | --head | --hea )
16696 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16699 ac_need_defaults=false;;
16701 # Conflict between --help and --header
16702 as_fn_error $? "ambiguous option: \`$1'
16703 Try \`$0 --help' for more information.";;
16704 --help | --hel | -h )
16705 printf "%s\n" "$ac_cs_usage"; exit ;;
16706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16710 # This is an error.
16711 -*) as_fn_error $? "unrecognized option: \`$1'
16712 Try \`$0 --help' for more information." ;;
16714 *) as_fn_append ac_config_targets " $1"
16715 ac_need_defaults=false ;;
16721 ac_configure_extra_args=
16723 if $ac_cs_silent; then
16725 ac_configure_extra_args="$ac_configure_extra_args --silent"
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 if \$ac_cs_recheck; then
16731 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16733 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16734 CONFIG_SHELL='$SHELL'
16735 export CONFIG_SHELL
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16745 ## Running $as_me. ##
16747 printf "%s\n" "$ac_log"
16751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16755 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16756 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16757 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16758 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16759 LINGUAS="${LINGUAS-%UNSET%}"
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16766 # Handling of arguments.
16767 for ac_config_target in $ac_config_targets
16769 case $ac_config_target in
16770 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16771 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16772 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16779 # If the user did not use the arguments to specify the items to instantiate,
16780 # then the envvar interface is used. Set only those that are not.
16781 # We use the long form for the default assignment because of an extremely
16782 # bizarre bug on SunOS 4.1.3.
16783 if $ac_need_defaults; then
16784 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16785 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16786 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16789 # Have a temporary directory for convenience. Make it in the build tree
16790 # simply because there is no reason against having it here, and in addition,
16791 # creating and moving files from /tmp can sometimes cause problems.
16792 # Hook for its removal unless debugging.
16793 # Note that there is a small window in which the directory will not be cleaned:
16794 # after its creation but before its name has been assigned to `$tmp'.
16798 trap 'exit_status=$?
16799 : "${ac_tmp:=$tmp}"
16800 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16802 trap 'as_fn_exit 1' 1 2 13 15
16804 # Create a (secure) tmp directory for tmp files.
16807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16811 tmp=./conf$$-$RANDOM
16812 (umask 077 && mkdir "$tmp")
16813 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16816 # Set up the scripts for CONFIG_FILES section.
16817 # No need to generate them if there are no CONFIG_FILES.
16818 # This happens for instance with `./config.status config.h'.
16819 if test -n "$CONFIG_FILES"; then
16821 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16822 ac_cs_awk_getline=:
16823 ac_cs_awk_pipe_init=
16824 ac_cs_awk_read_file='
16825 while ((getline aline < (F[key])) > 0)
16828 ac_cs_awk_pipe_fini=
16830 ac_cs_awk_getline=false
16831 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16832 ac_cs_awk_read_file='
16834 print "cat " F[key] " &&"
16835 '$ac_cs_awk_pipe_init
16836 # The final `:' finishes the AND list.
16837 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16839 ac_cr=`echo X | tr X '\015'`
16840 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16841 # But we know of no other shell where ac_cr would be empty at this
16842 # point, so we can use a bashism as a fallback.
16843 if test "x$ac_cr" = x; then
16844 eval ac_cr=\$\'\\r\'
16846 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16847 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16850 ac_cs_awk_cr=$ac_cr
16853 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16856 # Create commands to substitute file output variables.
16858 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16859 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16860 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16863 } >conf$$files.sh &&
16864 . ./conf$$files.sh ||
16865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16866 rm -f conf$$files.sh
16869 echo "cat >conf$$subs.awk <<_ACEOF" &&
16870 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16872 } >conf$$subs.sh ||
16873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16876 for ac_last_try in false false false false false :; do
16877 . ./conf$$subs.sh ||
16878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16880 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16881 if test $ac_delim_n = $ac_delim_num; then
16883 elif $ac_last_try; then
16884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16889 rm -f conf$$subs.sh
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16896 s/^/S["/; s/!.*/"]=/
16906 s/\(.\{148\}\)..*/\1/
16908 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16920 s/\(.\{148\}\)..*/\1/
16922 s/["\\]/\\&/g; s/^/"/; s/$/"/
16926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16931 ' <conf$$subs.awk | sed '
16936 ' >>$CONFIG_STATUS || ac_write_fail=1
16937 rm -f conf$$subs.awk
16938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16940 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16941 for (key in S) S_is_set[key] = 1
16943 \$ac_cs_awk_pipe_init
16947 nfields = split(line, field, "@")
16949 len = length(field[1])
16950 for (i = 2; i < nfields; i++) {
16952 keylen = length(key)
16953 if (S_is_set[key]) {
16955 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16956 len += length(value) + length(field[++i])
16961 if (nfields == 3 && !substed) {
16963 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16964 \$ac_cs_awk_read_file
16970 \$ac_cs_awk_pipe_fini
16973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16974 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16975 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16978 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16979 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16982 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16983 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16984 # trailing colons and then remove the whole line if VPATH becomes empty
16985 # (actually we leave an empty line to preserve line numbers).
16986 if test "x$srcdir" = x.; then
16987 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17006 fi # test -n "$CONFIG_FILES"
17008 # Set up the scripts for CONFIG_HEADERS section.
17009 # No need to generate them if there are no CONFIG_HEADERS.
17010 # This happens for instance with `./config.status Makefile'.
17011 if test -n "$CONFIG_HEADERS"; then
17012 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17016 # Transform confdefs.h into an awk script `defines.awk', embedded as
17017 # here-document in config.status, that substitutes the proper values into
17018 # config.h.in to produce config.h.
17020 # Create a delimiter string that does not exist in confdefs.h, to ease
17021 # handling of long lines.
17023 for ac_last_try in false false :; do
17024 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17025 if test -z "$ac_tt"; then
17027 elif $ac_last_try; then
17028 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17034 # For the awk script, D is an array of macro values keyed by name,
17035 # likewise P contains macro parameters if any. Preserve backslash
17036 # newline sequences.
17038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17040 s/.\{148\}/&'"$ac_delim"'/g
17043 s/^[ ]*#[ ]*define[ ][ ]*/ /
17050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17057 D["\1"]=" \3\\\\\\n"\\/p
17059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17064 s/.\{148\}/&'"$ac_delim"'/g
17069 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17072 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17074 ' <confdefs.h | sed '
17075 s/'"$ac_delim"'/"\\\
17076 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17079 for (key in D) D_is_set[key] = 1
17082 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17084 split(line, arg, " ")
17085 if (arg[1] == "#") {
17089 defundef = substr(arg[1], 2)
17092 split(mac1, mac2, "(") #)
17094 prefix = substr(line, 1, index(line, defundef) - 1)
17095 if (D_is_set[macro]) {
17096 # Preserve the white space surrounding the "#".
17097 print prefix "define", macro P[macro] D[macro]
17100 # Replace #undef with comments. This is necessary, for example,
17101 # in the case of _POSIX_SOURCE, which is predefined and required
17102 # on some systems where configure will not decide to define it.
17103 if (defundef == "undef") {
17104 print "/*", prefix defundef, macro, "*/"
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17114 fi # test -n "$CONFIG_HEADERS"
17117 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17122 :[FHLC]) ac_mode=$ac_tag; continue;;
17124 case $ac_mode$ac_tag in
17126 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17127 :[FH]-) ac_tag=-:-;;
17128 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17145 -) ac_f="$ac_tmp/stdin";;
17146 *) # Look for the file first in the build tree, then in the source tree
17147 # (if the path is not absolute). The absolute path cannot be DOS-style,
17148 # because $ac_f cannot contain `:'.
17152 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17154 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17156 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17157 as_fn_append ac_file_inputs " '$ac_f'"
17160 # Let's still pretend it is `configure' which instantiates (i.e., don't
17161 # use $as_me), people would be surprised to read:
17162 # /* config.h. Generated by config.status. */
17163 configure_input='Generated from '`
17164 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17166 if test x"$ac_file" != x-; then
17167 configure_input="$ac_file. $configure_input"
17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17169 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17171 # Neutralize special characters interpreted by sed in replacement strings.
17172 case $configure_input in #(
17173 *\&* | *\|* | *\\* )
17174 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17175 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17176 *) ac_sed_conf_input=$configure_input;;
17180 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17186 ac_dir=`$as_dirname -- "$ac_file" ||
17187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17188 X"$ac_file" : 'X\(//\)[^/]' \| \
17189 X"$ac_file" : 'X\(//\)$' \| \
17190 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17191 printf "%s\n" X"$ac_file" |
17192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17196 /^X\(\/\/\)[^/].*/{
17209 as_dir="$ac_dir"; as_fn_mkdir_p
17213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17215 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17216 # A ".." for each directory in $ac_dir_suffix.
17217 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17218 case $ac_top_builddir_sub in
17219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17223 ac_abs_top_builddir=$ac_pwd
17224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17225 # for backward compatibility:
17226 ac_top_builddir=$ac_top_build_prefix
17229 .) # We are building in place.
17231 ac_top_srcdir=$ac_top_builddir_sub
17232 ac_abs_top_srcdir=$ac_pwd ;;
17233 [\\/]* | ?:[\\/]* ) # Absolute name.
17234 ac_srcdir=$srcdir$ac_dir_suffix;
17235 ac_top_srcdir=$srcdir
17236 ac_abs_top_srcdir=$srcdir ;;
17237 *) # Relative name.
17238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17239 ac_top_srcdir=$ac_top_build_prefix$srcdir
17240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17255 ac_MKDIR_P=$MKDIR_P
17257 [\\/$]* | ?:[\\/]* ) ;;
17258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17263 # If the template does not know about datarootdir, expand it.
17264 # FIXME: This hack should be removed a few years after 2.60.
17265 ac_datarootdir_hack=; ac_datarootdir_seen=
17276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17277 *datarootdir*) ac_datarootdir_seen=yes;;
17278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17280 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283 ac_datarootdir_hack='
17284 s&@datadir@&$datadir&g
17285 s&@docdir@&$docdir&g
17286 s&@infodir@&$infodir&g
17287 s&@localedir@&$localedir&g
17288 s&@mandir@&$mandir&g
17289 s&\\\${datarootdir}&$datarootdir&g' ;;
17293 # Neutralize VPATH when `$srcdir' = `.'.
17294 # Shell code in configure.ac might set extrasub.
17295 # FIXME: do we really want to maintain this feature?
17296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297 ac_sed_extra="$ac_vpsub
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17303 s|@configure_input@|$ac_sed_conf_input|;t t
17304 s&@top_builddir@&$ac_top_builddir_sub&;t t
17305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17306 s&@srcdir@&$ac_srcdir&;t t
17307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17308 s&@top_srcdir@&$ac_top_srcdir&;t t
17309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17310 s&@builddir@&$ac_builddir&;t t
17311 s&@abs_builddir@&$ac_abs_builddir&;t t
17312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17313 s&@INSTALL@&$ac_INSTALL&;t t
17314 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17315 $ac_datarootdir_hack
17317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17318 if $ac_cs_awk_getline; then
17319 $AWK -f "$ac_tmp/subs.awk"
17321 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17323 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17326 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17328 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17330 which seems to be undefined. Please make sure it is defined" >&5
17331 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17332 which seems to be undefined. Please make sure it is defined" >&2;}
17334 rm -f "$ac_tmp/stdin"
17336 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17337 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17345 if test x"$ac_file" != x-; then
17347 printf "%s\n" "/* $configure_input */" >&1 \
17348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17349 } >"$ac_tmp/config.h" \
17350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17353 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17356 mv "$ac_tmp/config.h" "$ac_file" \
17357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17360 printf "%s\n" "/* $configure_input */" >&1 \
17361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17362 || as_fn_error $? "could not create -" "$LINENO" 5
17366 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17367 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17372 case $ac_file$ac_mode in
17373 "po-directories":C)
17374 for ac_file in $CONFIG_FILES; do
17375 # Support "outfile[:infile[:infile...]]"
17377 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17379 # PO directories have a Makefile.in generated from Makefile.in.in.
17380 case "$ac_file" in */Makefile.in)
17381 # Adjust a relative srcdir.
17382 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17383 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17384 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17385 # In autoconf-2.13 it is called $ac_given_srcdir.
17386 # In autoconf-2.50 it is called $srcdir.
17387 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17388 case "$ac_given_srcdir" in
17389 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17390 /*) top_srcdir="$ac_given_srcdir" ;;
17391 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17393 # Treat a directory as a PO directory if and only if it has a
17394 # POTFILES.in file. This allows packages to have multiple PO
17395 # directories under different names or in different locations.
17396 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17397 rm -f "$ac_dir/POTFILES"
17398 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17399 gt_tab=`printf '\t'`
17400 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"
17401 POMAKEFILEDEPS="POTFILES.in"
17402 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17403 # on $ac_dir but don't depend on user-specified configuration
17405 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17406 # The LINGUAS file contains the set of available languages.
17407 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17408 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17410 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17411 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17413 # The set of available languages was given in configure.in.
17414 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17417 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17418 # Compute UPDATEPOFILES
17419 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17420 # Compute DUMMYPOFILES
17421 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17423 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17424 case "$ac_given_srcdir" in
17426 *) srcdirpre='$(srcdir)/' ;;
17432 for lang in $ALL_LINGUAS; do
17433 POFILES="$POFILES $srcdirpre$lang.po"
17434 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17435 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17436 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17438 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17439 # environment variable.
17441 if test -n "$ALL_LINGUAS"; then
17442 for presentlang in $ALL_LINGUAS; do
17444 if test "%UNSET%" != "$LINGUAS"; then
17445 desiredlanguages="$LINGUAS"
17447 desiredlanguages="$ALL_LINGUAS"
17449 for desiredlang in $desiredlanguages; do
17450 # Use the presentlang catalog if desiredlang is
17451 # a. equal to presentlang, or
17452 # b. a variant of presentlang (because in this case,
17453 # presentlang can be used as a fallback for messages
17454 # which are not translated in the desiredlang catalog).
17455 case "$desiredlang" in
17456 "$presentlang"*) useit=yes;;
17459 if test $useit = yes; then
17460 INST_LINGUAS="$INST_LINGUAS $presentlang"
17465 if test -n "$INST_LINGUAS"; then
17466 for lang in $INST_LINGUAS; do
17467 CATALOGS="$CATALOGS $lang.gmo"
17470 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17471 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"
17472 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17473 if test -f "$f"; then
17475 *.orig | *.bak | *~) ;;
17476 *) cat "$f" >> "$ac_dir/Makefile" ;;
17491 ac_clean_files=$ac_clean_files_save
17493 test $ac_write_fail = 0 ||
17494 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17497 # configure is writing to config.log, and then calls config.status.
17498 # config.status does its own redirection, appending to config.log.
17499 # Unfortunately, on DOS this fails, as config.log is still kept open
17500 # by configure, so config.status won't be able to write to it; its
17501 # output is simply discarded. So we exec the FD to /dev/null,
17502 # effectively closing config.log, so it can be properly (re)opened and
17503 # appended to by config.status. When coming back to configure, we
17504 # need to make the FD available again.
17505 if test "$no_create" != yes; then
17507 ac_config_status_args=
17508 test "$silent" = yes &&
17509 ac_config_status_args="$ac_config_status_args --quiet"
17511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17514 # would make configure fail if this is the last instruction.
17515 $ac_cs_success || as_fn_exit 1
17517 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17519 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17522 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi