Merge tag 'v1.46.2' into debian/master
[e2fsprogs.git] / configure
blob2b37962918ae09c012aa5f64e3dc6e2a4667afd7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 gt_needs=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 systemd_system_unit_dir
626 have_systemd
627 systemd_LIBS
628 systemd_CFLAGS
629 crond_dir
630 have_crond
631 pkg_udev_rules_dir
632 have_udev
633 udev_LIBS
634 udev_CFLAGS
635 LDFLAGS_SHLIB
636 CFLAGS_STLIB
637 CFLAGS_SHLIB
638 BUILD_LDFLAGS
639 BUILD_CFLAGS
640 INCLUDES
641 DO_TEST_SUITE
642 LDFLAGS_STATIC
643 root_sysconfdir
644 root_libdir
645 root_sbindir
646 root_bindir
647 root_prefix
648 E2SCRUB_CMT
649 UNIX_CMT
650 CYGWIN_CMT
651 LINUX_CMT
652 threadsan_ldflags
653 threadsan_cflags
654 have_threadsan
655 addrsan_ldflags
656 addrsan_cflags
657 have_addrsan
658 ubsan_ldflags
659 ubsan_cflags
660 have_ubsan
661 lto_ldflags
662 lto_cflags
663 have_lto
664 gcc_ranlib
665 gcc_ar
666 UNI_DIFF_OPTS
667 SEM_INIT_LIB
668 FUSE_CMT
669 FUSE_LIB
670 CLOCK_GETTIME_LIB
671 MAGIC_LIB
672 SOCKET_LIB
673 SIZEOF_TIME_T
674 SIZEOF_OFF_T
675 SIZEOF_LONG_LONG
676 SIZEOF_LONG
677 SIZEOF_INT
678 SIZEOF_SHORT
680 BUILD_CC
681 MAKEINFO
682 STRIP
683 RANLIB
685 LDCONFIG
686 PERL
688 CHMOD
692 LN_S
693 mkdir_p
695 ifNotGNUmake
696 ifGNUmake
697 BINARY_TYPE
698 POSUB
699 LTLIBINTL
700 LIBINTL
701 INTLLIBS
702 LTLIBICONV
703 LIBICONV
704 INTL_MACOSX_LIBS
705 XGETTEXT_EXTRA_OPTIONS
706 MSGMERGE_FOR_MSGFMT_OPTION
707 MSGMERGE
708 XGETTEXT_015
709 XGETTEXT
710 GMSGFMT_015
711 GMSGFMT
712 MSGFMT
713 GETTEXT_MACRO_VERSION
714 USE_NLS
715 MKDIR_P
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 SET_MAKE
720 VERSION
721 PACKAGE
722 GETTEXT_PACKAGE
723 TDB_MAN_COMMENT
724 TDB_CMT
725 UUIDD_CMT
726 PTHREAD_CFLAGS
727 PTHREAD_LIBS
728 PTHREAD_CC
729 ax_pthread_config
731 E2INITRD_MAN
732 E2INITRD_PROG
733 FSCK_MAN
734 FSCK_PROG
735 DEFRAG_CMT
736 RESIZER_CMT
737 IMAGER_CMT
738 DEBUGFS_CMT
739 SUBSET_CMT
740 ALL_CMT
741 BLKID_CMT
742 DEPPROFILED_LIBBLKID
743 PROFILED_LIBBLKID
744 DEPSTATIC_LIBBLKID
745 STATIC_LIBBLKID
746 DEPLIBBLKID
747 LIBBLKID
748 UUID_CMT
749 DEPPROFILED_LIBUUID
750 PROFILED_LIBUUID
751 DEPSTATIC_LIBUUID
752 STATIC_LIBUUID
753 DEPLIBUUID
754 LIBUUID
755 PKG_CONFIG_LIBDIR
756 PKG_CONFIG_PATH
757 PKG_CONFIG
758 DEV_FEATURES_CMT
759 TEST_IO_CMT
760 PRIVATE_LIBS_CMT
761 LDFLAG_DYNAMIC
762 PROFILED_LIB_EXT
763 STATIC_LIB_EXT
764 LIB_EXT
765 PROFILE_CMT
766 BSDLIB_CMT
767 ELF_CMT
771 LINK_BUILD_FLAGS
772 SYMLINK_RELATIVE
773 LINK_INSTALL_FLAGS
774 MAINTAINER_CMT
775 EGREP
776 GREP
778 RDYNAMIC
779 DLOPEN_LIB
780 OBJEXT
781 EXEEXT
782 ac_ct_CC
783 CPPFLAGS
784 LDFLAGS
785 CFLAGS
787 host_os
788 host_vendor
789 host_cpu
790 host
791 build_os
792 build_vendor
793 build_cpu
794 build
795 E2FSPROGS_DATE
796 E2FSPROGS_PKGVER
797 E2FSPROGS_VERSION
798 E2FSPROGS_DAY
799 E2FSPROGS_MONTH
800 E2FSPROGS_YEAR
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 runstatedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files='MCONFIG
841 MAKEFILE_ELF
842 MAKEFILE_BSDLIB
843 MAKEFILE_PROFILE
844 MAKEFILE_LIBRARY
845 ASM_TYPES_HEADER
846 PUBLIC_CONFIG_HEADER'
847 ac_user_opts='
848 enable_option_checking
849 with_diet_libc
850 with_cc
851 with_ccopts
852 with_ldopts
853 with_root_prefix
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
858 enable_symlink_build
859 enable_verbose_makecmds
860 enable_elf_shlibs
861 enable_bsd_shlibs
862 enable_profile
863 enable_gcov
864 enable_hardening
865 enable_jbd_debug
866 enable_blkid_debug
867 enable_testio_debug
868 enable_developer_features
869 enable_libuuid
870 enable_libblkid
871 enable_subset
872 enable_backtrace
873 enable_debugfs
874 enable_imager
875 enable_resizer
876 enable_defrag
877 enable_fsck
878 enable_e2initrd_helper
879 enable_tls
880 with_pthread
881 enable_uuidd
882 enable_mmp
883 enable_tdb
884 enable_bmap_stats
885 enable_bmap_stats_ops
886 enable_nls
887 with_gnu_ld
888 enable_rpath
889 with_libiconv_prefix
890 with_libintl_prefix
891 enable_fuse2fs
892 enable_lto
893 enable_ubsan
894 enable_addrsan
895 enable_threadsan
896 with_multiarch
897 with_udev_rules_dir
898 with_crond_dir
899 with_systemd_unit_dir
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
910 PKG_CONFIG
911 PKG_CONFIG_PATH
912 PKG_CONFIG_LIBDIR
913 udev_CFLAGS
914 udev_LIBS
915 systemd_CFLAGS
916 systemd_LIBS'
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1208 -runstatedir | --runstatedir | --runstatedi | --runstated \
1209 | --runstate | --runstat | --runsta | --runst | --runs \
1210 | --run | --ru | --r)
1211 ac_prev=runstatedir ;;
1212 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214 | --run=* | --ru=* | --r=*)
1215 runstatedir=$ac_optarg ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1262 -with-* | --with-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1271 "with_$ac_useropt"
1272 "*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322 esac
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 esac
1335 done
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $? "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir runstatedir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $? "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1419 /^X\(\/\/\)$/{
1420 s//\1/
1423 /^X\(\/\).*/{
1424 s//\1/
1427 s/.*/./; q'`
1428 srcdir=$ac_confdir
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 srcdir=..
1432 else
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442 pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1476 Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 [PREFIX]
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1521 _ACEOF
1523 cat <<\_ACEOF
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1531 if test -n "$ac_init_help"; then
1533 cat <<\_ACEOF
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-maintainer-mode
1540 enable makefile rules useful for maintainers
1541 --enable-symlink-install
1542 use symlinks when installing instead of hard links
1543 --enable-relative-symlinks
1544 use relative symlinks when installing
1546 --enable-symlink-build use symlinks while building instead of hard links
1547 --enable-verbose-makecmds
1548 enable verbose make command output
1549 --enable-elf-shlibs select ELF shared libraries
1550 --enable-bsd-shlibs select BSD shared libraries
1551 --enable-profile build profiling libraries
1552 --enable-gcov build for coverage testing using gcov
1553 --enable-hardening build for coverage testing using gcov
1554 --enable-jbd-debug enable journal debugging
1555 --enable-blkid-debug enable blkid debugging
1556 --disable-testio-debug disable the use of the test I/O manager for
1557 debugging
1558 --enable-developer-features
1559 enable features for use by ext4 developers
1560 --enable-libuuid build and use private uuid library
1561 --enable-libblkid build and use private blkid library
1562 --enable-subset enable subset-only build
1563 --disable-backtrace disable use backtrace
1564 --disable-debugfs disable support of debugfs program
1565 --disable-imager disable support of e2image program
1566 --disable-resizer disable support of e2resize program
1567 --disable-defrag disable support of e4defrag program
1568 --enable-fsck build fsck wrapper program
1569 --enable-e2initrd-helper
1570 build e2initrd-helper program
1571 --disable-tls disable use of thread local support
1572 --disable-uuidd disable building the uuid daemon
1573 --disable-mmp disable support mmp, Multi Mount Protection
1574 --disable-tdb disable tdb support
1575 --disable-bmap-stats disable collection of bitmap stats
1576 --enable-bmap-stats-ops enable collection of additional bitmap stats
1577 --disable-nls do not use Native Language Support
1578 --disable-rpath do not hardcode runtime library paths
1579 --disable-fuse2fs do not build fuse2fs
1580 --enable-lto enable link time optimization
1581 --enable-ubsan enable undefined behavior sanitizer
1582 --enable-addrsan enable address sanitizer
1583 --enable-threadsan enable thread sanitizer
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-diet-libc use diet libc
1589 --with-cc no longer supported, use CC= instead
1590 --with-ccopts no longer supported, use CFLAGS= instead
1591 --with-ldopts no longer supported, use LDFLAGS= instead
1592 --with-root-prefix=PREFIX
1593 override prefix variable for files to be placed in
1594 the root
1595 --without-pthread disable use of pthread support
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1598 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1599 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1600 --without-libintl-prefix don't search for libintl in includedir and libdir
1601 --with-multiarch=ARCH specify the multiarch triplet
1602 --with-udev-rules-dir[=DIR]
1603 Install udev rules into DIR.
1604 --with-crond-dir[=DIR] Install system crontabs into DIR.
1605 --with-systemd-unit-dir[=DIR]
1606 Install systemd system units into DIR.
1608 Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1616 CPP C preprocessor
1617 PKG_CONFIG path to pkg-config utility
1618 PKG_CONFIG_PATH
1619 directories to add to pkg-config's search path
1620 PKG_CONFIG_LIBDIR
1621 path overriding pkg-config's built-in search path
1622 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1623 udev_LIBS linker flags for udev, overriding pkg-config
1624 systemd_CFLAGS
1625 C compiler flags for systemd, overriding pkg-config
1626 systemd_LIBS
1627 linker flags for systemd, overriding pkg-config
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
1643 ac_builddir=.
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1661 case $srcdir in
1662 .) # We are building in place.
1663 ac_srcdir=.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1685 else
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1689 done
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694 cat <<\_ACEOF
1695 configure
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 test -x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_c_try_link
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_cpp
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1858 else
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1874 else
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883 yes:no: )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 no:yes:* )
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 esac
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 eval "$3=\$ac_header_compiler"
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_mongrel
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1921 ac_fn_c_try_run ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1932 ac_status=$?
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1942 ac_status=$?
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$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
1957 } # ac_fn_c_try_run
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } # ac_fn_c_check_header_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2012 #ifdef __STDC__
2013 # include <limits.h>
2014 #else
2015 # include <assert.h>
2016 #endif
2018 #undef $2
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2023 #ifdef __cplusplus
2024 extern "C"
2025 #endif
2026 char $2 ();
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2031 choke me
2032 #endif
2035 main ()
2037 return $2 ();
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_link "$LINENO"; then :
2043 eval "$3=yes"
2044 else
2045 eval "$3=no"
2047 rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2058 # ----------------------------------------------------
2059 # Tries to find if the field MEMBER exists in type AGGR, after including
2060 # INCLUDES, setting cache variable VAR accordingly.
2061 ac_fn_c_check_member ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2065 $as_echo_n "checking for $2.$3... " >&6; }
2066 if eval \${$4+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 static $2 ac_aggr;
2076 if (ac_aggr.$3)
2077 return 0;
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 eval "$4=yes"
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static $2 ac_aggr;
2092 if (sizeof ac_aggr.$3)
2093 return 0;
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$4=yes"
2100 else
2101 eval "$4=no"
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 eval ac_res=\$$4
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 } # ac_fn_c_check_member
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 if (sizeof ($2))
2134 return 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 if (sizeof (($2)))
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2154 else
2155 eval "$3=yes"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_type
2168 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2169 # ---------------------------------------------
2170 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2171 # accordingly.
2172 ac_fn_c_check_decl ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 as_decl_name=`echo $2|sed 's/ *(.*//'`
2176 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2178 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2186 main ()
2188 #ifndef $as_decl_name
2189 #ifdef __cplusplus
2190 (void) $as_decl_use;
2191 #else
2192 (void) $as_decl_name;
2193 #endif
2194 #endif
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 eval "$3=yes"
2202 else
2203 eval "$3=no"
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 eval ac_res=\$$3
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 } # ac_fn_c_check_decl
2214 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2215 # --------------------------------------------
2216 # Tries to find the compile-time value of EXPR in a program that includes
2217 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2218 # computed
2219 ac_fn_c_compute_int ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if test "$cross_compiling" = yes; then
2223 # Depending upon the size, compute the lo and hi bounds.
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2228 main ()
2230 static int test_array [1 - 2 * !(($2) >= 0)];
2231 test_array [0] = 0;
2232 return test_array [0];
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_lo=0 ac_mid=0
2240 while :; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0;
2249 return test_array [0];
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 ac_hi=$ac_mid; break
2257 else
2258 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2259 if test $ac_lo -le $ac_mid; then
2260 ac_lo= ac_hi=
2261 break
2263 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 done
2267 else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2272 main ()
2274 static int test_array [1 - 2 * !(($2) < 0)];
2275 test_array [0] = 0;
2276 return test_array [0];
2279 return 0;
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_hi=-1 ac_mid=-1
2284 while :; do
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2289 main ()
2291 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2292 test_array [0] = 0;
2293 return test_array [0];
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 ac_lo=$ac_mid; break
2301 else
2302 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2303 if test $ac_mid -le $ac_hi; then
2304 ac_lo= ac_hi=
2305 break
2307 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 done
2311 else
2312 ac_lo= ac_hi=
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 # Binary search between lo and hi bounds.
2318 while test "x$ac_lo" != "x$ac_hi"; do
2319 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2324 main ()
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 test_array [0] = 0;
2328 return test_array [0];
2331 return 0;
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_hi=$ac_mid
2336 else
2337 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 case $ac_lo in #((
2342 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2343 '') ac_retval=1 ;;
2344 esac
2345 else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2349 static long int longval () { return $2; }
2350 static unsigned long int ulongval () { return $2; }
2351 #include <stdio.h>
2352 #include <stdlib.h>
2354 main ()
2357 FILE *f = fopen ("conftest.val", "w");
2358 if (! f)
2359 return 1;
2360 if (($2) < 0)
2362 long int i = longval ();
2363 if (i != ($2))
2364 return 1;
2365 fprintf (f, "%ld", i);
2367 else
2369 unsigned long int i = ulongval ();
2370 if (i != ($2))
2371 return 1;
2372 fprintf (f, "%lu", i);
2374 /* Do not output a trailing newline, as this causes \r\n confusion
2375 on some platforms. */
2376 return ferror (f) || fclose (f) != 0;
2379 return 0;
2381 _ACEOF
2382 if ac_fn_c_try_run "$LINENO"; then :
2383 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2384 else
2385 ac_retval=1
2387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2388 conftest.$ac_objext conftest.beam conftest.$ac_ext
2389 rm -f conftest.val
2392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393 as_fn_set_status $ac_retval
2395 } # ac_fn_c_compute_int
2396 cat >config.log <<_ACEOF
2397 This file contains any messages produced by compilers while
2398 running configure, to aid debugging if configure makes a mistake.
2400 It was created by $as_me, which was
2401 generated by GNU Autoconf 2.69. Invocation command line was
2403 $ $0 $@
2405 _ACEOF
2406 exec 5>>config.log
2408 cat <<_ASUNAME
2409 ## --------- ##
2410 ## Platform. ##
2411 ## --------- ##
2413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2422 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2423 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2426 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2427 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2428 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2430 _ASUNAME
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 $as_echo "PATH: $as_dir"
2438 done
2439 IFS=$as_save_IFS
2441 } >&5
2443 cat >&5 <<_ACEOF
2446 ## ----------- ##
2447 ## Core tests. ##
2448 ## ----------- ##
2450 _ACEOF
2453 # Keep a trace of the command line.
2454 # Strip out --no-create and --no-recursion so they do not pile up.
2455 # Strip out --silent because we don't want to record it for future runs.
2456 # Also quote any args containing shell meta-characters.
2457 # Make two passes to allow for proper duplicate-argument suppression.
2458 ac_configure_args=
2459 ac_configure_args0=
2460 ac_configure_args1=
2461 ac_must_keep_next=false
2462 for ac_pass in 1 2
2464 for ac_arg
2466 case $ac_arg in
2467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2469 | -silent | --silent | --silen | --sile | --sil)
2470 continue ;;
2471 *\'*)
2472 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2473 esac
2474 case $ac_pass in
2475 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2477 as_fn_append ac_configure_args1 " '$ac_arg'"
2478 if test $ac_must_keep_next = true; then
2479 ac_must_keep_next=false # Got value, back to normal.
2480 else
2481 case $ac_arg in
2482 *=* | --config-cache | -C | -disable-* | --disable-* \
2483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2485 | -with-* | --with-* | -without-* | --without-* | --x)
2486 case "$ac_configure_args0 " in
2487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2488 esac
2490 -* ) ac_must_keep_next=true ;;
2491 esac
2493 as_fn_append ac_configure_args " '$ac_arg'"
2495 esac
2496 done
2497 done
2498 { ac_configure_args0=; unset ac_configure_args0;}
2499 { ac_configure_args1=; unset ac_configure_args1;}
2501 # When interrupted or exit'd, cleanup temporary files, and complete
2502 # config.log. We remove comments because anyway the quotes in there
2503 # would cause problems or look ugly.
2504 # WARNING: Use '\'' to represent an apostrophe within the trap.
2505 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2506 trap 'exit_status=$?
2507 # Save into config.log some information that might help in debugging.
2509 echo
2511 $as_echo "## ---------------- ##
2512 ## Cache variables. ##
2513 ## ---------------- ##"
2514 echo
2515 # The following way of writing the cache mishandles newlines in values,
2517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2518 eval ac_val=\$$ac_var
2519 case $ac_val in #(
2520 *${as_nl}*)
2521 case $ac_var in #(
2522 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2523 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2524 esac
2525 case $ac_var in #(
2526 _ | IFS | as_nl) ;; #(
2527 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2528 *) { eval $ac_var=; unset $ac_var;} ;;
2529 esac ;;
2530 esac
2531 done
2532 (set) 2>&1 |
2533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2534 *${as_nl}ac_space=\ *)
2535 sed -n \
2536 "s/'\''/'\''\\\\'\'''\''/g;
2537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2538 ;; #(
2540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2542 esac |
2543 sort
2545 echo
2547 $as_echo "## ----------------- ##
2548 ## Output variables. ##
2549 ## ----------------- ##"
2550 echo
2551 for ac_var in $ac_subst_vars
2553 eval ac_val=\$$ac_var
2554 case $ac_val in
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 esac
2557 $as_echo "$ac_var='\''$ac_val'\''"
2558 done | sort
2559 echo
2561 if test -n "$ac_subst_files"; then
2562 $as_echo "## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##"
2565 echo
2566 for ac_var in $ac_subst_files
2568 eval ac_val=\$$ac_var
2569 case $ac_val in
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 esac
2572 $as_echo "$ac_var='\''$ac_val'\''"
2573 done | sort
2574 echo
2577 if test -s confdefs.h; then
2578 $as_echo "## ----------- ##
2579 ## confdefs.h. ##
2580 ## ----------- ##"
2581 echo
2582 cat confdefs.h
2583 echo
2585 test "$ac_signal" != 0 &&
2586 $as_echo "$as_me: caught signal $ac_signal"
2587 $as_echo "$as_me: exit $exit_status"
2588 } >&5
2589 rm -f core *.core core.conftest.* &&
2590 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2591 exit $exit_status
2593 for ac_signal in 1 2 13 15; do
2594 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2595 done
2596 ac_signal=0
2598 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2599 rm -f -r conftest* confdefs.h
2601 $as_echo "/* confdefs.h */" > confdefs.h
2603 # Predefined preprocessor variables.
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_NAME "$PACKAGE_NAME"
2607 _ACEOF
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2611 _ACEOF
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2615 _ACEOF
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_STRING "$PACKAGE_STRING"
2619 _ACEOF
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2623 _ACEOF
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_URL "$PACKAGE_URL"
2627 _ACEOF
2630 # Let the site file select an alternate cache file if it wants to.
2631 # Prefer an explicitly selected file to automatically selected ones.
2632 ac_site_file1=NONE
2633 ac_site_file2=NONE
2634 if test -n "$CONFIG_SITE"; then
2635 # We do not want a PATH search for config.site.
2636 case $CONFIG_SITE in #((
2637 -*) ac_site_file1=./$CONFIG_SITE;;
2638 */*) ac_site_file1=$CONFIG_SITE;;
2639 *) ac_site_file1=./$CONFIG_SITE;;
2640 esac
2641 elif test "x$prefix" != xNONE; then
2642 ac_site_file1=$prefix/share/config.site
2643 ac_site_file2=$prefix/etc/config.site
2644 else
2645 ac_site_file1=$ac_default_prefix/share/config.site
2646 ac_site_file2=$ac_default_prefix/etc/config.site
2648 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2650 test "x$ac_site_file" = xNONE && continue
2651 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654 sed 's/^/| /' "$ac_site_file" >&5
2655 . "$ac_site_file" \
2656 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 as_fn_error $? "failed to load site script $ac_site_file
2659 See \`config.log' for more details" "$LINENO" 5; }
2661 done
2663 if test -r "$cache_file"; then
2664 # Some versions of bash will fail to source /dev/null (special files
2665 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2666 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2668 $as_echo "$as_me: loading cache $cache_file" >&6;}
2669 case $cache_file in
2670 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2671 *) . "./$cache_file";;
2672 esac
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2676 $as_echo "$as_me: creating cache $cache_file" >&6;}
2677 >$cache_file
2680 gt_needs="$gt_needs "
2681 # Check that the precious variables saved in the cache have kept the same
2682 # value.
2683 ac_cache_corrupted=false
2684 for ac_var in $ac_precious_vars; do
2685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2686 eval ac_new_set=\$ac_env_${ac_var}_set
2687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2688 eval ac_new_val=\$ac_env_${ac_var}_value
2689 case $ac_old_set,$ac_new_set in
2690 set,)
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693 ac_cache_corrupted=: ;;
2694 ,set)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2696 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697 ac_cache_corrupted=: ;;
2698 ,);;
2700 if test "x$ac_old_val" != "x$ac_new_val"; then
2701 # differences in whitespace do not lead to failure.
2702 ac_old_val_w=`echo x $ac_old_val`
2703 ac_new_val_w=`echo x $ac_new_val`
2704 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2706 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707 ac_cache_corrupted=:
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711 eval $ac_var=\$ac_old_val
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2714 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2716 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2717 fi;;
2718 esac
2719 # Pass precious variables to config.status.
2720 if test "$ac_new_set" = set; then
2721 case $ac_new_val in
2722 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 *) ac_arg=$ac_var=$ac_new_val ;;
2724 esac
2725 case " $ac_configure_args " in
2726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2727 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2728 esac
2730 done
2731 if $ac_cache_corrupted; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2735 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2736 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2738 ## -------------------- ##
2739 ## Main body of script. ##
2740 ## -------------------- ##
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 ac_aux_dir=
2751 for ac_dir in config "$srcdir"/config; do
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2765 done
2766 if test -z "$ac_aux_dir"; then
2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2770 # These three variables are undocumented and unsupported,
2771 # and are intended to be withdrawn in a future Autoconf release.
2772 # They can cause serious problems if a builder's source tree is in a directory
2773 # whose full name contains unusual characters.
2774 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2775 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2776 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2779 ac_config_headers="$ac_config_headers lib/config.h"
2782 MCONFIG=./MCONFIG
2784 BINARY_TYPE=bin
2785 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2786 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2787 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2788 | tr \" " " | awk '{print $1}'`
2789 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2790 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2791 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2793 if expr $YEAR ">" 1900 > /dev/null ; then
2794 E2FSPROGS_YEAR=$YEAR
2795 elif expr $YEAR ">" 90 >/dev/null ; then
2796 E2FSPROGS_YEAR=19$YEAR
2797 else
2798 E2FSPROGS_YEAR=20$YEAR
2801 case $MONTH in
2802 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2803 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2804 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2805 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2806 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2807 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2808 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2809 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2810 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2811 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2812 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2813 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2815 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2816 esac
2818 base_ver=`echo $E2FSPROGS_VERSION | \
2819 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2821 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2823 case $E2FSPROGS_VERSION in
2824 *-WIP|pre-*)
2825 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2828 E2FSPROGS_PKGVER="$base_ver"
2830 esac
2832 unset DATE MONTH YEAR base_ver pre_vers date_spec
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2834 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2836 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2843 WITH_DIET_LIBC=
2845 # Check whether --with-diet-libc was given.
2846 if test "${with_diet_libc+set}" = set; then :
2847 withval=$with_diet_libc; CC="diet cc -nostdinc"
2848 WITH_DIET_LIBC=yes
2849 if test -z "$LIBS"
2850 then
2851 LIBS="-lcompat"
2852 else
2853 LIBS="$LIBS -lcompat"
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2856 $as_echo "CC=$CC" >&6; }
2858 # Make sure we can run config.sub.
2859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2863 $as_echo_n "checking build system type... " >&6; }
2864 if ${ac_cv_build+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 ac_build_alias=$build_alias
2868 test "x$ac_build_alias" = x &&
2869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2870 test "x$ac_build_alias" = x &&
2871 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2877 $as_echo "$ac_cv_build" >&6; }
2878 case $ac_cv_build in
2879 *-*-*) ;;
2880 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2881 esac
2882 build=$ac_cv_build
2883 ac_save_IFS=$IFS; IFS='-'
2884 set x $ac_cv_build
2885 shift
2886 build_cpu=$1
2887 build_vendor=$2
2888 shift; shift
2889 # Remember, the first character of IFS is used to create $*,
2890 # except with old shells:
2891 build_os=$*
2892 IFS=$ac_save_IFS
2893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2897 $as_echo_n "checking host system type... " >&6; }
2898 if ${ac_cv_host+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test "x$host_alias" = x; then
2902 ac_cv_host=$ac_cv_build
2903 else
2904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2910 $as_echo "$ac_cv_host" >&6; }
2911 case $ac_cv_host in
2912 *-*-*) ;;
2913 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2914 esac
2915 host=$ac_cv_host
2916 ac_save_IFS=$IFS; IFS='-'
2917 set x $ac_cv_host
2918 shift
2919 host_cpu=$1
2920 host_vendor=$2
2921 shift; shift
2922 # Remember, the first character of IFS is used to create $*,
2923 # except with old shells:
2924 host_os=$*
2925 IFS=$ac_save_IFS
2926 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2929 DLOPEN_LIB=''
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2974 if test -z "$ac_cv_prog_CC"; then
2975 ac_ct_CC=$CC
2976 # Extract the first word of "gcc", so it can be a program name with args.
2977 set dummy gcc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_CC="gcc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2997 done
2998 done
2999 IFS=$as_save_IFS
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3006 $as_echo "$ac_ct_CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3012 if test "x$ac_ct_CC" = x; then
3013 CC=""
3014 else
3015 case $cross_compiling:$ac_tool_warned in
3016 yes:)
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019 ac_tool_warned=yes ;;
3020 esac
3021 CC=$ac_ct_CC
3023 else
3024 CC="$ac_cv_prog_CC"
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}cc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_CC="${ac_tool_prefix}cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3068 if test -z "$CC"; then
3069 # Extract the first word of "cc", so it can be a program name with args.
3070 set dummy cc; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3078 else
3079 ac_prog_rejected=no
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3088 ac_prog_rejected=yes
3089 continue
3091 ac_cv_prog_CC="cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3099 if test $ac_prog_rejected = yes; then
3100 # We found a bogon in the path, so make sure we never use it.
3101 set dummy $ac_cv_prog_CC
3102 shift
3103 if test $# != 0; then
3104 # We chose a different compiler from the bogus one.
3105 # However, it has the same basename, so the bogon will be chosen
3106 # first if we set CC to just the basename; use the full file name.
3107 shift
3108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 for ac_prog in cl.exe
3128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3165 test -n "$CC" && break
3166 done
3168 if test -z "$CC"; then
3169 ac_ct_CC=$CC
3170 for ac_prog in cl.exe
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CC="$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3200 if test -n "$ac_ct_CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3202 $as_echo "$ac_ct_CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3209 test -n "$ac_ct_CC" && break
3210 done
3212 if test "x$ac_ct_CC" = x; then
3213 CC=""
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221 CC=$ac_ct_CC
3228 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details" "$LINENO" 5; }
3233 # Provide some information about the compiler.
3234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3235 set X $ac_compile
3236 ac_compiler=$2
3237 for ac_option in --version -v -V -qversion; do
3238 { { ac_try="$ac_compiler $ac_option >&5"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3246 ac_status=$?
3247 if test -s conftest.err; then
3248 sed '10a\
3249 ... rest of stderr output deleted ...
3250 10q' conftest.err >conftest.er1
3251 cat conftest.er1 >&5
3253 rm -f conftest.er1 conftest.err
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 done
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 ac_clean_files_save=$ac_clean_files
3270 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3271 # Try to create an executable without -o first, disregard a.out.
3272 # It will help us diagnose broken compilers, and finding out an intuition
3273 # of exeext.
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3275 $as_echo_n "checking whether the C compiler works... " >&6; }
3276 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278 # The possible output files:
3279 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281 ac_rmfiles=
3282 for ac_file in $ac_files
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3287 esac
3288 done
3289 rm -f $ac_rmfiles
3291 if { { ac_try="$ac_link_default"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link_default") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; then :
3302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3304 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3305 # so that the user can short-circuit this test for compilers unknown to
3306 # Autoconf.
3307 for ac_file in $ac_files ''
3309 test -f "$ac_file" || continue
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3313 [ab].out )
3314 # We found the default executable, but exeext='' is most
3315 # certainly right.
3316 break;;
3317 *.* )
3318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3319 then :; else
3320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 # We set ac_cv_exeext here because the later test for it is not
3323 # safe: cross compilers may not add the suffix if given an `-o'
3324 # argument, so we may need to know it at that point already.
3325 # Even if this section looks crufty: it has the advantage of
3326 # actually working.
3327 break;;
3329 break;;
3330 esac
3331 done
3332 test "$ac_cv_exeext" = no && ac_cv_exeext=
3334 else
3335 ac_file=''
3337 if test -z "$ac_file"; then :
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error 77 "C compiler cannot create executables
3346 See \`config.log' for more details" "$LINENO" 5; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3354 $as_echo "$ac_file" >&6; }
3355 ac_exeext=$ac_cv_exeext
3357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3358 ac_clean_files=$ac_clean_files_save
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3360 $as_echo_n "checking for suffix of executables... " >&6; }
3361 if { { ac_try="$ac_link"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_link") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374 # work properly (i.e., refer to `conftest.exe'), while it won't with
3375 # `rm'.
3376 for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 break;;
3382 * ) break;;
3383 esac
3384 done
3385 else
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3389 See \`config.log' for more details" "$LINENO" 5; }
3391 rm -f conftest conftest$ac_cv_exeext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3393 $as_echo "$ac_cv_exeext" >&6; }
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3397 ac_exeext=$EXEEXT
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400 #include <stdio.h>
3402 main ()
3404 FILE *f = fopen ("conftest.out", "w");
3405 return ferror (f) || fclose (f) != 0;
3408 return 0;
3410 _ACEOF
3411 ac_clean_files="$ac_clean_files conftest.out"
3412 # Check that the compiler produces executables we can run. If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 if test "$cross_compiling" != yes; then
3417 { { ac_try="$ac_link"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 if { ac_try='./conftest$ac_cv_exeext'
3429 { { case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_try") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; }; then
3439 cross_compiling=no
3440 else
3441 if test "$cross_compiling" = maybe; then
3442 cross_compiling=yes
3443 else
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot run C compiled programs.
3447 If you meant to cross compile, use \`--host'.
3448 See \`config.log' for more details" "$LINENO" 5; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3453 $as_echo "$cross_compiling" >&6; }
3455 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3456 ac_clean_files=$ac_clean_files_save
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if ${ac_cv_objext+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 main ()
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compile") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 break;;
3491 esac
3492 done
3493 else
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error $? "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details" "$LINENO" 5; }
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3507 ac_objext=$OBJEXT
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if ${ac_cv_c_compiler_gnu+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3517 main ()
3519 #ifndef __GNUC__
3520 choke me
3521 #endif
3524 return 0;
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_compiler_gnu=yes
3529 else
3530 ac_compiler_gnu=no
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3539 GCC=yes
3540 else
3541 GCC=
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if ${ac_cv_prog_cc_g+:} false; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3552 ac_cv_prog_cc_g=no
3553 CFLAGS="-g"
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3558 main ()
3562 return 0;
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566 ac_cv_prog_cc_g=yes
3567 else
3568 CFLAGS=""
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3573 main ()
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3582 else
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3616 else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if ${ac_cv_prog_cc_c89+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_cv_prog_cc_c89=no
3629 ac_save_CC=$CC
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdarg.h>
3633 #include <stdio.h>
3634 struct stat;
3635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636 struct buf { int x; };
3637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638 static char *e (p, i)
3639 char **p;
3640 int i;
3642 return p[i];
3644 static char *f (char * (*g) (char **, int), char **p, ...)
3646 char *s;
3647 va_list v;
3648 va_start (v,p);
3649 s = g (p, va_arg (v,int));
3650 va_end (v);
3651 return s;
3654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655 function prototypes and stuff, but not '\xHH' hex character constants.
3656 These don't provoke an error unfortunately, instead are silently treated
3657 as 'x'. The following induces an error, until -std is added to get
3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659 array size at least. It's necessary to write '\x00'==0 to get something
3660 that's true only with -std. */
3661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664 inside strings and character constants. */
3665 #define FOO(x) 'x'
3666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668 int test (int i, double x);
3669 struct s1 {int (*f) (int a);};
3670 struct s2 {int (*f) (double a);};
3671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 int argc;
3673 char **argv;
3675 main ()
3677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3679 return 0;
3681 _ACEOF
3682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 CC="$ac_save_CC $ac_arg"
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv_prog_cc_c89=$ac_arg
3689 rm -f core conftest.err conftest.$ac_objext
3690 test "x$ac_cv_prog_cc_c89" != "xno" && break
3691 done
3692 rm -f conftest.$ac_ext
3693 CC=$ac_save_CC
3696 # AC_CACHE_VAL
3697 case "x$ac_cv_prog_cc_c89" in
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700 $as_echo "none needed" >&6; } ;;
3701 xno)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703 $as_echo "unsupported" >&6; } ;;
3705 CC="$CC $ac_cv_prog_cc_c89"
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708 esac
3709 if test "x$ac_cv_prog_cc_c89" != xno; then :
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3721 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3722 if ${ac_cv_lib_dl_dlopen+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 ac_check_lib_save_LIBS=$LIBS
3726 LIBS="-ldl $LIBS"
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3730 /* Override any GCC internal prototype to avoid an error.
3731 Use char because int might match the return type of a GCC
3732 builtin and then its argument prototype would still apply. */
3733 #ifdef __cplusplus
3734 extern "C"
3735 #endif
3736 char dlopen ();
3738 main ()
3740 return dlopen ();
3742 return 0;
3744 _ACEOF
3745 if ac_fn_c_try_link "$LINENO"; then :
3746 ac_cv_lib_dl_dlopen=yes
3747 else
3748 ac_cv_lib_dl_dlopen=no
3750 rm -f core conftest.err conftest.$ac_objext \
3751 conftest$ac_exeext conftest.$ac_ext
3752 LIBS=$ac_check_lib_save_LIBS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3755 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3756 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3757 DLOPEN_LIB=-ldl
3762 # Check whether --with-cc was given.
3763 if test "${with_cc+set}" = set; then :
3764 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3768 # Check whether --with-ccopts was given.
3769 if test "${with_ccopts+set}" = set; then :
3770 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3774 # Check whether --with-ldopts was given.
3775 if test "${with_ldopts+set}" = set; then :
3776 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_CC+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 $as_echo "$CC" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3823 if test -z "$ac_cv_prog_CC"; then
3824 ac_ct_CC=$CC
3825 # Extract the first word of "gcc", so it can be a program name with args.
3826 set dummy gcc; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$ac_ct_CC"; then
3833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_ac_ct_CC="gcc"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3848 IFS=$as_save_IFS
3852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3853 if test -n "$ac_ct_CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3855 $as_echo "$ac_ct_CC" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3861 if test "x$ac_ct_CC" = x; then
3862 CC=""
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865 yes:)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3869 esac
3870 CC=$ac_ct_CC
3872 else
3873 CC="$ac_cv_prog_CC"
3876 if test -z "$CC"; then
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3879 set dummy ${ac_tool_prefix}cc; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_CC+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_CC="${ac_tool_prefix}cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3905 CC=$ac_cv_prog_CC
3906 if test -n "$CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908 $as_echo "$CC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3917 if test -z "$CC"; then
3918 # Extract the first word of "cc", so it can be a program name with args.
3919 set dummy cc; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_prog_CC+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 ac_prog_rejected=no
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3937 ac_prog_rejected=yes
3938 continue
3940 ac_cv_prog_CC="cc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3946 IFS=$as_save_IFS
3948 if test $ac_prog_rejected = yes; then
3949 # We found a bogon in the path, so make sure we never use it.
3950 set dummy $ac_cv_prog_CC
3951 shift
3952 if test $# != 0; then
3953 # We chose a different compiler from the bogus one.
3954 # However, it has the same basename, so the bogon will be chosen
3955 # first if we set CC to just the basename; use the full file name.
3956 shift
3957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3973 if test -z "$CC"; then
3974 if test -n "$ac_tool_prefix"; then
3975 for ac_prog in cl.exe
3977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_CC+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 CC=$ac_cv_prog_CC
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$CC" && break
4015 done
4017 if test -z "$CC"; then
4018 ac_ct_CC=$CC
4019 for ac_prog in cl.exe
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy $ac_prog; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_ac_ct_CC="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4042 done
4043 done
4044 IFS=$as_save_IFS
4048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4049 if test -n "$ac_ct_CC"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4051 $as_echo "$ac_ct_CC" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4058 test -n "$ac_ct_CC" && break
4059 done
4061 if test "x$ac_ct_CC" = x; then
4062 CC=""
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4069 esac
4070 CC=$ac_ct_CC
4077 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error $? "no acceptable C compiler found in \$PATH
4080 See \`config.log' for more details" "$LINENO" 5; }
4082 # Provide some information about the compiler.
4083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4084 set X $ac_compile
4085 ac_compiler=$2
4086 for ac_option in --version -v -V -qversion; do
4087 { { ac_try="$ac_compiler $ac_option >&5"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4095 ac_status=$?
4096 if test -s conftest.err; then
4097 sed '10a\
4098 ... rest of stderr output deleted ...
4099 10q' conftest.err >conftest.er1
4100 cat conftest.er1 >&5
4102 rm -f conftest.er1 conftest.err
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4105 done
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109 if ${ac_cv_c_compiler_gnu+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4116 main ()
4118 #ifndef __GNUC__
4119 choke me
4120 #endif
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
4128 else
4129 ac_compiler_gnu=no
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137 if test $ac_compiler_gnu = yes; then
4138 GCC=yes
4139 else
4140 GCC=
4142 ac_test_CFLAGS=${CFLAGS+set}
4143 ac_save_CFLAGS=$CFLAGS
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4146 if ${ac_cv_prog_cc_g+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 main ()
4161 return 0;
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
4166 else
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 main ()
4176 return 0;
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4181 else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 main ()
4192 return 0;
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 $as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224 if ${ac_cv_prog_cc_c89+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 ac_cv_prog_cc_c89=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <stdarg.h>
4232 #include <stdio.h>
4233 struct stat;
4234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235 struct buf { int x; };
4236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237 static char *e (p, i)
4238 char **p;
4239 int i;
4241 return p[i];
4243 static char *f (char * (*g) (char **, int), char **p, ...)
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264 #define FOO(x) 'x'
4265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4267 int test (int i, double x);
4268 struct s1 {int (*f) (int a);};
4269 struct s2 {int (*f) (double a);};
4270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271 int argc;
4272 char **argv;
4274 main ()
4276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4278 return 0;
4280 _ACEOF
4281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 done
4291 rm -f conftest.$ac_ext
4292 CC=$ac_save_CC
4295 # AC_CACHE_VAL
4296 case "x$ac_cv_prog_cc_c89" in
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307 esac
4308 if test "x$ac_cv_prog_cc_c89" != xno; then :
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 if test "$GCC" = yes; then
4319 RDYNAMIC="-rdynamic"
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4329 # On Suns, sometimes $CPP names a directory.
4330 if test -n "$CPP" && test -d "$CPP"; then
4331 CPP=
4333 if test -z "$CPP"; then
4334 if ${ac_cv_prog_CPP+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 # Double quotes because CPP needs to be expanded
4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4340 ac_preproc_ok=false
4341 for ac_c_preproc_warn_flag in '' yes
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #ifdef __STDC__
4352 # include <limits.h>
4353 #else
4354 # include <assert.h>
4355 #endif
4356 Syntax error
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4360 else
4361 # Broken: fails on valid input.
4362 continue
4364 rm -f conftest.err conftest.i conftest.$ac_ext
4366 # OK, works on sane cases. Now check whether nonexistent headers
4367 # can be detected and how.
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4371 _ACEOF
4372 if ac_fn_c_try_cpp "$LINENO"; then :
4373 # Broken: success on invalid input.
4374 continue
4375 else
4376 # Passes both tests.
4377 ac_preproc_ok=:
4378 break
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4382 done
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.i conftest.err conftest.$ac_ext
4385 if $ac_preproc_ok; then :
4386 break
4389 done
4390 ac_cv_prog_CPP=$CPP
4393 CPP=$ac_cv_prog_CPP
4394 else
4395 ac_cv_prog_CPP=$CPP
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4398 $as_echo "$CPP" >&6; }
4399 ac_preproc_ok=false
4400 for ac_c_preproc_warn_flag in '' yes
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415 Syntax error
4416 _ACEOF
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4419 else
4420 # Broken: fails on valid input.
4421 continue
4423 rm -f conftest.err conftest.i conftest.$ac_ext
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <ac_nonexistent.h>
4430 _ACEOF
4431 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4433 continue
4434 else
4435 # Passes both tests.
4436 ac_preproc_ok=:
4437 break
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4441 done
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.i conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then :
4446 else
4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4450 See \`config.log' for more details" "$LINENO" 5; }
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4460 $as_echo_n "checking for additional special compiler flags... " >&6; }
4461 if test "$GCC" = yes
4462 then
4463 case "$host_cpu" in
4464 alpha) addcflags="-mieee" ;;
4465 esac
4467 if test "x$addcflags" != x
4468 then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4470 $as_echo "$addcflags" >&6; }
4471 CFLAGS="$addcflags $CFLAGS"
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4474 $as_echo "(none)" >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4478 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4479 if ${ac_cv_path_GREP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -z "$GREP"; then
4483 ac_path_GREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in grep ggrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4493 as_fn_executable_p "$ac_path_GREP" || continue
4494 # Check for GNU ac_path_GREP and select it if it is found.
4495 # Check for GNU $ac_path_GREP
4496 case `"$ac_path_GREP" --version 2>&1` in
4497 *GNU*)
4498 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4500 ac_count=0
4501 $as_echo_n 0123456789 >"conftest.in"
4502 while :
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo 'GREP' >> "conftest.nl"
4508 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 as_fn_arith $ac_count + 1 && ac_count=$as_val
4511 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_GREP="$ac_path_GREP"
4514 ac_path_GREP_max=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4522 $ac_path_GREP_found && break 3
4523 done
4524 done
4525 done
4526 IFS=$as_save_IFS
4527 if test -z "$ac_cv_path_GREP"; then
4528 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4530 else
4531 ac_cv_path_GREP=$GREP
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4536 $as_echo "$ac_cv_path_GREP" >&6; }
4537 GREP="$ac_cv_path_GREP"
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4541 $as_echo_n "checking for egrep... " >&6; }
4542 if ${ac_cv_path_EGREP+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4546 then ac_cv_path_EGREP="$GREP -E"
4547 else
4548 if test -z "$EGREP"; then
4549 ac_path_EGREP_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_prog in egrep; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4559 as_fn_executable_p "$ac_path_EGREP" || continue
4560 # Check for GNU ac_path_EGREP and select it if it is found.
4561 # Check for GNU $ac_path_EGREP
4562 case `"$ac_path_EGREP" --version 2>&1` in
4563 *GNU*)
4564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4566 ac_count=0
4567 $as_echo_n 0123456789 >"conftest.in"
4568 while :
4570 cat "conftest.in" "conftest.in" >"conftest.tmp"
4571 mv "conftest.tmp" "conftest.in"
4572 cp "conftest.in" "conftest.nl"
4573 $as_echo 'EGREP' >> "conftest.nl"
4574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 as_fn_arith $ac_count + 1 && ac_count=$as_val
4577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4578 # Best one so far, save it but keep looking for a better one
4579 ac_cv_path_EGREP="$ac_path_EGREP"
4580 ac_path_EGREP_max=$ac_count
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4584 done
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586 esac
4588 $ac_path_EGREP_found && break 3
4589 done
4590 done
4591 done
4592 IFS=$as_save_IFS
4593 if test -z "$ac_cv_path_EGREP"; then
4594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4596 else
4597 ac_cv_path_EGREP=$EGREP
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4603 $as_echo "$ac_cv_path_EGREP" >&6; }
4604 EGREP="$ac_cv_path_EGREP"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4608 $as_echo_n "checking for ANSI C header files... " >&6; }
4609 if ${ac_cv_header_stdc+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #include <stdlib.h>
4615 #include <stdarg.h>
4616 #include <string.h>
4617 #include <float.h>
4620 main ()
4624 return 0;
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_header_stdc=yes
4629 else
4630 ac_cv_header_stdc=no
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 if test $ac_cv_header_stdc = yes; then
4635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <string.h>
4640 _ACEOF
4641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 $EGREP "memchr" >/dev/null 2>&1; then :
4644 else
4645 ac_cv_header_stdc=no
4647 rm -f conftest*
4651 if test $ac_cv_header_stdc = yes; then
4652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 #include <stdlib.h>
4657 _ACEOF
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "free" >/dev/null 2>&1; then :
4661 else
4662 ac_cv_header_stdc=no
4664 rm -f conftest*
4668 if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then :
4672 else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <ctype.h>
4676 #include <stdlib.h>
4677 #if ((' ' & 0x0FF) == 0x020)
4678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4680 #else
4681 # define ISLOWER(c) \
4682 (('a' <= (c) && (c) <= 'i') \
4683 || ('j' <= (c) && (c) <= 'r') \
4684 || ('s' <= (c) && (c) <= 'z'))
4685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686 #endif
4688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690 main ()
4692 int i;
4693 for (i = 0; i < 256; i++)
4694 if (XOR (islower (i), ISLOWER (i))
4695 || toupper (i) != TOUPPER (i))
4696 return 2;
4697 return 0;
4699 _ACEOF
4700 if ac_fn_c_try_run "$LINENO"; then :
4702 else
4703 ac_cv_header_stdc=no
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706 conftest.$ac_objext conftest.beam conftest.$ac_ext
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4712 $as_echo "$ac_cv_header_stdc" >&6; }
4713 if test $ac_cv_header_stdc = yes; then
4715 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4719 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4720 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4721 inttypes.h stdint.h unistd.h
4722 do :
4723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4727 cat >>confdefs.h <<_ACEOF
4728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729 _ACEOF
4733 done
4737 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4738 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4739 MINIX=yes
4740 else
4741 MINIX=
4745 if test "$MINIX" = yes; then
4747 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4750 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4753 $as_echo "#define _MINIX 1" >>confdefs.h
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4759 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4760 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4766 # define __EXTENSIONS__ 1
4767 $ac_includes_default
4769 main ()
4773 return 0;
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_safe_to_define___extensions__=yes
4778 else
4779 ac_cv_safe_to_define___extensions__=no
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4784 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4785 test $ac_cv_safe_to_define___extensions__ = yes &&
4786 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4788 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4790 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4792 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4794 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4797 LIB_EXT=.a
4798 STATIC_LIB_EXT=.a
4799 PROFILED_LIB_EXT=.a
4801 # Check whether --with-root-prefix was given.
4802 if test "${with_root_prefix+set}" = set; then :
4803 withval=$with_root_prefix; root_prefix=$withval
4804 else
4805 root_prefix=NONE
4807 # Check whether --enable-maintainer-mode was given.
4808 if test "${enable_maintainer_mode+set}" = set; then :
4809 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4810 then
4811 MAINTAINER_CMT=#
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4813 $as_echo "Disabling maintainer mode" >&6; }
4814 else
4815 MAINTAINER_CMT=
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4817 $as_echo "Enabling maintainer mode" >&6; }
4820 else
4821 MAINTAINER_CMT=#
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4823 $as_echo "Disabling maintainer mode by default" >&6; }
4828 # Check whether --enable-symlink-install was given.
4829 if test "${enable_symlink_install+set}" = set; then :
4830 enableval=$enable_symlink_install; if test "$enableval" = "no"
4831 then
4832 LINK_INSTALL_FLAGS=-f
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4834 $as_echo "Disabling symlinks for install" >&6; }
4835 else
4836 LINK_INSTALL_FLAGS=-sf
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4838 $as_echo "Enabling symlinks for install" >&6; }
4841 else
4842 LINK_INSTALL_FLAGS=-f
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4844 $as_echo "Disabling symlinks for install by default" >&6; }
4849 relative_symlink_defined=
4850 # Check whether --enable-relative-symlinks was given.
4851 if test "${enable_relative_symlinks+set}" = set; then :
4852 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4853 then
4854 SYMLINK_RELATIVE=
4855 relative_symlink_defined=yes
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4857 $as_echo "Disabling relative symlinks for install" >&6; }
4858 else
4859 SYMLINK_RELATIVE=--relative
4860 relative_symlink_defined=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4862 $as_echo "Enabling relative symlinks for install" >&6; }
4866 # Check whether --enable-symlink-relative-symlinks was given.
4867 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4868 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4869 then
4870 SYMLINK_RELATIVE=yes
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4872 $as_echo "Disabling relative symlinks for install" >&6; }
4873 else
4874 SYMLINK_RELATIVE=--relative
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4876 $as_echo "Enabling relative symlinks for install" >&6; }
4879 else
4880 if test -z "$relative_symlink_defined"
4881 then
4882 SYMLINK_RELATIVE=
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4884 $as_echo "Disabling relative symlinks for install by default" >&6; }
4890 # Check whether --enable-symlink-build was given.
4891 if test "${enable_symlink_build+set}" = set; then :
4892 enableval=$enable_symlink_build; if test "$enableval" = "no"
4893 then
4894 LINK_BUILD_FLAGS=
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4896 $as_echo "Disabling symlinks for build" >&6; }
4897 else
4898 LINK_BUILD_FLAGS=-s
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4900 $as_echo "Enabling symlinks for build" >&6; }
4903 else
4904 LINK_BUILD_FLAGS=
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4906 $as_echo "Disabling symlinks for build by default" >&6; }
4911 # Check whether --enable-verbose-makecmds was given.
4912 if test "${enable_verbose_makecmds+set}" = set; then :
4913 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4914 then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4916 $as_echo "Disabling verbose make commands" >&6; }
4917 E=@echo
4918 ES=echo
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4922 $as_echo "Enabling verbose make commands" >&6; }
4923 E=@\\#
4924 ES=\\#
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4930 $as_echo "Disabling verbose make commands" >&6; }
4931 E=@echo
4932 ES=echo
4940 E2_PKG_CONFIG_STATIC=--static
4941 LDFLAG_DYNAMIC=
4942 PRIVATE_LIBS_CMT=
4943 # Check whether --enable-elf-shlibs was given.
4944 if test "${enable_elf_shlibs+set}" = set; then :
4945 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4946 then
4947 ELF_CMT=#
4948 MAKEFILE_ELF=/dev/null
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4950 $as_echo "Disabling ELF shared libraries" >&6; }
4951 else
4952 E2_PKG_CONFIG_STATIC=
4953 ELF_CMT=
4954 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4955 case "$host_os" in
4956 solaris2.*)
4957 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4959 esac
4960 BINARY_TYPE=elfbin
4961 LIB_EXT=.so
4962 PRIVATE_LIBS_CMT=#
4963 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4965 $as_echo "Enabling ELF shared libraries" >&6; }
4968 else
4969 MAKEFILE_ELF=/dev/null
4970 ELF_CMT=#
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4972 $as_echo "Disabling ELF shared libraries by default" >&6; }
4978 # Check whether --enable-bsd-shlibs was given.
4979 if test "${enable_bsd_shlibs+set}" = set; then :
4980 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4981 then
4982 BSDLIB_CMT=#
4983 MAKEFILE_BSDLIB=/dev/null
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4985 $as_echo "Disabling BSD shared libraries" >&6; }
4986 else
4987 E2_PKG_CONFIG_STATIC=
4988 BSDLIB_CMT=
4989 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4990 LIB_EXT=.so
4991 case "$host_os" in
4992 darwin*)
4993 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4994 LIB_EXT=.dylib
4996 esac
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4998 $as_echo "Enabling BSD shared libraries" >&6; }
5001 else
5002 MAKEFILE_BSDLIB=/dev/null
5003 BSDLIB_CMT=#
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5005 $as_echo "Disabling BSD shared libraries by default" >&6; }
5011 # Check whether --enable-profile was given.
5012 if test "${enable_profile+set}" = set; then :
5013 enableval=$enable_profile; if test "$enableval" = "no"
5014 then
5015 PROFILE_CMT=#
5016 MAKEFILE_PROFILE=/dev/null
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5018 $as_echo "Disabling profiling libraries" >&6; }
5019 else
5020 PROFILE_CMT=
5021 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5022 PROFILED_LIB_EXT=_p.a
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5024 $as_echo "Building profiling libraries" >&6; }
5027 else
5028 PROFILE_CMT=#
5029 MAKEFILE_PROFILE=/dev/null
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5031 $as_echo "Disabling profiling libraries by default" >&6; }
5037 # Check whether --enable-gcov was given.
5038 if test "${enable_gcov+set}" = set; then :
5039 enableval=$enable_gcov; if test "$enableval" = "yes"
5040 then
5041 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5042 LDFLAGS="-fprofile-arcs -ftest-coverage"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5044 $as_echo "Enabling gcov support" >&6; }
5049 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5050 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5051 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5052 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5053 # Check whether --enable-hardening was given.
5054 if test "${enable_hardening+set}" = set; then :
5055 enableval=$enable_hardening; if test "$enableval" = "yes"
5056 then
5057 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5058 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5059 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5060 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5061 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5062 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5063 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5064 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5066 $as_echo "Enabling hardening support" >&6; }
5076 # Check whether --enable-jbd-debug was given.
5077 if test "${enable_jbd_debug+set}" = set; then :
5078 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5079 then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5081 $as_echo "Disabling journal debugging" >&6; }
5082 else
5084 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5087 $as_echo "Enabling journal debugging" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5092 $as_echo "Disabling journal debugging by default" >&6; }
5096 # Check whether --enable-blkid-debug was given.
5097 if test "${enable_blkid_debug+set}" = set; then :
5098 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5099 then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5101 $as_echo "Disabling blkid debugging" >&6; }
5102 else
5104 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5107 $as_echo "Enabling blkid debugging" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5112 $as_echo "Disabling blkid debugging by default" >&6; }
5116 # Check whether --enable-testio-debug was given.
5117 if test "${enable_testio_debug+set}" = set; then :
5118 enableval=$enable_testio_debug;
5119 if test "$enableval" = "no"
5120 then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5122 $as_echo "Disabling testio debugging" >&6; }
5123 TEST_IO_CMT="#"
5124 else
5125 TEST_IO_CMT=
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5129 $as_echo "Enabling testio debugging" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5134 $as_echo "Enabling testio debugging by default" >&6; }
5135 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5137 TEST_IO_CMT=
5142 # Check whether --enable-developer-features was given.
5143 if test "${enable_developer_features+set}" = set; then :
5144 enableval=$enable_developer_features;
5145 if test "$enableval" = "yes"
5146 then
5147 DEV_FEATURES_CMT=
5148 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5151 $as_echo "Enabling ext4 developer features" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5154 $as_echo "Disabling ext4 developer features" >&6; }
5155 DEV_FEATURES_CMT="#"
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5160 $as_echo "Disabling ext4 developer features by default" >&6; }
5161 DEV_FEATURES_CMT=
5173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5174 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 case $PKG_CONFIG in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5203 esac
5205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5206 if test -n "$PKG_CONFIG"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5208 $as_echo "$PKG_CONFIG" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5216 if test -z "$ac_cv_path_PKG_CONFIG"; then
5217 ac_pt_PKG_CONFIG=$PKG_CONFIG
5218 # Extract the first word of "pkg-config", so it can be a program name with args.
5219 set dummy pkg-config; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 case $ac_pt_PKG_CONFIG in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5246 esac
5248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5249 if test -n "$ac_pt_PKG_CONFIG"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5257 if test "x$ac_pt_PKG_CONFIG" = x; then
5258 PKG_CONFIG=""
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 PKG_CONFIG=$ac_pt_PKG_CONFIG
5268 else
5269 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5273 if test -n "$PKG_CONFIG"; then
5274 _pkg_min_version=0.9.0
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5277 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 PKG_CONFIG=""
5286 LIBUUID=
5287 DEPLIBUUID=
5288 STATIC_LIBUUID=
5289 DEPSTATIC_LIBUUID=
5290 PROFILED_LIBUUID=
5291 DEPPROFILED_LIBUUID=
5292 UUID_CMT=
5293 # Check whether --enable-libuuid was given.
5294 if test "${enable_libuuid+set}" = set; then :
5295 enableval=$enable_libuuid; if test "$enableval" = "no"
5296 then
5297 if test -z "$PKG_CONFIG"; then
5298 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5302 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5303 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 ac_check_lib_save_LIBS=$LIBS
5307 LIBS="-luuid $LIBS"
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5311 /* Override any GCC internal prototype to avoid an error.
5312 Use char because int might match the return type of a GCC
5313 builtin and then its argument prototype would still apply. */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 char uuid_generate ();
5319 main ()
5321 return uuid_generate ();
5323 return 0;
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"; then :
5327 ac_cv_lib_uuid_uuid_generate=yes
5328 else
5329 ac_cv_lib_uuid_uuid_generate=no
5331 rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5333 LIBS=$ac_check_lib_save_LIBS
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5336 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5337 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5338 LIBUUID=`$PKG_CONFIG --libs uuid`;
5339 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5340 else
5341 as_fn_error $? "external uuid library not found" "$LINENO" 5
5344 PROFILED_LIBUUID=$LIBUUID
5345 UUID_CMT=#
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5347 $as_echo "Disabling private uuid library" >&6; }
5348 else
5349 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5350 DEPLIBUUID=$LIBUUID
5351 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5352 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5353 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5354 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5356 $as_echo "Enabling private uuid library" >&6; }
5359 else
5360 if test -n "$PKG_CONFIG"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5362 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5363 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 ac_check_lib_save_LIBS=$LIBS
5367 LIBS="-luuid $LIBS"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5371 /* Override any GCC internal prototype to avoid an error.
5372 Use char because int might match the return type of a GCC
5373 builtin and then its argument prototype would still apply. */
5374 #ifdef __cplusplus
5375 extern "C"
5376 #endif
5377 char uuid_generate ();
5379 main ()
5381 return uuid_generate ();
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_link "$LINENO"; then :
5387 ac_cv_lib_uuid_uuid_generate=yes
5388 else
5389 ac_cv_lib_uuid_uuid_generate=no
5391 rm -f core conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5393 LIBS=$ac_check_lib_save_LIBS
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5396 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5397 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5398 LIBUUID=`$PKG_CONFIG --libs uuid`;
5399 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5403 if test -n "$LIBUUID"; then
5404 PROFILED_LIBUUID=$LIBUUID
5405 UUID_CMT=#
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5407 $as_echo "Using system uuid by default" >&6; }
5408 else
5409 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5410 DEPLIBUUID=$LIBUUID
5411 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5412 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5413 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5414 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5416 $as_echo "Enabling private uuid library by default" >&6; }
5435 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5436 if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5438 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 case $PKG_CONFIG in
5445 [\\/]* | ?:[\\/]*)
5446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5460 done
5461 done
5462 IFS=$as_save_IFS
5465 esac
5467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5468 if test -n "$PKG_CONFIG"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5470 $as_echo "$PKG_CONFIG" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5478 if test -z "$ac_cv_path_PKG_CONFIG"; then
5479 ac_pt_PKG_CONFIG=$PKG_CONFIG
5480 # Extract the first word of "pkg-config", so it can be a program name with args.
5481 set dummy pkg-config; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 case $ac_pt_PKG_CONFIG in
5488 [\\/]* | ?:[\\/]*)
5489 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5505 IFS=$as_save_IFS
5508 esac
5510 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5511 if test -n "$ac_pt_PKG_CONFIG"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5513 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5519 if test "x$ac_pt_PKG_CONFIG" = x; then
5520 PKG_CONFIG=""
5521 else
5522 case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528 PKG_CONFIG=$ac_pt_PKG_CONFIG
5530 else
5531 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5535 if test -n "$PKG_CONFIG"; then
5536 _pkg_min_version=0.9.0
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5538 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5539 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541 $as_echo "yes" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 PKG_CONFIG=""
5548 LIBBLKID=
5549 DEPLIBBLKID=
5550 STATIC_LIBBLKID=
5551 DEPSTATIC_LIBBLKID=
5552 PROFILED_LIBBLKID=
5553 DEPPROFILED_LIBBLKID=
5554 BLKID_CMT=
5556 # Check whether --enable-libblkid was given.
5557 if test "${enable_libblkid+set}" = set; then :
5558 enableval=$enable_libblkid; if test "$enableval" = "no"
5559 then
5560 if test -z "$PKG_CONFIG"; then
5561 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5565 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5566 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_check_lib_save_LIBS=$LIBS
5570 LIBS="-lblkid -luuid $LIBS"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5574 /* Override any GCC internal prototype to avoid an error.
5575 Use char because int might match the return type of a GCC
5576 builtin and then its argument prototype would still apply. */
5577 #ifdef __cplusplus
5578 extern "C"
5579 #endif
5580 char blkid_get_cache ();
5582 main ()
5584 return blkid_get_cache ();
5586 return 0;
5588 _ACEOF
5589 if ac_fn_c_try_link "$LINENO"; then :
5590 ac_cv_lib_blkid_blkid_get_cache=yes
5591 else
5592 ac_cv_lib_blkid_blkid_get_cache=no
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5599 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5600 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5601 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5602 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5603 else
5604 as_fn_error $? "external blkid library not found" "$LINENO" 5
5607 BLKID_CMT=#
5608 PROFILED_LIBBLKID=$LIBBLKID
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5610 $as_echo "Disabling private blkid library" >&6; }
5611 else
5612 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5613 DEPLIBBLKID=$LIBBLKID
5614 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5615 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5616 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5617 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5618 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5621 $as_echo "Enabling private blkid library" >&6; }
5624 else
5625 if test -n "$PKG_CONFIG"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5627 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5628 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 ac_check_lib_save_LIBS=$LIBS
5632 LIBS="-lblkid $LIBS"
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5636 /* Override any GCC internal prototype to avoid an error.
5637 Use char because int might match the return type of a GCC
5638 builtin and then its argument prototype would still apply. */
5639 #ifdef __cplusplus
5640 extern "C"
5641 #endif
5642 char blkid_get_cache ();
5644 main ()
5646 return blkid_get_cache ();
5648 return 0;
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 ac_cv_lib_blkid_blkid_get_cache=yes
5653 else
5654 ac_cv_lib_blkid_blkid_get_cache=no
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5661 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5662 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5663 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5664 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5668 if test -n "$LIBBLKID"; then
5669 BLKID_CMT=#
5670 PROFILED_LIBBLKID=$LIBBLKID
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5672 $as_echo "Using system blkid library by default" >&6; }
5673 else
5674 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5675 DEPLIBBLKID=$LIBBLKID
5676 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5677 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5678 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5679 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5680 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5683 $as_echo "Enabling private blkid library by default" >&6; }
5695 ALL_CMT=
5696 SUBSET_CMT=
5697 # Check whether --enable-subset was given.
5698 if test "${enable_subset+set}" = set; then :
5699 enableval=$enable_subset; if test "$enableval" = "no"
5700 then
5701 SUBSET_CMT=#
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5703 $as_echo "Disabling subset-only build" >&6; }
5704 else
5705 ALL_CMT=#
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5707 $as_echo "Enabling subset-only-build" >&6; }
5715 # Check whether --enable-backtrace was given.
5716 if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5718 then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5720 $as_echo "Disabling use of backtrace" >&6; }
5721 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725 $as_echo "Enabling use of backtrace" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5730 $as_echo "Enabling use of backtrace by default" >&6; }
5734 # Check whether --enable-debugfs was given.
5735 if test "${enable_debugfs+set}" = set; then :
5736 enableval=$enable_debugfs; if test "$enableval" = "no"
5737 then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5739 $as_echo "Disabling debugfs support" >&6; }
5740 DEBUGFS_CMT="#"
5741 else
5742 DEBUGFS_CMT=
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5744 $as_echo "Enabling debugfs support" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5749 $as_echo "Enabling debugfs support by default" >&6; }
5750 DEBUGFS_CMT=
5755 # Check whether --enable-imager was given.
5756 if test "${enable_imager+set}" = set; then :
5757 enableval=$enable_imager; if test "$enableval" = "no"
5758 then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5760 $as_echo "Disabling e2image support" >&6; }
5761 IMAGER_CMT="#"
5762 else
5763 IMAGER_CMT=
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5765 $as_echo "Enabling e2image support" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5770 $as_echo "Enabling e2image support by default" >&6; }
5771 IMAGER_CMT=
5776 # Check whether --enable-resizer was given.
5777 if test "${enable_resizer+set}" = set; then :
5778 enableval=$enable_resizer; if test "$enableval" = "no"
5779 then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5781 $as_echo "Disabling e2resize support" >&6; }
5782 RESIZER_CMT="#"
5783 else
5784 RESIZER_CMT=
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5786 $as_echo "Enabling e2resize support" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5791 $as_echo "Enabling e2resize support by default" >&6; }
5792 RESIZER_CMT=
5797 # Check whether --enable-defrag was given.
5798 if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5800 then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802 $as_echo "Disabling e4defrag support" >&6; }
5803 DEFRAG_CMT="#"
5804 else
5805 DEFRAG_CMT=
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807 $as_echo "Enabling e4defrag support" >&6; }
5810 else
5811 if test -z "$WITH_DIET_LIBC"
5812 then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5814 $as_echo "Enabling e4defrag support by default" >&6; }
5815 DEFRAG_CMT=
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5818 $as_echo "Disabling e4defrag support by default" >&6; }
5819 DEFRAG_CMT="#"
5825 # Check whether --enable-fsck was given.
5826 if test "${enable_fsck+set}" = set; then :
5827 enableval=$enable_fsck; if test "$enableval" = "no"
5828 then
5829 FSCK_PROG='' FSCK_MAN=''
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5831 $as_echo "Not building fsck wrapper" >&6; }
5832 else
5833 FSCK_PROG=fsck FSCK_MAN=fsck.8
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5835 $as_echo "Building fsck wrapper" >&6; }
5838 else
5839 case "$host_os" in
5840 gnu*)
5841 FSCK_PROG='' FSCK_MAN=''
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5843 $as_echo "Not building fsck wrapper by default" >&6; }
5846 FSCK_PROG=fsck FSCK_MAN=fsck.8
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5848 $as_echo "Building fsck wrapper by default" >&6; }
5849 esac
5855 # Check whether --enable-e2initrd-helper was given.
5856 if test "${enable_e2initrd_helper+set}" = set; then :
5857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5858 then
5859 E2INITRD_PROG='' E2INITRD_MAN=''
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5861 $as_echo "Not building e2initrd helper" >&6; }
5862 else
5863 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5865 $as_echo "Building e2initrd helper" >&6; }
5868 else
5869 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5871 $as_echo "Building e2initrd helper by default" >&6; }
5877 # Check whether --enable-tls was given.
5878 if test "${enable_tls+set}" = set; then :
5879 enableval=$enable_tls; if test "$enableval" = "no"
5880 then
5881 try_tls=""
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5883 $as_echo "Disabling thread local support" >&6; }
5884 else
5885 try_tls="yes"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5887 $as_echo "Enabling thread local support" >&6; }
5890 else
5891 if test -n "$WITH_DIET_LIBC"
5892 then
5893 try_tls=""
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5895 $as_echo "Diet libc does not support thread local support" >&6; }
5896 else
5897 try_tls="yes"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5899 $as_echo "Try using thread local support by default" >&6; }
5904 if test "$try_tls" = "yes"
5905 then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5908 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5909 if ${ac_cv_tls+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5913 ax_tls_keywords="__thread __declspec(thread) none"
5914 for ax_tls_keyword in $ax_tls_keywords; do
5915 case $ax_tls_keyword in
5916 none) ac_cv_tls=none ; break ;;
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <stdlib.h>
5921 static void
5922 foo(void) {
5923 static $ax_tls_keyword int bar;
5924 exit(1);
5927 main ()
5931 return 0;
5933 _ACEOF
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_tls=$ax_tls_keyword ; break
5936 else
5937 ac_cv_tls=none
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 esac
5942 done
5947 if test "$ac_cv_tls" != "none"; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define TLS $ac_cv_tls
5951 _ACEOF
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5955 $as_echo "$ac_cv_tls" >&6; }
5959 # Check whether --with-pthread was given.
5960 if test "${with_pthread+set}" = set; then :
5961 withval=$with_pthread; if test "$withval" = "no"
5962 then
5963 try_pthread=""
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5965 $as_echo "Disabling pthread support" >&6; }
5966 else
5967 try_pthread="yes"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5969 $as_echo "Testing for pthread support" >&6; }
5972 else
5973 try_pthread="yes"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5975 $as_echo "Try testing for pthread support by default" >&6; }
5979 if test "$try_pthread" = "yes"
5980 then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5982 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5983 if ${ac_cv_path_SED+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5987 for ac_i in 1 2 3 4 5 6 7; do
5988 ac_script="$ac_script$as_nl$ac_script"
5989 done
5990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5991 { ac_script=; unset ac_script;}
5992 if test -z "$SED"; then
5993 ac_path_SED_found=false
5994 # Loop through the user's path and test for each of PROGNAME-LIST
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_prog in sed gsed; do
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6003 as_fn_executable_p "$ac_path_SED" || continue
6004 # Check for GNU ac_path_SED and select it if it is found.
6005 # Check for GNU $ac_path_SED
6006 case `"$ac_path_SED" --version 2>&1` in
6007 *GNU*)
6008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6010 ac_count=0
6011 $as_echo_n 0123456789 >"conftest.in"
6012 while :
6014 cat "conftest.in" "conftest.in" >"conftest.tmp"
6015 mv "conftest.tmp" "conftest.in"
6016 cp "conftest.in" "conftest.nl"
6017 $as_echo '' >> "conftest.nl"
6018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6020 as_fn_arith $ac_count + 1 && ac_count=$as_val
6021 if test $ac_count -gt ${ac_path_SED_max-0}; then
6022 # Best one so far, save it but keep looking for a better one
6023 ac_cv_path_SED="$ac_path_SED"
6024 ac_path_SED_max=$ac_count
6026 # 10*(2^10) chars as input seems more than enough
6027 test $ac_count -gt 10 && break
6028 done
6029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030 esac
6032 $ac_path_SED_found && break 3
6033 done
6034 done
6035 done
6036 IFS=$as_save_IFS
6037 if test -z "$ac_cv_path_SED"; then
6038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6040 else
6041 ac_cv_path_SED=$SED
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6046 $as_echo "$ac_cv_path_SED" >&6; }
6047 SED="$ac_cv_path_SED"
6048 rm -f conftest.sed
6054 ac_ext=c
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060 ax_pthread_ok=no
6062 # We used to check for pthread.h first, but this fails if pthread.h
6063 # requires special compiler flags (e.g. on Tru64 or Sequent).
6064 # It gets checked for in the link test anyway.
6066 # First of all, check if the user has set any of the PTHREAD_LIBS,
6067 # etcetera environment variables, and if threads linking works using
6068 # them:
6069 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6070 ax_pthread_save_CC="$CC"
6071 ax_pthread_save_CFLAGS="$CFLAGS"
6072 ax_pthread_save_LIBS="$LIBS"
6073 if test "x$PTHREAD_CC" != "x"; then :
6074 CC="$PTHREAD_CC"
6076 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6077 LIBS="$PTHREAD_LIBS $LIBS"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6079 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6083 /* Override any GCC internal prototype to avoid an error.
6084 Use char because int might match the return type of a GCC
6085 builtin and then its argument prototype would still apply. */
6086 #ifdef __cplusplus
6087 extern "C"
6088 #endif
6089 char pthread_join ();
6091 main ()
6093 return pthread_join ();
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_link "$LINENO"; then :
6099 ax_pthread_ok=yes
6101 rm -f core conftest.err conftest.$ac_objext \
6102 conftest$ac_exeext conftest.$ac_ext
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6104 $as_echo "$ax_pthread_ok" >&6; }
6105 if test "x$ax_pthread_ok" = "xno"; then
6106 PTHREAD_LIBS=""
6107 PTHREAD_CFLAGS=""
6109 CC="$ax_pthread_save_CC"
6110 CFLAGS="$ax_pthread_save_CFLAGS"
6111 LIBS="$ax_pthread_save_LIBS"
6114 # We must check for the threads library under a number of different
6115 # names; the ordering is very important because some systems
6116 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6117 # libraries is broken (non-POSIX).
6119 # Create a list of thread flags to try. Items starting with a "-" are
6120 # C compiler flags, and other items are library names, except for "none"
6121 # which indicates that we try without any flags at all, and "pthread-config"
6122 # which is a program returning the flags for the Pth emulation library.
6124 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6126 # The ordering *is* (sometimes) important. Some notes on the
6127 # individual items follow:
6129 # pthreads: AIX (must check this before -lpthread)
6130 # none: in case threads are in libc; should be tried before -Kthread and
6131 # other compiler flags to prevent continual compiler warnings
6132 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6133 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6134 # (Note: HP C rejects this with "bad form for `-t' option")
6135 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6136 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6137 # doesn't hurt to check since this sometimes defines pthreads and
6138 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6139 # is present but should not be used directly; and before -mthreads,
6140 # because the compiler interprets this as "-mt" + "-hreads")
6141 # -mthreads: Mingw32/gcc, Lynx/gcc
6142 # pthread: Linux, etcetera
6143 # --thread-safe: KAI C++
6144 # pthread-config: use pthread-config program (for GNU Pth library)
6146 case $host_os in
6148 freebsd*)
6150 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6151 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6153 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6156 hpux*)
6158 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6159 # multi-threading and also sets -lpthread."
6161 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6164 openedition*)
6166 # IBM z/OS requires a feature-test macro to be defined in order to
6167 # enable POSIX threads at all, so give the user a hint if this is
6168 # not set. (We don't define these ourselves, as they can affect
6169 # other portions of the system API in unpredictable ways.)
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6175 AX_PTHREAD_ZOS_MISSING
6176 # endif
6178 _ACEOF
6179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6182 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6184 rm -f conftest*
6188 solaris*)
6190 # On Solaris (at least, for some versions), libc contains stubbed
6191 # (non-functional) versions of the pthreads routines, so link-based
6192 # tests will erroneously succeed. (N.B.: The stubs are missing
6193 # pthread_cleanup_push, or rather a function called by this macro,
6194 # so we could check for that, but who knows whether they'll stub
6195 # that too in a future libc.) So we'll check first for the
6196 # standard Solaris way of linking pthreads (-mt -lpthread).
6198 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6200 esac
6202 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6204 if test "x$GCC" = "xyes"; then :
6205 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6208 # The presence of a feature test macro requesting re-entrant function
6209 # definitions is, on some systems, a strong hint that pthreads support is
6210 # correctly enabled
6212 case $host_os in
6213 darwin* | hpux* | linux* | osf* | solaris*)
6214 ax_pthread_check_macro="_REENTRANT"
6217 aix*)
6218 ax_pthread_check_macro="_THREAD_SAFE"
6222 ax_pthread_check_macro="--"
6224 esac
6225 if test "x$ax_pthread_check_macro" = "x--"; then :
6226 ax_pthread_check_cond=0
6227 else
6228 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6231 # Are we compiling with Clang?
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6234 $as_echo_n "checking whether $CC is Clang... " >&6; }
6235 if ${ax_cv_PTHREAD_CLANG+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 ax_cv_PTHREAD_CLANG=no
6239 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6240 if test "x$GCC" = "xyes"; then
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6244 # if defined(__clang__) && defined(__llvm__)
6245 AX_PTHREAD_CC_IS_CLANG
6246 # endif
6248 _ACEOF
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6251 ax_cv_PTHREAD_CLANG=yes
6253 rm -f conftest*
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6259 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6260 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6262 ax_pthread_clang_warning=no
6264 # Clang needs special handling, because older versions handle the -pthread
6265 # option in a rather... idiosyncratic way
6267 if test "x$ax_pthread_clang" = "xyes"; then
6269 # Clang takes -pthread; it has never supported any other flag
6271 # (Note 1: This will need to be revisited if a system that Clang
6272 # supports has POSIX threads in a separate library. This tends not
6273 # to be the way of modern systems, but it's conceivable.)
6275 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6276 # to get POSIX threads support; the API is always present and
6277 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6278 # -pthread does define _REENTRANT, and while the Darwin headers
6279 # ignore this macro, third-party headers might not.)
6281 PTHREAD_CFLAGS="-pthread"
6282 PTHREAD_LIBS=
6284 ax_pthread_ok=yes
6286 # However, older versions of Clang make a point of warning the user
6287 # that, in an invocation where only linking and no compilation is
6288 # taking place, the -pthread option has no effect ("argument unused
6289 # during compilation"). They expect -pthread to be passed in only
6290 # when source code is being compiled.
6292 # Problem is, this is at odds with the way Automake and most other
6293 # C build frameworks function, which is that the same flags used in
6294 # compilation (CFLAGS) are also used in linking. Many systems
6295 # supported by AX_PTHREAD require exactly this for POSIX threads
6296 # support, and in fact it is often not straightforward to specify a
6297 # flag that is used only in the compilation phase and not in
6298 # linking. Such a scenario is extremely rare in practice.
6300 # Even though use of the -pthread flag in linking would only print
6301 # a warning, this can be a nuisance for well-run software projects
6302 # that build with -Werror. So if the active version of Clang has
6303 # this misfeature, we search for an option to squash it.
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6306 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6307 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6311 # Create an alternate version of $ac_link that compiles and
6312 # links in two steps (.c -> .o, .o -> exe) instead of one
6313 # (.c -> exe), because the warning occurs only in the second
6314 # step
6315 ax_pthread_save_ac_link="$ac_link"
6316 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6317 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6318 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6319 ax_pthread_save_CFLAGS="$CFLAGS"
6320 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6321 if test "x$ax_pthread_try" = "xunknown"; then :
6322 break
6324 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6325 ac_link="$ax_pthread_save_ac_link"
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int main(void){return 0;}
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 ac_link="$ax_pthread_2step_ac_link"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 int main(void){return 0;}
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 break
6339 rm -f core conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 done
6346 ac_link="$ax_pthread_save_ac_link"
6347 CFLAGS="$ax_pthread_save_CFLAGS"
6348 if test "x$ax_pthread_try" = "x"; then :
6349 ax_pthread_try=no
6351 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6355 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6357 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6358 no | unknown) ;;
6359 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6360 esac
6362 fi # $ax_pthread_clang = yes
6364 if test "x$ax_pthread_ok" = "xno"; then
6365 for ax_pthread_try_flag in $ax_pthread_flags; do
6367 case $ax_pthread_try_flag in
6368 none)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6370 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6373 -mt,pthread)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6375 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6376 PTHREAD_CFLAGS="-mt"
6377 PTHREAD_LIBS="-lpthread"
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6382 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6383 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6386 pthread-config)
6387 # Extract the first word of "pthread-config", so it can be a program name with args.
6388 set dummy pthread-config; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ax_pthread_config+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$ax_pthread_config"; then
6395 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ax_pthread_config="yes"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6412 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6415 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6416 if test -n "$ax_pthread_config"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6418 $as_echo "$ax_pthread_config" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6425 if test "x$ax_pthread_config" = "xno"; then :
6426 continue
6428 PTHREAD_CFLAGS="`pthread-config --cflags`"
6429 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6434 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6435 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6437 esac
6439 ax_pthread_save_CFLAGS="$CFLAGS"
6440 ax_pthread_save_LIBS="$LIBS"
6441 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6442 LIBS="$PTHREAD_LIBS $LIBS"
6444 # Check for various functions. We must include pthread.h,
6445 # since some functions may be macros. (On the Sequent, we
6446 # need a special flag -Kthread to make this header compile.)
6447 # We check for pthread_join because it is in -lpthread on IRIX
6448 # while pthread_create is in libc. We check for pthread_attr_init
6449 # due to DEC craziness with -lpthreads. We check for
6450 # pthread_cleanup_push because it is one of the few pthread
6451 # functions on Solaris that doesn't have a non-functional libc stub.
6452 # We try pthread_create on general principles.
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <pthread.h>
6457 # if $ax_pthread_check_cond
6458 # error "$ax_pthread_check_macro must be defined"
6459 # endif
6460 static void routine(void *a) { a = 0; }
6461 static void *start_routine(void *a) { return a; }
6463 main ()
6465 pthread_t th; pthread_attr_t attr;
6466 pthread_create(&th, 0, start_routine, 0);
6467 pthread_join(th, 0);
6468 pthread_attr_init(&attr);
6469 pthread_cleanup_push(routine, 0);
6470 pthread_cleanup_pop(0) /* ; */
6472 return 0;
6474 _ACEOF
6475 if ac_fn_c_try_link "$LINENO"; then :
6476 ax_pthread_ok=yes
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6481 CFLAGS="$ax_pthread_save_CFLAGS"
6482 LIBS="$ax_pthread_save_LIBS"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6485 $as_echo "$ax_pthread_ok" >&6; }
6486 if test "x$ax_pthread_ok" = "xyes"; then :
6487 break
6490 PTHREAD_LIBS=""
6491 PTHREAD_CFLAGS=""
6492 done
6495 # Various other checks:
6496 if test "x$ax_pthread_ok" = "xyes"; then
6497 ax_pthread_save_CFLAGS="$CFLAGS"
6498 ax_pthread_save_LIBS="$LIBS"
6499 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6500 LIBS="$PTHREAD_LIBS $LIBS"
6502 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6504 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6505 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6509 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <pthread.h>
6514 main ()
6516 int attr = $ax_pthread_attr; return attr /* ; */
6518 return 0;
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 done
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6530 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6531 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6532 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6533 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6537 _ACEOF
6539 ax_pthread_joinable_attr_defined=yes
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6544 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6545 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6549 case $host_os in
6550 solaris*)
6551 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6553 esac
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6557 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6558 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6559 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6560 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6561 ax_pthread_special_flags_added=yes
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6565 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6566 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <pthread.h>
6573 main ()
6575 int i = PTHREAD_PRIO_INHERIT;
6577 return 0;
6579 _ACEOF
6580 if ac_fn_c_try_link "$LINENO"; then :
6581 ax_cv_PTHREAD_PRIO_INHERIT=yes
6582 else
6583 ax_cv_PTHREAD_PRIO_INHERIT=no
6585 rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6590 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6591 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6592 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6594 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6596 ax_pthread_prio_inherit_defined=yes
6600 CFLAGS="$ax_pthread_save_CFLAGS"
6601 LIBS="$ax_pthread_save_LIBS"
6603 # More AIX lossage: compile with *_r variant
6604 if test "x$GCC" != "xyes"; then
6605 case $host_os in
6606 aix*)
6607 case "x/$CC" in #(
6608 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6609 #handle absolute path differently from PATH based program lookup
6610 case "x$CC" in #(
6611 x/*) :
6612 if as_fn_executable_p ${CC}_r; then :
6613 PTHREAD_CC="${CC}_r"
6614 fi ;; #(
6615 *) :
6616 for ac_prog in ${CC}_r
6618 # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if test -n "$PTHREAD_CC"; then
6626 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_PTHREAD_CC="$ac_prog"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6639 done
6640 done
6641 IFS=$as_save_IFS
6645 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6646 if test -n "$PTHREAD_CC"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6648 $as_echo "$PTHREAD_CC" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6655 test -n "$PTHREAD_CC" && break
6656 done
6657 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6659 esac ;; #(
6660 *) :
6662 esac
6664 esac
6668 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6674 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6675 if test "x$ax_pthread_ok" = "xyes"; then
6677 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6680 else
6681 ax_pthread_ok=no
6684 ac_ext=c
6685 ac_cpp='$CPP $CPPFLAGS'
6686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691 else
6692 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6696 # Check whether --enable-uuidd was given.
6697 if test "${enable_uuidd+set}" = set; then :
6698 enableval=$enable_uuidd; if test "$enableval" = "no"
6699 then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6701 $as_echo "Not building uuidd" >&6; }
6702 UUIDD_CMT="#"
6703 else
6704 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6706 UUIDD_CMT=""
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6708 $as_echo "Building uuidd" >&6; }
6711 else
6712 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6714 if test -z "$UUID_CMT"
6715 then
6716 UUIDD_CMT=""
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6718 $as_echo "Building uuidd by default" >&6; }
6719 else
6720 UUIDD_CMT="#"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6722 $as_echo "Disabling uuidd by default" >&6; }
6729 # Check whether --enable-mmp was given.
6730 if test "${enable_mmp+set}" = set; then :
6731 enableval=$enable_mmp; if test "$enableval" = "no"
6732 then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6734 $as_echo "Disabling mmp support" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6737 $as_echo "Enabling mmp support" >&6; }
6738 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6744 $as_echo "Enabling mmp support by default" >&6; }
6745 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6751 # Check whether --enable-tdb was given.
6752 if test "${enable_tdb+set}" = set; then :
6753 enableval=$enable_tdb; if test "$enableval" = "no"
6754 then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6756 $as_echo "Disabling tdb support" >&6; }
6757 TDB_CMT="#"
6758 TDB_MAN_COMMENT='.\"'
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6761 $as_echo "Enabling tdb support" >&6; }
6762 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6764 TDB_CMT=""
6765 TDB_MAN_COMMENT=""
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6770 $as_echo "Enabling mmp support by default" >&6; }
6771 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6773 TDB_CMT=""
6774 TDB_MAN_COMMENT=""
6781 # Check whether --enable-bmap-stats was given.
6782 if test "${enable_bmap_stats+set}" = set; then :
6783 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6784 then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6786 $as_echo "Disabling bitmap statistics support" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6789 $as_echo "Enabling bitmap statistics support" >&6; }
6790 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6796 $as_echo "Enabling bitmap statistics support by default" >&6; }
6797 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6803 # Check whether --enable-bmap-stats-ops was given.
6804 if test "${enable_bmap_stats_ops+set}" = set; then :
6805 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6806 then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6808 $as_echo "Disabling additional bitmap statistics" >&6; }
6809 else
6810 if test "x${enable_bmap_stats}" = "xno"; then :
6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6814 See \`config.log' for more details" "$LINENO" 5; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6818 $as_echo "Enabling additional bitmap statistics" >&6; }
6819 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6825 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6829 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6831 GETTEXT_PACKAGE=e2fsprogs
6832 PACKAGE=e2fsprogs
6833 VERSION="$E2FSPROGS_VERSION"
6834 VERSION=0.14.1
6836 cat >>confdefs.h <<_ACEOF
6837 #define PACKAGE "$PACKAGE"
6838 _ACEOF
6841 cat >>confdefs.h <<_ACEOF
6842 #define VERSION "$VERSION"
6843 _ACEOF
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6851 set x ${MAKE-make}
6852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6853 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat >conftest.make <<\_ACEOF
6857 SHELL = /bin/sh
6858 all:
6859 @echo '@@@%%%=$(MAKE)=@@@%%%'
6860 _ACEOF
6861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6863 *@@@%%%=?*=@@@%%%*)
6864 eval ac_cv_prog_make_${ac_make}_set=yes;;
6866 eval ac_cv_prog_make_${ac_make}_set=no;;
6867 esac
6868 rm -f conftest.make
6870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872 $as_echo "yes" >&6; }
6873 SET_MAKE=
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 SET_MAKE="MAKE=${MAKE-make}"
6880 # Find a good install program. We prefer a C program (faster),
6881 # so one script is as good as another. But avoid the broken or
6882 # incompatible versions:
6883 # SysV /etc/install, /usr/sbin/install
6884 # SunOS /usr/etc/install
6885 # IRIX /sbin/install
6886 # AIX /bin/install
6887 # AmigaOS /C/install, which installs bootblocks on floppy discs
6888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6891 # OS/2's system install, which has a completely different semantic
6892 # ./install, which can be erroneously created by make from ./install.sh.
6893 # Reject install programs that cannot install multiple files.
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6895 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6896 if test -z "$INSTALL"; then
6897 if ${ac_cv_path_install+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 # Account for people who put trailing slashes in PATH elements.
6906 case $as_dir/ in #((
6907 ./ | .// | /[cC]/* | \
6908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6910 /usr/ucb/* ) ;;
6912 # OSF1 and SCO ODT 3.0 have their own names for install.
6913 # Don't use installbsd from OSF since it installs stuff as root
6914 # by default.
6915 for ac_prog in ginstall scoinst install; do
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6918 if test $ac_prog = install &&
6919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920 # AIX install. It has an incompatible calling convention.
6922 elif test $ac_prog = install &&
6923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6924 # program-specific install script used by HP pwplus--don't use.
6926 else
6927 rm -rf conftest.one conftest.two conftest.dir
6928 echo one > conftest.one
6929 echo two > conftest.two
6930 mkdir conftest.dir
6931 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6932 test -s conftest.one && test -s conftest.two &&
6933 test -s conftest.dir/conftest.one &&
6934 test -s conftest.dir/conftest.two
6935 then
6936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6937 break 3
6941 done
6942 done
6944 esac
6946 done
6947 IFS=$as_save_IFS
6949 rm -rf conftest.one conftest.two conftest.dir
6952 if test "${ac_cv_path_install+set}" = set; then
6953 INSTALL=$ac_cv_path_install
6954 else
6955 # As a last resort, use the slow shell script. Don't cache a
6956 # value for INSTALL within a source directory, because that will
6957 # break other packages using the cache if that directory is
6958 # removed, or if the value is a relative name.
6959 INSTALL=$ac_install_sh
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6963 $as_echo "$INSTALL" >&6; }
6965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6966 # It thinks the first close brace ends the variable substitution.
6967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6974 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6975 if test -z "$MKDIR_P"; then
6976 if ${ac_cv_path_mkdir+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_prog in mkdir gmkdir; do
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6988 'mkdir (GNU coreutils) '* | \
6989 'mkdir (coreutils) '* | \
6990 'mkdir (fileutils) '4.1*)
6991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6992 break 3;;
6993 esac
6994 done
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 test -d ./--version && rmdir ./--version
7002 if test "${ac_cv_path_mkdir+set}" = set; then
7003 MKDIR_P="$ac_cv_path_mkdir -p"
7004 else
7005 # As a last resort, use the slow shell script. Don't cache a
7006 # value for MKDIR_P within a source directory, because that will
7007 # break other packages using the cache if that directory is
7008 # removed, or if the value is a relative name.
7009 MKDIR_P="$ac_install_sh -d"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7013 $as_echo "$MKDIR_P" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7017 $as_echo_n "checking whether NLS is requested... " >&6; }
7018 # Check whether --enable-nls was given.
7019 if test "${enable_nls+set}" = set; then :
7020 enableval=$enable_nls; USE_NLS=$enableval
7021 else
7022 USE_NLS=yes
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7026 $as_echo "$USE_NLS" >&6; }
7031 GETTEXT_MACRO_VERSION=0.20
7036 # Prepare PATH_SEPARATOR.
7037 # The user is always right.
7038 if test "${PATH_SEPARATOR+set}" != set; then
7039 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7040 # contains only /bin. Note that ksh looks also at the FPATH variable,
7041 # so we have to set that as well for the test.
7042 PATH_SEPARATOR=:
7043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7044 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7045 || PATH_SEPARATOR=';'
7049 # Find out how to test for executable files. Don't use a zero-byte file,
7050 # as systems may use methods other than mode bits to determine executability.
7051 cat >conf$$.file <<_ASEOF
7052 #! /bin/sh
7053 exit 0
7054 _ASEOF
7055 chmod +x conf$$.file
7056 if test -x conf$$.file >/dev/null 2>&1; then
7057 ac_executable_p="test -x"
7058 else
7059 ac_executable_p="test -f"
7061 rm -f conf$$.file
7063 # Extract the first word of "msgfmt", so it can be a program name with args.
7064 set dummy msgfmt; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_path_MSGFMT+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 case "$MSGFMT" in
7071 [\\/]* | ?:[\\/]*)
7072 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7076 for ac_dir in $PATH; do
7077 IFS="$ac_save_IFS"
7078 test -z "$ac_dir" && ac_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7081 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7082 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7083 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7084 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7085 break 2
7088 done
7089 done
7090 IFS="$ac_save_IFS"
7091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7093 esac
7095 MSGFMT="$ac_cv_path_MSGFMT"
7096 if test "$MSGFMT" != ":"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7098 $as_echo "$MSGFMT" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7105 set dummy gmsgfmt; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_path_GMSGFMT+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 case $GMSGFMT in
7112 [\\/]* | ?:[\\/]*)
7113 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7133 esac
7135 GMSGFMT=$ac_cv_path_GMSGFMT
7136 if test -n "$GMSGFMT"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7138 $as_echo "$GMSGFMT" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7146 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7147 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7148 *) GMSGFMT_015=$GMSGFMT ;;
7149 esac
7153 # Prepare PATH_SEPARATOR.
7154 # The user is always right.
7155 if test "${PATH_SEPARATOR+set}" != set; then
7156 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7157 # contains only /bin. Note that ksh looks also at the FPATH variable,
7158 # so we have to set that as well for the test.
7159 PATH_SEPARATOR=:
7160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7161 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7162 || PATH_SEPARATOR=';'
7166 # Find out how to test for executable files. Don't use a zero-byte file,
7167 # as systems may use methods other than mode bits to determine executability.
7168 cat >conf$$.file <<_ASEOF
7169 #! /bin/sh
7170 exit 0
7171 _ASEOF
7172 chmod +x conf$$.file
7173 if test -x conf$$.file >/dev/null 2>&1; then
7174 ac_executable_p="test -x"
7175 else
7176 ac_executable_p="test -f"
7178 rm -f conf$$.file
7180 # Extract the first word of "xgettext", so it can be a program name with args.
7181 set dummy xgettext; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_path_XGETTEXT+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 case "$XGETTEXT" in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7192 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7193 for ac_dir in $PATH; do
7194 IFS="$ac_save_IFS"
7195 test -z "$ac_dir" && ac_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7198 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7199 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7200 (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
7201 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7202 break 2
7205 done
7206 done
7207 IFS="$ac_save_IFS"
7208 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7210 esac
7212 XGETTEXT="$ac_cv_path_XGETTEXT"
7213 if test "$XGETTEXT" != ":"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7215 $as_echo "$XGETTEXT" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7221 rm -f messages.po
7223 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7224 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7225 *) XGETTEXT_015=$XGETTEXT ;;
7226 esac
7230 # Prepare PATH_SEPARATOR.
7231 # The user is always right.
7232 if test "${PATH_SEPARATOR+set}" != set; then
7233 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7234 # contains only /bin. Note that ksh looks also at the FPATH variable,
7235 # so we have to set that as well for the test.
7236 PATH_SEPARATOR=:
7237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7238 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7239 || PATH_SEPARATOR=';'
7243 # Find out how to test for executable files. Don't use a zero-byte file,
7244 # as systems may use methods other than mode bits to determine executability.
7245 cat >conf$$.file <<_ASEOF
7246 #! /bin/sh
7247 exit 0
7248 _ASEOF
7249 chmod +x conf$$.file
7250 if test -x conf$$.file >/dev/null 2>&1; then
7251 ac_executable_p="test -x"
7252 else
7253 ac_executable_p="test -f"
7255 rm -f conf$$.file
7257 # Extract the first word of "msgmerge", so it can be a program name with args.
7258 set dummy msgmerge; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_path_MSGMERGE+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 case "$MSGMERGE" in
7265 [\\/]* | ?:[\\/]*)
7266 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7269 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7270 for ac_dir in $PATH; do
7271 IFS="$ac_save_IFS"
7272 test -z "$ac_dir" && ac_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7275 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7276 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7277 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7278 break 2
7281 done
7282 done
7283 IFS="$ac_save_IFS"
7284 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7286 esac
7288 MSGMERGE="$ac_cv_path_MSGMERGE"
7289 if test "$MSGMERGE" != ":"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7291 $as_echo "$MSGMERGE" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7298 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7299 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7300 else
7301 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7302 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7303 else
7304 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7309 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7312 ac_config_commands="$ac_config_commands po-directories"
7316 if test "X$prefix" = "XNONE"; then
7317 acl_final_prefix="$ac_default_prefix"
7318 else
7319 acl_final_prefix="$prefix"
7321 if test "X$exec_prefix" = "XNONE"; then
7322 acl_final_exec_prefix='${prefix}'
7323 else
7324 acl_final_exec_prefix="$exec_prefix"
7326 acl_save_prefix="$prefix"
7327 prefix="$acl_final_prefix"
7328 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7329 prefix="$acl_save_prefix"
7333 # Check whether --with-gnu-ld was given.
7334 if test "${with_gnu_ld+set}" = set; then :
7335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7336 else
7337 with_gnu_ld=no
7340 # Prepare PATH_SEPARATOR.
7341 # The user is always right.
7342 if test "${PATH_SEPARATOR+set}" != set; then
7343 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7344 # contains only /bin. Note that ksh looks also at the FPATH variable,
7345 # so we have to set that as well for the test.
7346 PATH_SEPARATOR=:
7347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7348 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7349 || PATH_SEPARATOR=';'
7353 if test -n "$LD"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7355 $as_echo_n "checking for ld... " >&6; }
7356 elif test "$GCC" = yes; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7358 $as_echo_n "checking for ld used by $CC... " >&6; }
7359 elif test "$with_gnu_ld" = yes; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7361 $as_echo_n "checking for GNU ld... " >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7364 $as_echo_n "checking for non-GNU ld... " >&6; }
7366 if test -n "$LD"; then
7367 # Let the user override the test with a path.
7369 else
7370 if ${acl_cv_path_LD+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7374 acl_cv_path_LD= # Final result of this test
7375 ac_prog=ld # Program to search in $PATH
7376 if test "$GCC" = yes; then
7377 # Check if gcc -print-prog-name=ld gives a path.
7378 case $host in
7379 *-*-mingw*)
7380 # gcc leaves a trailing carriage return which upsets mingw
7381 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7383 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7384 esac
7385 case $acl_output in
7386 # Accept absolute paths.
7387 [\\/]* | ?:[\\/]*)
7388 re_direlt='/[^/][^/]*/\.\./'
7389 # Canonicalize the pathname of ld
7390 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7391 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7392 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7393 done
7394 # Got the pathname. No search in PATH is needed.
7395 acl_cv_path_LD="$acl_output"
7396 ac_prog=
7399 # If it fails, then pretend we aren't using GCC.
7402 # If it is relative, then search for the first ld in PATH.
7403 with_gnu_ld=unknown
7405 esac
7407 if test -n "$ac_prog"; then
7408 # Search for $ac_prog in $PATH.
7409 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410 for ac_dir in $PATH; do
7411 IFS="$acl_save_ifs"
7412 test -z "$ac_dir" && ac_dir=.
7413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7414 acl_cv_path_LD="$ac_dir/$ac_prog"
7415 # Check to see if the program is GNU ld. I'd rather use --version,
7416 # but apparently some variants of GNU ld only accept -v.
7417 # Break only if it was the GNU/non-GNU ld that we prefer.
7418 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7419 *GNU* | *'with BFD'*)
7420 test "$with_gnu_ld" != no && break
7423 test "$with_gnu_ld" != yes && break
7425 esac
7427 done
7428 IFS="$acl_save_ifs"
7430 case $host in
7431 *-*-aix*)
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 #if defined __powerpc64__ || defined _ARCH_PPC64
7435 int ok;
7436 #else
7437 error fail
7438 #endif
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 # The compiler produces 64-bit code. Add option '-b64' so that the
7443 # linker groks 64-bit object files.
7444 case "$acl_cv_path_LD " in
7445 *" -b64 "*) ;;
7446 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7447 esac
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 sparc64-*-netbsd*)
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 #if defined __sparcv9 || defined __arch64__
7456 int ok;
7457 #else
7458 error fail
7459 #endif
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7464 else
7465 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7466 # so that the linker groks 32-bit object files.
7467 case "$acl_cv_path_LD " in
7468 *" -m elf32_sparc "*) ;;
7469 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7470 esac
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 esac
7479 LD="$acl_cv_path_LD"
7481 if test -n "$LD"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7483 $as_echo "$LD" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7490 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7491 if ${acl_cv_prog_gnu_ld+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7495 case `$LD -v 2>&1 </dev/null` in
7496 *GNU* | *'with BFD'*)
7497 acl_cv_prog_gnu_ld=yes
7500 acl_cv_prog_gnu_ld=no
7502 esac
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7505 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7506 with_gnu_ld=$acl_cv_prog_gnu_ld
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7512 $as_echo_n "checking for shared library run path origin... " >&6; }
7513 if ${acl_cv_rpath+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7517 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7518 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7519 . ./conftest.sh
7520 rm -f ./conftest.sh
7521 acl_cv_rpath=done
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7525 $as_echo "$acl_cv_rpath" >&6; }
7526 wl="$acl_cv_wl"
7527 acl_libext="$acl_cv_libext"
7528 acl_shlibext="$acl_cv_shlibext"
7529 acl_libname_spec="$acl_cv_libname_spec"
7530 acl_library_names_spec="$acl_cv_library_names_spec"
7531 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7532 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7533 acl_hardcode_direct="$acl_cv_hardcode_direct"
7534 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7535 # Check whether --enable-rpath was given.
7536 if test "${enable_rpath+set}" = set; then :
7537 enableval=$enable_rpath; :
7538 else
7539 enable_rpath=yes
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7546 $as_echo_n "checking 32-bit host C ABI... " >&6; }
7547 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$gl_cv_host_cpu_c_abi"; then
7551 case "$gl_cv_host_cpu_c_abi" in
7552 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7553 gl_cv_host_cpu_c_abi_32bit=yes ;;
7554 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7555 gl_cv_host_cpu_c_abi_32bit=no ;;
7557 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7558 esac
7559 else
7560 case "$host_cpu" in
7562 # CPUs that only support a 32-bit ABI.
7563 arc \
7564 | bfin \
7565 | cris* \
7566 | csky \
7567 | epiphany \
7568 | ft32 \
7569 | h8300 \
7570 | m68k \
7571 | microblaze | microblazeel \
7572 | nds32 | nds32le | nds32be \
7573 | nios2 | nios2eb | nios2el \
7574 | or1k* \
7575 | or32 \
7576 | sh | sh1234 | sh1234elb \
7577 | tic6x \
7578 | xtensa* )
7579 gl_cv_host_cpu_c_abi_32bit=yes
7582 # CPUs that only support a 64-bit ABI.
7583 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7584 | mmix )
7585 gl_cv_host_cpu_c_abi_32bit=no
7588 i[34567]86 )
7589 gl_cv_host_cpu_c_abi_32bit=yes
7592 x86_64 )
7593 # On x86_64 systems, the C compiler may be generating code in one of
7594 # these ABIs:
7595 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7596 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7597 # with native Windows (mingw, MSVC).
7598 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7599 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #if (defined __x86_64__ || defined __amd64__ \
7603 || defined _M_X64 || defined _M_AMD64) \
7604 && !(defined __ILP32__ || defined _ILP32)
7605 int ok;
7606 #else
7607 error fail
7608 #endif
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612 gl_cv_host_cpu_c_abi_32bit=no
7613 else
7614 gl_cv_host_cpu_c_abi_32bit=yes
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 arm* | aarch64 )
7620 # Assume arm with EABI.
7621 # On arm64 systems, the C compiler may be generating code in one of
7622 # these ABIs:
7623 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7624 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7625 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7629 int ok;
7630 #else
7631 error fail
7632 #endif
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 gl_cv_host_cpu_c_abi_32bit=no
7637 else
7638 gl_cv_host_cpu_c_abi_32bit=yes
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7644 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7645 # code. In the latter case, it defines _LP64 and __LP64__.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #ifdef __LP64__
7649 int ok;
7650 #else
7651 error fail
7652 #endif
7654 _ACEOF
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656 gl_cv_host_cpu_c_abi_32bit=no
7657 else
7658 gl_cv_host_cpu_c_abi_32bit=yes
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 ia64* )
7664 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7665 # 32-bit code. In the latter case, it defines _ILP32.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #ifdef _ILP32
7669 int ok;
7670 #else
7671 error fail
7672 #endif
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 gl_cv_host_cpu_c_abi_32bit=yes
7677 else
7678 gl_cv_host_cpu_c_abi_32bit=no
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 mips* )
7684 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7685 # at 32.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7689 int ok;
7690 #else
7691 error fail
7692 #endif
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"; then :
7696 gl_cv_host_cpu_c_abi_32bit=no
7697 else
7698 gl_cv_host_cpu_c_abi_32bit=yes
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 powerpc* )
7704 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7705 # No need to distinguish them here; the caller may distinguish
7706 # them based on the OS.
7707 # On powerpc64 systems, the C compiler may still be generating
7708 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7709 # be generating 64-bit code.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #if defined __powerpc64__ || defined _ARCH_PPC64
7713 int ok;
7714 #else
7715 error fail
7716 #endif
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 gl_cv_host_cpu_c_abi_32bit=no
7721 else
7722 gl_cv_host_cpu_c_abi_32bit=yes
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rs6000 )
7728 gl_cv_host_cpu_c_abi_32bit=yes
7731 riscv32 | riscv64 )
7732 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7733 # Size of 'long' and 'void *':
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #if defined __LP64__
7737 int ok;
7738 #else
7739 error fail
7740 #endif
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 gl_cv_host_cpu_c_abi_32bit=no
7745 else
7746 gl_cv_host_cpu_c_abi_32bit=yes
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 s390* )
7752 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7753 # or 31-bit (= s390) code.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #if defined __LP64__ || defined __s390x__
7757 int ok;
7758 #else
7759 error fail
7760 #endif
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 gl_cv_host_cpu_c_abi_32bit=no
7765 else
7766 gl_cv_host_cpu_c_abi_32bit=yes
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 sparc | sparc64 )
7772 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7773 # C compiler still generates 32-bit code.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #if defined __sparcv9 || defined __arch64__
7777 int ok;
7778 #else
7779 error fail
7780 #endif
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 gl_cv_host_cpu_c_abi_32bit=no
7785 else
7786 gl_cv_host_cpu_c_abi_32bit=yes
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 gl_cv_host_cpu_c_abi_32bit=unknown
7794 esac
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7799 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7801 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7808 $as_echo_n "checking for ELF binary format... " >&6; }
7809 if ${gl_cv_elf+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #ifdef __ELF__
7815 Extensible Linking Format
7816 #endif
7818 _ACEOF
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7821 gl_cv_elf=yes
7822 else
7823 gl_cv_elf=no
7825 rm -f conftest*
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7830 $as_echo "$gl_cv_elf" >&6; }
7831 if test $gl_cv_elf; then
7832 # Extract the ELF class of a file (5th byte) in decimal.
7833 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7834 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7835 # Use POSIX od.
7836 func_elfclass ()
7838 od -A n -t d1 -j 4 -N 1
7840 else
7841 # Use BSD hexdump.
7842 func_elfclass ()
7844 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7845 echo
7848 case $HOST_CPU_C_ABI_32BIT in
7849 yes)
7850 # 32-bit ABI.
7851 acl_is_expected_elfclass ()
7853 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7857 # 64-bit ABI.
7858 acl_is_expected_elfclass ()
7860 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7864 # Unknown.
7865 acl_is_expected_elfclass ()
7870 esac
7871 else
7872 acl_is_expected_elfclass ()
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7879 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7880 if ${acl_cv_libdirstems+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 acl_libdirstem=lib
7884 acl_libdirstem2=
7885 acl_libdirstem3=
7886 case "$host_os" in
7887 solaris*)
7888 if test $HOST_CPU_C_ABI_32BIT = no; then
7889 acl_libdirstem2=lib/64
7890 case "$host_cpu" in
7891 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7892 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7893 esac
7897 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7898 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7899 if test $HOST_CPU_C_ABI_32BIT != no; then
7900 # 32-bit or unknown ABI.
7901 if test -d /usr/lib32; then
7902 acl_libdirstem2=lib32
7905 if test $HOST_CPU_C_ABI_32BIT != yes; then
7906 # 64-bit or unknown ABI.
7907 if test -d /usr/lib64; then
7908 acl_libdirstem3=lib64
7911 if test -n "$searchpath"; then
7912 acl_save_IFS="${IFS= }"; IFS=":"
7913 for searchdir in $searchpath; do
7914 if test -d "$searchdir"; then
7915 case "$searchdir" in
7916 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7917 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7918 */../ | */.. )
7919 # Better ignore directories of this form. They are misleading.
7921 *) searchdir=`cd "$searchdir" && pwd`
7922 case "$searchdir" in
7923 */lib32 ) acl_libdirstem2=lib32 ;;
7924 */lib64 ) acl_libdirstem3=lib64 ;;
7925 esac ;;
7926 esac
7928 done
7929 IFS="$acl_save_IFS"
7930 if test $HOST_CPU_C_ABI_32BIT = yes; then
7931 # 32-bit ABI.
7932 acl_libdirstem3=
7934 if test $HOST_CPU_C_ABI_32BIT = no; then
7935 # 64-bit ABI.
7936 acl_libdirstem2=
7940 esac
7941 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7942 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7943 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7947 $as_echo "$acl_cv_libdirstems" >&6; }
7948 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7949 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7950 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7962 use_additional=yes
7964 acl_save_prefix="$prefix"
7965 prefix="$acl_final_prefix"
7966 acl_save_exec_prefix="$exec_prefix"
7967 exec_prefix="$acl_final_exec_prefix"
7969 eval additional_includedir=\"$includedir\"
7970 eval additional_libdir=\"$libdir\"
7971 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7972 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7974 exec_prefix="$acl_save_exec_prefix"
7975 prefix="$acl_save_prefix"
7978 # Check whether --with-libiconv-prefix was given.
7979 if test "${with_libiconv_prefix+set}" = set; then :
7980 withval=$with_libiconv_prefix;
7981 if test "X$withval" = "Xno"; then
7982 use_additional=no
7983 else
7984 if test "X$withval" = "X"; then
7986 acl_save_prefix="$prefix"
7987 prefix="$acl_final_prefix"
7988 acl_save_exec_prefix="$exec_prefix"
7989 exec_prefix="$acl_final_exec_prefix"
7991 eval additional_includedir=\"$includedir\"
7992 eval additional_libdir=\"$libdir\"
7993 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7994 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7996 exec_prefix="$acl_save_exec_prefix"
7997 prefix="$acl_save_prefix"
7999 else
8000 additional_includedir="$withval/include"
8001 additional_libdir="$withval/$acl_libdirstem"
8002 additional_libdir2="$withval/$acl_libdirstem2"
8003 additional_libdir3="$withval/$acl_libdirstem3"
8009 if test "X$additional_libdir2" = "X$additional_libdir"; then
8010 additional_libdir2=
8012 if test "X$additional_libdir3" = "X$additional_libdir"; then
8013 additional_libdir3=
8015 LIBICONV=
8016 LTLIBICONV=
8017 INCICONV=
8018 LIBICONV_PREFIX=
8019 HAVE_LIBICONV=
8020 rpathdirs=
8021 ltrpathdirs=
8022 names_already_handled=
8023 names_next_round='iconv '
8024 while test -n "$names_next_round"; do
8025 names_this_round="$names_next_round"
8026 names_next_round=
8027 for name in $names_this_round; do
8028 already_handled=
8029 for n in $names_already_handled; do
8030 if test "$n" = "$name"; then
8031 already_handled=yes
8032 break
8034 done
8035 if test -z "$already_handled"; then
8036 names_already_handled="$names_already_handled $name"
8037 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8038 eval value=\"\$HAVE_LIB$uppername\"
8039 if test -n "$value"; then
8040 if test "$value" = yes; then
8041 eval value=\"\$LIB$uppername\"
8042 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8043 eval value=\"\$LTLIB$uppername\"
8044 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8045 else
8048 else
8049 found_dir=
8050 found_la=
8051 found_so=
8052 found_a=
8053 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8054 if test -n "$acl_shlibext"; then
8055 shrext=".$acl_shlibext" # typically: shrext=.so
8056 else
8057 shrext=
8059 if test $use_additional = yes; then
8060 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8061 if test "X$found_dir" = "X"; then
8062 eval dir=\$$additional_libdir_variable
8063 if test -n "$dir"; then
8064 if test -n "$acl_shlibext"; then
8065 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8066 found_dir="$dir"
8067 found_so="$dir/$libname$shrext"
8068 else
8069 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8070 ver=`(cd "$dir" && \
8071 for f in "$libname$shrext".*; do echo "$f"; done \
8072 | sed -e "s,^$libname$shrext\\\\.,," \
8073 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8074 | sed 1q ) 2>/dev/null`
8075 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8076 found_dir="$dir"
8077 found_so="$dir/$libname$shrext.$ver"
8079 else
8080 eval library_names=\"$acl_library_names_spec\"
8081 for f in $library_names; do
8082 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8083 found_dir="$dir"
8084 found_so="$dir/$f"
8085 break
8087 done
8091 if test "X$found_dir" = "X"; then
8092 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8093 found_dir="$dir"
8094 found_a="$dir/$libname.$acl_libext"
8097 if test "X$found_dir" != "X"; then
8098 if test -f "$dir/$libname.la"; then
8099 found_la="$dir/$libname.la"
8104 done
8106 if test "X$found_dir" = "X"; then
8107 for x in $LDFLAGS $LTLIBICONV; do
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8113 eval x=\"$x\"
8114 exec_prefix="$acl_save_exec_prefix"
8115 prefix="$acl_save_prefix"
8117 case "$x" in
8118 -L*)
8119 dir=`echo "X$x" | sed -e 's/^X-L//'`
8120 if test -n "$acl_shlibext"; then
8121 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8122 found_dir="$dir"
8123 found_so="$dir/$libname$shrext"
8124 else
8125 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8126 ver=`(cd "$dir" && \
8127 for f in "$libname$shrext".*; do echo "$f"; done \
8128 | sed -e "s,^$libname$shrext\\\\.,," \
8129 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8130 | sed 1q ) 2>/dev/null`
8131 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8132 found_dir="$dir"
8133 found_so="$dir/$libname$shrext.$ver"
8135 else
8136 eval library_names=\"$acl_library_names_spec\"
8137 for f in $library_names; do
8138 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8139 found_dir="$dir"
8140 found_so="$dir/$f"
8141 break
8143 done
8147 if test "X$found_dir" = "X"; then
8148 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8149 found_dir="$dir"
8150 found_a="$dir/$libname.$acl_libext"
8153 if test "X$found_dir" != "X"; then
8154 if test -f "$dir/$libname.la"; then
8155 found_la="$dir/$libname.la"
8159 esac
8160 if test "X$found_dir" != "X"; then
8161 break
8163 done
8165 if test "X$found_dir" != "X"; then
8166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8167 if test "X$found_so" != "X"; then
8168 if test "$enable_rpath" = no \
8169 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8170 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8171 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8173 else
8174 haveit=
8175 for x in $ltrpathdirs; do
8176 if test "X$x" = "X$found_dir"; then
8177 haveit=yes
8178 break
8180 done
8181 if test -z "$haveit"; then
8182 ltrpathdirs="$ltrpathdirs $found_dir"
8184 if test "$acl_hardcode_direct" = yes; then
8185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8186 else
8187 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8189 haveit=
8190 for x in $rpathdirs; do
8191 if test "X$x" = "X$found_dir"; then
8192 haveit=yes
8193 break
8195 done
8196 if test -z "$haveit"; then
8197 rpathdirs="$rpathdirs $found_dir"
8199 else
8200 haveit=
8201 for x in $LDFLAGS $LIBICONV; do
8203 acl_save_prefix="$prefix"
8204 prefix="$acl_final_prefix"
8205 acl_save_exec_prefix="$exec_prefix"
8206 exec_prefix="$acl_final_exec_prefix"
8207 eval x=\"$x\"
8208 exec_prefix="$acl_save_exec_prefix"
8209 prefix="$acl_save_prefix"
8211 if test "X$x" = "X-L$found_dir"; then
8212 haveit=yes
8213 break
8215 done
8216 if test -z "$haveit"; then
8217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8219 if test "$acl_hardcode_minus_L" != no; then
8220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8221 else
8222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8227 else
8228 if test "X$found_a" != "X"; then
8229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8230 else
8231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8234 additional_includedir=
8235 case "$found_dir" in
8236 */$acl_libdirstem | */$acl_libdirstem/)
8237 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8238 if test "$name" = 'iconv'; then
8239 LIBICONV_PREFIX="$basedir"
8241 additional_includedir="$basedir/include"
8243 */$acl_libdirstem2 | */$acl_libdirstem2/)
8244 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8245 if test "$name" = 'iconv'; then
8246 LIBICONV_PREFIX="$basedir"
8248 additional_includedir="$basedir/include"
8250 */$acl_libdirstem3 | */$acl_libdirstem3/)
8251 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8252 if test "$name" = 'iconv'; then
8253 LIBICONV_PREFIX="$basedir"
8255 additional_includedir="$basedir/include"
8257 esac
8258 if test "X$additional_includedir" != "X"; then
8259 if test "X$additional_includedir" != "X/usr/include"; then
8260 haveit=
8261 if test "X$additional_includedir" = "X/usr/local/include"; then
8262 if test -n "$GCC"; then
8263 case $host_os in
8264 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8265 esac
8268 if test -z "$haveit"; then
8269 for x in $CPPFLAGS $INCICONV; do
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8275 eval x=\"$x\"
8276 exec_prefix="$acl_save_exec_prefix"
8277 prefix="$acl_save_prefix"
8279 if test "X$x" = "X-I$additional_includedir"; then
8280 haveit=yes
8281 break
8283 done
8284 if test -z "$haveit"; then
8285 if test -d "$additional_includedir"; then
8286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8292 if test -n "$found_la"; then
8293 save_libdir="$libdir"
8294 case "$found_la" in
8295 */* | *\\*) . "$found_la" ;;
8296 *) . "./$found_la" ;;
8297 esac
8298 libdir="$save_libdir"
8299 for dep in $dependency_libs; do
8300 case "$dep" in
8301 -L*)
8302 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8303 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8304 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8305 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8306 haveit=
8307 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8308 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8309 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8310 if test -n "$GCC"; then
8311 case $host_os in
8312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8313 esac
8316 if test -z "$haveit"; then
8317 haveit=
8318 for x in $LDFLAGS $LIBICONV; do
8320 acl_save_prefix="$prefix"
8321 prefix="$acl_final_prefix"
8322 acl_save_exec_prefix="$exec_prefix"
8323 exec_prefix="$acl_final_exec_prefix"
8324 eval x=\"$x\"
8325 exec_prefix="$acl_save_exec_prefix"
8326 prefix="$acl_save_prefix"
8328 if test "X$x" = "X-L$dependency_libdir"; then
8329 haveit=yes
8330 break
8332 done
8333 if test -z "$haveit"; then
8334 if test -d "$dependency_libdir"; then
8335 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8338 haveit=
8339 for x in $LDFLAGS $LTLIBICONV; do
8341 acl_save_prefix="$prefix"
8342 prefix="$acl_final_prefix"
8343 acl_save_exec_prefix="$exec_prefix"
8344 exec_prefix="$acl_final_exec_prefix"
8345 eval x=\"$x\"
8346 exec_prefix="$acl_save_exec_prefix"
8347 prefix="$acl_save_prefix"
8349 if test "X$x" = "X-L$dependency_libdir"; then
8350 haveit=yes
8351 break
8353 done
8354 if test -z "$haveit"; then
8355 if test -d "$dependency_libdir"; then
8356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8362 -R*)
8363 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8364 if test "$enable_rpath" != no; then
8365 haveit=
8366 for x in $rpathdirs; do
8367 if test "X$x" = "X$dir"; then
8368 haveit=yes
8369 break
8371 done
8372 if test -z "$haveit"; then
8373 rpathdirs="$rpathdirs $dir"
8375 haveit=
8376 for x in $ltrpathdirs; do
8377 if test "X$x" = "X$dir"; then
8378 haveit=yes
8379 break
8381 done
8382 if test -z "$haveit"; then
8383 ltrpathdirs="$ltrpathdirs $dir"
8387 -l*)
8388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8390 *.la)
8391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8394 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8395 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8397 esac
8398 done
8400 else
8401 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8406 done
8407 done
8408 if test "X$rpathdirs" != "X"; then
8409 if test -n "$acl_hardcode_libdir_separator"; then
8410 alldirs=
8411 for found_dir in $rpathdirs; do
8412 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8413 done
8414 acl_save_libdir="$libdir"
8415 libdir="$alldirs"
8416 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8417 libdir="$acl_save_libdir"
8418 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8419 else
8420 for found_dir in $rpathdirs; do
8421 acl_save_libdir="$libdir"
8422 libdir="$found_dir"
8423 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8424 libdir="$acl_save_libdir"
8425 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8426 done
8429 if test "X$ltrpathdirs" != "X"; then
8430 for found_dir in $ltrpathdirs; do
8431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8432 done
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8464 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8465 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 gt_save_LIBS="$LIBS"
8469 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <CoreFoundation/CFPreferences.h>
8474 main ()
8476 CFPreferencesCopyAppValue(NULL, NULL)
8478 return 0;
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 gt_cv_func_CFPreferencesCopyAppValue=yes
8483 else
8484 gt_cv_func_CFPreferencesCopyAppValue=no
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS="$gt_save_LIBS"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8491 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8492 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8494 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8498 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8499 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 gt_save_LIBS="$LIBS"
8503 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <CoreFoundation/CFLocale.h>
8508 main ()
8510 CFLocaleCopyPreferredLanguages();
8512 return 0;
8514 _ACEOF
8515 if ac_fn_c_try_link "$LINENO"; then :
8516 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8517 else
8518 gt_cv_func_CFLocaleCopyPreferredLanguages=no
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LIBS="$gt_save_LIBS"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8525 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8526 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8528 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8531 INTL_MACOSX_LIBS=
8532 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8533 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8534 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8542 LIBINTL=
8543 LTLIBINTL=
8544 POSUB=
8546 case " $gt_needs " in
8547 *" need-formatstring-macros "*) gt_api_version=3 ;;
8548 *" need-ngettext "*) gt_api_version=2 ;;
8549 *) gt_api_version=1 ;;
8550 esac
8551 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8552 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8554 if test "$USE_NLS" = "yes"; then
8555 gt_use_preinstalled_gnugettext=no
8558 if test $gt_api_version -ge 3; then
8559 gt_revision_test_code='
8560 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8561 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8562 #endif
8563 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8565 else
8566 gt_revision_test_code=
8568 if test $gt_api_version -ge 2; then
8569 gt_expression_test_code=' + * ngettext ("", "", 0)'
8570 else
8571 gt_expression_test_code=
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8575 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8576 if eval \${$gt_func_gnugettext_libc+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 #include <libintl.h>
8583 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8584 extern int _nl_msg_cat_cntr;
8585 extern int *_nl_domain_bindings;
8586 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8587 #else
8588 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8589 #endif
8590 $gt_revision_test_code
8593 main ()
8596 bindtextdomain ("", "");
8597 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8600 return 0;
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"; then :
8604 eval "$gt_func_gnugettext_libc=yes"
8605 else
8606 eval "$gt_func_gnugettext_libc=no"
8608 rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8611 eval ac_res=\$$gt_func_gnugettext_libc
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8613 $as_echo "$ac_res" >&6; }
8615 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8621 am_save_CPPFLAGS="$CPPFLAGS"
8623 for element in $INCICONV; do
8624 haveit=
8625 for x in $CPPFLAGS; do
8627 acl_save_prefix="$prefix"
8628 prefix="$acl_final_prefix"
8629 acl_save_exec_prefix="$exec_prefix"
8630 exec_prefix="$acl_final_exec_prefix"
8631 eval x=\"$x\"
8632 exec_prefix="$acl_save_exec_prefix"
8633 prefix="$acl_save_prefix"
8635 if test "X$x" = "X$element"; then
8636 haveit=yes
8637 break
8639 done
8640 if test -z "$haveit"; then
8641 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8643 done
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8647 $as_echo_n "checking for iconv... " >&6; }
8648 if ${am_cv_func_iconv+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8652 am_cv_func_iconv="no, consider installing GNU libiconv"
8653 am_cv_lib_iconv=no
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8657 #include <stdlib.h>
8658 #include <iconv.h>
8661 main ()
8663 iconv_t cd = iconv_open("","");
8664 iconv(cd,NULL,NULL,NULL,NULL);
8665 iconv_close(cd);
8667 return 0;
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 am_cv_func_iconv=yes
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test "$am_cv_func_iconv" != yes; then
8676 am_save_LIBS="$LIBS"
8677 LIBS="$LIBS $LIBICONV"
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8681 #include <stdlib.h>
8682 #include <iconv.h>
8685 main ()
8687 iconv_t cd = iconv_open("","");
8688 iconv(cd,NULL,NULL,NULL,NULL);
8689 iconv_close(cd);
8691 return 0;
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 am_cv_lib_iconv=yes
8696 am_cv_func_iconv=yes
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS="$am_save_LIBS"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8705 $as_echo "$am_cv_func_iconv" >&6; }
8706 if test "$am_cv_func_iconv" = yes; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8708 $as_echo_n "checking for working iconv... " >&6; }
8709 if ${am_cv_func_iconv_works+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8713 am_save_LIBS="$LIBS"
8714 if test $am_cv_lib_iconv = yes; then
8715 LIBS="$LIBS $LIBICONV"
8717 am_cv_func_iconv_works=no
8718 for ac_iconv_const in '' 'const'; do
8719 if test "$cross_compiling" = yes; then :
8720 case "$host_os" in
8721 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8722 *) am_cv_func_iconv_works="guessing yes" ;;
8723 esac
8724 else
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8728 #include <iconv.h>
8729 #include <string.h>
8731 #ifndef ICONV_CONST
8732 # define ICONV_CONST $ac_iconv_const
8733 #endif
8736 main ()
8738 int result = 0;
8739 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8740 returns. */
8742 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8743 if (cd_utf8_to_88591 != (iconv_t)(-1))
8745 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8746 char buf[10];
8747 ICONV_CONST char *inptr = input;
8748 size_t inbytesleft = strlen (input);
8749 char *outptr = buf;
8750 size_t outbytesleft = sizeof (buf);
8751 size_t res = iconv (cd_utf8_to_88591,
8752 &inptr, &inbytesleft,
8753 &outptr, &outbytesleft);
8754 if (res == 0)
8755 result |= 1;
8756 iconv_close (cd_utf8_to_88591);
8759 /* Test against Solaris 10 bug: Failures are not distinguishable from
8760 successful returns. */
8762 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8763 if (cd_ascii_to_88591 != (iconv_t)(-1))
8765 static ICONV_CONST char input[] = "\263";
8766 char buf[10];
8767 ICONV_CONST char *inptr = input;
8768 size_t inbytesleft = strlen (input);
8769 char *outptr = buf;
8770 size_t outbytesleft = sizeof (buf);
8771 size_t res = iconv (cd_ascii_to_88591,
8772 &inptr, &inbytesleft,
8773 &outptr, &outbytesleft);
8774 if (res == 0)
8775 result |= 2;
8776 iconv_close (cd_ascii_to_88591);
8779 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8781 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8782 if (cd_88591_to_utf8 != (iconv_t)(-1))
8784 static ICONV_CONST char input[] = "\304";
8785 static char buf[2] = { (char)0xDE, (char)0xAD };
8786 ICONV_CONST char *inptr = input;
8787 size_t inbytesleft = 1;
8788 char *outptr = buf;
8789 size_t outbytesleft = 1;
8790 size_t res = iconv (cd_88591_to_utf8,
8791 &inptr, &inbytesleft,
8792 &outptr, &outbytesleft);
8793 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8794 result |= 4;
8795 iconv_close (cd_88591_to_utf8);
8798 #if 0 /* This bug could be worked around by the caller. */
8799 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8801 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8802 if (cd_88591_to_utf8 != (iconv_t)(-1))
8804 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8805 char buf[50];
8806 ICONV_CONST char *inptr = input;
8807 size_t inbytesleft = strlen (input);
8808 char *outptr = buf;
8809 size_t outbytesleft = sizeof (buf);
8810 size_t res = iconv (cd_88591_to_utf8,
8811 &inptr, &inbytesleft,
8812 &outptr, &outbytesleft);
8813 if ((int)res > 0)
8814 result |= 8;
8815 iconv_close (cd_88591_to_utf8);
8818 #endif
8819 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8820 provided. */
8822 /* Try standardized names. */
8823 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8824 /* Try IRIX, OSF/1 names. */
8825 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8826 /* Try AIX names. */
8827 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8828 /* Try HP-UX names. */
8829 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8830 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8831 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8832 result |= 16;
8833 if (cd1 != (iconv_t)(-1))
8834 iconv_close (cd1);
8835 if (cd2 != (iconv_t)(-1))
8836 iconv_close (cd2);
8837 if (cd3 != (iconv_t)(-1))
8838 iconv_close (cd3);
8839 if (cd4 != (iconv_t)(-1))
8840 iconv_close (cd4);
8842 return result;
8845 return 0;
8847 _ACEOF
8848 if ac_fn_c_try_run "$LINENO"; then :
8849 am_cv_func_iconv_works=yes
8851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8852 conftest.$ac_objext conftest.beam conftest.$ac_ext
8855 test "$am_cv_func_iconv_works" = no || break
8856 done
8857 LIBS="$am_save_LIBS"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8861 $as_echo "$am_cv_func_iconv_works" >&6; }
8862 case "$am_cv_func_iconv_works" in
8863 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8864 *) am_func_iconv=yes ;;
8865 esac
8866 else
8867 am_func_iconv=no am_cv_lib_iconv=no
8869 if test "$am_func_iconv" = yes; then
8871 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8874 if test "$am_cv_lib_iconv" = yes; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8876 $as_echo_n "checking how to link with libiconv... " >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8878 $as_echo "$LIBICONV" >&6; }
8879 else
8880 CPPFLAGS="$am_save_CPPFLAGS"
8881 LIBICONV=
8882 LTLIBICONV=
8894 use_additional=yes
8896 acl_save_prefix="$prefix"
8897 prefix="$acl_final_prefix"
8898 acl_save_exec_prefix="$exec_prefix"
8899 exec_prefix="$acl_final_exec_prefix"
8901 eval additional_includedir=\"$includedir\"
8902 eval additional_libdir=\"$libdir\"
8903 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8904 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
8910 # Check whether --with-libintl-prefix was given.
8911 if test "${with_libintl_prefix+set}" = set; then :
8912 withval=$with_libintl_prefix;
8913 if test "X$withval" = "Xno"; then
8914 use_additional=no
8915 else
8916 if test "X$withval" = "X"; then
8918 acl_save_prefix="$prefix"
8919 prefix="$acl_final_prefix"
8920 acl_save_exec_prefix="$exec_prefix"
8921 exec_prefix="$acl_final_exec_prefix"
8923 eval additional_includedir=\"$includedir\"
8924 eval additional_libdir=\"$libdir\"
8925 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8926 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8928 exec_prefix="$acl_save_exec_prefix"
8929 prefix="$acl_save_prefix"
8931 else
8932 additional_includedir="$withval/include"
8933 additional_libdir="$withval/$acl_libdirstem"
8934 additional_libdir2="$withval/$acl_libdirstem2"
8935 additional_libdir3="$withval/$acl_libdirstem3"
8941 if test "X$additional_libdir2" = "X$additional_libdir"; then
8942 additional_libdir2=
8944 if test "X$additional_libdir3" = "X$additional_libdir"; then
8945 additional_libdir3=
8947 LIBINTL=
8948 LTLIBINTL=
8949 INCINTL=
8950 LIBINTL_PREFIX=
8951 HAVE_LIBINTL=
8952 rpathdirs=
8953 ltrpathdirs=
8954 names_already_handled=
8955 names_next_round='intl '
8956 while test -n "$names_next_round"; do
8957 names_this_round="$names_next_round"
8958 names_next_round=
8959 for name in $names_this_round; do
8960 already_handled=
8961 for n in $names_already_handled; do
8962 if test "$n" = "$name"; then
8963 already_handled=yes
8964 break
8966 done
8967 if test -z "$already_handled"; then
8968 names_already_handled="$names_already_handled $name"
8969 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8970 eval value=\"\$HAVE_LIB$uppername\"
8971 if test -n "$value"; then
8972 if test "$value" = yes; then
8973 eval value=\"\$LIB$uppername\"
8974 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8975 eval value=\"\$LTLIB$uppername\"
8976 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8977 else
8980 else
8981 found_dir=
8982 found_la=
8983 found_so=
8984 found_a=
8985 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8986 if test -n "$acl_shlibext"; then
8987 shrext=".$acl_shlibext" # typically: shrext=.so
8988 else
8989 shrext=
8991 if test $use_additional = yes; then
8992 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8993 if test "X$found_dir" = "X"; then
8994 eval dir=\$$additional_libdir_variable
8995 if test -n "$dir"; then
8996 if test -n "$acl_shlibext"; then
8997 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8998 found_dir="$dir"
8999 found_so="$dir/$libname$shrext"
9000 else
9001 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9002 ver=`(cd "$dir" && \
9003 for f in "$libname$shrext".*; do echo "$f"; done \
9004 | sed -e "s,^$libname$shrext\\\\.,," \
9005 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9006 | sed 1q ) 2>/dev/null`
9007 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9008 found_dir="$dir"
9009 found_so="$dir/$libname$shrext.$ver"
9011 else
9012 eval library_names=\"$acl_library_names_spec\"
9013 for f in $library_names; do
9014 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9015 found_dir="$dir"
9016 found_so="$dir/$f"
9017 break
9019 done
9023 if test "X$found_dir" = "X"; then
9024 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9025 found_dir="$dir"
9026 found_a="$dir/$libname.$acl_libext"
9029 if test "X$found_dir" != "X"; then
9030 if test -f "$dir/$libname.la"; then
9031 found_la="$dir/$libname.la"
9036 done
9038 if test "X$found_dir" = "X"; then
9039 for x in $LDFLAGS $LTLIBINTL; do
9041 acl_save_prefix="$prefix"
9042 prefix="$acl_final_prefix"
9043 acl_save_exec_prefix="$exec_prefix"
9044 exec_prefix="$acl_final_exec_prefix"
9045 eval x=\"$x\"
9046 exec_prefix="$acl_save_exec_prefix"
9047 prefix="$acl_save_prefix"
9049 case "$x" in
9050 -L*)
9051 dir=`echo "X$x" | sed -e 's/^X-L//'`
9052 if test -n "$acl_shlibext"; then
9053 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9054 found_dir="$dir"
9055 found_so="$dir/$libname$shrext"
9056 else
9057 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9058 ver=`(cd "$dir" && \
9059 for f in "$libname$shrext".*; do echo "$f"; done \
9060 | sed -e "s,^$libname$shrext\\\\.,," \
9061 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9062 | sed 1q ) 2>/dev/null`
9063 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9064 found_dir="$dir"
9065 found_so="$dir/$libname$shrext.$ver"
9067 else
9068 eval library_names=\"$acl_library_names_spec\"
9069 for f in $library_names; do
9070 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9071 found_dir="$dir"
9072 found_so="$dir/$f"
9073 break
9075 done
9079 if test "X$found_dir" = "X"; then
9080 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9081 found_dir="$dir"
9082 found_a="$dir/$libname.$acl_libext"
9085 if test "X$found_dir" != "X"; then
9086 if test -f "$dir/$libname.la"; then
9087 found_la="$dir/$libname.la"
9091 esac
9092 if test "X$found_dir" != "X"; then
9093 break
9095 done
9097 if test "X$found_dir" != "X"; then
9098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9099 if test "X$found_so" != "X"; then
9100 if test "$enable_rpath" = no \
9101 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9102 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9103 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9104 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9105 else
9106 haveit=
9107 for x in $ltrpathdirs; do
9108 if test "X$x" = "X$found_dir"; then
9109 haveit=yes
9110 break
9112 done
9113 if test -z "$haveit"; then
9114 ltrpathdirs="$ltrpathdirs $found_dir"
9116 if test "$acl_hardcode_direct" = yes; then
9117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9118 else
9119 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9120 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9121 haveit=
9122 for x in $rpathdirs; do
9123 if test "X$x" = "X$found_dir"; then
9124 haveit=yes
9125 break
9127 done
9128 if test -z "$haveit"; then
9129 rpathdirs="$rpathdirs $found_dir"
9131 else
9132 haveit=
9133 for x in $LDFLAGS $LIBINTL; do
9135 acl_save_prefix="$prefix"
9136 prefix="$acl_final_prefix"
9137 acl_save_exec_prefix="$exec_prefix"
9138 exec_prefix="$acl_final_exec_prefix"
9139 eval x=\"$x\"
9140 exec_prefix="$acl_save_exec_prefix"
9141 prefix="$acl_save_prefix"
9143 if test "X$x" = "X-L$found_dir"; then
9144 haveit=yes
9145 break
9147 done
9148 if test -z "$haveit"; then
9149 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9151 if test "$acl_hardcode_minus_L" != no; then
9152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9153 else
9154 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9159 else
9160 if test "X$found_a" != "X"; then
9161 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9162 else
9163 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9166 additional_includedir=
9167 case "$found_dir" in
9168 */$acl_libdirstem | */$acl_libdirstem/)
9169 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9170 if test "$name" = 'intl'; then
9171 LIBINTL_PREFIX="$basedir"
9173 additional_includedir="$basedir/include"
9175 */$acl_libdirstem2 | */$acl_libdirstem2/)
9176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9177 if test "$name" = 'intl'; then
9178 LIBINTL_PREFIX="$basedir"
9180 additional_includedir="$basedir/include"
9182 */$acl_libdirstem3 | */$acl_libdirstem3/)
9183 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9184 if test "$name" = 'intl'; then
9185 LIBINTL_PREFIX="$basedir"
9187 additional_includedir="$basedir/include"
9189 esac
9190 if test "X$additional_includedir" != "X"; then
9191 if test "X$additional_includedir" != "X/usr/include"; then
9192 haveit=
9193 if test "X$additional_includedir" = "X/usr/local/include"; then
9194 if test -n "$GCC"; then
9195 case $host_os in
9196 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9197 esac
9200 if test -z "$haveit"; then
9201 for x in $CPPFLAGS $INCINTL; do
9203 acl_save_prefix="$prefix"
9204 prefix="$acl_final_prefix"
9205 acl_save_exec_prefix="$exec_prefix"
9206 exec_prefix="$acl_final_exec_prefix"
9207 eval x=\"$x\"
9208 exec_prefix="$acl_save_exec_prefix"
9209 prefix="$acl_save_prefix"
9211 if test "X$x" = "X-I$additional_includedir"; then
9212 haveit=yes
9213 break
9215 done
9216 if test -z "$haveit"; then
9217 if test -d "$additional_includedir"; then
9218 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9224 if test -n "$found_la"; then
9225 save_libdir="$libdir"
9226 case "$found_la" in
9227 */* | *\\*) . "$found_la" ;;
9228 *) . "./$found_la" ;;
9229 esac
9230 libdir="$save_libdir"
9231 for dep in $dependency_libs; do
9232 case "$dep" in
9233 -L*)
9234 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9235 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9236 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9237 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9238 haveit=
9239 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9240 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9241 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9242 if test -n "$GCC"; then
9243 case $host_os in
9244 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9245 esac
9248 if test -z "$haveit"; then
9249 haveit=
9250 for x in $LDFLAGS $LIBINTL; do
9252 acl_save_prefix="$prefix"
9253 prefix="$acl_final_prefix"
9254 acl_save_exec_prefix="$exec_prefix"
9255 exec_prefix="$acl_final_exec_prefix"
9256 eval x=\"$x\"
9257 exec_prefix="$acl_save_exec_prefix"
9258 prefix="$acl_save_prefix"
9260 if test "X$x" = "X-L$dependency_libdir"; then
9261 haveit=yes
9262 break
9264 done
9265 if test -z "$haveit"; then
9266 if test -d "$dependency_libdir"; then
9267 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9270 haveit=
9271 for x in $LDFLAGS $LTLIBINTL; do
9273 acl_save_prefix="$prefix"
9274 prefix="$acl_final_prefix"
9275 acl_save_exec_prefix="$exec_prefix"
9276 exec_prefix="$acl_final_exec_prefix"
9277 eval x=\"$x\"
9278 exec_prefix="$acl_save_exec_prefix"
9279 prefix="$acl_save_prefix"
9281 if test "X$x" = "X-L$dependency_libdir"; then
9282 haveit=yes
9283 break
9285 done
9286 if test -z "$haveit"; then
9287 if test -d "$dependency_libdir"; then
9288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9294 -R*)
9295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9296 if test "$enable_rpath" != no; then
9297 haveit=
9298 for x in $rpathdirs; do
9299 if test "X$x" = "X$dir"; then
9300 haveit=yes
9301 break
9303 done
9304 if test -z "$haveit"; then
9305 rpathdirs="$rpathdirs $dir"
9307 haveit=
9308 for x in $ltrpathdirs; do
9309 if test "X$x" = "X$dir"; then
9310 haveit=yes
9311 break
9313 done
9314 if test -z "$haveit"; then
9315 ltrpathdirs="$ltrpathdirs $dir"
9319 -l*)
9320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9322 *.la)
9323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9326 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9327 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9329 esac
9330 done
9332 else
9333 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9334 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9338 done
9339 done
9340 if test "X$rpathdirs" != "X"; then
9341 if test -n "$acl_hardcode_libdir_separator"; then
9342 alldirs=
9343 for found_dir in $rpathdirs; do
9344 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9345 done
9346 acl_save_libdir="$libdir"
9347 libdir="$alldirs"
9348 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9349 libdir="$acl_save_libdir"
9350 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9351 else
9352 for found_dir in $rpathdirs; do
9353 acl_save_libdir="$libdir"
9354 libdir="$found_dir"
9355 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9356 libdir="$acl_save_libdir"
9357 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9358 done
9361 if test "X$ltrpathdirs" != "X"; then
9362 for found_dir in $ltrpathdirs; do
9363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9364 done
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9372 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9373 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 gt_save_CPPFLAGS="$CPPFLAGS"
9377 CPPFLAGS="$CPPFLAGS $INCINTL"
9378 gt_save_LIBS="$LIBS"
9379 LIBS="$LIBS $LIBINTL"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9383 #include <libintl.h>
9384 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9385 extern int _nl_msg_cat_cntr;
9386 extern
9387 #ifdef __cplusplus
9389 #endif
9390 const char *_nl_expand_alias (const char *);
9391 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9392 #else
9393 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9394 #endif
9395 $gt_revision_test_code
9398 main ()
9401 bindtextdomain ("", "");
9402 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9405 return 0;
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409 eval "$gt_func_gnugettext_libintl=yes"
9410 else
9411 eval "$gt_func_gnugettext_libintl=no"
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9416 LIBS="$LIBS $LIBICONV"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 #include <libintl.h>
9421 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9422 extern int _nl_msg_cat_cntr;
9423 extern
9424 #ifdef __cplusplus
9426 #endif
9427 const char *_nl_expand_alias (const char *);
9428 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9429 #else
9430 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9431 #endif
9432 $gt_revision_test_code
9435 main ()
9438 bindtextdomain ("", "");
9439 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9442 return 0;
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446 LIBINTL="$LIBINTL $LIBICONV"
9447 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9448 eval "$gt_func_gnugettext_libintl=yes"
9451 rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9454 CPPFLAGS="$gt_save_CPPFLAGS"
9455 LIBS="$gt_save_LIBS"
9457 eval ac_res=\$$gt_func_gnugettext_libintl
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9459 $as_echo "$ac_res" >&6; }
9462 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9463 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9464 && test "$PACKAGE" != gettext-runtime \
9465 && test "$PACKAGE" != gettext-tools; }; then
9466 gt_use_preinstalled_gnugettext=yes
9467 else
9468 LIBINTL=
9469 LTLIBINTL=
9470 INCINTL=
9475 if test -n "$INTL_MACOSX_LIBS"; then
9476 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9477 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9478 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9479 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9483 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9484 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9486 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9488 else
9489 USE_NLS=no
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9494 $as_echo_n "checking whether to use NLS... " >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9496 $as_echo "$USE_NLS" >&6; }
9497 if test "$USE_NLS" = "yes"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9499 $as_echo_n "checking where the gettext function comes from... " >&6; }
9500 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9501 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9502 gt_source="external libintl"
9503 else
9504 gt_source="libc"
9506 else
9507 gt_source="included intl directory"
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9510 $as_echo "$gt_source" >&6; }
9513 if test "$USE_NLS" = "yes"; then
9515 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9516 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9518 $as_echo_n "checking how to link with libintl... " >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9520 $as_echo "$LIBINTL" >&6; }
9522 for element in $INCINTL; do
9523 haveit=
9524 for x in $CPPFLAGS; do
9526 acl_save_prefix="$prefix"
9527 prefix="$acl_final_prefix"
9528 acl_save_exec_prefix="$exec_prefix"
9529 exec_prefix="$acl_final_exec_prefix"
9530 eval x=\"$x\"
9531 exec_prefix="$acl_save_exec_prefix"
9532 prefix="$acl_save_prefix"
9534 if test "X$x" = "X$element"; then
9535 haveit=yes
9536 break
9538 done
9539 if test -z "$haveit"; then
9540 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9542 done
9547 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9550 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9554 POSUB=po
9559 INTLLIBS="$LIBINTL"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9569 set x ${MAKE-make}
9570 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9571 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat >conftest.make <<\_ACEOF
9575 SHELL = /bin/sh
9576 all:
9577 @echo '@@@%%%=$(MAKE)=@@@%%%'
9578 _ACEOF
9579 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9581 *@@@%%%=?*=@@@%%%*)
9582 eval ac_cv_prog_make_${ac_make}_set=yes;;
9584 eval ac_cv_prog_make_${ac_make}_set=no;;
9585 esac
9586 rm -f conftest.make
9588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590 $as_echo "yes" >&6; }
9591 SET_MAKE=
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 SET_MAKE="MAKE=${MAKE-make}"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9599 $as_echo_n "checking for GNU make... " >&6; }
9600 if ${_cv_gnu_make_command+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 _cv_gnu_make_command='' ;
9604 if test -n "$FORCE_NATIVE_MAKE" ; then
9605 MAKES="make"
9606 else
9607 MAKES="make gmake gnumake"
9609 for a in "$MAKE" $MAKES ; do
9610 if test -z "$a" ; then continue ; fi ;
9611 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9612 _cv_gnu_make_command=$a ;
9613 break;
9615 done ;
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9619 $as_echo "$_cv_gnu_make_command" >&6; } ;
9620 if test "x$_cv_gnu_make_command" != "x" ; then
9621 ifGNUmake='' ;
9622 ifNotGNUmake='#' ;
9623 else
9624 ifGNUmake='#' ;
9625 ifNotGNUmake='' ;
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9627 $as_echo "\"Not found\"" >&6; };
9632 # Extract the first word of "ln", so it can be a program name with args.
9633 set dummy ln; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if ${ac_cv_path_LN+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 case $LN in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9655 done
9656 done
9657 IFS=$as_save_IFS
9659 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9661 esac
9663 LN=$ac_cv_path_LN
9664 if test -n "$LN"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9666 $as_echo "$LN" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 mkdir_p=$MKDIR_P
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9677 $as_echo_n "checking whether ln -s works... " >&6; }
9678 LN_S=$as_ln_s
9679 if test "$LN_S" = "ln -s"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9681 $as_echo "yes" >&6; }
9682 else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9684 $as_echo "no, using $LN_S" >&6; }
9687 # Extract the first word of "mv", so it can be a program name with args.
9688 set dummy mv; ac_word=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if ${ac_cv_path_MV+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 case $MV in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9710 done
9711 done
9712 IFS=$as_save_IFS
9714 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9716 esac
9718 MV=$ac_cv_path_MV
9719 if test -n "$MV"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9721 $as_echo "$MV" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9728 # Extract the first word of "cp", so it can be a program name with args.
9729 set dummy cp; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_path_CP+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 case $CP in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9751 done
9752 done
9753 IFS=$as_save_IFS
9755 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9757 esac
9759 CP=$ac_cv_path_CP
9760 if test -n "$CP"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9762 $as_echo "$CP" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9769 # Extract the first word of "rm", so it can be a program name with args.
9770 set dummy rm; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_path_RM+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 case $RM in
9777 [\\/]* | ?:[\\/]*)
9778 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9792 done
9793 done
9794 IFS=$as_save_IFS
9796 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9798 esac
9800 RM=$ac_cv_path_RM
9801 if test -n "$RM"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9803 $as_echo "$RM" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9810 # Extract the first word of "chmod", so it can be a program name with args.
9811 set dummy chmod; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_path_CHMOD+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 case $CHMOD in
9818 [\\/]* | ?:[\\/]*)
9819 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9833 done
9834 done
9835 IFS=$as_save_IFS
9837 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9839 esac
9841 CHMOD=$ac_cv_path_CHMOD
9842 if test -n "$CHMOD"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9844 $as_echo "$CHMOD" >&6; }
9845 else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9851 for ac_prog in gawk mawk nawk awk
9853 # Extract the first word of "$ac_prog", so it can be a program name with args.
9854 set dummy $ac_prog; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_prog_AWK+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 if test -n "$AWK"; then
9861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9862 else
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9870 ac_cv_prog_AWK="$ac_prog"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9874 done
9875 done
9876 IFS=$as_save_IFS
9880 AWK=$ac_cv_prog_AWK
9881 if test -n "$AWK"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9883 $as_echo "$AWK" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9890 test -n "$AWK" && break
9891 done
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9894 $as_echo_n "checking for egrep... " >&6; }
9895 if ${ac_cv_path_EGREP+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9899 then ac_cv_path_EGREP="$GREP -E"
9900 else
9901 if test -z "$EGREP"; then
9902 ac_path_EGREP_found=false
9903 # Loop through the user's path and test for each of PROGNAME-LIST
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_prog in egrep; do
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9912 as_fn_executable_p "$ac_path_EGREP" || continue
9913 # Check for GNU ac_path_EGREP and select it if it is found.
9914 # Check for GNU $ac_path_EGREP
9915 case `"$ac_path_EGREP" --version 2>&1` in
9916 *GNU*)
9917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9919 ac_count=0
9920 $as_echo_n 0123456789 >"conftest.in"
9921 while :
9923 cat "conftest.in" "conftest.in" >"conftest.tmp"
9924 mv "conftest.tmp" "conftest.in"
9925 cp "conftest.in" "conftest.nl"
9926 $as_echo 'EGREP' >> "conftest.nl"
9927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9929 as_fn_arith $ac_count + 1 && ac_count=$as_val
9930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9931 # Best one so far, save it but keep looking for a better one
9932 ac_cv_path_EGREP="$ac_path_EGREP"
9933 ac_path_EGREP_max=$ac_count
9935 # 10*(2^10) chars as input seems more than enough
9936 test $ac_count -gt 10 && break
9937 done
9938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9939 esac
9941 $ac_path_EGREP_found && break 3
9942 done
9943 done
9944 done
9945 IFS=$as_save_IFS
9946 if test -z "$ac_cv_path_EGREP"; then
9947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9949 else
9950 ac_cv_path_EGREP=$EGREP
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9956 $as_echo "$ac_cv_path_EGREP" >&6; }
9957 EGREP="$ac_cv_path_EGREP"
9960 # Extract the first word of "sed", so it can be a program name with args.
9961 set dummy sed; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_path_SED+:} false; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 case $SED in
9968 [\\/]* | ?:[\\/]*)
9969 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9983 done
9984 done
9985 IFS=$as_save_IFS
9987 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9989 esac
9991 SED=$ac_cv_path_SED
9992 if test -n "$SED"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9994 $as_echo "$SED" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 # Extract the first word of "perl", so it can be a program name with args.
10002 set dummy perl; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_PERL+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 case $PERL in
10009 [\\/]* | ?:[\\/]*)
10010 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10024 done
10025 done
10026 IFS=$as_save_IFS
10028 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10030 esac
10032 PERL=$ac_cv_path_PERL
10033 if test -n "$PERL"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10035 $as_echo "$PERL" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10042 # Extract the first word of "ldconfig", so it can be a program name with args.
10043 set dummy ldconfig; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_path_LDCONFIG+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 case $LDCONFIG in
10050 [\\/]* | ?:[\\/]*)
10051 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10061 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 break 2
10065 done
10066 done
10067 IFS=$as_save_IFS
10069 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10071 esac
10073 LDCONFIG=$ac_cv_path_LDCONFIG
10074 if test -n "$LDCONFIG"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10076 $as_echo "$LDCONFIG" >&6; }
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10083 if test -n "$ac_tool_prefix"; then
10084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10085 set dummy ${ac_tool_prefix}ar; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_prog_AR+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 if test -n "$AR"; then
10092 ac_cv_prog_AR="$AR" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_AR="${ac_tool_prefix}ar"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10111 AR=$ac_cv_prog_AR
10112 if test -n "$AR"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10114 $as_echo "$AR" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10122 if test -z "$ac_cv_prog_AR"; then
10123 ac_ct_AR=$AR
10124 # Extract the first word of "ar", so it can be a program name with args.
10125 set dummy ar; ac_word=$2
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127 $as_echo_n "checking for $ac_word... " >&6; }
10128 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 if test -n "$ac_ct_AR"; then
10132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141 ac_cv_prog_ac_ct_AR="ar"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10145 done
10146 done
10147 IFS=$as_save_IFS
10151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10152 if test -n "$ac_ct_AR"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10154 $as_echo "$ac_ct_AR" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10160 if test "x$ac_ct_AR" = x; then
10161 AR="ar"
10162 else
10163 case $cross_compiling:$ac_tool_warned in
10164 yes:)
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10167 ac_tool_warned=yes ;;
10168 esac
10169 AR=$ac_ct_AR
10171 else
10172 AR="$ac_cv_prog_AR"
10175 if test -n "$ac_tool_prefix"; then
10176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 $as_echo_n "checking for $ac_word... " >&6; }
10180 if ${ac_cv_prog_RANLIB+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 if test -n "$RANLIB"; then
10184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10197 done
10198 done
10199 IFS=$as_save_IFS
10203 RANLIB=$ac_cv_prog_RANLIB
10204 if test -n "$RANLIB"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10206 $as_echo "$RANLIB" >&6; }
10207 else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10214 if test -z "$ac_cv_prog_RANLIB"; then
10215 ac_ct_RANLIB=$RANLIB
10216 # Extract the first word of "ranlib", so it can be a program name with args.
10217 set dummy ranlib; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 if test -n "$ac_ct_RANLIB"; then
10224 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 ac_cv_prog_ac_ct_RANLIB="ranlib"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10239 IFS=$as_save_IFS
10243 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10244 if test -n "$ac_ct_RANLIB"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10246 $as_echo "$ac_ct_RANLIB" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10252 if test "x$ac_ct_RANLIB" = x; then
10253 RANLIB=":"
10254 else
10255 case $cross_compiling:$ac_tool_warned in
10256 yes:)
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10259 ac_tool_warned=yes ;;
10260 esac
10261 RANLIB=$ac_ct_RANLIB
10263 else
10264 RANLIB="$ac_cv_prog_RANLIB"
10267 if test -n "$ac_tool_prefix"; then
10268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10269 set dummy ${ac_tool_prefix}strip; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_STRIP+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 if test -n "$STRIP"; then
10276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10277 else
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10289 done
10290 done
10291 IFS=$as_save_IFS
10295 STRIP=$ac_cv_prog_STRIP
10296 if test -n "$STRIP"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10298 $as_echo "$STRIP" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10306 if test -z "$ac_cv_prog_STRIP"; then
10307 ac_ct_STRIP=$STRIP
10308 # Extract the first word of "strip", so it can be a program name with args.
10309 set dummy strip; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 if test -n "$ac_ct_STRIP"; then
10316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10317 else
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_ac_ct_STRIP="strip"
10326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10329 done
10330 done
10331 IFS=$as_save_IFS
10335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10336 if test -n "$ac_ct_STRIP"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10338 $as_echo "$ac_ct_STRIP" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10344 if test "x$ac_ct_STRIP" = x; then
10345 STRIP=":"
10346 else
10347 case $cross_compiling:$ac_tool_warned in
10348 yes:)
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10351 ac_tool_warned=yes ;;
10352 esac
10353 STRIP=$ac_ct_STRIP
10355 else
10356 STRIP="$ac_cv_prog_STRIP"
10359 # Extract the first word of "makeinfo", so it can be a program name with args.
10360 set dummy makeinfo; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_prog_MAKEINFO+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 if test -n "$MAKEINFO"; then
10367 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10368 else
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_MAKEINFO="makeinfo"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10380 done
10381 done
10382 IFS=$as_save_IFS
10386 MAKEINFO=$ac_cv_prog_MAKEINFO
10387 if test -n "$MAKEINFO"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10389 $as_echo "$MAKEINFO" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10396 if test "_$MAKEINFO" = "_"; then
10397 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10398 else
10399 case "$MAKEINFO" in
10400 */missing.*)
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10402 *** Makeinfo is missing. Info documentation will not be built." >&5
10403 $as_echo "$as_me: WARNING:
10404 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10408 esac
10412 # See if we need a separate native compiler.
10413 if test $cross_compiling = no; then
10414 BUILD_CC="$CC"
10416 else
10417 for ac_prog in gcc cc
10419 # Extract the first word of "$ac_prog", so it can be a program name with args.
10420 set dummy $ac_prog; ac_word=$2
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422 $as_echo_n "checking for $ac_word... " >&6; }
10423 if ${ac_cv_prog_BUILD_CC+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 if test -n "$BUILD_CC"; then
10427 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10428 else
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_prog_BUILD_CC="$ac_prog"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10440 done
10441 done
10442 IFS=$as_save_IFS
10446 BUILD_CC=$ac_cv_prog_BUILD_CC
10447 if test -n "$BUILD_CC"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10449 $as_echo "$BUILD_CC" >&6; }
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10456 test -n "$BUILD_CC" && break
10457 done
10460 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h pthread.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
10461 do :
10462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10465 cat >>confdefs.h <<_ACEOF
10466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10467 _ACEOF
10471 done
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10474 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10476 for i in dd gdd ; do
10477 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10478 DD=$i
10479 break
10481 done
10482 if test -n "$DD" ; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10484 $as_echo "$DD" >&6; }
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10487 $as_echo "not found, using dd" >&6; }
10488 DD=dd
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10490 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10494 for ac_header in net/if.h
10495 do :
10496 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10497 #if HAVE_SYS_TYPES_H
10498 #include <sys/types.h>
10499 #endif
10500 #if HAVE_SYS_SOCKET
10501 #include <sys/socket.h>
10502 #endif
10505 if test "x$ac_cv_header_net_if_h" = xyes; then :
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_NET_IF_H 1
10508 _ACEOF
10512 done
10514 for ac_func in vprintf
10515 do :
10516 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10517 if test "x$ac_cv_func_vprintf" = xyes; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_VPRINTF 1
10520 _ACEOF
10522 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10523 if test "x$ac_cv_func__doprnt" = xyes; then :
10525 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10530 done
10533 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10535 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10537 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10541 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10542 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_STAT_ST_ATIM 1
10546 _ACEOF
10551 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10553 if test "x$ac_cv_type_ssize_t" = xyes; then :
10555 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10559 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10561 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10563 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10567 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10568 #define _LARGEFILE64_SOURCE
10569 #include <unistd.h>
10571 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10573 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10577 # The cast to long int works around a bug in the HP C Compiler
10578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580 # This bug is HP SR number 8606223364.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10582 $as_echo_n "checking size of short... " >&6; }
10583 if ${ac_cv_sizeof_short+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10588 else
10589 if test "$ac_cv_type_short" = yes; then
10590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10592 as_fn_error 77 "cannot compute sizeof (short)
10593 See \`config.log' for more details" "$LINENO" 5; }
10594 else
10595 ac_cv_sizeof_short=0
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10601 $as_echo "$ac_cv_sizeof_short" >&6; }
10605 cat >>confdefs.h <<_ACEOF
10606 #define SIZEOF_SHORT $ac_cv_sizeof_short
10607 _ACEOF
10610 # The cast to long int works around a bug in the HP C Compiler
10611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613 # This bug is HP SR number 8606223364.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10615 $as_echo_n "checking size of int... " >&6; }
10616 if ${ac_cv_sizeof_int+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10621 else
10622 if test "$ac_cv_type_int" = yes; then
10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10625 as_fn_error 77 "cannot compute sizeof (int)
10626 See \`config.log' for more details" "$LINENO" 5; }
10627 else
10628 ac_cv_sizeof_int=0
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10634 $as_echo "$ac_cv_sizeof_int" >&6; }
10638 cat >>confdefs.h <<_ACEOF
10639 #define SIZEOF_INT $ac_cv_sizeof_int
10640 _ACEOF
10643 # The cast to long int works around a bug in the HP C Compiler
10644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10646 # This bug is HP SR number 8606223364.
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10648 $as_echo_n "checking size of long... " >&6; }
10649 if ${ac_cv_sizeof_long+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10654 else
10655 if test "$ac_cv_type_long" = yes; then
10656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 as_fn_error 77 "cannot compute sizeof (long)
10659 See \`config.log' for more details" "$LINENO" 5; }
10660 else
10661 ac_cv_sizeof_long=0
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10667 $as_echo "$ac_cv_sizeof_long" >&6; }
10671 cat >>confdefs.h <<_ACEOF
10672 #define SIZEOF_LONG $ac_cv_sizeof_long
10673 _ACEOF
10676 # The cast to long int works around a bug in the HP C Compiler
10677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10679 # This bug is HP SR number 8606223364.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10681 $as_echo_n "checking size of long long... " >&6; }
10682 if ${ac_cv_sizeof_long_long+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10687 else
10688 if test "$ac_cv_type_long_long" = yes; then
10689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10691 as_fn_error 77 "cannot compute sizeof (long long)
10692 See \`config.log' for more details" "$LINENO" 5; }
10693 else
10694 ac_cv_sizeof_long_long=0
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10700 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10704 cat >>confdefs.h <<_ACEOF
10705 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10706 _ACEOF
10709 # The cast to long int works around a bug in the HP C Compiler
10710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10712 # This bug is HP SR number 8606223364.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10714 $as_echo_n "checking size of off_t... " >&6; }
10715 if ${ac_cv_sizeof_off_t+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10720 else
10721 if test "$ac_cv_type_off_t" = yes; then
10722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10724 as_fn_error 77 "cannot compute sizeof (off_t)
10725 See \`config.log' for more details" "$LINENO" 5; }
10726 else
10727 ac_cv_sizeof_off_t=0
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10733 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10737 cat >>confdefs.h <<_ACEOF
10738 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10739 _ACEOF
10742 # The cast to long int works around a bug in the HP C Compiler
10743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10745 # This bug is HP SR number 8606223364.
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10747 $as_echo_n "checking size of time_t... " >&6; }
10748 if ${ac_cv_sizeof_time_t+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10753 else
10754 if test "$ac_cv_type_time_t" = yes; then
10755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10757 as_fn_error 77 "cannot compute sizeof (time_t)
10758 See \`config.log' for more details" "$LINENO" 5; }
10759 else
10760 ac_cv_sizeof_time_t=0
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10766 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10770 cat >>confdefs.h <<_ACEOF
10771 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10772 _ACEOF
10775 SIZEOF_SHORT=$ac_cv_sizeof_short
10776 SIZEOF_INT=$ac_cv_sizeof_int
10777 SIZEOF_LONG=$ac_cv_sizeof_long
10778 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10779 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10780 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10788 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10789 if ${ac_cv_c_bigendian+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 ac_cv_c_bigendian=unknown
10793 # See if we're dealing with a universal compiler.
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #ifndef __APPLE_CC__
10797 not a universal capable compiler
10798 #endif
10799 typedef int dummy;
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10804 # Check for potential -arch flags. It is not universal unless
10805 # there are at least two -arch flags with different values.
10806 ac_arch=
10807 ac_prev=
10808 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10809 if test -n "$ac_prev"; then
10810 case $ac_word in
10811 i?86 | x86_64 | ppc | ppc64)
10812 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10813 ac_arch=$ac_word
10814 else
10815 ac_cv_c_bigendian=universal
10816 break
10819 esac
10820 ac_prev=
10821 elif test "x$ac_word" = "x-arch"; then
10822 ac_prev=arch
10824 done
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 if test $ac_cv_c_bigendian = unknown; then
10828 # See if sys/param.h defines the BYTE_ORDER macro.
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #include <sys/types.h>
10832 #include <sys/param.h>
10835 main ()
10837 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10838 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10839 && LITTLE_ENDIAN)
10840 bogus endian macros
10841 #endif
10844 return 0;
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848 # It does; now see whether it defined to BIG_ENDIAN or not.
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 #include <sys/types.h>
10852 #include <sys/param.h>
10855 main ()
10857 #if BYTE_ORDER != BIG_ENDIAN
10858 not big endian
10859 #endif
10862 return 0;
10864 _ACEOF
10865 if ac_fn_c_try_compile "$LINENO"; then :
10866 ac_cv_c_bigendian=yes
10867 else
10868 ac_cv_c_bigendian=no
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 if test $ac_cv_c_bigendian = unknown; then
10875 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <limits.h>
10881 main ()
10883 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10884 bogus endian macros
10885 #endif
10888 return 0;
10890 _ACEOF
10891 if ac_fn_c_try_compile "$LINENO"; then :
10892 # It does; now see whether it defined to _BIG_ENDIAN or not.
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 #include <limits.h>
10898 main ()
10900 #ifndef _BIG_ENDIAN
10901 not big endian
10902 #endif
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_compile "$LINENO"; then :
10909 ac_cv_c_bigendian=yes
10910 else
10911 ac_cv_c_bigendian=no
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 if test $ac_cv_c_bigendian = unknown; then
10918 # Compile a test program.
10919 if test "$cross_compiling" = yes; then :
10920 # Try to guess by grepping values from an object file.
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 short int ascii_mm[] =
10924 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10925 short int ascii_ii[] =
10926 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10927 int use_ascii (int i) {
10928 return ascii_mm[i] + ascii_ii[i];
10930 short int ebcdic_ii[] =
10931 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10932 short int ebcdic_mm[] =
10933 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10934 int use_ebcdic (int i) {
10935 return ebcdic_mm[i] + ebcdic_ii[i];
10937 extern int foo;
10940 main ()
10942 return use_ascii (foo) == use_ebcdic (foo);
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_compile "$LINENO"; then :
10948 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10949 ac_cv_c_bigendian=yes
10951 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10952 if test "$ac_cv_c_bigendian" = unknown; then
10953 ac_cv_c_bigendian=no
10954 else
10955 # finding both strings is unlikely to happen, but who knows?
10956 ac_cv_c_bigendian=unknown
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 else
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 $ac_includes_default
10966 main ()
10969 /* Are we little or big endian? From Harbison&Steele. */
10970 union
10972 long int l;
10973 char c[sizeof (long int)];
10974 } u;
10975 u.l = 1;
10976 return u.c[sizeof (long int) - 1] == 1;
10979 return 0;
10981 _ACEOF
10982 if ac_fn_c_try_run "$LINENO"; then :
10983 ac_cv_c_bigendian=no
10984 else
10985 ac_cv_c_bigendian=yes
10987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10988 conftest.$ac_objext conftest.beam conftest.$ac_ext
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10994 $as_echo "$ac_cv_c_bigendian" >&6; }
10995 case $ac_cv_c_bigendian in #(
10996 yes)
10997 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10998 ;; #(
11000 ;; #(
11001 universal)
11003 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11005 ;; #(
11007 as_fn_error $? "unknown endianness
11008 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11009 esac
11011 if test $cross_compiling = no; then
11012 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11013 else
11014 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11016 ASM_TYPES_HEADER=./asm_types.h
11018 echo "/* These defines are needed for the public ext2fs.h header file */" \
11019 > public_config.h
11020 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11021 uniq tmp_config.$$ >> public_config.h
11022 else
11023 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11025 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11026 uniq tmp_config.$$ >> public_config.h
11027 else
11028 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11030 rm -f tmp_config.$$
11031 PUBLIC_CONFIG_HEADER=./public_config.h
11033 for ac_header in inttypes.h
11034 do :
11035 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11036 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11037 cat >>confdefs.h <<_ACEOF
11038 #define HAVE_INTTYPES_H 1
11039 _ACEOF
11043 done
11045 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11046 if test "x$ac_cv_type_intptr_t" = xyes; then :
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_INTPTR_T 1
11050 _ACEOF
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11056 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11057 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062 #include <sys/stat.h>
11064 main ()
11066 struct stat stat; stat.st_flags = 0;
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_compile "$LINENO"; then :
11072 e2fsprogs_cv_struct_st_flags=yes
11073 else
11074 e2fsprogs_cv_struct_st_flags=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11080 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11081 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11083 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11084 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089 #include <sys/stat.h>
11091 main ()
11093 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11095 return 0;
11097 _ACEOF
11098 if ac_fn_c_try_compile "$LINENO"; then :
11099 e2fsprogs_cv_struct_st_flags_immut=yes
11100 else
11101 e2fsprogs_cv_struct_st_flags_immut=no
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11107 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11108 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11110 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11114 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11115 #include <sys/socket.h>
11117 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_SA_LEN 1
11121 _ACEOF
11125 if test -n "$BLKID_CMT"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11127 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11128 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lblkid $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char blkid_probe_get_topology ();
11144 main ()
11146 return blkid_probe_get_topology ();
11148 return 0;
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11153 else
11154 ac_cv_lib_blkid_blkid_probe_get_topology=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11161 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11162 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11164 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11169 $as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11170 if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 ac_check_lib_save_LIBS=$LIBS
11174 LIBS="-lblkid $LIBS"
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11178 /* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 char blkid_topology_get_dax ();
11186 main ()
11188 return blkid_topology_get_dax ();
11190 return 0;
11192 _ACEOF
11193 if ac_fn_c_try_link "$LINENO"; then :
11194 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11195 else
11196 ac_cv_lib_blkid_blkid_topology_get_dax=no
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11203 $as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11204 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11206 $as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11211 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11212 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-lblkid $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char blkid_probe_enable_partitions ();
11228 main ()
11230 return blkid_probe_enable_partitions ();
11232 return 0;
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11237 else
11238 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11245 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11246 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11248 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11253 if test -n "$DLOPEN_LIB" ; then
11254 ac_cv_func_dlopen=yes
11256 for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
11257 do :
11258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11261 cat >>confdefs.h <<_ACEOF
11262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 _ACEOF
11266 done
11268 SOCKET_LIB=''
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11270 $as_echo_n "checking for socket in -lsocket... " >&6; }
11271 if ${ac_cv_lib_socket_socket+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-lsocket $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char socket ();
11287 main ()
11289 return socket ();
11291 return 0;
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 ac_cv_lib_socket_socket=yes
11296 else
11297 ac_cv_lib_socket_socket=no
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11304 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11305 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11306 SOCKET_LIB=-lsocket
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11311 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
11312 if ${ac_cv_lib_magic_magic_file+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-lmagic $LIBS"
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char magic_file ();
11328 main ()
11330 return magic_file ();
11332 return 0;
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_lib_magic_magic_file=yes
11337 else
11338 ac_cv_lib_magic_magic_file=no
11340 rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11345 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11346 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11347 MAGIC_LIB=-lmagic
11348 for ac_header in magic.h
11349 do :
11350 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11351 if test "x$ac_cv_header_magic_h" = xyes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_MAGIC_H 1
11354 _ACEOF
11358 done
11362 if test "$ac_cv_func_dlopen" = yes ; then
11363 MAGIC_LIB=$DLOPEN_LIB
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11367 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11368 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-lrt $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char clock_gettime ();
11384 main ()
11386 return clock_gettime ();
11388 return 0;
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_rt_clock_gettime=yes
11393 else
11394 ac_cv_lib_rt_clock_gettime=no
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11401 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11402 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11403 CLOCK_GETTIME_LIB=-lrt
11407 FUSE_CMT=
11408 FUSE_LIB=
11409 # Check whether --enable-fuse2fs was given.
11410 if test "${enable_fuse2fs+set}" = set; then :
11411 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11412 then
11413 FUSE_CMT="#"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11415 $as_echo "Disabling fuse2fs" >&6; }
11416 else
11417 for ac_header in pthread.h fuse.h
11418 do :
11419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11421 #define FUSE_USE_VERSION 29
11423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11424 cat >>confdefs.h <<_ACEOF
11425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426 _ACEOF
11428 else
11429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11431 as_fn_error $? "Cannot find fuse2fs headers.
11432 See \`config.log' for more details" "$LINENO" 5; }
11435 done
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440 #define FUSE_USE_VERSION 29
11441 #ifdef __linux__
11442 #include <linux/fs.h>
11443 #include <linux/falloc.h>
11444 #include <linux/xattr.h>
11445 #endif
11448 main ()
11452 return 0;
11454 _ACEOF
11455 if ac_fn_c_try_cpp "$LINENO"; then :
11457 else
11458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11460 as_fn_error $? "Cannot find fuse2fs Linux headers.
11461 See \`config.log' for more details" "$LINENO" 5; }
11463 rm -f conftest.err conftest.i conftest.$ac_ext
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11466 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11467 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-losxfuse $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char fuse_main ();
11483 main ()
11485 return fuse_main ();
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_osxfuse_fuse_main=yes
11492 else
11493 ac_cv_lib_osxfuse_fuse_main=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11500 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11501 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11502 FUSE_LIB=-losxfuse
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11505 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11506 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-lfuse $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char fuse_main ();
11522 main ()
11524 return fuse_main ();
11526 return 0;
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_fuse_fuse_main=yes
11531 else
11532 ac_cv_lib_fuse_fuse_main=no
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11539 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11540 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11541 FUSE_LIB=-lfuse
11542 else
11543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11545 as_fn_error $? "Cannot find fuse library.
11546 See \`config.log' for more details" "$LINENO" 5; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11552 $as_echo "Enabling fuse2fs" >&6; }
11555 else
11556 for ac_header in pthread.h fuse.h
11557 do :
11558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11560 #define FUSE_USE_VERSION 29
11561 #ifdef __linux__
11562 # include <linux/fs.h>
11563 # include <linux/falloc.h>
11564 # include <linux/xattr.h>
11565 #endif
11567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11568 cat >>confdefs.h <<_ACEOF
11569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570 _ACEOF
11572 else
11573 FUSE_CMT="#"
11576 done
11578 if test -z "$FUSE_CMT"
11579 then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11581 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11582 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-losxfuse $LIBS"
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char fuse_main ();
11598 main ()
11600 return fuse_main ();
11602 return 0;
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"; then :
11606 ac_cv_lib_osxfuse_fuse_main=yes
11607 else
11608 ac_cv_lib_osxfuse_fuse_main=no
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11615 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11616 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11617 FUSE_LIB=-losxfuse
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11620 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11621 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lfuse $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char fuse_main ();
11637 main ()
11639 return fuse_main ();
11641 return 0;
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_lib_fuse_fuse_main=yes
11646 else
11647 ac_cv_lib_fuse_fuse_main=no
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11654 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11655 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11656 FUSE_LIB=-lfuse
11657 else
11658 FUSE_CMT="#"
11664 if test -z "$FUSE_CMT"
11665 then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11667 $as_echo "Enabling fuse2fs by default." >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11675 $as_echo_n "checking for optreset... " >&6; }
11676 if ${ac_cv_have_optreset+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681 #include <unistd.h>
11683 _ACEOF
11684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 $EGREP "optreset" >/dev/null 2>&1; then :
11686 ac_cv_have_optreset=yes
11687 else
11688 ac_cv_have_optreset=no
11690 rm -f conftest*
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11694 $as_echo "$ac_cv_have_optreset" >&6; }
11695 if test $ac_cv_have_optreset = yes; then
11697 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11701 SEM_INIT_LIB=''
11702 echo GL_THREADS_API: ${gl_threads_api}
11703 if test "${gl_threads_api}" != none
11704 then
11705 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11706 if test "x$ac_cv_func_sem_init" = xyes; then :
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11710 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11711 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lpthread $LIBS"
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11719 /* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char sem_init ();
11727 main ()
11729 return sem_init ();
11731 return 0;
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"; then :
11735 ac_cv_lib_pthread_sem_init=yes
11736 else
11737 ac_cv_lib_pthread_sem_init=no
11739 rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_check_lib_save_LIBS
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11744 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11745 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11746 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11748 SEM_INIT_LIB=-lpthread
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11751 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11752 if ${ac_cv_lib_rt_sem_init+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-lrt $LIBS"
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char sem_init ();
11768 main ()
11770 return sem_init ();
11772 return 0;
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 ac_cv_lib_rt_sem_init=yes
11777 else
11778 ac_cv_lib_rt_sem_init=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11785 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11786 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11787 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11789 SEM_INIT_LIB=-lrt
11790 else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11792 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11793 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lposix4 $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char sem_init ();
11809 main ()
11811 return sem_init ();
11813 return 0;
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_posix4_sem_init=yes
11818 else
11819 ac_cv_lib_posix4_sem_init=no
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11826 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11827 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11828 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11830 SEM_INIT_LIB=-lposix4
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11841 $as_echo_n "checking for unified diff option... " >&6; }
11842 if diff -u $0 $0 > /dev/null 2>&1 ; then
11843 UNI_DIFF_OPTS=-u
11844 else
11845 UNI_DIFF_OPTS=-c
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11848 $as_echo "$UNI_DIFF_OPTS" >&6; }
11850 case "$host_os" in
11851 linux*)
11853 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11856 esac
11858 $as_echo_n "checking for mount 'nosuid' option... "
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #include <sys/mount.h>
11863 main ()
11865 void *temp = (void *)(MS_NOSUID); (void) temp;
11867 return 0;
11869 _ACEOF
11870 if ac_fn_c_try_compile "$LINENO"; then :
11872 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11874 ac_cv_mount_nosuid=yes
11875 $as_echo "yes"
11876 else
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879 #include <sys/mount.h>
11881 main ()
11883 void *temp = (void *)(MNT_NOSUID); (void) temp;
11885 return 0;
11887 _ACEOF
11888 if ac_fn_c_try_compile "$LINENO"; then :
11890 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11892 ac_cv_mount_nosuid=yes
11893 $as_echo "yes"
11894 else
11895 ac_cv_mount_nosuid=no
11896 $as_echo "no"
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905 $as_echo_n "checking for mount 'nodev' option... "
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include <sys/mount.h>
11910 main ()
11912 void *temp = (void *)(MS_NODEV); (void) temp;
11914 return 0;
11916 _ACEOF
11917 if ac_fn_c_try_compile "$LINENO"; then :
11919 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11921 ac_cv_mount_nodev=yes
11922 $as_echo "yes"
11923 else
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #include <sys/mount.h>
11928 main ()
11930 void *temp = (void *)(MNT_NODEV); (void) temp;
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_compile "$LINENO"; then :
11937 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11939 ac_cv_mount_nodev=yes
11940 $as_echo "yes"
11941 else
11942 ac_cv_mount_nodev=no
11943 $as_echo "no"
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 # Check whether --enable-lto was given.
11952 if test "${enable_lto+set}" = set; then :
11953 enableval=$enable_lto;
11954 else
11955 enable_lto=no
11958 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11960 $as_echo_n "checking if C compiler supports LTO... " >&6; }
11961 OLD_CFLAGS="$CFLAGS"
11962 OLD_LDFLAGS="$LDFLAGS"
11963 LTO_FLAGS="-g -flto -ffat-lto-objects"
11964 CFLAGS="$CFLAGS $LTO_FLAGS"
11965 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11970 main ()
11974 return 0;
11976 _ACEOF
11977 if ac_fn_c_try_link "$LINENO"; then :
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979 $as_echo "yes" >&6; }
11980 lto_cflags=$LTO_FLAGS
11981 lto_ldflags=$LTO_FLAGS
11982 # Extract the first word of "gcc-ar", so it can be a program name with args.
11983 set dummy gcc-ar; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_path_gcc_ar+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 case $gcc_ar in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12005 done
12006 done
12007 IFS=$as_save_IFS
12010 esac
12012 gcc_ar=$ac_cv_path_gcc_ar
12013 if test -n "$gcc_ar"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12015 $as_echo "$gcc_ar" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12022 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12023 set dummy gcc-ranlib; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_gcc_ranlib+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 case $gcc_ranlib in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12050 esac
12052 gcc_ranlib=$ac_cv_path_gcc_ranlib
12053 if test -n "$gcc_ranlib"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12055 $as_echo "$gcc_ranlib" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12069 have_lto=yes
12070 AR="${gcc_ar}"
12071 RANLIB="${gcc_ranlib}"
12073 CFLAGS="${OLD_CFLAGS}"
12074 LDFLAGS="${OLD_LDFLAGS}"
12079 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12080 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12082 # Check whether --enable-ubsan was given.
12083 if test "${enable_ubsan+set}" = set; then :
12084 enableval=$enable_ubsan;
12085 else
12086 enable_ubsan=no
12089 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12091 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12092 OLD_CFLAGS="$CFLAGS"
12093 OLD_LDFLAGS="$LDFLAGS"
12094 UBSAN_FLAGS="-fsanitize=undefined"
12095 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12096 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12101 main ()
12105 return 0;
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12111 ubsan_cflags=$UBSAN_FLAGS
12112 ubsan_ldflags=$UBSAN_FLAGS
12113 have_ubsan=yes
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 CFLAGS="${OLD_CFLAGS}"
12121 LDFLAGS="${OLD_LDFLAGS}"
12126 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12127 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12129 # Check whether --enable-addrsan was given.
12130 if test "${enable_addrsan+set}" = set; then :
12131 enableval=$enable_addrsan;
12132 else
12133 enable_addrsan=no
12136 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12138 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12139 OLD_CFLAGS="$CFLAGS"
12140 OLD_LDFLAGS="$LDFLAGS"
12141 ADDRSAN_FLAGS="-fsanitize=address"
12142 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12143 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12148 main ()
12152 return 0;
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158 addrsan_cflags=$ADDRSAN_FLAGS
12159 addrsan_ldflags=$ADDRSAN_FLAGS
12160 have_addrsan=yes
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 CFLAGS="${OLD_CFLAGS}"
12168 LDFLAGS="${OLD_LDFLAGS}"
12173 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12174 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12176 # Check whether --enable-threadsan was given.
12177 if test "${enable_threadsan+set}" = set; then :
12178 enableval=$enable_threadsan;
12179 else
12180 enable_threadsan=no
12183 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12185 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12186 OLD_CFLAGS="$CFLAGS"
12187 OLD_LDFLAGS="$LDFLAGS"
12188 THREADSAN_FLAGS="-fsanitize=thread"
12189 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12190 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12195 main ()
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204 $as_echo "yes" >&6; }
12205 threadsan_cflags=$THREADSAN_FLAGS
12206 threadsan_ldflags=$THREADSAN_FLAGS
12207 have_threadsan=yes
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS="${OLD_CFLAGS}"
12215 LDFLAGS="${OLD_LDFLAGS}"
12220 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12221 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12223 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12225 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12227 LINUX_CMT="#"
12228 CYGWIN_CMT="#"
12229 UNIX_CMT=
12230 case "$host_os" in
12231 linux*)
12232 LINUX_CMT=
12234 cygwin)
12235 CYGWIN_CMT=
12236 UNIX_CMT="#"
12238 esac
12242 E2SCRUB_CMT="$LINUX_CMT"
12244 case "$host_os" in
12245 linux* | gnu* | k*bsd*-gnu)
12246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12247 root_prefix="";
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12249 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12252 esac
12253 case "$host_os" in
12254 linux* | gnu* | k*bsd*-gnu)
12255 if test "$prefix" = NONE ; then
12256 prefix="/usr";
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12258 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12259 if test "$mandir" = '${prefix}/man' ; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12261 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
12262 mandir=/usr/share/man
12266 esac
12267 if test "$root_prefix" = NONE ; then
12268 if test "$prefix" = NONE ; then
12269 root_prefix="$ac_default_prefix"
12270 else
12271 root_prefix="$prefix"
12273 root_bindir=$bindir
12274 root_sbindir=$sbindir
12275 root_libdir=$libdir
12276 root_sysconfdir=$sysconfdir
12277 else
12278 root_bindir='${root_prefix}/bin'
12279 root_sbindir='${root_prefix}/sbin'
12280 root_libdir='${root_prefix}/lib'
12281 root_sysconfdir='${root_prefix}/etc'
12283 if test "$bindir" != '${exec_prefix}/bin'; then
12284 root_bindir=$bindir
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12286 $as_echo "Setting root_bindir to $root_bindir" >&6; }
12288 if test "$sbindir" != '${exec_prefix}/sbin'; then
12289 root_sbindir=$sbindir
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12291 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12293 if test "$libdir" != '${exec_prefix}/lib'; then
12294 root_libdir=$libdir
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12296 $as_echo "Setting root_libdir to $root_libdir" >&6; }
12298 if test "$sysconfdir" != '${prefix}/etc'; then
12299 root_sysconfdir=$sysconfdir
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12301 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12309 # Check whether --with-multiarch was given.
12310 if test "${with_multiarch+set}" = set; then :
12311 withval=$with_multiarch; if test "$withval" = "lib64"; then
12312 libdir=/usr/lib64
12313 root_libdir=/lib64
12314 else
12315 libdir=$libdir/$withval
12316 root_libdir=$root_libdir/$withval
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12322 $as_echo_n "checking whether we can link with -static... " >&6; }
12323 if ${ac_cv_e2fsprogs_use_static+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329 #include <stdio.h>
12331 main ()
12333 fflush(stdout);
12335 return 0;
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_e2fsprogs_use_static=yes
12340 else
12341 ac_cv_e2fsprogs_use_static=no
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LDFLAGS=$SAVE_LDFLAGS
12348 case "$host_os" in
12349 solaris2.*)
12350 ac_cv_e2fsprogs_use_static=no
12352 esac
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12354 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12355 if test $ac_cv_e2fsprogs_use_static = yes; then
12356 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12359 case "$host_os" in
12360 darwin*)
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12362 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12364 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12367 esac
12368 if test "$cross_compiling" = yes ; then
12369 DO_TEST_SUITE=
12370 else
12371 DO_TEST_SUITE=check
12374 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12375 if test -n "$CPPFLAGS" ; then
12376 INCLUDES="$INCLUDES $CPPFLAGS"
12378 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12379 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12381 if test -n "$WITH_DIET_LIBC" ; then
12382 INCLUDES="$INCLUDES -D_REENTRANT"
12385 if test $cross_compiling = no; then
12386 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12387 BUILD_LDFLAGS="$LDFLAGS"
12391 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12392 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12393 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12399 # Check whether --with-udev_rules_dir was given.
12400 if test "${with_udev_rules_dir+set}" = set; then :
12401 withval=$with_udev_rules_dir;
12402 else
12403 with_udev_rules_dir=yes
12406 if test "x${with_udev_rules_dir}" != "xno"; then :
12408 if test "x${with_udev_rules_dir}" = "xyes"; then :
12411 pkg_failed=no
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12413 $as_echo_n "checking for udev... " >&6; }
12415 if test -n "$udev_CFLAGS"; then
12416 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12417 elif test -n "$PKG_CONFIG"; then
12418 if test -n "$PKG_CONFIG" && \
12419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12420 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; }; then
12424 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12425 test "x$?" != "x0" && pkg_failed=yes
12426 else
12427 pkg_failed=yes
12429 else
12430 pkg_failed=untried
12432 if test -n "$udev_LIBS"; then
12433 pkg_cv_udev_LIBS="$udev_LIBS"
12434 elif test -n "$PKG_CONFIG"; then
12435 if test -n "$PKG_CONFIG" && \
12436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12437 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12438 ac_status=$?
12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440 test $ac_status = 0; }; then
12441 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12442 test "x$?" != "x0" && pkg_failed=yes
12443 else
12444 pkg_failed=yes
12446 else
12447 pkg_failed=untried
12452 if test $pkg_failed = yes; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12457 _pkg_short_errors_supported=yes
12458 else
12459 _pkg_short_errors_supported=no
12461 if test $_pkg_short_errors_supported = yes; then
12462 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12463 else
12464 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12466 # Put the nasty error message in config.log where it belongs
12467 echo "$udev_PKG_ERRORS" >&5
12470 with_udev_rules_dir=""
12472 elif test $pkg_failed = untried; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474 $as_echo "no" >&6; }
12476 with_udev_rules_dir=""
12478 else
12479 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12480 udev_LIBS=$pkg_cv_udev_LIBS
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482 $as_echo "yes" >&6; }
12484 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12490 $as_echo_n "checking for udev rules dir... " >&6; }
12491 pkg_udev_rules_dir="${with_udev_rules_dir}"
12492 if test -n "${pkg_udev_rules_dir}"; then :
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12495 $as_echo "${pkg_udev_rules_dir}" >&6; }
12496 have_udev="yes"
12498 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 have_udev="no"
12506 else
12508 have_udev="disabled"
12515 # Check whether --with-crond_dir was given.
12516 if test "${with_crond_dir+set}" = set; then :
12517 withval=$with_crond_dir;
12518 else
12519 with_crond_dir=yes
12522 if test "x${with_crond_dir}" != "xno"; then :
12524 if test "x${with_crond_dir}" = "xyes"; then :
12526 if test -d "/etc/cron.d"; then :
12527 with_crond_dir="/etc/cron.d"
12528 else
12529 have_crond="no"; with_crond_dir=""
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12534 $as_echo_n "checking for system crontab dir... " >&6; }
12535 crond_dir="${with_crond_dir}"
12536 if test -n "${crond_dir}"; then :
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12539 $as_echo "${crond_dir}" >&6; }
12540 have_crond="yes"
12542 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 have_crond="no"
12550 else
12552 have_crond="disabled"
12559 # Check whether --with-systemd_unit_dir was given.
12560 if test "${with_systemd_unit_dir+set}" = set; then :
12561 withval=$with_systemd_unit_dir;
12562 else
12563 with_systemd_unit_dir=yes
12566 if test "x${with_systemd_unit_dir}" != "xno"; then :
12568 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12571 pkg_failed=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12573 $as_echo_n "checking for systemd... " >&6; }
12575 if test -n "$systemd_CFLAGS"; then
12576 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12577 elif test -n "$PKG_CONFIG"; then
12578 if test -n "$PKG_CONFIG" && \
12579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12580 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583 test $ac_status = 0; }; then
12584 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12585 test "x$?" != "x0" && pkg_failed=yes
12586 else
12587 pkg_failed=yes
12589 else
12590 pkg_failed=untried
12592 if test -n "$systemd_LIBS"; then
12593 pkg_cv_systemd_LIBS="$systemd_LIBS"
12594 elif test -n "$PKG_CONFIG"; then
12595 if test -n "$PKG_CONFIG" && \
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12597 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12598 ac_status=$?
12599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600 test $ac_status = 0; }; then
12601 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12602 test "x$?" != "x0" && pkg_failed=yes
12603 else
12604 pkg_failed=yes
12606 else
12607 pkg_failed=untried
12612 if test $pkg_failed = yes; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12617 _pkg_short_errors_supported=yes
12618 else
12619 _pkg_short_errors_supported=no
12621 if test $_pkg_short_errors_supported = yes; then
12622 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12623 else
12624 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12626 # Put the nasty error message in config.log where it belongs
12627 echo "$systemd_PKG_ERRORS" >&5
12630 with_systemd_unit_dir=""
12632 elif test $pkg_failed = untried; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12636 with_systemd_unit_dir=""
12638 else
12639 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12640 systemd_LIBS=$pkg_cv_systemd_LIBS
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12644 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12651 $as_echo_n "checking for systemd system unit dir... " >&6; }
12652 systemd_system_unit_dir="${with_systemd_unit_dir}"
12653 if test -n "${systemd_system_unit_dir}"; then :
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12656 $as_echo "${systemd_system_unit_dir}" >&6; }
12657 have_systemd="yes"
12659 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 have_systemd="no"
12667 else
12669 have_systemd="disabled"
12675 test -d lib || mkdir lib
12676 test -d include || mkdir include
12677 test -d include/linux || mkdir include/linux
12678 test -d include/asm || mkdir include/asm
12679 if test -z "$UUID_CMT" ; then
12680 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12681 lib/uuid/uuid_types.h"
12683 if test -z "$BLKID_CMT" ; then
12684 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12685 lib/blkid/blkid_types.h"
12687 for i in MCONFIG Makefile \
12688 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12689 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12690 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12691 $uuid_out_list $blkid_out_list lib/support/Makefile \
12692 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12693 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12694 debugfs/Makefile tests/Makefile tests/progs/Makefile \
12695 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12696 if test -d `dirname ${srcdir}/$i` ; then
12697 outlist="$outlist $i"
12699 done
12700 ac_config_files="$ac_config_files $outlist"
12702 cat >confcache <<\_ACEOF
12703 # This file is a shell script that caches the results of configure
12704 # tests run on this system so they can be shared between configure
12705 # scripts and configure runs, see configure's option --config-cache.
12706 # It is not useful on other systems. If it contains results you don't
12707 # want to keep, you may remove or edit it.
12709 # config.status only pays attention to the cache file if you give it
12710 # the --recheck option to rerun configure.
12712 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12713 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12714 # following values.
12716 _ACEOF
12718 # The following way of writing the cache mishandles newlines in values,
12719 # but we know of no workaround that is simple, portable, and efficient.
12720 # So, we kill variables containing newlines.
12721 # Ultrix sh set writes to stderr and can't be redirected directly,
12722 # and sets the high bit in the cache file unless we assign to the vars.
12724 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12725 eval ac_val=\$$ac_var
12726 case $ac_val in #(
12727 *${as_nl}*)
12728 case $ac_var in #(
12729 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12731 esac
12732 case $ac_var in #(
12733 _ | IFS | as_nl) ;; #(
12734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12735 *) { eval $ac_var=; unset $ac_var;} ;;
12736 esac ;;
12737 esac
12738 done
12740 (set) 2>&1 |
12741 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12742 *${as_nl}ac_space=\ *)
12743 # `set' does not quote correctly, so add quotes: double-quote
12744 # substitution turns \\\\ into \\, and sed turns \\ into \.
12745 sed -n \
12746 "s/'/'\\\\''/g;
12747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12748 ;; #(
12750 # `set' quotes correctly as required by POSIX, so do not add quotes.
12751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12753 esac |
12754 sort
12756 sed '
12757 /^ac_cv_env_/b end
12758 t clear
12759 :clear
12760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12761 t end
12762 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12763 :end' >>confcache
12764 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12765 if test -w "$cache_file"; then
12766 if test "x$cache_file" != "x/dev/null"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12768 $as_echo "$as_me: updating cache $cache_file" >&6;}
12769 if test ! -f "$cache_file" || test -h "$cache_file"; then
12770 cat confcache >"$cache_file"
12771 else
12772 case $cache_file in #(
12773 */* | ?:*)
12774 mv -f confcache "$cache_file"$$ &&
12775 mv -f "$cache_file"$$ "$cache_file" ;; #(
12777 mv -f confcache "$cache_file" ;;
12778 esac
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12783 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12786 rm -f confcache
12788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12789 # Let make expand exec_prefix.
12790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12792 DEFS=-DHAVE_CONFIG_H
12794 ac_libobjs=
12795 ac_ltlibobjs=
12797 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12798 # 1. Remove the extension, and $U if already installed.
12799 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12800 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12802 # will be set to the directory where LIBOBJS objects are built.
12803 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12804 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12805 done
12806 LIBOBJS=$ac_libobjs
12808 LTLIBOBJS=$ac_ltlibobjs
12813 : "${CONFIG_STATUS=./config.status}"
12814 ac_write_fail=0
12815 ac_clean_files_save=$ac_clean_files
12816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12819 as_write_fail=0
12820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12821 #! $SHELL
12822 # Generated by $as_me.
12823 # Run this file to recreate the current configuration.
12824 # Compiler output produced by configure, useful for debugging
12825 # configure, is in config.log if it exists.
12827 debug=false
12828 ac_cs_recheck=false
12829 ac_cs_silent=false
12831 SHELL=\${CONFIG_SHELL-$SHELL}
12832 export SHELL
12833 _ASEOF
12834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12835 ## -------------------- ##
12836 ## M4sh Initialization. ##
12837 ## -------------------- ##
12839 # Be more Bourne compatible
12840 DUALCASE=1; export DUALCASE # for MKS sh
12841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12842 emulate sh
12843 NULLCMD=:
12844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12845 # is contrary to our usage. Disable this feature.
12846 alias -g '${1+"$@"}'='"$@"'
12847 setopt NO_GLOB_SUBST
12848 else
12849 case `(set -o) 2>/dev/null` in #(
12850 *posix*) :
12851 set -o posix ;; #(
12852 *) :
12854 esac
12858 as_nl='
12860 export as_nl
12861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12865 # Prefer a ksh shell builtin over an external printf program on Solaris,
12866 # but without wasting forks for bash or zsh.
12867 if test -z "$BASH_VERSION$ZSH_VERSION" \
12868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12869 as_echo='print -r --'
12870 as_echo_n='print -rn --'
12871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12872 as_echo='printf %s\n'
12873 as_echo_n='printf %s'
12874 else
12875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12877 as_echo_n='/usr/ucb/echo -n'
12878 else
12879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12880 as_echo_n_body='eval
12881 arg=$1;
12882 case $arg in #(
12883 *"$as_nl"*)
12884 expr "X$arg" : "X\\(.*\\)$as_nl";
12885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12886 esac;
12887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12889 export as_echo_n_body
12890 as_echo_n='sh -c $as_echo_n_body as_echo'
12892 export as_echo_body
12893 as_echo='sh -c $as_echo_body as_echo'
12896 # The user is always right.
12897 if test "${PATH_SEPARATOR+set}" != set; then
12898 PATH_SEPARATOR=:
12899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12901 PATH_SEPARATOR=';'
12906 # IFS
12907 # We need space, tab and new line, in precisely that order. Quoting is
12908 # there to prevent editors from complaining about space-tab.
12909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12910 # splitting by setting IFS to empty value.)
12911 IFS=" "" $as_nl"
12913 # Find who we are. Look in the path if we contain no directory separator.
12914 as_myself=
12915 case $0 in #((
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12923 done
12924 IFS=$as_save_IFS
12927 esac
12928 # We did not find ourselves, most probably we were run as `sh COMMAND'
12929 # in which case we are not to be found in the path.
12930 if test "x$as_myself" = x; then
12931 as_myself=$0
12933 if test ! -f "$as_myself"; then
12934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12935 exit 1
12938 # Unset variables that we do not need and which cause bugs (e.g. in
12939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12940 # suppresses any "Segmentation fault" message there. '((' could
12941 # trigger a bug in pdksh 5.2.14.
12942 for as_var in BASH_ENV ENV MAIL MAILPATH
12943 do eval test x\${$as_var+set} = xset \
12944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12945 done
12946 PS1='$ '
12947 PS2='> '
12948 PS4='+ '
12950 # NLS nuisances.
12951 LC_ALL=C
12952 export LC_ALL
12953 LANGUAGE=C
12954 export LANGUAGE
12956 # CDPATH.
12957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12961 # ----------------------------------------
12962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12964 # script with STATUS, using 1 if that was 0.
12965 as_fn_error ()
12967 as_status=$1; test $as_status -eq 0 && as_status=1
12968 if test "$4"; then
12969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12972 $as_echo "$as_me: error: $2" >&2
12973 as_fn_exit $as_status
12974 } # as_fn_error
12977 # as_fn_set_status STATUS
12978 # -----------------------
12979 # Set $? to STATUS, without forking.
12980 as_fn_set_status ()
12982 return $1
12983 } # as_fn_set_status
12985 # as_fn_exit STATUS
12986 # -----------------
12987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12988 as_fn_exit ()
12990 set +e
12991 as_fn_set_status $1
12992 exit $1
12993 } # as_fn_exit
12995 # as_fn_unset VAR
12996 # ---------------
12997 # Portably unset VAR.
12998 as_fn_unset ()
13000 { eval $1=; unset $1;}
13002 as_unset=as_fn_unset
13003 # as_fn_append VAR VALUE
13004 # ----------------------
13005 # Append the text in VALUE to the end of the definition contained in VAR. Take
13006 # advantage of any shell optimizations that allow amortized linear growth over
13007 # repeated appends, instead of the typical quadratic growth present in naive
13008 # implementations.
13009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13010 eval 'as_fn_append ()
13012 eval $1+=\$2
13014 else
13015 as_fn_append ()
13017 eval $1=\$$1\$2
13019 fi # as_fn_append
13021 # as_fn_arith ARG...
13022 # ------------------
13023 # Perform arithmetic evaluation on the ARGs, and store the result in the
13024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13025 # must be portable across $(()) and expr.
13026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13027 eval 'as_fn_arith ()
13029 as_val=$(( $* ))
13031 else
13032 as_fn_arith ()
13034 as_val=`expr "$@" || test $? -eq 1`
13036 fi # as_fn_arith
13039 if expr a : '\(a\)' >/dev/null 2>&1 &&
13040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13041 as_expr=expr
13042 else
13043 as_expr=false
13046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13047 as_basename=basename
13048 else
13049 as_basename=false
13052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13053 as_dirname=dirname
13054 else
13055 as_dirname=false
13058 as_me=`$as_basename -- "$0" ||
13059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13060 X"$0" : 'X\(//\)$' \| \
13061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13062 $as_echo X/"$0" |
13063 sed '/^.*\/\([^/][^/]*\)\/*$/{
13064 s//\1/
13067 /^X\/\(\/\/\)$/{
13068 s//\1/
13071 /^X\/\(\/\).*/{
13072 s//\1/
13075 s/.*/./; q'`
13077 # Avoid depending upon Character Ranges.
13078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13081 as_cr_digits='0123456789'
13082 as_cr_alnum=$as_cr_Letters$as_cr_digits
13084 ECHO_C= ECHO_N= ECHO_T=
13085 case `echo -n x` in #(((((
13086 -n*)
13087 case `echo 'xy\c'` in
13088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13089 xy) ECHO_C='\c';;
13090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13091 ECHO_T=' ';;
13092 esac;;
13094 ECHO_N='-n';;
13095 esac
13097 rm -f conf$$ conf$$.exe conf$$.file
13098 if test -d conf$$.dir; then
13099 rm -f conf$$.dir/conf$$.file
13100 else
13101 rm -f conf$$.dir
13102 mkdir conf$$.dir 2>/dev/null
13104 if (echo >conf$$.file) 2>/dev/null; then
13105 if ln -s conf$$.file conf$$ 2>/dev/null; then
13106 as_ln_s='ln -s'
13107 # ... but there are two gotchas:
13108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13110 # In both cases, we have to default to `cp -pR'.
13111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13112 as_ln_s='cp -pR'
13113 elif ln conf$$.file conf$$ 2>/dev/null; then
13114 as_ln_s=ln
13115 else
13116 as_ln_s='cp -pR'
13118 else
13119 as_ln_s='cp -pR'
13121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13122 rmdir conf$$.dir 2>/dev/null
13125 # as_fn_mkdir_p
13126 # -------------
13127 # Create "$as_dir" as a directory, including parents if necessary.
13128 as_fn_mkdir_p ()
13131 case $as_dir in #(
13132 -*) as_dir=./$as_dir;;
13133 esac
13134 test -d "$as_dir" || eval $as_mkdir_p || {
13135 as_dirs=
13136 while :; do
13137 case $as_dir in #(
13138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13139 *) as_qdir=$as_dir;;
13140 esac
13141 as_dirs="'$as_qdir' $as_dirs"
13142 as_dir=`$as_dirname -- "$as_dir" ||
13143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13144 X"$as_dir" : 'X\(//\)[^/]' \| \
13145 X"$as_dir" : 'X\(//\)$' \| \
13146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13147 $as_echo X"$as_dir" |
13148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149 s//\1/
13152 /^X\(\/\/\)[^/].*/{
13153 s//\1/
13156 /^X\(\/\/\)$/{
13157 s//\1/
13160 /^X\(\/\).*/{
13161 s//\1/
13164 s/.*/./; q'`
13165 test -d "$as_dir" && break
13166 done
13167 test -z "$as_dirs" || eval "mkdir $as_dirs"
13168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13171 } # as_fn_mkdir_p
13172 if mkdir -p . 2>/dev/null; then
13173 as_mkdir_p='mkdir -p "$as_dir"'
13174 else
13175 test -d ./-p && rmdir ./-p
13176 as_mkdir_p=false
13180 # as_fn_executable_p FILE
13181 # -----------------------
13182 # Test if FILE is an executable regular file.
13183 as_fn_executable_p ()
13185 test -f "$1" && test -x "$1"
13186 } # as_fn_executable_p
13187 as_test_x='test -x'
13188 as_executable_p=as_fn_executable_p
13190 # Sed expression to map a string onto a valid CPP name.
13191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13193 # Sed expression to map a string onto a valid variable name.
13194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13197 exec 6>&1
13198 ## ----------------------------------- ##
13199 ## Main body of $CONFIG_STATUS script. ##
13200 ## ----------------------------------- ##
13201 _ASEOF
13202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13205 # Save the log message, to keep $0 and so on meaningful, and to
13206 # report actual input values of CONFIG_FILES etc. instead of their
13207 # values after options handling.
13208 ac_log="
13209 This file was extended by $as_me, which was
13210 generated by GNU Autoconf 2.69. Invocation command line was
13212 CONFIG_FILES = $CONFIG_FILES
13213 CONFIG_HEADERS = $CONFIG_HEADERS
13214 CONFIG_LINKS = $CONFIG_LINKS
13215 CONFIG_COMMANDS = $CONFIG_COMMANDS
13216 $ $0 $@
13218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13221 _ACEOF
13223 case $ac_config_files in *"
13224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13225 esac
13227 case $ac_config_headers in *"
13228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13229 esac
13232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13233 # Files that config.status was made for.
13234 config_files="$ac_config_files"
13235 config_headers="$ac_config_headers"
13236 config_commands="$ac_config_commands"
13238 _ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 ac_cs_usage="\
13242 \`$as_me' instantiates files and other configuration actions
13243 from templates according to the current configuration. Unless the files
13244 and actions are specified as TAGs, all are instantiated by default.
13246 Usage: $0 [OPTION]... [TAG]...
13248 -h, --help print this help, then exit
13249 -V, --version print version number and configuration settings, then exit
13250 --config print configuration, then exit
13251 -q, --quiet, --silent
13252 do not print progress messages
13253 -d, --debug don't remove temporary files
13254 --recheck update $as_me by reconfiguring in the same conditions
13255 --file=FILE[:TEMPLATE]
13256 instantiate the configuration file FILE
13257 --header=FILE[:TEMPLATE]
13258 instantiate the configuration header FILE
13260 Configuration files:
13261 $config_files
13263 Configuration headers:
13264 $config_headers
13266 Configuration commands:
13267 $config_commands
13269 Report bugs to the package provider."
13271 _ACEOF
13272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13274 ac_cs_version="\\
13275 config.status
13276 configured by $0, generated by GNU Autoconf 2.69,
13277 with options \\"\$ac_cs_config\\"
13279 Copyright (C) 2012 Free Software Foundation, Inc.
13280 This config.status script is free software; the Free Software Foundation
13281 gives unlimited permission to copy, distribute and modify it."
13283 ac_pwd='$ac_pwd'
13284 srcdir='$srcdir'
13285 INSTALL='$INSTALL'
13286 MKDIR_P='$MKDIR_P'
13287 AWK='$AWK'
13288 test -n "\$AWK" || AWK=awk
13289 _ACEOF
13291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292 # The default lists apply if the user does not specify any file.
13293 ac_need_defaults=:
13294 while test $# != 0
13296 case $1 in
13297 --*=?*)
13298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13300 ac_shift=:
13302 --*=)
13303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13304 ac_optarg=
13305 ac_shift=:
13308 ac_option=$1
13309 ac_optarg=$2
13310 ac_shift=shift
13312 esac
13314 case $ac_option in
13315 # Handling of the options.
13316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13317 ac_cs_recheck=: ;;
13318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13319 $as_echo "$ac_cs_version"; exit ;;
13320 --config | --confi | --conf | --con | --co | --c )
13321 $as_echo "$ac_cs_config"; exit ;;
13322 --debug | --debu | --deb | --de | --d | -d )
13323 debug=: ;;
13324 --file | --fil | --fi | --f )
13325 $ac_shift
13326 case $ac_optarg in
13327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13328 '') as_fn_error $? "missing file argument" ;;
13329 esac
13330 as_fn_append CONFIG_FILES " '$ac_optarg'"
13331 ac_need_defaults=false;;
13332 --header | --heade | --head | --hea )
13333 $ac_shift
13334 case $ac_optarg in
13335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13336 esac
13337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13338 ac_need_defaults=false;;
13339 --he | --h)
13340 # Conflict between --help and --header
13341 as_fn_error $? "ambiguous option: \`$1'
13342 Try \`$0 --help' for more information.";;
13343 --help | --hel | -h )
13344 $as_echo "$ac_cs_usage"; exit ;;
13345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13347 ac_cs_silent=: ;;
13349 # This is an error.
13350 -*) as_fn_error $? "unrecognized option: \`$1'
13351 Try \`$0 --help' for more information." ;;
13353 *) as_fn_append ac_config_targets " $1"
13354 ac_need_defaults=false ;;
13356 esac
13357 shift
13358 done
13360 ac_configure_extra_args=
13362 if $ac_cs_silent; then
13363 exec 6>/dev/null
13364 ac_configure_extra_args="$ac_configure_extra_args --silent"
13367 _ACEOF
13368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13369 if \$ac_cs_recheck; then
13370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13371 shift
13372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13373 CONFIG_SHELL='$SHELL'
13374 export CONFIG_SHELL
13375 exec "\$@"
13378 _ACEOF
13379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13380 exec 5>>config.log
13382 echo
13383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13384 ## Running $as_me. ##
13385 _ASBOX
13386 $as_echo "$ac_log"
13387 } >&5
13389 _ACEOF
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13392 # INIT-COMMANDS
13394 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13395 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13396 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13397 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13398 LINGUAS="${LINGUAS-%UNSET%}"
13401 _ACEOF
13403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13405 # Handling of arguments.
13406 for ac_config_target in $ac_config_targets
13408 case $ac_config_target in
13409 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13410 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13411 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13413 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13414 esac
13415 done
13418 # If the user did not use the arguments to specify the items to instantiate,
13419 # then the envvar interface is used. Set only those that are not.
13420 # We use the long form for the default assignment because of an extremely
13421 # bizarre bug on SunOS 4.1.3.
13422 if $ac_need_defaults; then
13423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13428 # Have a temporary directory for convenience. Make it in the build tree
13429 # simply because there is no reason against having it here, and in addition,
13430 # creating and moving files from /tmp can sometimes cause problems.
13431 # Hook for its removal unless debugging.
13432 # Note that there is a small window in which the directory will not be cleaned:
13433 # after its creation but before its name has been assigned to `$tmp'.
13434 $debug ||
13436 tmp= ac_tmp=
13437 trap 'exit_status=$?
13438 : "${ac_tmp:=$tmp}"
13439 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13441 trap 'as_fn_exit 1' 1 2 13 15
13443 # Create a (secure) tmp directory for tmp files.
13446 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13447 test -d "$tmp"
13448 } ||
13450 tmp=./conf$$-$RANDOM
13451 (umask 077 && mkdir "$tmp")
13452 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13453 ac_tmp=$tmp
13455 # Set up the scripts for CONFIG_FILES section.
13456 # No need to generate them if there are no CONFIG_FILES.
13457 # This happens for instance with `./config.status config.h'.
13458 if test -n "$CONFIG_FILES"; then
13460 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13461 ac_cs_awk_getline=:
13462 ac_cs_awk_pipe_init=
13463 ac_cs_awk_read_file='
13464 while ((getline aline < (F[key])) > 0)
13465 print(aline)
13466 close(F[key])'
13467 ac_cs_awk_pipe_fini=
13468 else
13469 ac_cs_awk_getline=false
13470 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13471 ac_cs_awk_read_file='
13472 print "|#_!!_#|"
13473 print "cat " F[key] " &&"
13474 '$ac_cs_awk_pipe_init
13475 # The final `:' finishes the AND list.
13476 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13478 ac_cr=`echo X | tr X '\015'`
13479 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13480 # But we know of no other shell where ac_cr would be empty at this
13481 # point, so we can use a bashism as a fallback.
13482 if test "x$ac_cr" = x; then
13483 eval ac_cr=\$\'\\r\'
13485 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13486 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13487 ac_cs_awk_cr='\\r'
13488 else
13489 ac_cs_awk_cr=$ac_cr
13492 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13493 _ACEOF
13495 # Create commands to substitute file output variables.
13497 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13498 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13499 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13500 echo "_ACAWK" &&
13501 echo "_ACEOF"
13502 } >conf$$files.sh &&
13503 . ./conf$$files.sh ||
13504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13505 rm -f conf$$files.sh
13508 echo "cat >conf$$subs.awk <<_ACEOF" &&
13509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13510 echo "_ACEOF"
13511 } >conf$$subs.sh ||
13512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13513 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13514 ac_delim='%!_!# '
13515 for ac_last_try in false false false false false :; do
13516 . ./conf$$subs.sh ||
13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13520 if test $ac_delim_n = $ac_delim_num; then
13521 break
13522 elif $ac_last_try; then
13523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13524 else
13525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13527 done
13528 rm -f conf$$subs.sh
13530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13532 _ACEOF
13533 sed -n '
13535 s/^/S["/; s/!.*/"]=/
13538 s/^[^!]*!//
13539 :repl
13540 t repl
13541 s/'"$ac_delim"'$//
13542 t delim
13545 s/\(.\{148\}\)..*/\1/
13546 t more1
13547 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13550 b repl
13551 :more1
13552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13555 s/.\{148\}//
13556 t nl
13557 :delim
13559 s/\(.\{148\}\)..*/\1/
13560 t more2
13561 s/["\\]/\\&/g; s/^/"/; s/$/"/
13564 :more2
13565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13568 s/.\{148\}//
13569 t delim
13570 ' <conf$$subs.awk | sed '
13571 /^[^""]/{
13573 s/\n//
13575 ' >>$CONFIG_STATUS || ac_write_fail=1
13576 rm -f conf$$subs.awk
13577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13578 _ACAWK
13579 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13580 for (key in S) S_is_set[key] = 1
13581 FS = "\a"
13582 \$ac_cs_awk_pipe_init
13585 line = $ 0
13586 nfields = split(line, field, "@")
13587 substed = 0
13588 len = length(field[1])
13589 for (i = 2; i < nfields; i++) {
13590 key = field[i]
13591 keylen = length(key)
13592 if (S_is_set[key]) {
13593 value = S[key]
13594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13595 len += length(value) + length(field[++i])
13596 substed = 1
13597 } else
13598 len += 1 + keylen
13600 if (nfields == 3 && !substed) {
13601 key = field[2]
13602 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13603 \$ac_cs_awk_read_file
13604 next
13607 print line
13609 \$ac_cs_awk_pipe_fini
13610 _ACAWK
13611 _ACEOF
13612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13615 else
13617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13619 _ACEOF
13621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13623 # trailing colons and then remove the whole line if VPATH becomes empty
13624 # (actually we leave an empty line to preserve line numbers).
13625 if test "x$srcdir" = x.; then
13626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13628 s///
13629 s/^/:/
13630 s/[ ]*$/:/
13631 s/:\$(srcdir):/:/g
13632 s/:\${srcdir}:/:/g
13633 s/:@srcdir@:/:/g
13634 s/^:*//
13635 s/:*$//
13637 s/\(=[ ]*\).*/\1/
13639 s/\n//
13640 s/^[^=]*=[ ]*$//
13644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13645 fi # test -n "$CONFIG_FILES"
13647 # Set up the scripts for CONFIG_HEADERS section.
13648 # No need to generate them if there are no CONFIG_HEADERS.
13649 # This happens for instance with `./config.status Makefile'.
13650 if test -n "$CONFIG_HEADERS"; then
13651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13652 BEGIN {
13653 _ACEOF
13655 # Transform confdefs.h into an awk script `defines.awk', embedded as
13656 # here-document in config.status, that substitutes the proper values into
13657 # config.h.in to produce config.h.
13659 # Create a delimiter string that does not exist in confdefs.h, to ease
13660 # handling of long lines.
13661 ac_delim='%!_!# '
13662 for ac_last_try in false false :; do
13663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13664 if test -z "$ac_tt"; then
13665 break
13666 elif $ac_last_try; then
13667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13668 else
13669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13671 done
13673 # For the awk script, D is an array of macro values keyed by name,
13674 # likewise P contains macro parameters if any. Preserve backslash
13675 # newline sequences.
13677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13678 sed -n '
13679 s/.\{148\}/&'"$ac_delim"'/g
13680 t rset
13681 :rset
13682 s/^[ ]*#[ ]*define[ ][ ]*/ /
13683 t def
13685 :def
13686 s/\\$//
13687 t bsnl
13688 s/["\\]/\\&/g
13689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13690 D["\1"]=" \3"/p
13691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13693 :bsnl
13694 s/["\\]/\\&/g
13695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13696 D["\1"]=" \3\\\\\\n"\\/p
13697 t cont
13698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13699 t cont
13701 :cont
13703 s/.\{148\}/&'"$ac_delim"'/g
13704 t clear
13705 :clear
13706 s/\\$//
13707 t bsnlc
13708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13710 :bsnlc
13711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13712 b cont
13713 ' <confdefs.h | sed '
13714 s/'"$ac_delim"'/"\\\
13715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718 for (key in D) D_is_set[key] = 1
13719 FS = "\a"
13721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13722 line = \$ 0
13723 split(line, arg, " ")
13724 if (arg[1] == "#") {
13725 defundef = arg[2]
13726 mac1 = arg[3]
13727 } else {
13728 defundef = substr(arg[1], 2)
13729 mac1 = arg[2]
13731 split(mac1, mac2, "(") #)
13732 macro = mac2[1]
13733 prefix = substr(line, 1, index(line, defundef) - 1)
13734 if (D_is_set[macro]) {
13735 # Preserve the white space surrounding the "#".
13736 print prefix "define", macro P[macro] D[macro]
13737 next
13738 } else {
13739 # Replace #undef with comments. This is necessary, for example,
13740 # in the case of _POSIX_SOURCE, which is predefined and required
13741 # on some systems where configure will not decide to define it.
13742 if (defundef == "undef") {
13743 print "/*", prefix defundef, macro, "*/"
13744 next
13748 { print }
13749 _ACAWK
13750 _ACEOF
13751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13753 fi # test -n "$CONFIG_HEADERS"
13756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13757 shift
13758 for ac_tag
13760 case $ac_tag in
13761 :[FHLC]) ac_mode=$ac_tag; continue;;
13762 esac
13763 case $ac_mode$ac_tag in
13764 :[FHL]*:*);;
13765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13766 :[FH]-) ac_tag=-:-;;
13767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13768 esac
13769 ac_save_IFS=$IFS
13770 IFS=:
13771 set x $ac_tag
13772 IFS=$ac_save_IFS
13773 shift
13774 ac_file=$1
13775 shift
13777 case $ac_mode in
13778 :L) ac_source=$1;;
13779 :[FH])
13780 ac_file_inputs=
13781 for ac_f
13783 case $ac_f in
13784 -) ac_f="$ac_tmp/stdin";;
13785 *) # Look for the file first in the build tree, then in the source tree
13786 # (if the path is not absolute). The absolute path cannot be DOS-style,
13787 # because $ac_f cannot contain `:'.
13788 test -f "$ac_f" ||
13789 case $ac_f in
13790 [\\/$]*) false;;
13791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13792 esac ||
13793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13794 esac
13795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13796 as_fn_append ac_file_inputs " '$ac_f'"
13797 done
13799 # Let's still pretend it is `configure' which instantiates (i.e., don't
13800 # use $as_me), people would be surprised to read:
13801 # /* config.h. Generated by config.status. */
13802 configure_input='Generated from '`
13803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13804 `' by configure.'
13805 if test x"$ac_file" != x-; then
13806 configure_input="$ac_file. $configure_input"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13808 $as_echo "$as_me: creating $ac_file" >&6;}
13810 # Neutralize special characters interpreted by sed in replacement strings.
13811 case $configure_input in #(
13812 *\&* | *\|* | *\\* )
13813 ac_sed_conf_input=`$as_echo "$configure_input" |
13814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13815 *) ac_sed_conf_input=$configure_input;;
13816 esac
13818 case $ac_tag in
13819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13821 esac
13823 esac
13825 ac_dir=`$as_dirname -- "$ac_file" ||
13826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13827 X"$ac_file" : 'X\(//\)[^/]' \| \
13828 X"$ac_file" : 'X\(//\)$' \| \
13829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13830 $as_echo X"$ac_file" |
13831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13832 s//\1/
13835 /^X\(\/\/\)[^/].*/{
13836 s//\1/
13839 /^X\(\/\/\)$/{
13840 s//\1/
13843 /^X\(\/\).*/{
13844 s//\1/
13847 s/.*/./; q'`
13848 as_dir="$ac_dir"; as_fn_mkdir_p
13849 ac_builddir=.
13851 case "$ac_dir" in
13852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13855 # A ".." for each directory in $ac_dir_suffix.
13856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13857 case $ac_top_builddir_sub in
13858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13860 esac ;;
13861 esac
13862 ac_abs_top_builddir=$ac_pwd
13863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13864 # for backward compatibility:
13865 ac_top_builddir=$ac_top_build_prefix
13867 case $srcdir in
13868 .) # We are building in place.
13869 ac_srcdir=.
13870 ac_top_srcdir=$ac_top_builddir_sub
13871 ac_abs_top_srcdir=$ac_pwd ;;
13872 [\\/]* | ?:[\\/]* ) # Absolute name.
13873 ac_srcdir=$srcdir$ac_dir_suffix;
13874 ac_top_srcdir=$srcdir
13875 ac_abs_top_srcdir=$srcdir ;;
13876 *) # Relative name.
13877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13878 ac_top_srcdir=$ac_top_build_prefix$srcdir
13879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13880 esac
13881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13884 case $ac_mode in
13887 # CONFIG_FILE
13890 case $INSTALL in
13891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13893 esac
13894 ac_MKDIR_P=$MKDIR_P
13895 case $MKDIR_P in
13896 [\\/$]* | ?:[\\/]* ) ;;
13897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13898 esac
13899 _ACEOF
13901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13902 # If the template does not know about datarootdir, expand it.
13903 # FIXME: This hack should be removed a few years after 2.60.
13904 ac_datarootdir_hack=; ac_datarootdir_seen=
13905 ac_sed_dataroot='
13906 /datarootdir/ {
13910 /@datadir@/p
13911 /@docdir@/p
13912 /@infodir@/p
13913 /@localedir@/p
13914 /@mandir@/p'
13915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13916 *datarootdir*) ac_datarootdir_seen=yes;;
13917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13920 _ACEOF
13921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13922 ac_datarootdir_hack='
13923 s&@datadir@&$datadir&g
13924 s&@docdir@&$docdir&g
13925 s&@infodir@&$infodir&g
13926 s&@localedir@&$localedir&g
13927 s&@mandir@&$mandir&g
13928 s&\\\${datarootdir}&$datarootdir&g' ;;
13929 esac
13930 _ACEOF
13932 # Neutralize VPATH when `$srcdir' = `.'.
13933 # Shell code in configure.ac might set extrasub.
13934 # FIXME: do we really want to maintain this feature?
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 ac_sed_extra="$ac_vpsub
13937 $extrasub
13938 _ACEOF
13939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13942 s|@configure_input@|$ac_sed_conf_input|;t t
13943 s&@top_builddir@&$ac_top_builddir_sub&;t t
13944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13945 s&@srcdir@&$ac_srcdir&;t t
13946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13947 s&@top_srcdir@&$ac_top_srcdir&;t t
13948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13949 s&@builddir@&$ac_builddir&;t t
13950 s&@abs_builddir@&$ac_abs_builddir&;t t
13951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13952 s&@INSTALL@&$ac_INSTALL&;t t
13953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13954 $ac_datarootdir_hack
13956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13957 if $ac_cs_awk_getline; then
13958 $AWK -f "$ac_tmp/subs.awk"
13959 else
13960 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13961 fi \
13962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13964 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13967 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13969 which seems to be undefined. Please make sure it is defined" >&5
13970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13971 which seems to be undefined. Please make sure it is defined" >&2;}
13973 rm -f "$ac_tmp/stdin"
13974 case $ac_file in
13975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13977 esac \
13978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13982 # CONFIG_HEADER
13984 if test x"$ac_file" != x-; then
13986 $as_echo "/* $configure_input */" \
13987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13988 } >"$ac_tmp/config.h" \
13989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13990 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13992 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13993 else
13994 rm -f "$ac_file"
13995 mv "$ac_tmp/config.h" "$ac_file" \
13996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13998 else
13999 $as_echo "/* $configure_input */" \
14000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14001 || as_fn_error $? "could not create -" "$LINENO" 5
14005 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14006 $as_echo "$as_me: executing $ac_file commands" >&6;}
14008 esac
14011 case $ac_file$ac_mode in
14012 "po-directories":C)
14013 for ac_file in $CONFIG_FILES; do
14014 # Support "outfile[:infile[:infile...]]"
14015 case "$ac_file" in
14016 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14017 esac
14018 # PO directories have a Makefile.in generated from Makefile.in.in.
14019 case "$ac_file" in */Makefile.in)
14020 # Adjust a relative srcdir.
14021 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14022 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14023 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14024 # In autoconf-2.13 it is called $ac_given_srcdir.
14025 # In autoconf-2.50 it is called $srcdir.
14026 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14027 case "$ac_given_srcdir" in
14028 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14029 /*) top_srcdir="$ac_given_srcdir" ;;
14030 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14031 esac
14032 # Treat a directory as a PO directory if and only if it has a
14033 # POTFILES.in file. This allows packages to have multiple PO
14034 # directories under different names or in different locations.
14035 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14036 rm -f "$ac_dir/POTFILES"
14037 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14038 gt_tab=`printf '\t'`
14039 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"
14040 POMAKEFILEDEPS="POTFILES.in"
14041 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14042 # on $ac_dir but don't depend on user-specified configuration
14043 # parameters.
14044 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14045 # The LINGUAS file contains the set of available languages.
14046 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14047 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14049 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14050 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14051 else
14052 # The set of available languages was given in configure.in.
14053 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14055 # Compute POFILES
14056 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14057 # Compute UPDATEPOFILES
14058 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14059 # Compute DUMMYPOFILES
14060 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14061 # Compute GMOFILES
14062 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14063 case "$ac_given_srcdir" in
14064 .) srcdirpre= ;;
14065 *) srcdirpre='$(srcdir)/' ;;
14066 esac
14067 POFILES=
14068 UPDATEPOFILES=
14069 DUMMYPOFILES=
14070 GMOFILES=
14071 for lang in $ALL_LINGUAS; do
14072 POFILES="$POFILES $srcdirpre$lang.po"
14073 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14074 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14075 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14076 done
14077 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14078 # environment variable.
14079 INST_LINGUAS=
14080 if test -n "$ALL_LINGUAS"; then
14081 for presentlang in $ALL_LINGUAS; do
14082 useit=no
14083 if test "%UNSET%" != "$LINGUAS"; then
14084 desiredlanguages="$LINGUAS"
14085 else
14086 desiredlanguages="$ALL_LINGUAS"
14088 for desiredlang in $desiredlanguages; do
14089 # Use the presentlang catalog if desiredlang is
14090 # a. equal to presentlang, or
14091 # b. a variant of presentlang (because in this case,
14092 # presentlang can be used as a fallback for messages
14093 # which are not translated in the desiredlang catalog).
14094 case "$desiredlang" in
14095 "$presentlang"*) useit=yes;;
14096 esac
14097 done
14098 if test $useit = yes; then
14099 INST_LINGUAS="$INST_LINGUAS $presentlang"
14101 done
14103 CATALOGS=
14104 if test -n "$INST_LINGUAS"; then
14105 for lang in $INST_LINGUAS; do
14106 CATALOGS="$CATALOGS $lang.gmo"
14107 done
14109 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14110 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"
14111 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14112 if test -f "$f"; then
14113 case "$f" in
14114 *.orig | *.bak | *~) ;;
14115 *) cat "$f" >> "$ac_dir/Makefile" ;;
14116 esac
14118 done
14121 esac
14122 done ;;
14124 esac
14125 done # for ac_tag
14128 as_fn_exit 0
14129 _ACEOF
14130 ac_clean_files=$ac_clean_files_save
14132 test $ac_write_fail = 0 ||
14133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14136 # configure is writing to config.log, and then calls config.status.
14137 # config.status does its own redirection, appending to config.log.
14138 # Unfortunately, on DOS this fails, as config.log is still kept open
14139 # by configure, so config.status won't be able to write to it; its
14140 # output is simply discarded. So we exec the FD to /dev/null,
14141 # effectively closing config.log, so it can be properly (re)opened and
14142 # appended to by config.status. When coming back to configure, we
14143 # need to make the FD available again.
14144 if test "$no_create" != yes; then
14145 ac_cs_success=:
14146 ac_config_status_args=
14147 test "$silent" = yes &&
14148 ac_config_status_args="$ac_config_status_args --quiet"
14149 exec 5>/dev/null
14150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14151 exec 5>>config.log
14152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14153 # would make configure fail if this is the last instruction.
14154 $ac_cs_success || as_fn_exit 1
14156 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14158 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14161 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi