tests: update expect file for u_direct_io
[e2fsprogs.git] / configure
blob405b7303818e66602c96e4e7cb575d182ff581f3
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 OS_IO_FILE
626 systemd_system_unit_dir
627 have_systemd
628 systemd_LIBS
629 systemd_CFLAGS
630 crond_dir
631 have_crond
632 pkg_udev_rules_dir
633 have_udev
634 udev_LIBS
635 udev_CFLAGS
636 LDFLAGS_SHLIB
637 CFLAGS_STLIB
638 CFLAGS_SHLIB
639 BUILD_LDFLAGS
640 BUILD_CFLAGS
641 INCLUDES
642 DO_TEST_SUITE
643 LDFLAGS_STATIC
644 root_sysconfdir
645 root_libdir
646 root_sbindir
647 root_bindir
648 root_prefix
649 E2SCRUB_CMT
650 UNIX_CMT
651 CYGWIN_CMT
652 LINUX_CMT
653 threadsan_ldflags
654 threadsan_cflags
655 have_threadsan
656 addrsan_ldflags
657 addrsan_cflags
658 have_addrsan
659 ubsan_ldflags
660 ubsan_cflags
661 have_ubsan
662 lto_ldflags
663 lto_cflags
664 have_lto
665 gcc_ranlib
666 gcc_ar
667 UNI_DIFF_OPTS
668 SEM_INIT_LIB
669 FUSE_CMT
670 FUSE_LIB
671 CLOCK_GETTIME_LIB
672 MAGIC_LIB
673 SOCKET_LIB
674 SIZEOF_TIME_T
675 SIZEOF_OFF_T
676 SIZEOF_LONG_LONG
677 SIZEOF_LONG
678 SIZEOF_INT
679 SIZEOF_SHORT
681 BUILD_CC
682 MAKEINFO
683 STRIP
684 RANLIB
686 LDCONFIG
687 PERL
689 CHMOD
693 LN_S
694 mkdir_p
696 ifNotGNUmake
697 ifGNUmake
698 BINARY_TYPE
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 LTLIBICONV
704 LIBICONV
705 INTL_MACOSX_LIBS
706 XGETTEXT_EXTRA_OPTIONS
707 MSGMERGE_FOR_MSGFMT_OPTION
708 MSGMERGE
709 XGETTEXT_015
710 XGETTEXT
711 GMSGFMT_015
712 GMSGFMT
713 MSGFMT
714 GETTEXT_MACRO_VERSION
715 USE_NLS
716 MKDIR_P
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 SET_MAKE
721 VERSION
722 PACKAGE
723 GETTEXT_PACKAGE
724 TDB_MAN_COMMENT
725 TDB_CMT
726 UUIDD_CMT
727 PTHREAD_CFLAGS
728 PTHREAD_LIBS
729 PTHREAD_CC
730 ax_pthread_config
732 E2INITRD_MAN
733 E2INITRD_PROG
734 FSCK_MAN
735 FSCK_PROG
736 DEFRAG_CMT
737 RESIZER_CMT
738 IMAGER_CMT
739 DEBUGFS_CMT
740 SUBSET_CMT
741 ALL_CMT
742 BLKID_CMT
743 DEPPROFILED_LIBBLKID
744 PROFILED_LIBBLKID
745 DEPSTATIC_LIBBLKID
746 STATIC_LIBBLKID
747 DEPLIBBLKID
748 LIBBLKID
749 UUID_CMT
750 DEPPROFILED_LIBUUID
751 PROFILED_LIBUUID
752 DEPSTATIC_LIBUUID
753 STATIC_LIBUUID
754 DEPLIBUUID
755 LIBUUID
756 PKG_CONFIG_LIBDIR
757 PKG_CONFIG_PATH
758 PKG_CONFIG
759 DEV_FEATURES_CMT
760 TEST_IO_CMT
761 PRIVATE_LIBS_CMT
762 LDFLAG_DYNAMIC
763 PROFILED_LIB_EXT
764 STATIC_LIB_EXT
765 LIB_EXT
766 PROFILE_CMT
767 BSDLIB_CMT
768 ELF_CMT
772 LINK_BUILD_FLAGS
773 SYMLINK_RELATIVE
774 LINK_INSTALL_FLAGS
775 MAINTAINER_CMT
776 EGREP
777 GREP
779 RDYNAMIC
780 DLOPEN_LIB
781 OBJEXT
782 EXEEXT
783 ac_ct_CC
784 CPPFLAGS
785 LDFLAGS
786 CFLAGS
788 host_os
789 host_vendor
790 host_cpu
791 host
792 build_os
793 build_vendor
794 build_cpu
795 build
796 E2FSPROGS_DATE
797 E2FSPROGS_PKGVER
798 E2FSPROGS_VERSION
799 E2FSPROGS_DAY
800 E2FSPROGS_MONTH
801 E2FSPROGS_YEAR
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 runstatedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL'
841 ac_subst_files='MCONFIG
842 MAKEFILE_ELF
843 MAKEFILE_BSDLIB
844 MAKEFILE_PROFILE
845 MAKEFILE_LIBRARY
846 ASM_TYPES_HEADER
847 PUBLIC_CONFIG_HEADER'
848 ac_user_opts='
849 enable_option_checking
850 with_diet_libc
851 with_cc
852 with_ccopts
853 with_ldopts
854 with_root_prefix
855 enable_maintainer_mode
856 enable_symlink_install
857 enable_relative_symlinks
858 enable_symlink_relative_symlinks
859 enable_symlink_build
860 enable_verbose_makecmds
861 enable_elf_shlibs
862 enable_bsd_shlibs
863 enable_profile
864 enable_gcov
865 enable_hardening
866 enable_jbd_debug
867 enable_blkid_debug
868 enable_testio_debug
869 enable_developer_features
870 enable_libuuid
871 enable_libblkid
872 enable_subset
873 enable_backtrace
874 enable_debugfs
875 enable_imager
876 enable_resizer
877 enable_defrag
878 enable_fsck
879 enable_e2initrd_helper
880 enable_tls
881 with_pthread
882 enable_uuidd
883 enable_mmp
884 enable_tdb
885 enable_bmap_stats
886 enable_bmap_stats_ops
887 enable_nls
888 with_gnu_ld
889 enable_rpath
890 with_libiconv_prefix
891 with_libintl_prefix
892 enable_fuse2fs
893 enable_lto
894 enable_ubsan
895 enable_addrsan
896 enable_threadsan
897 with_multiarch
898 with_udev_rules_dir
899 with_crond_dir
900 with_systemd_unit_dir
902 ac_precious_vars='build_alias
903 host_alias
904 target_alias
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
911 PKG_CONFIG
912 PKG_CONFIG_PATH
913 PKG_CONFIG_LIBDIR
914 udev_CFLAGS
915 udev_LIBS
916 systemd_CFLAGS
917 systemd_LIBS'
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 runstatedir='${localstatedir}/run'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
969 ac_prev=
970 ac_dashdash=
971 for ac_option
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
980 case $ac_option in
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
984 esac
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
990 ac_dashdash=yes ;;
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1209 -runstatedir | --runstatedir | --runstatedi | --runstated \
1210 | --runstate | --runstat | --runsta | --runst | --runs \
1211 | --run | --ru | --r)
1212 ac_prev=runstatedir ;;
1213 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1214 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1215 | --run=* | --ru=* | --r=*)
1216 runstatedir=$ac_optarg ;;
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1263 -with-* | --with-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 esac
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1335 esac
1336 done
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error $? "missing argument to $ac_option"
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir runstatedir
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error $? "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1420 /^X\(\/\/\)$/{
1421 s//\1/
1424 /^X\(\/\).*/{
1425 s//\1/
1428 s/.*/./; q'`
1429 srcdir=$ac_confdir
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 srcdir=..
1433 else
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
1468 \`configure' configures this package to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1477 Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking ...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 [PREFIX]
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1524 cat <<\_ACEOF
1526 System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529 _ACEOF
1532 if test -n "$ac_init_help"; then
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-maintainer-mode
1541 enable makefile rules useful for maintainers
1542 --enable-symlink-install
1543 use symlinks when installing instead of hard links
1544 --enable-relative-symlinks
1545 use relative symlinks when installing
1547 --enable-symlink-build use symlinks while building instead of hard links
1548 --enable-verbose-makecmds
1549 enable verbose make command output
1550 --enable-elf-shlibs select ELF shared libraries
1551 --enable-bsd-shlibs select BSD shared libraries
1552 --enable-profile build profiling libraries
1553 --enable-gcov build for coverage testing using gcov
1554 --enable-hardening build for coverage testing using gcov
1555 --enable-jbd-debug enable journal debugging
1556 --enable-blkid-debug enable blkid debugging
1557 --disable-testio-debug disable the use of the test I/O manager for
1558 debugging
1559 --enable-developer-features
1560 enable features for use by ext4 developers
1561 --enable-libuuid build and use private uuid library
1562 --enable-libblkid build and use private blkid library
1563 --enable-subset enable subset-only build
1564 --disable-backtrace disable use backtrace
1565 --disable-debugfs disable support of debugfs program
1566 --disable-imager disable support of e2image program
1567 --disable-resizer disable support of e2resize program
1568 --disable-defrag disable support of e4defrag program
1569 --enable-fsck build fsck wrapper program
1570 --enable-e2initrd-helper
1571 build e2initrd-helper program
1572 --disable-tls disable use of thread local support
1573 --disable-uuidd disable building the uuid daemon
1574 --disable-mmp disable support mmp, Multi Mount Protection
1575 --disable-tdb disable tdb support
1576 --disable-bmap-stats disable collection of bitmap stats
1577 --enable-bmap-stats-ops enable collection of additional bitmap stats
1578 --disable-nls do not use Native Language Support
1579 --disable-rpath do not hardcode runtime library paths
1580 --disable-fuse2fs do not build fuse2fs
1581 --enable-lto enable link time optimization
1582 --enable-ubsan enable undefined behavior sanitizer
1583 --enable-addrsan enable address sanitizer
1584 --enable-threadsan enable thread sanitizer
1586 Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-diet-libc use diet libc
1590 --with-cc no longer supported, use CC= instead
1591 --with-ccopts no longer supported, use CFLAGS= instead
1592 --with-ldopts no longer supported, use LDFLAGS= instead
1593 --with-root-prefix=PREFIX
1594 override prefix variable for files to be placed in
1595 the root
1596 --without-pthread disable use of pthread support
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1599 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1600 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1601 --without-libintl-prefix don't search for libintl in includedir and libdir
1602 --with-multiarch=ARCH specify the multiarch triplet
1603 --with-udev-rules-dir[=DIR]
1604 Install udev rules into DIR.
1605 --with-crond-dir[=DIR] Install system crontabs into DIR.
1606 --with-systemd-unit-dir[=DIR]
1607 Install systemd system units into DIR.
1609 Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
1614 LIBS libraries to pass to the linker, e.g. -l<library>
1615 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1616 you have headers in a nonstandard directory <include dir>
1617 CPP C preprocessor
1618 PKG_CONFIG path to pkg-config utility
1619 PKG_CONFIG_PATH
1620 directories to add to pkg-config's search path
1621 PKG_CONFIG_LIBDIR
1622 path overriding pkg-config's built-in search path
1623 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1624 udev_LIBS linker flags for udev, overriding pkg-config
1625 systemd_CFLAGS
1626 C compiler flags for systemd, overriding pkg-config
1627 systemd_LIBS
1628 linker flags for systemd, overriding pkg-config
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.69
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_link ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 test -x conftest$ac_exeext
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=1
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_link
1794 # ac_fn_c_try_cpp LINENO
1795 # ----------------------
1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_cpp ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } > conftest.i && {
1816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_cpp
1831 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1834 # the include files in INCLUDES and setting the cache variable VAR
1835 # accordingly.
1836 ac_fn_c_check_header_mongrel ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if eval \${$3+:} false; then :
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 else
1849 # Is the header compilable?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1851 $as_echo_n "checking $2 usability... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_header_compiler=yes
1859 else
1860 ac_header_compiler=no
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1864 $as_echo "$ac_header_compiler" >&6; }
1866 # Is the header present?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1868 $as_echo_n "checking $2 presence... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_cpp "$LINENO"; then :
1874 ac_header_preproc=yes
1875 else
1876 ac_header_preproc=no
1878 rm -f conftest.err conftest.i conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1880 $as_echo "$ac_header_preproc" >&6; }
1882 # So? What about this header?
1883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884 yes:no: )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1886 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 no:yes:* )
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1892 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1894 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1896 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1898 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 esac
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 eval "$3=\$ac_header_compiler"
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_header_mongrel
1918 # ac_fn_c_try_run LINENO
1919 # ----------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921 # that executables *can* be run.
1922 ac_fn_c_try_run ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>&5
1933 ac_status=$?
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936 { { case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_try") 2>&5
1943 ac_status=$?
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; }; }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: program exited with status $ac_status" >&5
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=$ac_status
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_run
1960 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1961 # -------------------------------------------------------
1962 # Tests whether HEADER exists and can be compiled using the include files in
1963 # INCLUDES, setting the cache variable VAR accordingly.
1964 ac_fn_c_check_header_compile ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1975 #include <$2>
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 eval "$3=yes"
1979 else
1980 eval "$3=no"
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_header_compile
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006 #define $2 innocuous_$2
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2013 #ifdef __STDC__
2014 # include <limits.h>
2015 #else
2016 # include <assert.h>
2017 #endif
2019 #undef $2
2021 /* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024 #ifdef __cplusplus
2025 extern "C"
2026 #endif
2027 char $2 ();
2028 /* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031 #if defined __stub_$2 || defined __stub___$2
2032 choke me
2033 #endif
2036 main ()
2038 return $2 ();
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045 else
2046 eval "$3=no"
2048 rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_func
2058 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2059 # ----------------------------------------------------
2060 # Tries to find if the field MEMBER exists in type AGGR, after including
2061 # INCLUDES, setting cache variable VAR accordingly.
2062 ac_fn_c_check_member ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2066 $as_echo_n "checking for $2.$3... " >&6; }
2067 if eval \${$4+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static $2 ac_aggr;
2077 if (ac_aggr.$3)
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$4=yes"
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static $2 ac_aggr;
2093 if (sizeof ac_aggr.$3)
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$4=yes"
2101 else
2102 eval "$4=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$4
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_member
2115 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2116 # -------------------------------------------
2117 # Tests whether TYPE exists after having included INCLUDES, setting cache
2118 # variable VAR accordingly.
2119 ac_fn_c_check_type ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=no"
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 if (sizeof ($2))
2135 return 0;
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 if (sizeof (($2)))
2148 return 0;
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2155 else
2156 eval "$3=yes"
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_type
2169 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2170 # ---------------------------------------------
2171 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2172 # accordingly.
2173 ac_fn_c_check_decl ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 as_decl_name=`echo $2|sed 's/ *(.*//'`
2177 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2179 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2180 if eval \${$3+:} false; then :
2181 $as_echo_n "(cached) " >&6
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 #ifndef $as_decl_name
2190 #ifdef __cplusplus
2191 (void) $as_decl_use;
2192 #else
2193 (void) $as_decl_name;
2194 #endif
2195 #endif
2198 return 0;
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 eval "$3=yes"
2203 else
2204 eval "$3=no"
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 } # ac_fn_c_check_decl
2215 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2216 # --------------------------------------------
2217 # Tries to find the compile-time value of EXPR in a program that includes
2218 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2219 # computed
2220 ac_fn_c_compute_int ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if test "$cross_compiling" = yes; then
2224 # Depending upon the size, compute the lo and hi bounds.
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2229 main ()
2231 static int test_array [1 - 2 * !(($2) >= 0)];
2232 test_array [0] = 0;
2233 return test_array [0];
2236 return 0;
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_lo=0 ac_mid=0
2241 while :; do
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249 test_array [0] = 0;
2250 return test_array [0];
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_hi=$ac_mid; break
2258 else
2259 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2260 if test $ac_lo -le $ac_mid; then
2261 ac_lo= ac_hi=
2262 break
2264 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2273 main ()
2275 static int test_array [1 - 2 * !(($2) < 0)];
2276 test_array [0] = 0;
2277 return test_array [0];
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_hi=-1 ac_mid=-1
2285 while :; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2290 main ()
2292 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 ac_lo=$ac_mid; break
2302 else
2303 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2304 if test $ac_mid -le $ac_hi; then
2305 ac_lo= ac_hi=
2306 break
2308 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 done
2312 else
2313 ac_lo= ac_hi=
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 # Binary search between lo and hi bounds.
2319 while test "x$ac_lo" != "x$ac_hi"; do
2320 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2325 main ()
2327 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328 test_array [0] = 0;
2329 return test_array [0];
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 ac_hi=$ac_mid
2337 else
2338 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 done
2342 case $ac_lo in #((
2343 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2344 '') ac_retval=1 ;;
2345 esac
2346 else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2350 static long int longval () { return $2; }
2351 static unsigned long int ulongval () { return $2; }
2352 #include <stdio.h>
2353 #include <stdlib.h>
2355 main ()
2358 FILE *f = fopen ("conftest.val", "w");
2359 if (! f)
2360 return 1;
2361 if (($2) < 0)
2363 long int i = longval ();
2364 if (i != ($2))
2365 return 1;
2366 fprintf (f, "%ld", i);
2368 else
2370 unsigned long int i = ulongval ();
2371 if (i != ($2))
2372 return 1;
2373 fprintf (f, "%lu", i);
2375 /* Do not output a trailing newline, as this causes \r\n confusion
2376 on some platforms. */
2377 return ferror (f) || fclose (f) != 0;
2380 return 0;
2382 _ACEOF
2383 if ac_fn_c_try_run "$LINENO"; then :
2384 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2385 else
2386 ac_retval=1
2388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2389 conftest.$ac_objext conftest.beam conftest.$ac_ext
2390 rm -f conftest.val
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394 as_fn_set_status $ac_retval
2396 } # ac_fn_c_compute_int
2397 cat >config.log <<_ACEOF
2398 This file contains any messages produced by compilers while
2399 running configure, to aid debugging if configure makes a mistake.
2401 It was created by $as_me, which was
2402 generated by GNU Autoconf 2.69. Invocation command line was
2404 $ $0 $@
2406 _ACEOF
2407 exec 5>>config.log
2409 cat <<_ASUNAME
2410 ## --------- ##
2411 ## Platform. ##
2412 ## --------- ##
2414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2421 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2423 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2424 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2426 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2427 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2428 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2429 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2431 _ASUNAME
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 $as_echo "PATH: $as_dir"
2439 done
2440 IFS=$as_save_IFS
2442 } >&5
2444 cat >&5 <<_ACEOF
2447 ## ----------- ##
2448 ## Core tests. ##
2449 ## ----------- ##
2451 _ACEOF
2454 # Keep a trace of the command line.
2455 # Strip out --no-create and --no-recursion so they do not pile up.
2456 # Strip out --silent because we don't want to record it for future runs.
2457 # Also quote any args containing shell meta-characters.
2458 # Make two passes to allow for proper duplicate-argument suppression.
2459 ac_configure_args=
2460 ac_configure_args0=
2461 ac_configure_args1=
2462 ac_must_keep_next=false
2463 for ac_pass in 1 2
2465 for ac_arg
2467 case $ac_arg in
2468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2470 | -silent | --silent | --silen | --sile | --sil)
2471 continue ;;
2472 *\'*)
2473 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2474 esac
2475 case $ac_pass in
2476 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2478 as_fn_append ac_configure_args1 " '$ac_arg'"
2479 if test $ac_must_keep_next = true; then
2480 ac_must_keep_next=false # Got value, back to normal.
2481 else
2482 case $ac_arg in
2483 *=* | --config-cache | -C | -disable-* | --disable-* \
2484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2486 | -with-* | --with-* | -without-* | --without-* | --x)
2487 case "$ac_configure_args0 " in
2488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2489 esac
2491 -* ) ac_must_keep_next=true ;;
2492 esac
2494 as_fn_append ac_configure_args " '$ac_arg'"
2496 esac
2497 done
2498 done
2499 { ac_configure_args0=; unset ac_configure_args0;}
2500 { ac_configure_args1=; unset ac_configure_args1;}
2502 # When interrupted or exit'd, cleanup temporary files, and complete
2503 # config.log. We remove comments because anyway the quotes in there
2504 # would cause problems or look ugly.
2505 # WARNING: Use '\'' to represent an apostrophe within the trap.
2506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2507 trap 'exit_status=$?
2508 # Save into config.log some information that might help in debugging.
2510 echo
2512 $as_echo "## ---------------- ##
2513 ## Cache variables. ##
2514 ## ---------------- ##"
2515 echo
2516 # The following way of writing the cache mishandles newlines in values,
2518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in #(
2521 *${as_nl}*)
2522 case $ac_var in #(
2523 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2524 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525 esac
2526 case $ac_var in #(
2527 _ | IFS | as_nl) ;; #(
2528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2529 *) { eval $ac_var=; unset $ac_var;} ;;
2530 esac ;;
2531 esac
2532 done
2533 (set) 2>&1 |
2534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2535 *${as_nl}ac_space=\ *)
2536 sed -n \
2537 "s/'\''/'\''\\\\'\'''\''/g;
2538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539 ;; #(
2541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2543 esac |
2544 sort
2546 echo
2548 $as_echo "## ----------------- ##
2549 ## Output variables. ##
2550 ## ----------------- ##"
2551 echo
2552 for ac_var in $ac_subst_vars
2554 eval ac_val=\$$ac_var
2555 case $ac_val in
2556 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557 esac
2558 $as_echo "$ac_var='\''$ac_val'\''"
2559 done | sort
2560 echo
2562 if test -n "$ac_subst_files"; then
2563 $as_echo "## ------------------- ##
2564 ## File substitutions. ##
2565 ## ------------------- ##"
2566 echo
2567 for ac_var in $ac_subst_files
2569 eval ac_val=\$$ac_var
2570 case $ac_val in
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 esac
2573 $as_echo "$ac_var='\''$ac_val'\''"
2574 done | sort
2575 echo
2578 if test -s confdefs.h; then
2579 $as_echo "## ----------- ##
2580 ## confdefs.h. ##
2581 ## ----------- ##"
2582 echo
2583 cat confdefs.h
2584 echo
2586 test "$ac_signal" != 0 &&
2587 $as_echo "$as_me: caught signal $ac_signal"
2588 $as_echo "$as_me: exit $exit_status"
2589 } >&5
2590 rm -f core *.core core.conftest.* &&
2591 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2592 exit $exit_status
2594 for ac_signal in 1 2 13 15; do
2595 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2596 done
2597 ac_signal=0
2599 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2600 rm -f -r conftest* confdefs.h
2602 $as_echo "/* confdefs.h */" > confdefs.h
2604 # Predefined preprocessor variables.
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_NAME "$PACKAGE_NAME"
2608 _ACEOF
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2612 _ACEOF
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2616 _ACEOF
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_STRING "$PACKAGE_STRING"
2620 _ACEOF
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2624 _ACEOF
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_URL "$PACKAGE_URL"
2628 _ACEOF
2631 # Let the site file select an alternate cache file if it wants to.
2632 # Prefer an explicitly selected file to automatically selected ones.
2633 ac_site_file1=NONE
2634 ac_site_file2=NONE
2635 if test -n "$CONFIG_SITE"; then
2636 # We do not want a PATH search for config.site.
2637 case $CONFIG_SITE in #((
2638 -*) ac_site_file1=./$CONFIG_SITE;;
2639 */*) ac_site_file1=$CONFIG_SITE;;
2640 *) ac_site_file1=./$CONFIG_SITE;;
2641 esac
2642 elif test "x$prefix" != xNONE; then
2643 ac_site_file1=$prefix/share/config.site
2644 ac_site_file2=$prefix/etc/config.site
2645 else
2646 ac_site_file1=$ac_default_prefix/share/config.site
2647 ac_site_file2=$ac_default_prefix/etc/config.site
2649 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2651 test "x$ac_site_file" = xNONE && continue
2652 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2654 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2655 sed 's/^/| /' "$ac_site_file" >&5
2656 . "$ac_site_file" \
2657 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error $? "failed to load site script $ac_site_file
2660 See \`config.log' for more details" "$LINENO" 5; }
2662 done
2664 if test -r "$cache_file"; then
2665 # Some versions of bash will fail to source /dev/null (special files
2666 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2667 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2669 $as_echo "$as_me: loading cache $cache_file" >&6;}
2670 case $cache_file in
2671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2672 *) . "./$cache_file";;
2673 esac
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2677 $as_echo "$as_me: creating cache $cache_file" >&6;}
2678 >$cache_file
2681 gt_needs="$gt_needs "
2682 # Check that the precious variables saved in the cache have kept the same
2683 # value.
2684 ac_cache_corrupted=false
2685 for ac_var in $ac_precious_vars; do
2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687 eval ac_new_set=\$ac_env_${ac_var}_set
2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689 eval ac_new_val=\$ac_env_${ac_var}_value
2690 case $ac_old_set,$ac_new_set in
2691 set,)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,set)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2699 ,);;
2701 if test "x$ac_old_val" != "x$ac_new_val"; then
2702 # differences in whitespace do not lead to failure.
2703 ac_old_val_w=`echo x $ac_old_val`
2704 ac_new_val_w=`echo x $ac_new_val`
2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708 ac_cache_corrupted=:
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712 eval $ac_var=\$ac_old_val
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2715 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2717 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2718 fi;;
2719 esac
2720 # Pass precious variables to config.status.
2721 if test "$ac_new_set" = set; then
2722 case $ac_new_val in
2723 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 *) ac_arg=$ac_var=$ac_new_val ;;
2725 esac
2726 case " $ac_configure_args " in
2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2729 esac
2731 done
2732 if $ac_cache_corrupted; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2737 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 ac_aux_dir=
2752 for ac_dir in config "$srcdir"/config; do
2753 if test -f "$ac_dir/install-sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install-sh -c"
2756 break
2757 elif test -f "$ac_dir/install.sh"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/install.sh -c"
2760 break
2761 elif test -f "$ac_dir/shtool"; then
2762 ac_aux_dir=$ac_dir
2763 ac_install_sh="$ac_aux_dir/shtool install -c"
2764 break
2766 done
2767 if test -z "$ac_aux_dir"; then
2768 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2771 # These three variables are undocumented and unsupported,
2772 # and are intended to be withdrawn in a future Autoconf release.
2773 # They can cause serious problems if a builder's source tree is in a directory
2774 # whose full name contains unusual characters.
2775 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2776 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2777 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2780 ac_config_headers="$ac_config_headers lib/config.h"
2783 MCONFIG=./MCONFIG
2785 BINARY_TYPE=bin
2786 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2787 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2788 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2789 | tr \" " " | awk '{print $1}'`
2790 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2791 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2792 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2794 if expr $YEAR ">" 1900 > /dev/null ; then
2795 E2FSPROGS_YEAR=$YEAR
2796 elif expr $YEAR ">" 90 >/dev/null ; then
2797 E2FSPROGS_YEAR=19$YEAR
2798 else
2799 E2FSPROGS_YEAR=20$YEAR
2802 case $MONTH in
2803 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2804 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2805 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2806 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2807 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2808 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2809 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2810 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2811 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2812 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2813 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2814 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2815 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2816 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2817 esac
2819 base_ver=`echo $E2FSPROGS_VERSION | \
2820 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2822 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2824 case $E2FSPROGS_VERSION in
2825 *-WIP|pre-*)
2826 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2829 E2FSPROGS_PKGVER="$base_ver"
2831 esac
2833 unset DATE MONTH YEAR base_ver pre_vers date_spec
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2835 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2837 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2844 WITH_DIET_LIBC=
2846 # Check whether --with-diet-libc was given.
2847 if test "${with_diet_libc+set}" = set; then :
2848 withval=$with_diet_libc; CC="diet cc -nostdinc"
2849 WITH_DIET_LIBC=yes
2850 if test -z "$LIBS"
2851 then
2852 LIBS="-lcompat"
2853 else
2854 LIBS="$LIBS -lcompat"
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2857 $as_echo "CC=$CC" >&6; }
2859 # Make sure we can run config.sub.
2860 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2861 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2864 $as_echo_n "checking build system type... " >&6; }
2865 if ${ac_cv_build+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 ac_build_alias=$build_alias
2869 test "x$ac_build_alias" = x &&
2870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2871 test "x$ac_build_alias" = x &&
2872 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2873 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2878 $as_echo "$ac_cv_build" >&6; }
2879 case $ac_cv_build in
2880 *-*-*) ;;
2881 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2882 esac
2883 build=$ac_cv_build
2884 ac_save_IFS=$IFS; IFS='-'
2885 set x $ac_cv_build
2886 shift
2887 build_cpu=$1
2888 build_vendor=$2
2889 shift; shift
2890 # Remember, the first character of IFS is used to create $*,
2891 # except with old shells:
2892 build_os=$*
2893 IFS=$ac_save_IFS
2894 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2898 $as_echo_n "checking host system type... " >&6; }
2899 if ${ac_cv_host+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test "x$host_alias" = x; then
2903 ac_cv_host=$ac_cv_build
2904 else
2905 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2911 $as_echo "$ac_cv_host" >&6; }
2912 case $ac_cv_host in
2913 *-*-*) ;;
2914 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2915 esac
2916 host=$ac_cv_host
2917 ac_save_IFS=$IFS; IFS='-'
2918 set x $ac_cv_host
2919 shift
2920 host_cpu=$1
2921 host_vendor=$2
2922 shift; shift
2923 # Remember, the first character of IFS is used to create $*,
2924 # except with old shells:
2925 host_os=$*
2926 IFS=$ac_save_IFS
2927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2930 DLOPEN_LIB=''
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$ac_cv_prog_CC"; then
2976 ac_ct_CC=$CC
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 CC=$ac_ct_CC
3024 else
3025 CC="$ac_cv_prog_CC"
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3090 continue
3092 ac_cv_prog_CC="cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3103 shift
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3108 shift
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3152 IFS=$as_save_IFS
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$CC" && break
3167 done
3169 if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$ac_ct_CC" && break
3211 done
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details" "$LINENO" 5; }
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236 set X $ac_compile
3237 ac_compiler=$2
3238 for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247 ac_status=$?
3248 if test -s conftest.err; then
3249 sed '10a\
3250 ... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
3254 rm -f conftest.er1 conftest.err
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 done
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3274 # of exeext.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276 $as_echo_n "checking whether the C compiler works... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3282 ac_rmfiles=
3283 for ac_file in $ac_files
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 esac
3289 done
3290 rm -f $ac_rmfiles
3292 if { { ac_try="$ac_link_default"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link_default") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3307 # Autoconf.
3308 for ac_file in $ac_files ''
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3314 [ab].out )
3315 # We found the default executable, but exeext='' is most
3316 # certainly right.
3317 break;;
3318 *.* )
3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320 then :; else
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3327 # actually working.
3328 break;;
3330 break;;
3331 esac
3332 done
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335 else
3336 ac_file=''
3338 if test -z "$ac_file"; then :
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error 77 "C compiler cannot create executables
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353 $as_echo_n "checking for C compiler default output file name... " >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 ac_exeext=$ac_cv_exeext
3358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361 $as_echo_n "checking for suffix of executables... " >&6; }
3362 if { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3375 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 # `rm'.
3377 for ac_file in conftest.exe conftest conftest.*; do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 break;;
3383 * ) break;;
3384 esac
3385 done
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details" "$LINENO" 5; }
3392 rm -f conftest conftest$ac_cv_exeext
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394 $as_echo "$ac_cv_exeext" >&6; }
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #include <stdio.h>
3403 main ()
3405 FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3409 return 0;
3411 _ACEOF
3412 ac_clean_files="$ac_clean_files conftest.out"
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 if test "$cross_compiling" != yes; then
3418 { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 if { ac_try='./conftest$ac_cv_exeext'
3430 { { case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_try") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; }; then
3440 cross_compiling=no
3441 else
3442 if test "$cross_compiling" = maybe; then
3443 cross_compiling=yes
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot run C compiled programs.
3448 If you meant to cross compile, use \`--host'.
3449 See \`config.log' for more details" "$LINENO" 5; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454 $as_echo "$cross_compiling" >&6; }
3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if ${ac_cv_objext+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493 done
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if ${ac_cv_c_compiler_gnu+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3520 #ifndef __GNUC__
3521 choke me
3522 #endif
3525 return 0;
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_compiler_gnu=yes
3530 else
3531 ac_compiler_gnu=no
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540 GCC=yes
3541 else
3542 GCC=
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if ${ac_cv_prog_cc_g+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3553 ac_cv_prog_cc_g=no
3554 CFLAGS="-g"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_g=yes
3568 else
3569 CFLAGS=""
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3583 else
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585 CFLAGS="-g"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_g=yes
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3617 else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if ${ac_cv_prog_cc_c89+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 struct stat;
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640 char **p;
3641 int i;
3643 return p[i];
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3676 main ()
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3680 return 0;
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3702 xno)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3723 if ${ac_cv_lib_dl_dlopen+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_check_lib_save_LIBS=$LIBS
3727 LIBS="-ldl $LIBS"
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3731 /* Override any GCC internal prototype to avoid an error.
3732 Use char because int might match the return type of a GCC
3733 builtin and then its argument prototype would still apply. */
3734 #ifdef __cplusplus
3735 extern "C"
3736 #endif
3737 char dlopen ();
3739 main ()
3741 return dlopen ();
3743 return 0;
3745 _ACEOF
3746 if ac_fn_c_try_link "$LINENO"; then :
3747 ac_cv_lib_dl_dlopen=yes
3748 else
3749 ac_cv_lib_dl_dlopen=no
3751 rm -f core conftest.err conftest.$ac_objext \
3752 conftest$ac_exeext conftest.$ac_ext
3753 LIBS=$ac_check_lib_save_LIBS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3757 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3758 DLOPEN_LIB=-ldl
3763 # Check whether --with-cc was given.
3764 if test "${with_cc+set}" = set; then :
3765 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3769 # Check whether --with-ccopts was given.
3770 if test "${with_ccopts+set}" = set; then :
3771 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3775 # Check whether --with-ldopts was given.
3776 if test "${with_ldopts+set}" = set; then :
3777 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_CC+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3807 done
3808 done
3809 IFS=$as_save_IFS
3813 CC=$ac_cv_prog_CC
3814 if test -n "$CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816 $as_echo "$CC" >&6; }
3817 else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3824 if test -z "$ac_cv_prog_CC"; then
3825 ac_ct_CC=$CC
3826 # Extract the first word of "gcc", so it can be a program name with args.
3827 set dummy gcc; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -n "$ac_ct_CC"; then
3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_ac_ct_CC="gcc"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3847 done
3848 done
3849 IFS=$as_save_IFS
3853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854 if test -n "$ac_ct_CC"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856 $as_echo "$ac_ct_CC" >&6; }
3857 else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3862 if test "x$ac_ct_CC" = x; then
3863 CC=""
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866 yes:)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3870 esac
3871 CC=$ac_ct_CC
3873 else
3874 CC="$ac_cv_prog_CC"
3877 if test -z "$CC"; then
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}cc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}cc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3902 IFS=$as_save_IFS
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3918 if test -z "$CC"; then
3919 # Extract the first word of "cc", so it can be a program name with args.
3920 set dummy cc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 else
3929 ac_prog_rejected=no
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3938 ac_prog_rejected=yes
3939 continue
3941 ac_cv_prog_CC="cc"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3947 IFS=$as_save_IFS
3949 if test $ac_prog_rejected = yes; then
3950 # We found a bogon in the path, so make sure we never use it.
3951 set dummy $ac_cv_prog_CC
3952 shift
3953 if test $# != 0; then
3954 # We chose a different compiler from the bogus one.
3955 # However, it has the same basename, so the bogon will be chosen
3956 # first if we set CC to just the basename; use the full file name.
3957 shift
3958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3963 CC=$ac_cv_prog_CC
3964 if test -n "$CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966 $as_echo "$CC" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3974 if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in cl.exe
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 $as_echo "$CC" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4015 test -n "$CC" && break
4016 done
4018 if test -z "$CC"; then
4019 ac_ct_CC=$CC
4020 for ac_prog in cl.exe
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$ac_ct_CC"; then
4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_ac_ct_CC="$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052 $as_echo "$ac_ct_CC" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4059 test -n "$ac_ct_CC" && break
4060 done
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 CC=$ac_ct_CC
4078 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $? "no acceptable C compiler found in \$PATH
4081 See \`config.log' for more details" "$LINENO" 5; }
4083 # Provide some information about the compiler.
4084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4085 set X $ac_compile
4086 ac_compiler=$2
4087 for ac_option in --version -v -V -qversion; do
4088 { { ac_try="$ac_compiler $ac_option >&5"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4096 ac_status=$?
4097 if test -s conftest.err; then
4098 sed '10a\
4099 ... rest of stderr output deleted ...
4100 10q' conftest.err >conftest.er1
4101 cat conftest.er1 >&5
4103 rm -f conftest.er1 conftest.err
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }
4106 done
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4117 main ()
4119 #ifndef __GNUC__
4120 choke me
4121 #endif
4124 return 0;
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_compiler_gnu=yes
4129 else
4130 ac_compiler_gnu=no
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4139 GCC=yes
4140 else
4141 GCC=
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4152 ac_cv_prog_cc_g=no
4153 CFLAGS="-g"
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4158 main ()
4162 return 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_g=yes
4167 else
4168 CFLAGS=""
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4173 main ()
4177 return 0;
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4182 else
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4193 return 0;
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_g=yes
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="-g -O2"
4213 else
4214 CFLAGS="-g"
4216 else
4217 if test "$GCC" = yes; then
4218 CFLAGS="-O2"
4219 else
4220 CFLAGS=
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 ac_cv_prog_cc_c89=no
4229 ac_save_CC=$CC
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <stdarg.h>
4233 #include <stdio.h>
4234 struct stat;
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4239 char **p;
4240 int i;
4242 return p[i];
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4246 char *s;
4247 va_list v;
4248 va_start (v,p);
4249 s = g (p, va_arg (v,int));
4250 va_end (v);
4251 return s;
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4265 #define FOO(x) 'x'
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4272 int argc;
4273 char **argv;
4275 main ()
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4279 return 0;
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
4289 rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC
4296 # AC_CACHE_VAL
4297 case "x$ac_cv_prog_cc_c89" in
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4301 xno)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4308 esac
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 if test "$GCC" = yes; then
4320 RDYNAMIC="-rdynamic"
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4330 # On Suns, sometimes $CPP names a directory.
4331 if test -n "$CPP" && test -d "$CPP"; then
4332 CPP=
4334 if test -z "$CPP"; then
4335 if ${ac_cv_prog_CPP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 # Double quotes because CPP needs to be expanded
4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 ac_preproc_ok=false
4342 for ac_c_preproc_warn_flag in '' yes
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #ifdef __STDC__
4353 # include <limits.h>
4354 #else
4355 # include <assert.h>
4356 #endif
4357 Syntax error
4358 _ACEOF
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4361 else
4362 # Broken: fails on valid input.
4363 continue
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4372 _ACEOF
4373 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: success on invalid input.
4375 continue
4376 else
4377 # Passes both tests.
4378 ac_preproc_ok=:
4379 break
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4383 done
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.i conftest.err conftest.$ac_ext
4386 if $ac_preproc_ok; then :
4387 break
4390 done
4391 ac_cv_prog_CPP=$CPP
4394 CPP=$ac_cv_prog_CPP
4395 else
4396 ac_cv_prog_CPP=$CPP
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4399 $as_echo "$CPP" >&6; }
4400 ac_preproc_ok=false
4401 for ac_c_preproc_warn_flag in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #ifdef __STDC__
4412 # include <limits.h>
4413 #else
4414 # include <assert.h>
4415 #endif
4416 Syntax error
4417 _ACEOF
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4420 else
4421 # Broken: fails on valid input.
4422 continue
4424 rm -f conftest.err conftest.i conftest.$ac_ext
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <ac_nonexistent.h>
4431 _ACEOF
4432 if ac_fn_c_try_cpp "$LINENO"; then :
4433 # Broken: success on invalid input.
4434 continue
4435 else
4436 # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4442 done
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.i conftest.err conftest.$ac_ext
4445 if $ac_preproc_ok; then :
4447 else
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4451 See \`config.log' for more details" "$LINENO" 5; }
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4461 $as_echo_n "checking for additional special compiler flags... " >&6; }
4462 if test "$GCC" = yes
4463 then
4464 case "$host_cpu" in
4465 alpha) addcflags="-mieee" ;;
4466 esac
4468 if test "x$addcflags" != x
4469 then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4471 $as_echo "$addcflags" >&6; }
4472 CFLAGS="$addcflags $CFLAGS"
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4475 $as_echo "(none)" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4479 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4480 if ${ac_cv_path_GREP+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -z "$GREP"; then
4484 ac_path_GREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in grep ggrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4494 as_fn_executable_p "$ac_path_GREP" || continue
4495 # Check for GNU ac_path_GREP and select it if it is found.
4496 # Check for GNU $ac_path_GREP
4497 case `"$ac_path_GREP" --version 2>&1` in
4498 *GNU*)
4499 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4501 ac_count=0
4502 $as_echo_n 0123456789 >"conftest.in"
4503 while :
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 $as_echo 'GREP' >> "conftest.nl"
4509 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 as_fn_arith $ac_count + 1 && ac_count=$as_val
4512 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_GREP="$ac_path_GREP"
4515 ac_path_GREP_max=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4519 done
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521 esac
4523 $ac_path_GREP_found && break 3
4524 done
4525 done
4526 done
4527 IFS=$as_save_IFS
4528 if test -z "$ac_cv_path_GREP"; then
4529 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4531 else
4532 ac_cv_path_GREP=$GREP
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4537 $as_echo "$ac_cv_path_GREP" >&6; }
4538 GREP="$ac_cv_path_GREP"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4542 $as_echo_n "checking for egrep... " >&6; }
4543 if ${ac_cv_path_EGREP+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4547 then ac_cv_path_EGREP="$GREP -E"
4548 else
4549 if test -z "$EGREP"; then
4550 ac_path_EGREP_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in egrep; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4560 as_fn_executable_p "$ac_path_EGREP" || continue
4561 # Check for GNU ac_path_EGREP and select it if it is found.
4562 # Check for GNU $ac_path_EGREP
4563 case `"$ac_path_EGREP" --version 2>&1` in
4564 *GNU*)
4565 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4567 ac_count=0
4568 $as_echo_n 0123456789 >"conftest.in"
4569 while :
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 $as_echo 'EGREP' >> "conftest.nl"
4575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577 as_fn_arith $ac_count + 1 && ac_count=$as_val
4578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_EGREP="$ac_path_EGREP"
4581 ac_path_EGREP_max=$ac_count
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4585 done
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587 esac
4589 $ac_path_EGREP_found && break 3
4590 done
4591 done
4592 done
4593 IFS=$as_save_IFS
4594 if test -z "$ac_cv_path_EGREP"; then
4595 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4597 else
4598 ac_cv_path_EGREP=$EGREP
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4604 $as_echo "$ac_cv_path_EGREP" >&6; }
4605 EGREP="$ac_cv_path_EGREP"
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4609 $as_echo_n "checking for ANSI C header files... " >&6; }
4610 if ${ac_cv_header_stdc+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 #include <stdlib.h>
4616 #include <stdarg.h>
4617 #include <string.h>
4618 #include <float.h>
4621 main ()
4625 return 0;
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629 ac_cv_header_stdc=yes
4630 else
4631 ac_cv_header_stdc=no
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test $ac_cv_header_stdc = yes; then
4636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <string.h>
4641 _ACEOF
4642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 $EGREP "memchr" >/dev/null 2>&1; then :
4645 else
4646 ac_cv_header_stdc=no
4648 rm -f conftest*
4652 if test $ac_cv_header_stdc = yes; then
4653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdlib.h>
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "free" >/dev/null 2>&1; then :
4662 else
4663 ac_cv_header_stdc=no
4665 rm -f conftest*
4669 if test $ac_cv_header_stdc = yes; then
4670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671 if test "$cross_compiling" = yes; then :
4673 else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <ctype.h>
4677 #include <stdlib.h>
4678 #if ((' ' & 0x0FF) == 0x020)
4679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4681 #else
4682 # define ISLOWER(c) \
4683 (('a' <= (c) && (c) <= 'i') \
4684 || ('j' <= (c) && (c) <= 'r') \
4685 || ('s' <= (c) && (c) <= 'z'))
4686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4687 #endif
4689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691 main ()
4693 int i;
4694 for (i = 0; i < 256; i++)
4695 if (XOR (islower (i), ISLOWER (i))
4696 || toupper (i) != TOUPPER (i))
4697 return 2;
4698 return 0;
4700 _ACEOF
4701 if ac_fn_c_try_run "$LINENO"; then :
4703 else
4704 ac_cv_header_stdc=no
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707 conftest.$ac_objext conftest.beam conftest.$ac_ext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4713 $as_echo "$ac_cv_header_stdc" >&6; }
4714 if test $ac_cv_header_stdc = yes; then
4716 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4722 inttypes.h stdint.h unistd.h
4723 do :
4724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4725 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4728 cat >>confdefs.h <<_ACEOF
4729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 _ACEOF
4734 done
4738 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4739 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4740 MINIX=yes
4741 else
4742 MINIX=
4746 if test "$MINIX" = yes; then
4748 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4751 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4754 $as_echo "#define _MINIX 1" >>confdefs.h
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4760 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4761 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4770 main ()
4774 return 0;
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_safe_to_define___extensions__=yes
4779 else
4780 ac_cv_safe_to_define___extensions__=no
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4785 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4786 test $ac_cv_safe_to_define___extensions__ = yes &&
4787 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4789 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4791 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4793 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4795 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4798 LIB_EXT=.a
4799 STATIC_LIB_EXT=.a
4800 PROFILED_LIB_EXT=.a
4802 # Check whether --with-root-prefix was given.
4803 if test "${with_root_prefix+set}" = set; then :
4804 withval=$with_root_prefix; root_prefix=$withval
4805 else
4806 root_prefix=NONE
4808 # Check whether --enable-maintainer-mode was given.
4809 if test "${enable_maintainer_mode+set}" = set; then :
4810 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4811 then
4812 MAINTAINER_CMT=#
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4814 $as_echo "Disabling maintainer mode" >&6; }
4815 else
4816 MAINTAINER_CMT=
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4818 $as_echo "Enabling maintainer mode" >&6; }
4821 else
4822 MAINTAINER_CMT=#
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4824 $as_echo "Disabling maintainer mode by default" >&6; }
4829 # Check whether --enable-symlink-install was given.
4830 if test "${enable_symlink_install+set}" = set; then :
4831 enableval=$enable_symlink_install; if test "$enableval" = "no"
4832 then
4833 LINK_INSTALL_FLAGS=-f
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4835 $as_echo "Disabling symlinks for install" >&6; }
4836 else
4837 LINK_INSTALL_FLAGS=-sf
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4839 $as_echo "Enabling symlinks for install" >&6; }
4842 else
4843 LINK_INSTALL_FLAGS=-f
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4845 $as_echo "Disabling symlinks for install by default" >&6; }
4850 relative_symlink_defined=
4851 # Check whether --enable-relative-symlinks was given.
4852 if test "${enable_relative_symlinks+set}" = set; then :
4853 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4854 then
4855 SYMLINK_RELATIVE=
4856 relative_symlink_defined=yes
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4858 $as_echo "Disabling relative symlinks for install" >&6; }
4859 else
4860 SYMLINK_RELATIVE=--relative
4861 relative_symlink_defined=yes
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4863 $as_echo "Enabling relative symlinks for install" >&6; }
4867 # Check whether --enable-symlink-relative-symlinks was given.
4868 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4869 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4870 then
4871 SYMLINK_RELATIVE=yes
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4873 $as_echo "Disabling relative symlinks for install" >&6; }
4874 else
4875 SYMLINK_RELATIVE=--relative
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4877 $as_echo "Enabling relative symlinks for install" >&6; }
4880 else
4881 if test -z "$relative_symlink_defined"
4882 then
4883 SYMLINK_RELATIVE=
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4885 $as_echo "Disabling relative symlinks for install by default" >&6; }
4891 # Check whether --enable-symlink-build was given.
4892 if test "${enable_symlink_build+set}" = set; then :
4893 enableval=$enable_symlink_build; if test "$enableval" = "no"
4894 then
4895 LINK_BUILD_FLAGS=
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4897 $as_echo "Disabling symlinks for build" >&6; }
4898 else
4899 LINK_BUILD_FLAGS=-s
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4901 $as_echo "Enabling symlinks for build" >&6; }
4904 else
4905 LINK_BUILD_FLAGS=
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4907 $as_echo "Disabling symlinks for build by default" >&6; }
4912 # Check whether --enable-verbose-makecmds was given.
4913 if test "${enable_verbose_makecmds+set}" = set; then :
4914 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4915 then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4917 $as_echo "Disabling verbose make commands" >&6; }
4918 E=@echo
4919 ES=echo
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4923 $as_echo "Enabling verbose make commands" >&6; }
4924 E=@\\#
4925 ES=\\#
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4931 $as_echo "Disabling verbose make commands" >&6; }
4932 E=@echo
4933 ES=echo
4941 E2_PKG_CONFIG_STATIC=--static
4942 LDFLAG_DYNAMIC=
4943 PRIVATE_LIBS_CMT=
4944 # Check whether --enable-elf-shlibs was given.
4945 if test "${enable_elf_shlibs+set}" = set; then :
4946 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4947 then
4948 ELF_CMT=#
4949 MAKEFILE_ELF=/dev/null
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4951 $as_echo "Disabling ELF shared libraries" >&6; }
4952 else
4953 E2_PKG_CONFIG_STATIC=
4954 ELF_CMT=
4955 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4956 case "$host_os" in
4957 solaris2.*)
4958 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4960 esac
4961 BINARY_TYPE=elfbin
4962 LIB_EXT=.so
4963 PRIVATE_LIBS_CMT=#
4964 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4966 $as_echo "Enabling ELF shared libraries" >&6; }
4969 else
4970 MAKEFILE_ELF=/dev/null
4971 ELF_CMT=#
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4973 $as_echo "Disabling ELF shared libraries by default" >&6; }
4979 # Check whether --enable-bsd-shlibs was given.
4980 if test "${enable_bsd_shlibs+set}" = set; then :
4981 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4982 then
4983 BSDLIB_CMT=#
4984 MAKEFILE_BSDLIB=/dev/null
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4986 $as_echo "Disabling BSD shared libraries" >&6; }
4987 else
4988 E2_PKG_CONFIG_STATIC=
4989 BSDLIB_CMT=
4990 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4991 LIB_EXT=.so
4992 case "$host_os" in
4993 darwin*)
4994 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4995 LIB_EXT=.dylib
4997 esac
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4999 $as_echo "Enabling BSD shared libraries" >&6; }
5002 else
5003 MAKEFILE_BSDLIB=/dev/null
5004 BSDLIB_CMT=#
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5006 $as_echo "Disabling BSD shared libraries by default" >&6; }
5012 # Check whether --enable-profile was given.
5013 if test "${enable_profile+set}" = set; then :
5014 enableval=$enable_profile; if test "$enableval" = "no"
5015 then
5016 PROFILE_CMT=#
5017 MAKEFILE_PROFILE=/dev/null
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5019 $as_echo "Disabling profiling libraries" >&6; }
5020 else
5021 PROFILE_CMT=
5022 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5023 PROFILED_LIB_EXT=_p.a
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5025 $as_echo "Building profiling libraries" >&6; }
5028 else
5029 PROFILE_CMT=#
5030 MAKEFILE_PROFILE=/dev/null
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5032 $as_echo "Disabling profiling libraries by default" >&6; }
5038 # Check whether --enable-gcov was given.
5039 if test "${enable_gcov+set}" = set; then :
5040 enableval=$enable_gcov; if test "$enableval" = "yes"
5041 then
5042 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5043 LDFLAGS="-fprofile-arcs -ftest-coverage"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5045 $as_echo "Enabling gcov support" >&6; }
5050 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5051 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5052 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5053 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5054 # Check whether --enable-hardening was given.
5055 if test "${enable_hardening+set}" = set; then :
5056 enableval=$enable_hardening; if test "$enableval" = "yes"
5057 then
5058 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5059 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5060 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5061 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5062 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5063 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5064 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5065 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5067 $as_echo "Enabling hardening support" >&6; }
5077 # Check whether --enable-jbd-debug was given.
5078 if test "${enable_jbd_debug+set}" = set; then :
5079 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5080 then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5082 $as_echo "Disabling journal debugging" >&6; }
5083 else
5085 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5088 $as_echo "Enabling journal debugging" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5093 $as_echo "Disabling journal debugging by default" >&6; }
5097 # Check whether --enable-blkid-debug was given.
5098 if test "${enable_blkid_debug+set}" = set; then :
5099 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5100 then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5102 $as_echo "Disabling blkid debugging" >&6; }
5103 else
5105 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5108 $as_echo "Enabling blkid debugging" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5113 $as_echo "Disabling blkid debugging by default" >&6; }
5117 # Check whether --enable-testio-debug was given.
5118 if test "${enable_testio_debug+set}" = set; then :
5119 enableval=$enable_testio_debug;
5120 if test "$enableval" = "no"
5121 then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5123 $as_echo "Disabling testio debugging" >&6; }
5124 TEST_IO_CMT="#"
5125 else
5126 TEST_IO_CMT=
5127 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5130 $as_echo "Enabling testio debugging" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5135 $as_echo "Enabling testio debugging by default" >&6; }
5136 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5138 TEST_IO_CMT=
5143 # Check whether --enable-developer-features was given.
5144 if test "${enable_developer_features+set}" = set; then :
5145 enableval=$enable_developer_features;
5146 if test "$enableval" = "yes"
5147 then
5148 DEV_FEATURES_CMT=
5149 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5152 $as_echo "Enabling ext4 developer features" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5155 $as_echo "Disabling ext4 developer features" >&6; }
5156 DEV_FEATURES_CMT="#"
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5161 $as_echo "Disabling ext4 developer features by default" >&6; }
5162 DEV_FEATURES_CMT=
5174 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 case $PKG_CONFIG in
5184 [\\/]* | ?:[\\/]*)
5185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5204 esac
5206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5207 if test -n "$PKG_CONFIG"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5209 $as_echo "$PKG_CONFIG" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_path_PKG_CONFIG"; then
5218 ac_pt_PKG_CONFIG=$PKG_CONFIG
5219 # Extract the first word of "pkg-config", so it can be a program name with args.
5220 set dummy pkg-config; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 case $ac_pt_PKG_CONFIG in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5244 IFS=$as_save_IFS
5247 esac
5249 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5250 if test -n "$ac_pt_PKG_CONFIG"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5252 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5258 if test "x$ac_pt_PKG_CONFIG" = x; then
5259 PKG_CONFIG=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267 PKG_CONFIG=$ac_pt_PKG_CONFIG
5269 else
5270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5274 if test -n "$PKG_CONFIG"; then
5275 _pkg_min_version=0.9.0
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 PKG_CONFIG=""
5287 LIBUUID=
5288 DEPLIBUUID=
5289 STATIC_LIBUUID=
5290 DEPSTATIC_LIBUUID=
5291 PROFILED_LIBUUID=
5292 DEPPROFILED_LIBUUID=
5293 UUID_CMT=
5294 # Check whether --enable-libuuid was given.
5295 if test "${enable_libuuid+set}" = set; then :
5296 enableval=$enable_libuuid; if test "$enableval" = "no"
5297 then
5298 if test -z "$PKG_CONFIG"; then
5299 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5303 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5304 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 ac_check_lib_save_LIBS=$LIBS
5308 LIBS="-luuid $LIBS"
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5312 /* Override any GCC internal prototype to avoid an error.
5313 Use char because int might match the return type of a GCC
5314 builtin and then its argument prototype would still apply. */
5315 #ifdef __cplusplus
5316 extern "C"
5317 #endif
5318 char uuid_generate ();
5320 main ()
5322 return uuid_generate ();
5324 return 0;
5326 _ACEOF
5327 if ac_fn_c_try_link "$LINENO"; then :
5328 ac_cv_lib_uuid_uuid_generate=yes
5329 else
5330 ac_cv_lib_uuid_uuid_generate=no
5332 rm -f core conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5337 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5338 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5339 LIBUUID=`$PKG_CONFIG --libs uuid`;
5340 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5341 else
5342 as_fn_error $? "external uuid library not found" "$LINENO" 5
5345 PROFILED_LIBUUID=$LIBUUID
5346 UUID_CMT=#
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5348 $as_echo "Disabling private uuid library" >&6; }
5349 else
5350 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5351 DEPLIBUUID=$LIBUUID
5352 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5353 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5354 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5355 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5357 $as_echo "Enabling private uuid library" >&6; }
5360 else
5361 if test -n "$PKG_CONFIG"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5363 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5364 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 ac_check_lib_save_LIBS=$LIBS
5368 LIBS="-luuid $LIBS"
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5372 /* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5375 #ifdef __cplusplus
5376 extern "C"
5377 #endif
5378 char uuid_generate ();
5380 main ()
5382 return uuid_generate ();
5384 return 0;
5386 _ACEOF
5387 if ac_fn_c_try_link "$LINENO"; then :
5388 ac_cv_lib_uuid_uuid_generate=yes
5389 else
5390 ac_cv_lib_uuid_uuid_generate=no
5392 rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5397 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5398 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5399 LIBUUID=`$PKG_CONFIG --libs uuid`;
5400 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5404 if test -n "$LIBUUID"; then
5405 PROFILED_LIBUUID=$LIBUUID
5406 UUID_CMT=#
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5408 $as_echo "Using system uuid by default" >&6; }
5409 else
5410 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5411 DEPLIBUUID=$LIBUUID
5412 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5413 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5414 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5415 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5417 $as_echo "Enabling private uuid library by default" >&6; }
5436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 case $PKG_CONFIG in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5466 esac
5468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469 if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471 $as_echo "$PKG_CONFIG" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5479 if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482 set dummy pkg-config; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 case $ac_pt_PKG_CONFIG in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5504 done
5505 done
5506 IFS=$as_save_IFS
5509 esac
5511 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512 if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_pt_PKG_CONFIG" = x; then
5521 PKG_CONFIG=""
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 PKG_CONFIG=$ac_pt_PKG_CONFIG
5531 else
5532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5536 if test -n "$PKG_CONFIG"; then
5537 _pkg_min_version=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 PKG_CONFIG=""
5549 LIBBLKID=
5550 DEPLIBBLKID=
5551 STATIC_LIBBLKID=
5552 DEPSTATIC_LIBBLKID=
5553 PROFILED_LIBBLKID=
5554 DEPPROFILED_LIBBLKID=
5555 BLKID_CMT=
5557 # Check whether --enable-libblkid was given.
5558 if test "${enable_libblkid+set}" = set; then :
5559 enableval=$enable_libblkid; if test "$enableval" = "no"
5560 then
5561 if test -z "$PKG_CONFIG"; then
5562 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5566 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5567 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lblkid -luuid $LIBS"
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5578 #ifdef __cplusplus
5579 extern "C"
5580 #endif
5581 char blkid_get_cache ();
5583 main ()
5585 return blkid_get_cache ();
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_link "$LINENO"; then :
5591 ac_cv_lib_blkid_blkid_get_cache=yes
5592 else
5593 ac_cv_lib_blkid_blkid_get_cache=no
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5600 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5601 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5602 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5603 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5604 else
5605 as_fn_error $? "external blkid library not found" "$LINENO" 5
5608 BLKID_CMT=#
5609 PROFILED_LIBBLKID=$LIBBLKID
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5611 $as_echo "Disabling private blkid library" >&6; }
5612 else
5613 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5614 DEPLIBBLKID=$LIBBLKID
5615 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5616 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5617 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5618 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5619 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5622 $as_echo "Enabling private blkid library" >&6; }
5625 else
5626 if test -n "$PKG_CONFIG"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5628 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5629 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lblkid $LIBS"
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 /* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5640 #ifdef __cplusplus
5641 extern "C"
5642 #endif
5643 char blkid_get_cache ();
5645 main ()
5647 return blkid_get_cache ();
5649 return 0;
5651 _ACEOF
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_lib_blkid_blkid_get_cache=yes
5654 else
5655 ac_cv_lib_blkid_blkid_get_cache=no
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5662 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5663 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5664 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5665 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5669 if test -n "$LIBBLKID"; then
5670 BLKID_CMT=#
5671 PROFILED_LIBBLKID=$LIBBLKID
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5673 $as_echo "Using system blkid library by default" >&6; }
5674 else
5675 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5676 DEPLIBBLKID=$LIBBLKID
5677 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5678 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5679 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5680 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5681 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5684 $as_echo "Enabling private blkid library by default" >&6; }
5696 ALL_CMT=
5697 SUBSET_CMT=
5698 # Check whether --enable-subset was given.
5699 if test "${enable_subset+set}" = set; then :
5700 enableval=$enable_subset; if test "$enableval" = "no"
5701 then
5702 SUBSET_CMT=#
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5704 $as_echo "Disabling subset-only build" >&6; }
5705 else
5706 ALL_CMT=#
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5708 $as_echo "Enabling subset-only-build" >&6; }
5716 # Check whether --enable-backtrace was given.
5717 if test "${enable_backtrace+set}" = set; then :
5718 enableval=$enable_backtrace; if test "$enableval" = "no"
5719 then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5721 $as_echo "Disabling use of backtrace" >&6; }
5722 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5726 $as_echo "Enabling use of backtrace" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5731 $as_echo "Enabling use of backtrace by default" >&6; }
5735 # Check whether --enable-debugfs was given.
5736 if test "${enable_debugfs+set}" = set; then :
5737 enableval=$enable_debugfs; if test "$enableval" = "no"
5738 then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5740 $as_echo "Disabling debugfs support" >&6; }
5741 DEBUGFS_CMT="#"
5742 else
5743 DEBUGFS_CMT=
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5745 $as_echo "Enabling debugfs support" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5750 $as_echo "Enabling debugfs support by default" >&6; }
5751 DEBUGFS_CMT=
5756 # Check whether --enable-imager was given.
5757 if test "${enable_imager+set}" = set; then :
5758 enableval=$enable_imager; if test "$enableval" = "no"
5759 then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5761 $as_echo "Disabling e2image support" >&6; }
5762 IMAGER_CMT="#"
5763 else
5764 IMAGER_CMT=
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5766 $as_echo "Enabling e2image support" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5771 $as_echo "Enabling e2image support by default" >&6; }
5772 IMAGER_CMT=
5777 # Check whether --enable-resizer was given.
5778 if test "${enable_resizer+set}" = set; then :
5779 enableval=$enable_resizer; if test "$enableval" = "no"
5780 then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5782 $as_echo "Disabling e2resize support" >&6; }
5783 RESIZER_CMT="#"
5784 else
5785 RESIZER_CMT=
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5787 $as_echo "Enabling e2resize support" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5792 $as_echo "Enabling e2resize support by default" >&6; }
5793 RESIZER_CMT=
5798 # Check whether --enable-defrag was given.
5799 if test "${enable_defrag+set}" = set; then :
5800 enableval=$enable_defrag; if test "$enableval" = "no"
5801 then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5803 $as_echo "Disabling e4defrag support" >&6; }
5804 DEFRAG_CMT="#"
5805 else
5806 DEFRAG_CMT=
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5808 $as_echo "Enabling e4defrag support" >&6; }
5811 else
5812 if test -z "$WITH_DIET_LIBC"
5813 then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5815 $as_echo "Enabling e4defrag support by default" >&6; }
5816 DEFRAG_CMT=
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5819 $as_echo "Disabling e4defrag support by default" >&6; }
5820 DEFRAG_CMT="#"
5826 # Check whether --enable-fsck was given.
5827 if test "${enable_fsck+set}" = set; then :
5828 enableval=$enable_fsck; if test "$enableval" = "no"
5829 then
5830 FSCK_PROG='' FSCK_MAN=''
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5832 $as_echo "Not building fsck wrapper" >&6; }
5833 else
5834 FSCK_PROG=fsck FSCK_MAN=fsck.8
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5836 $as_echo "Building fsck wrapper" >&6; }
5839 else
5840 case "$host_os" in
5841 gnu*)
5842 FSCK_PROG='' FSCK_MAN=''
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5844 $as_echo "Not building fsck wrapper by default" >&6; }
5847 FSCK_PROG=fsck FSCK_MAN=fsck.8
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5849 $as_echo "Building fsck wrapper by default" >&6; }
5850 esac
5856 # Check whether --enable-e2initrd-helper was given.
5857 if test "${enable_e2initrd_helper+set}" = set; then :
5858 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5859 then
5860 E2INITRD_PROG='' E2INITRD_MAN=''
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5862 $as_echo "Not building e2initrd helper" >&6; }
5863 else
5864 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5866 $as_echo "Building e2initrd helper" >&6; }
5869 else
5870 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5872 $as_echo "Building e2initrd helper by default" >&6; }
5878 # Check whether --enable-tls was given.
5879 if test "${enable_tls+set}" = set; then :
5880 enableval=$enable_tls; if test "$enableval" = "no"
5881 then
5882 try_tls=""
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5884 $as_echo "Disabling thread local support" >&6; }
5885 else
5886 try_tls="yes"
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5888 $as_echo "Enabling thread local support" >&6; }
5891 else
5892 if test -n "$WITH_DIET_LIBC"
5893 then
5894 try_tls=""
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5896 $as_echo "Diet libc does not support thread local support" >&6; }
5897 else
5898 try_tls="yes"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5900 $as_echo "Try using thread local support by default" >&6; }
5905 if test "$try_tls" = "yes"
5906 then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5909 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5910 if ${ac_cv_tls+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5914 ax_tls_keywords="__thread __declspec(thread) none"
5915 for ax_tls_keyword in $ax_tls_keywords; do
5916 case $ax_tls_keyword in
5917 none) ac_cv_tls=none ; break ;;
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #include <stdlib.h>
5922 static void
5923 foo(void) {
5924 static $ax_tls_keyword int bar;
5925 exit(1);
5928 main ()
5932 return 0;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 ac_cv_tls=$ax_tls_keyword ; break
5937 else
5938 ac_cv_tls=none
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 esac
5943 done
5948 if test "$ac_cv_tls" != "none"; then
5950 cat >>confdefs.h <<_ACEOF
5951 #define TLS $ac_cv_tls
5952 _ACEOF
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5956 $as_echo "$ac_cv_tls" >&6; }
5960 # Check whether --with-pthread was given.
5961 if test "${with_pthread+set}" = set; then :
5962 withval=$with_pthread; if test "$withval" = "no"
5963 then
5964 try_pthread=""
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5966 $as_echo "Disabling pthread support" >&6; }
5967 else
5968 try_pthread="yes"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5970 $as_echo "Testing for pthread support" >&6; }
5973 else
5974 try_pthread="yes"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5976 $as_echo "Try testing for pthread support by default" >&6; }
5980 if test "$try_pthread" = "yes"
5981 then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5984 if ${ac_cv_path_SED+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5988 for ac_i in 1 2 3 4 5 6 7; do
5989 ac_script="$ac_script$as_nl$ac_script"
5990 done
5991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5992 { ac_script=; unset ac_script;}
5993 if test -z "$SED"; then
5994 ac_path_SED_found=false
5995 # Loop through the user's path and test for each of PROGNAME-LIST
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_prog in sed gsed; do
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6004 as_fn_executable_p "$ac_path_SED" || continue
6005 # Check for GNU ac_path_SED and select it if it is found.
6006 # Check for GNU $ac_path_SED
6007 case `"$ac_path_SED" --version 2>&1` in
6008 *GNU*)
6009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6011 ac_count=0
6012 $as_echo_n 0123456789 >"conftest.in"
6013 while :
6015 cat "conftest.in" "conftest.in" >"conftest.tmp"
6016 mv "conftest.tmp" "conftest.in"
6017 cp "conftest.in" "conftest.nl"
6018 $as_echo '' >> "conftest.nl"
6019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6021 as_fn_arith $ac_count + 1 && ac_count=$as_val
6022 if test $ac_count -gt ${ac_path_SED_max-0}; then
6023 # Best one so far, save it but keep looking for a better one
6024 ac_cv_path_SED="$ac_path_SED"
6025 ac_path_SED_max=$ac_count
6027 # 10*(2^10) chars as input seems more than enough
6028 test $ac_count -gt 10 && break
6029 done
6030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6031 esac
6033 $ac_path_SED_found && break 3
6034 done
6035 done
6036 done
6037 IFS=$as_save_IFS
6038 if test -z "$ac_cv_path_SED"; then
6039 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6041 else
6042 ac_cv_path_SED=$SED
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6047 $as_echo "$ac_cv_path_SED" >&6; }
6048 SED="$ac_cv_path_SED"
6049 rm -f conftest.sed
6055 ac_ext=c
6056 ac_cpp='$CPP $CPPFLAGS'
6057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 ax_pthread_ok=no
6063 # We used to check for pthread.h first, but this fails if pthread.h
6064 # requires special compiler flags (e.g. on Tru64 or Sequent).
6065 # It gets checked for in the link test anyway.
6067 # First of all, check if the user has set any of the PTHREAD_LIBS,
6068 # etcetera environment variables, and if threads linking works using
6069 # them:
6070 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6071 ax_pthread_save_CC="$CC"
6072 ax_pthread_save_CFLAGS="$CFLAGS"
6073 ax_pthread_save_LIBS="$LIBS"
6074 if test "x$PTHREAD_CC" != "x"; then :
6075 CC="$PTHREAD_CC"
6077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6078 LIBS="$PTHREAD_LIBS $LIBS"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6080 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6084 /* Override any GCC internal prototype to avoid an error.
6085 Use char because int might match the return type of a GCC
6086 builtin and then its argument prototype would still apply. */
6087 #ifdef __cplusplus
6088 extern "C"
6089 #endif
6090 char pthread_join ();
6092 main ()
6094 return pthread_join ();
6096 return 0;
6098 _ACEOF
6099 if ac_fn_c_try_link "$LINENO"; then :
6100 ax_pthread_ok=yes
6102 rm -f core conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6105 $as_echo "$ax_pthread_ok" >&6; }
6106 if test "x$ax_pthread_ok" = "xno"; then
6107 PTHREAD_LIBS=""
6108 PTHREAD_CFLAGS=""
6110 CC="$ax_pthread_save_CC"
6111 CFLAGS="$ax_pthread_save_CFLAGS"
6112 LIBS="$ax_pthread_save_LIBS"
6115 # We must check for the threads library under a number of different
6116 # names; the ordering is very important because some systems
6117 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6118 # libraries is broken (non-POSIX).
6120 # Create a list of thread flags to try. Items starting with a "-" are
6121 # C compiler flags, and other items are library names, except for "none"
6122 # which indicates that we try without any flags at all, and "pthread-config"
6123 # which is a program returning the flags for the Pth emulation library.
6125 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6127 # The ordering *is* (sometimes) important. Some notes on the
6128 # individual items follow:
6130 # pthreads: AIX (must check this before -lpthread)
6131 # none: in case threads are in libc; should be tried before -Kthread and
6132 # other compiler flags to prevent continual compiler warnings
6133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6134 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6135 # (Note: HP C rejects this with "bad form for `-t' option")
6136 # -pthreads: Solaris/gcc (Note: HP C also rejects)
6137 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6138 # doesn't hurt to check since this sometimes defines pthreads and
6139 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
6140 # is present but should not be used directly; and before -mthreads,
6141 # because the compiler interprets this as "-mt" + "-hreads")
6142 # -mthreads: Mingw32/gcc, Lynx/gcc
6143 # pthread: Linux, etcetera
6144 # --thread-safe: KAI C++
6145 # pthread-config: use pthread-config program (for GNU Pth library)
6147 case $host_os in
6149 freebsd*)
6151 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6152 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6154 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6157 hpux*)
6159 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6160 # multi-threading and also sets -lpthread."
6162 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6165 openedition*)
6167 # IBM z/OS requires a feature-test macro to be defined in order to
6168 # enable POSIX threads at all, so give the user a hint if this is
6169 # not set. (We don't define these ourselves, as they can affect
6170 # other portions of the system API in unpredictable ways.)
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6176 AX_PTHREAD_ZOS_MISSING
6177 # endif
6179 _ACEOF
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6183 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6185 rm -f conftest*
6189 solaris*)
6191 # On Solaris (at least, for some versions), libc contains stubbed
6192 # (non-functional) versions of the pthreads routines, so link-based
6193 # tests will erroneously succeed. (N.B.: The stubs are missing
6194 # pthread_cleanup_push, or rather a function called by this macro,
6195 # so we could check for that, but who knows whether they'll stub
6196 # that too in a future libc.) So we'll check first for the
6197 # standard Solaris way of linking pthreads (-mt -lpthread).
6199 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6201 esac
6203 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6205 if test "x$GCC" = "xyes"; then :
6206 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6209 # The presence of a feature test macro requesting re-entrant function
6210 # definitions is, on some systems, a strong hint that pthreads support is
6211 # correctly enabled
6213 case $host_os in
6214 darwin* | hpux* | linux* | osf* | solaris*)
6215 ax_pthread_check_macro="_REENTRANT"
6218 aix*)
6219 ax_pthread_check_macro="_THREAD_SAFE"
6223 ax_pthread_check_macro="--"
6225 esac
6226 if test "x$ax_pthread_check_macro" = "x--"; then :
6227 ax_pthread_check_cond=0
6228 else
6229 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6232 # Are we compiling with Clang?
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6235 $as_echo_n "checking whether $CC is Clang... " >&6; }
6236 if ${ax_cv_PTHREAD_CLANG+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 ax_cv_PTHREAD_CLANG=no
6240 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6241 if test "x$GCC" = "xyes"; then
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6245 # if defined(__clang__) && defined(__llvm__)
6246 AX_PTHREAD_CC_IS_CLANG
6247 # endif
6249 _ACEOF
6250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6251 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6252 ax_cv_PTHREAD_CLANG=yes
6254 rm -f conftest*
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6260 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6261 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6263 ax_pthread_clang_warning=no
6265 # Clang needs special handling, because older versions handle the -pthread
6266 # option in a rather... idiosyncratic way
6268 if test "x$ax_pthread_clang" = "xyes"; then
6270 # Clang takes -pthread; it has never supported any other flag
6272 # (Note 1: This will need to be revisited if a system that Clang
6273 # supports has POSIX threads in a separate library. This tends not
6274 # to be the way of modern systems, but it's conceivable.)
6276 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6277 # to get POSIX threads support; the API is always present and
6278 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6279 # -pthread does define _REENTRANT, and while the Darwin headers
6280 # ignore this macro, third-party headers might not.)
6282 PTHREAD_CFLAGS="-pthread"
6283 PTHREAD_LIBS=
6285 ax_pthread_ok=yes
6287 # However, older versions of Clang make a point of warning the user
6288 # that, in an invocation where only linking and no compilation is
6289 # taking place, the -pthread option has no effect ("argument unused
6290 # during compilation"). They expect -pthread to be passed in only
6291 # when source code is being compiled.
6293 # Problem is, this is at odds with the way Automake and most other
6294 # C build frameworks function, which is that the same flags used in
6295 # compilation (CFLAGS) are also used in linking. Many systems
6296 # supported by AX_PTHREAD require exactly this for POSIX threads
6297 # support, and in fact it is often not straightforward to specify a
6298 # flag that is used only in the compilation phase and not in
6299 # linking. Such a scenario is extremely rare in practice.
6301 # Even though use of the -pthread flag in linking would only print
6302 # a warning, this can be a nuisance for well-run software projects
6303 # that build with -Werror. So if the active version of Clang has
6304 # this misfeature, we search for an option to squash it.
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6307 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6308 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6312 # Create an alternate version of $ac_link that compiles and
6313 # links in two steps (.c -> .o, .o -> exe) instead of one
6314 # (.c -> exe), because the warning occurs only in the second
6315 # step
6316 ax_pthread_save_ac_link="$ac_link"
6317 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6318 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6319 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6320 ax_pthread_save_CFLAGS="$CFLAGS"
6321 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6322 if test "x$ax_pthread_try" = "xunknown"; then :
6323 break
6325 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6326 ac_link="$ax_pthread_save_ac_link"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int main(void){return 0;}
6330 _ACEOF
6331 if ac_fn_c_try_link "$LINENO"; then :
6332 ac_link="$ax_pthread_2step_ac_link"
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 int main(void){return 0;}
6336 _ACEOF
6337 if ac_fn_c_try_link "$LINENO"; then :
6338 break
6340 rm -f core conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6344 rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6346 done
6347 ac_link="$ax_pthread_save_ac_link"
6348 CFLAGS="$ax_pthread_save_CFLAGS"
6349 if test "x$ax_pthread_try" = "x"; then :
6350 ax_pthread_try=no
6352 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6356 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6358 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6359 no | unknown) ;;
6360 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6361 esac
6363 fi # $ax_pthread_clang = yes
6365 if test "x$ax_pthread_ok" = "xno"; then
6366 for ax_pthread_try_flag in $ax_pthread_flags; do
6368 case $ax_pthread_try_flag in
6369 none)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6371 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
6374 -mt,pthread)
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6376 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6377 PTHREAD_CFLAGS="-mt"
6378 PTHREAD_LIBS="-lpthread"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6383 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6384 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6387 pthread-config)
6388 # Extract the first word of "pthread-config", so it can be a program name with args.
6389 set dummy pthread-config; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ax_pthread_config+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$ax_pthread_config"; then
6396 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ax_pthread_config="yes"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6411 IFS=$as_save_IFS
6413 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6416 ax_pthread_config=$ac_cv_prog_ax_pthread_config
6417 if test -n "$ax_pthread_config"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6419 $as_echo "$ax_pthread_config" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6426 if test "x$ax_pthread_config" = "xno"; then :
6427 continue
6429 PTHREAD_CFLAGS="`pthread-config --cflags`"
6430 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6435 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6436 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6438 esac
6440 ax_pthread_save_CFLAGS="$CFLAGS"
6441 ax_pthread_save_LIBS="$LIBS"
6442 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6443 LIBS="$PTHREAD_LIBS $LIBS"
6445 # Check for various functions. We must include pthread.h,
6446 # since some functions may be macros. (On the Sequent, we
6447 # need a special flag -Kthread to make this header compile.)
6448 # We check for pthread_join because it is in -lpthread on IRIX
6449 # while pthread_create is in libc. We check for pthread_attr_init
6450 # due to DEC craziness with -lpthreads. We check for
6451 # pthread_cleanup_push because it is one of the few pthread
6452 # functions on Solaris that doesn't have a non-functional libc stub.
6453 # We try pthread_create on general principles.
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 #include <pthread.h>
6458 # if $ax_pthread_check_cond
6459 # error "$ax_pthread_check_macro must be defined"
6460 # endif
6461 static void routine(void *a) { a = 0; }
6462 static void *start_routine(void *a) { return a; }
6464 main ()
6466 pthread_t th; pthread_attr_t attr;
6467 pthread_create(&th, 0, start_routine, 0);
6468 pthread_join(th, 0);
6469 pthread_attr_init(&attr);
6470 pthread_cleanup_push(routine, 0);
6471 pthread_cleanup_pop(0) /* ; */
6473 return 0;
6475 _ACEOF
6476 if ac_fn_c_try_link "$LINENO"; then :
6477 ax_pthread_ok=yes
6479 rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6482 CFLAGS="$ax_pthread_save_CFLAGS"
6483 LIBS="$ax_pthread_save_LIBS"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6486 $as_echo "$ax_pthread_ok" >&6; }
6487 if test "x$ax_pthread_ok" = "xyes"; then :
6488 break
6491 PTHREAD_LIBS=""
6492 PTHREAD_CFLAGS=""
6493 done
6496 # Various other checks:
6497 if test "x$ax_pthread_ok" = "xyes"; then
6498 ax_pthread_save_CFLAGS="$CFLAGS"
6499 ax_pthread_save_LIBS="$LIBS"
6500 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6501 LIBS="$PTHREAD_LIBS $LIBS"
6503 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6505 $as_echo_n "checking for joinable pthread attribute... " >&6; }
6506 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6510 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <pthread.h>
6515 main ()
6517 int attr = $ax_pthread_attr; return attr /* ; */
6519 return 0;
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"; then :
6523 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6525 rm -f core conftest.err conftest.$ac_objext \
6526 conftest$ac_exeext conftest.$ac_ext
6527 done
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6531 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6532 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6533 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6534 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6536 cat >>confdefs.h <<_ACEOF
6537 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6538 _ACEOF
6540 ax_pthread_joinable_attr_defined=yes
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6545 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6546 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6550 case $host_os in
6551 solaris*)
6552 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6554 esac
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6558 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6559 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6560 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6561 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6562 ax_pthread_special_flags_added=yes
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6566 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6567 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <pthread.h>
6574 main ()
6576 int i = PTHREAD_PRIO_INHERIT;
6578 return 0;
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582 ax_cv_PTHREAD_PRIO_INHERIT=yes
6583 else
6584 ax_cv_PTHREAD_PRIO_INHERIT=no
6586 rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6591 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6592 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6593 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6595 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6597 ax_pthread_prio_inherit_defined=yes
6601 CFLAGS="$ax_pthread_save_CFLAGS"
6602 LIBS="$ax_pthread_save_LIBS"
6604 # More AIX lossage: compile with *_r variant
6605 if test "x$GCC" != "xyes"; then
6606 case $host_os in
6607 aix*)
6608 case "x/$CC" in #(
6609 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6610 #handle absolute path differently from PATH based program lookup
6611 case "x$CC" in #(
6612 x/*) :
6613 if as_fn_executable_p ${CC}_r; then :
6614 PTHREAD_CC="${CC}_r"
6615 fi ;; #(
6616 *) :
6617 for ac_prog in ${CC}_r
6619 # Extract the first word of "$ac_prog", so it can be a program name with args.
6620 set dummy $ac_prog; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$PTHREAD_CC"; then
6627 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_PTHREAD_CC="$ac_prog"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6640 done
6641 done
6642 IFS=$as_save_IFS
6646 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6647 if test -n "$PTHREAD_CC"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6649 $as_echo "$PTHREAD_CC" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6656 test -n "$PTHREAD_CC" && break
6657 done
6658 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6660 esac ;; #(
6661 *) :
6663 esac
6665 esac
6669 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6675 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6676 if test "x$ax_pthread_ok" = "xyes"; then
6678 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6681 else
6682 ax_pthread_ok=no
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 else
6693 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6697 # Check whether --enable-uuidd was given.
6698 if test "${enable_uuidd+set}" = set; then :
6699 enableval=$enable_uuidd; if test "$enableval" = "no"
6700 then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6702 $as_echo "Not building uuidd" >&6; }
6703 UUIDD_CMT="#"
6704 else
6705 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6707 UUIDD_CMT=""
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6709 $as_echo "Building uuidd" >&6; }
6712 else
6713 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6715 if test -z "$UUID_CMT"
6716 then
6717 UUIDD_CMT=""
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6719 $as_echo "Building uuidd by default" >&6; }
6720 else
6721 UUIDD_CMT="#"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6723 $as_echo "Disabling uuidd by default" >&6; }
6730 # Check whether --enable-mmp was given.
6731 if test "${enable_mmp+set}" = set; then :
6732 enableval=$enable_mmp; if test "$enableval" = "no"
6733 then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6735 $as_echo "Disabling mmp support" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6738 $as_echo "Enabling mmp support" >&6; }
6739 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6745 $as_echo "Enabling mmp support by default" >&6; }
6746 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6752 # Check whether --enable-tdb was given.
6753 if test "${enable_tdb+set}" = set; then :
6754 enableval=$enable_tdb; if test "$enableval" = "no"
6755 then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6757 $as_echo "Disabling tdb support" >&6; }
6758 TDB_CMT="#"
6759 TDB_MAN_COMMENT='.\"'
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6762 $as_echo "Enabling tdb support" >&6; }
6763 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6765 TDB_CMT=""
6766 TDB_MAN_COMMENT=""
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6771 $as_echo "Enabling mmp support by default" >&6; }
6772 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6774 TDB_CMT=""
6775 TDB_MAN_COMMENT=""
6782 # Check whether --enable-bmap-stats was given.
6783 if test "${enable_bmap_stats+set}" = set; then :
6784 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6785 then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6787 $as_echo "Disabling bitmap statistics support" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6790 $as_echo "Enabling bitmap statistics support" >&6; }
6791 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6797 $as_echo "Enabling bitmap statistics support by default" >&6; }
6798 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6804 # Check whether --enable-bmap-stats-ops was given.
6805 if test "${enable_bmap_stats_ops+set}" = set; then :
6806 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6807 then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6809 $as_echo "Disabling additional bitmap statistics" >&6; }
6810 else
6811 if test "x${enable_bmap_stats}" = "xno"; then :
6812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6814 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6815 See \`config.log' for more details" "$LINENO" 5; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6819 $as_echo "Enabling additional bitmap statistics" >&6; }
6820 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6826 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6830 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6832 GETTEXT_PACKAGE=e2fsprogs
6833 PACKAGE=e2fsprogs
6834 VERSION="$E2FSPROGS_VERSION"
6835 VERSION=0.14.1
6837 cat >>confdefs.h <<_ACEOF
6838 #define PACKAGE "$PACKAGE"
6839 _ACEOF
6842 cat >>confdefs.h <<_ACEOF
6843 #define VERSION "$VERSION"
6844 _ACEOF
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6851 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6852 set x ${MAKE-make}
6853 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6854 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 cat >conftest.make <<\_ACEOF
6858 SHELL = /bin/sh
6859 all:
6860 @echo '@@@%%%=$(MAKE)=@@@%%%'
6861 _ACEOF
6862 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6863 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6864 *@@@%%%=?*=@@@%%%*)
6865 eval ac_cv_prog_make_${ac_make}_set=yes;;
6867 eval ac_cv_prog_make_${ac_make}_set=no;;
6868 esac
6869 rm -f conftest.make
6871 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873 $as_echo "yes" >&6; }
6874 SET_MAKE=
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 SET_MAKE="MAKE=${MAKE-make}"
6881 # Find a good install program. We prefer a C program (faster),
6882 # so one script is as good as another. But avoid the broken or
6883 # incompatible versions:
6884 # SysV /etc/install, /usr/sbin/install
6885 # SunOS /usr/etc/install
6886 # IRIX /sbin/install
6887 # AIX /bin/install
6888 # AmigaOS /C/install, which installs bootblocks on floppy discs
6889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6892 # OS/2's system install, which has a completely different semantic
6893 # ./install, which can be erroneously created by make from ./install.sh.
6894 # Reject install programs that cannot install multiple files.
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6897 if test -z "$INSTALL"; then
6898 if ${ac_cv_path_install+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 # Account for people who put trailing slashes in PATH elements.
6907 case $as_dir/ in #((
6908 ./ | .// | /[cC]/* | \
6909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6911 /usr/ucb/* ) ;;
6913 # OSF1 and SCO ODT 3.0 have their own names for install.
6914 # Don't use installbsd from OSF since it installs stuff as root
6915 # by default.
6916 for ac_prog in ginstall scoinst install; do
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6919 if test $ac_prog = install &&
6920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6921 # AIX install. It has an incompatible calling convention.
6923 elif test $ac_prog = install &&
6924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6925 # program-specific install script used by HP pwplus--don't use.
6927 else
6928 rm -rf conftest.one conftest.two conftest.dir
6929 echo one > conftest.one
6930 echo two > conftest.two
6931 mkdir conftest.dir
6932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6933 test -s conftest.one && test -s conftest.two &&
6934 test -s conftest.dir/conftest.one &&
6935 test -s conftest.dir/conftest.two
6936 then
6937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6938 break 3
6942 done
6943 done
6945 esac
6947 done
6948 IFS=$as_save_IFS
6950 rm -rf conftest.one conftest.two conftest.dir
6953 if test "${ac_cv_path_install+set}" = set; then
6954 INSTALL=$ac_cv_path_install
6955 else
6956 # As a last resort, use the slow shell script. Don't cache a
6957 # value for INSTALL within a source directory, because that will
6958 # break other packages using the cache if that directory is
6959 # removed, or if the value is a relative name.
6960 INSTALL=$ac_install_sh
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6964 $as_echo "$INSTALL" >&6; }
6966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6967 # It thinks the first close brace ends the variable substitution.
6968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6975 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6976 if test -z "$MKDIR_P"; then
6977 if ${ac_cv_path_mkdir+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_prog in mkdir gmkdir; do
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6988 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6989 'mkdir (GNU coreutils) '* | \
6990 'mkdir (coreutils) '* | \
6991 'mkdir (fileutils) '4.1*)
6992 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6993 break 3;;
6994 esac
6995 done
6996 done
6997 done
6998 IFS=$as_save_IFS
7002 test -d ./--version && rmdir ./--version
7003 if test "${ac_cv_path_mkdir+set}" = set; then
7004 MKDIR_P="$ac_cv_path_mkdir -p"
7005 else
7006 # As a last resort, use the slow shell script. Don't cache a
7007 # value for MKDIR_P within a source directory, because that will
7008 # break other packages using the cache if that directory is
7009 # removed, or if the value is a relative name.
7010 MKDIR_P="$ac_install_sh -d"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7014 $as_echo "$MKDIR_P" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7018 $as_echo_n "checking whether NLS is requested... " >&6; }
7019 # Check whether --enable-nls was given.
7020 if test "${enable_nls+set}" = set; then :
7021 enableval=$enable_nls; USE_NLS=$enableval
7022 else
7023 USE_NLS=yes
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7027 $as_echo "$USE_NLS" >&6; }
7032 GETTEXT_MACRO_VERSION=0.20
7037 # Prepare PATH_SEPARATOR.
7038 # The user is always right.
7039 if test "${PATH_SEPARATOR+set}" != set; then
7040 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7041 # contains only /bin. Note that ksh looks also at the FPATH variable,
7042 # so we have to set that as well for the test.
7043 PATH_SEPARATOR=:
7044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7045 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7046 || PATH_SEPARATOR=';'
7050 # Find out how to test for executable files. Don't use a zero-byte file,
7051 # as systems may use methods other than mode bits to determine executability.
7052 cat >conf$$.file <<_ASEOF
7053 #! /bin/sh
7054 exit 0
7055 _ASEOF
7056 chmod +x conf$$.file
7057 if test -x conf$$.file >/dev/null 2>&1; then
7058 ac_executable_p="test -x"
7059 else
7060 ac_executable_p="test -f"
7062 rm -f conf$$.file
7064 # Extract the first word of "msgfmt", so it can be a program name with args.
7065 set dummy msgfmt; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_path_MSGFMT+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 case "$MSGFMT" in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7077 for ac_dir in $PATH; do
7078 IFS="$ac_save_IFS"
7079 test -z "$ac_dir" && ac_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7082 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7083 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7084 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7085 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7086 break 2
7089 done
7090 done
7091 IFS="$ac_save_IFS"
7092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7094 esac
7096 MSGFMT="$ac_cv_path_MSGFMT"
7097 if test "$MSGFMT" != ":"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7099 $as_echo "$MSGFMT" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7106 set dummy gmsgfmt; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_path_GMSGFMT+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 case $GMSGFMT in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7130 IFS=$as_save_IFS
7132 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7134 esac
7136 GMSGFMT=$ac_cv_path_GMSGFMT
7137 if test -n "$GMSGFMT"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7139 $as_echo "$GMSGFMT" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7147 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7148 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7149 *) GMSGFMT_015=$GMSGFMT ;;
7150 esac
7154 # Prepare PATH_SEPARATOR.
7155 # The user is always right.
7156 if test "${PATH_SEPARATOR+set}" != set; then
7157 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7158 # contains only /bin. Note that ksh looks also at the FPATH variable,
7159 # so we have to set that as well for the test.
7160 PATH_SEPARATOR=:
7161 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7162 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7163 || PATH_SEPARATOR=';'
7167 # Find out how to test for executable files. Don't use a zero-byte file,
7168 # as systems may use methods other than mode bits to determine executability.
7169 cat >conf$$.file <<_ASEOF
7170 #! /bin/sh
7171 exit 0
7172 _ASEOF
7173 chmod +x conf$$.file
7174 if test -x conf$$.file >/dev/null 2>&1; then
7175 ac_executable_p="test -x"
7176 else
7177 ac_executable_p="test -f"
7179 rm -f conf$$.file
7181 # Extract the first word of "xgettext", so it can be a program name with args.
7182 set dummy xgettext; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_path_XGETTEXT+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 case "$XGETTEXT" in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7193 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7194 for ac_dir in $PATH; do
7195 IFS="$ac_save_IFS"
7196 test -z "$ac_dir" && ac_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7199 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7200 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7201 (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
7202 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7203 break 2
7206 done
7207 done
7208 IFS="$ac_save_IFS"
7209 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7211 esac
7213 XGETTEXT="$ac_cv_path_XGETTEXT"
7214 if test "$XGETTEXT" != ":"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7216 $as_echo "$XGETTEXT" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 rm -f messages.po
7224 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7225 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7226 *) XGETTEXT_015=$XGETTEXT ;;
7227 esac
7231 # Prepare PATH_SEPARATOR.
7232 # The user is always right.
7233 if test "${PATH_SEPARATOR+set}" != set; then
7234 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7235 # contains only /bin. Note that ksh looks also at the FPATH variable,
7236 # so we have to set that as well for the test.
7237 PATH_SEPARATOR=:
7238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7239 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7240 || PATH_SEPARATOR=';'
7244 # Find out how to test for executable files. Don't use a zero-byte file,
7245 # as systems may use methods other than mode bits to determine executability.
7246 cat >conf$$.file <<_ASEOF
7247 #! /bin/sh
7248 exit 0
7249 _ASEOF
7250 chmod +x conf$$.file
7251 if test -x conf$$.file >/dev/null 2>&1; then
7252 ac_executable_p="test -x"
7253 else
7254 ac_executable_p="test -f"
7256 rm -f conf$$.file
7258 # Extract the first word of "msgmerge", so it can be a program name with args.
7259 set dummy msgmerge; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_path_MSGMERGE+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 case "$MSGMERGE" in
7266 [\\/]* | ?:[\\/]*)
7267 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7270 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7271 for ac_dir in $PATH; do
7272 IFS="$ac_save_IFS"
7273 test -z "$ac_dir" && ac_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7276 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7277 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7278 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7279 break 2
7282 done
7283 done
7284 IFS="$ac_save_IFS"
7285 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7287 esac
7289 MSGMERGE="$ac_cv_path_MSGMERGE"
7290 if test "$MSGMERGE" != ":"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7292 $as_echo "$MSGMERGE" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7299 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7300 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7301 else
7302 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7303 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7304 else
7305 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7310 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7313 ac_config_commands="$ac_config_commands po-directories"
7317 if test "X$prefix" = "XNONE"; then
7318 acl_final_prefix="$ac_default_prefix"
7319 else
7320 acl_final_prefix="$prefix"
7322 if test "X$exec_prefix" = "XNONE"; then
7323 acl_final_exec_prefix='${prefix}'
7324 else
7325 acl_final_exec_prefix="$exec_prefix"
7327 acl_save_prefix="$prefix"
7328 prefix="$acl_final_prefix"
7329 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7330 prefix="$acl_save_prefix"
7334 # Check whether --with-gnu-ld was given.
7335 if test "${with_gnu_ld+set}" = set; then :
7336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7337 else
7338 with_gnu_ld=no
7341 # Prepare PATH_SEPARATOR.
7342 # The user is always right.
7343 if test "${PATH_SEPARATOR+set}" != set; then
7344 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7345 # contains only /bin. Note that ksh looks also at the FPATH variable,
7346 # so we have to set that as well for the test.
7347 PATH_SEPARATOR=:
7348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7349 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7350 || PATH_SEPARATOR=';'
7354 if test -n "$LD"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7356 $as_echo_n "checking for ld... " >&6; }
7357 elif test "$GCC" = yes; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7359 $as_echo_n "checking for ld used by $CC... " >&6; }
7360 elif test "$with_gnu_ld" = yes; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7362 $as_echo_n "checking for GNU ld... " >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7365 $as_echo_n "checking for non-GNU ld... " >&6; }
7367 if test -n "$LD"; then
7368 # Let the user override the test with a path.
7370 else
7371 if ${acl_cv_path_LD+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7375 acl_cv_path_LD= # Final result of this test
7376 ac_prog=ld # Program to search in $PATH
7377 if test "$GCC" = yes; then
7378 # Check if gcc -print-prog-name=ld gives a path.
7379 case $host in
7380 *-*-mingw*)
7381 # gcc leaves a trailing carriage return which upsets mingw
7382 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7384 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7385 esac
7386 case $acl_output in
7387 # Accept absolute paths.
7388 [\\/]* | ?:[\\/]*)
7389 re_direlt='/[^/][^/]*/\.\./'
7390 # Canonicalize the pathname of ld
7391 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7392 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7393 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7394 done
7395 # Got the pathname. No search in PATH is needed.
7396 acl_cv_path_LD="$acl_output"
7397 ac_prog=
7400 # If it fails, then pretend we aren't using GCC.
7403 # If it is relative, then search for the first ld in PATH.
7404 with_gnu_ld=unknown
7406 esac
7408 if test -n "$ac_prog"; then
7409 # Search for $ac_prog in $PATH.
7410 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411 for ac_dir in $PATH; do
7412 IFS="$acl_save_ifs"
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7415 acl_cv_path_LD="$ac_dir/$ac_prog"
7416 # Check to see if the program is GNU ld. I'd rather use --version,
7417 # but apparently some variants of GNU ld only accept -v.
7418 # Break only if it was the GNU/non-GNU ld that we prefer.
7419 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7420 *GNU* | *'with BFD'*)
7421 test "$with_gnu_ld" != no && break
7424 test "$with_gnu_ld" != yes && break
7426 esac
7428 done
7429 IFS="$acl_save_ifs"
7431 case $host in
7432 *-*-aix*)
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #if defined __powerpc64__ || defined _ARCH_PPC64
7436 int ok;
7437 #else
7438 error fail
7439 #endif
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 # The compiler produces 64-bit code. Add option '-b64' so that the
7444 # linker groks 64-bit object files.
7445 case "$acl_cv_path_LD " in
7446 *" -b64 "*) ;;
7447 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7448 esac
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 sparc64-*-netbsd*)
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 #if defined __sparcv9 || defined __arch64__
7457 int ok;
7458 #else
7459 error fail
7460 #endif
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7465 else
7466 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7467 # so that the linker groks 32-bit object files.
7468 case "$acl_cv_path_LD " in
7469 *" -m elf32_sparc "*) ;;
7470 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7471 esac
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 esac
7480 LD="$acl_cv_path_LD"
7482 if test -n "$LD"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7484 $as_echo "$LD" >&6; }
7485 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7491 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7492 if ${acl_cv_prog_gnu_ld+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7496 case `$LD -v 2>&1 </dev/null` in
7497 *GNU* | *'with BFD'*)
7498 acl_cv_prog_gnu_ld=yes
7501 acl_cv_prog_gnu_ld=no
7503 esac
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7506 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7507 with_gnu_ld=$acl_cv_prog_gnu_ld
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7513 $as_echo_n "checking for shared library run path origin... " >&6; }
7514 if ${acl_cv_rpath+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7518 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7519 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7520 . ./conftest.sh
7521 rm -f ./conftest.sh
7522 acl_cv_rpath=done
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7526 $as_echo "$acl_cv_rpath" >&6; }
7527 wl="$acl_cv_wl"
7528 acl_libext="$acl_cv_libext"
7529 acl_shlibext="$acl_cv_shlibext"
7530 acl_libname_spec="$acl_cv_libname_spec"
7531 acl_library_names_spec="$acl_cv_library_names_spec"
7532 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7533 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7534 acl_hardcode_direct="$acl_cv_hardcode_direct"
7535 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7536 # Check whether --enable-rpath was given.
7537 if test "${enable_rpath+set}" = set; then :
7538 enableval=$enable_rpath; :
7539 else
7540 enable_rpath=yes
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7547 $as_echo_n "checking 32-bit host C ABI... " >&6; }
7548 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$gl_cv_host_cpu_c_abi"; then
7552 case "$gl_cv_host_cpu_c_abi" in
7553 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7554 gl_cv_host_cpu_c_abi_32bit=yes ;;
7555 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7556 gl_cv_host_cpu_c_abi_32bit=no ;;
7558 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7559 esac
7560 else
7561 case "$host_cpu" in
7563 # CPUs that only support a 32-bit ABI.
7564 arc \
7565 | bfin \
7566 | cris* \
7567 | csky \
7568 | epiphany \
7569 | ft32 \
7570 | h8300 \
7571 | m68k \
7572 | microblaze | microblazeel \
7573 | nds32 | nds32le | nds32be \
7574 | nios2 | nios2eb | nios2el \
7575 | or1k* \
7576 | or32 \
7577 | sh | sh1234 | sh1234elb \
7578 | tic6x \
7579 | xtensa* )
7580 gl_cv_host_cpu_c_abi_32bit=yes
7583 # CPUs that only support a 64-bit ABI.
7584 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7585 | mmix )
7586 gl_cv_host_cpu_c_abi_32bit=no
7589 i[34567]86 )
7590 gl_cv_host_cpu_c_abi_32bit=yes
7593 x86_64 )
7594 # On x86_64 systems, the C compiler may be generating code in one of
7595 # these ABIs:
7596 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7597 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7598 # with native Windows (mingw, MSVC).
7599 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7600 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #if (defined __x86_64__ || defined __amd64__ \
7604 || defined _M_X64 || defined _M_AMD64) \
7605 && !(defined __ILP32__ || defined _ILP32)
7606 int ok;
7607 #else
7608 error fail
7609 #endif
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 gl_cv_host_cpu_c_abi_32bit=no
7614 else
7615 gl_cv_host_cpu_c_abi_32bit=yes
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 arm* | aarch64 )
7621 # Assume arm with EABI.
7622 # On arm64 systems, the C compiler may be generating code in one of
7623 # these ABIs:
7624 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7625 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7626 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7630 int ok;
7631 #else
7632 error fail
7633 #endif
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 gl_cv_host_cpu_c_abi_32bit=no
7638 else
7639 gl_cv_host_cpu_c_abi_32bit=yes
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7645 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7646 # code. In the latter case, it defines _LP64 and __LP64__.
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #ifdef __LP64__
7650 int ok;
7651 #else
7652 error fail
7653 #endif
7655 _ACEOF
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 gl_cv_host_cpu_c_abi_32bit=no
7658 else
7659 gl_cv_host_cpu_c_abi_32bit=yes
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 ia64* )
7665 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7666 # 32-bit code. In the latter case, it defines _ILP32.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #ifdef _ILP32
7670 int ok;
7671 #else
7672 error fail
7673 #endif
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"; then :
7677 gl_cv_host_cpu_c_abi_32bit=yes
7678 else
7679 gl_cv_host_cpu_c_abi_32bit=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 mips* )
7685 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7686 # at 32.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7690 int ok;
7691 #else
7692 error fail
7693 #endif
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 gl_cv_host_cpu_c_abi_32bit=no
7698 else
7699 gl_cv_host_cpu_c_abi_32bit=yes
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 powerpc* )
7705 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7706 # No need to distinguish them here; the caller may distinguish
7707 # them based on the OS.
7708 # On powerpc64 systems, the C compiler may still be generating
7709 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7710 # be generating 64-bit code.
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #if defined __powerpc64__ || defined _ARCH_PPC64
7714 int ok;
7715 #else
7716 error fail
7717 #endif
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 gl_cv_host_cpu_c_abi_32bit=no
7722 else
7723 gl_cv_host_cpu_c_abi_32bit=yes
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 rs6000 )
7729 gl_cv_host_cpu_c_abi_32bit=yes
7732 riscv32 | riscv64 )
7733 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7734 # Size of 'long' and 'void *':
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #if defined __LP64__
7738 int ok;
7739 #else
7740 error fail
7741 #endif
7743 _ACEOF
7744 if ac_fn_c_try_compile "$LINENO"; then :
7745 gl_cv_host_cpu_c_abi_32bit=no
7746 else
7747 gl_cv_host_cpu_c_abi_32bit=yes
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 s390* )
7753 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7754 # or 31-bit (= s390) code.
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #if defined __LP64__ || defined __s390x__
7758 int ok;
7759 #else
7760 error fail
7761 #endif
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 gl_cv_host_cpu_c_abi_32bit=no
7766 else
7767 gl_cv_host_cpu_c_abi_32bit=yes
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 sparc | sparc64 )
7773 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7774 # C compiler still generates 32-bit code.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #if defined __sparcv9 || defined __arch64__
7778 int ok;
7779 #else
7780 error fail
7781 #endif
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 gl_cv_host_cpu_c_abi_32bit=no
7786 else
7787 gl_cv_host_cpu_c_abi_32bit=yes
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 gl_cv_host_cpu_c_abi_32bit=unknown
7795 esac
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7800 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7802 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7809 $as_echo_n "checking for ELF binary format... " >&6; }
7810 if ${gl_cv_elf+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #ifdef __ELF__
7816 Extensible Linking Format
7817 #endif
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7822 gl_cv_elf=yes
7823 else
7824 gl_cv_elf=no
7826 rm -f conftest*
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7831 $as_echo "$gl_cv_elf" >&6; }
7832 if test $gl_cv_elf; then
7833 # Extract the ELF class of a file (5th byte) in decimal.
7834 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7835 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7836 # Use POSIX od.
7837 func_elfclass ()
7839 od -A n -t d1 -j 4 -N 1
7841 else
7842 # Use BSD hexdump.
7843 func_elfclass ()
7845 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7846 echo
7849 case $HOST_CPU_C_ABI_32BIT in
7850 yes)
7851 # 32-bit ABI.
7852 acl_is_expected_elfclass ()
7854 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7858 # 64-bit ABI.
7859 acl_is_expected_elfclass ()
7861 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7865 # Unknown.
7866 acl_is_expected_elfclass ()
7871 esac
7872 else
7873 acl_is_expected_elfclass ()
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7880 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7881 if ${acl_cv_libdirstems+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 acl_libdirstem=lib
7885 acl_libdirstem2=
7886 acl_libdirstem3=
7887 case "$host_os" in
7888 solaris*)
7889 if test $HOST_CPU_C_ABI_32BIT = no; then
7890 acl_libdirstem2=lib/64
7891 case "$host_cpu" in
7892 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7893 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7894 esac
7898 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7899 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7900 if test $HOST_CPU_C_ABI_32BIT != no; then
7901 # 32-bit or unknown ABI.
7902 if test -d /usr/lib32; then
7903 acl_libdirstem2=lib32
7906 if test $HOST_CPU_C_ABI_32BIT != yes; then
7907 # 64-bit or unknown ABI.
7908 if test -d /usr/lib64; then
7909 acl_libdirstem3=lib64
7912 if test -n "$searchpath"; then
7913 acl_save_IFS="${IFS= }"; IFS=":"
7914 for searchdir in $searchpath; do
7915 if test -d "$searchdir"; then
7916 case "$searchdir" in
7917 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7918 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7919 */../ | */.. )
7920 # Better ignore directories of this form. They are misleading.
7922 *) searchdir=`cd "$searchdir" && pwd`
7923 case "$searchdir" in
7924 */lib32 ) acl_libdirstem2=lib32 ;;
7925 */lib64 ) acl_libdirstem3=lib64 ;;
7926 esac ;;
7927 esac
7929 done
7930 IFS="$acl_save_IFS"
7931 if test $HOST_CPU_C_ABI_32BIT = yes; then
7932 # 32-bit ABI.
7933 acl_libdirstem3=
7935 if test $HOST_CPU_C_ABI_32BIT = no; then
7936 # 64-bit ABI.
7937 acl_libdirstem2=
7941 esac
7942 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7943 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7944 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7948 $as_echo "$acl_cv_libdirstems" >&6; }
7949 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7950 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7951 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7963 use_additional=yes
7965 acl_save_prefix="$prefix"
7966 prefix="$acl_final_prefix"
7967 acl_save_exec_prefix="$exec_prefix"
7968 exec_prefix="$acl_final_exec_prefix"
7970 eval additional_includedir=\"$includedir\"
7971 eval additional_libdir=\"$libdir\"
7972 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7973 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7975 exec_prefix="$acl_save_exec_prefix"
7976 prefix="$acl_save_prefix"
7979 # Check whether --with-libiconv-prefix was given.
7980 if test "${with_libiconv_prefix+set}" = set; then :
7981 withval=$with_libiconv_prefix;
7982 if test "X$withval" = "Xno"; then
7983 use_additional=no
7984 else
7985 if test "X$withval" = "X"; then
7987 acl_save_prefix="$prefix"
7988 prefix="$acl_final_prefix"
7989 acl_save_exec_prefix="$exec_prefix"
7990 exec_prefix="$acl_final_exec_prefix"
7992 eval additional_includedir=\"$includedir\"
7993 eval additional_libdir=\"$libdir\"
7994 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7995 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7997 exec_prefix="$acl_save_exec_prefix"
7998 prefix="$acl_save_prefix"
8000 else
8001 additional_includedir="$withval/include"
8002 additional_libdir="$withval/$acl_libdirstem"
8003 additional_libdir2="$withval/$acl_libdirstem2"
8004 additional_libdir3="$withval/$acl_libdirstem3"
8010 if test "X$additional_libdir2" = "X$additional_libdir"; then
8011 additional_libdir2=
8013 if test "X$additional_libdir3" = "X$additional_libdir"; then
8014 additional_libdir3=
8016 LIBICONV=
8017 LTLIBICONV=
8018 INCICONV=
8019 LIBICONV_PREFIX=
8020 HAVE_LIBICONV=
8021 rpathdirs=
8022 ltrpathdirs=
8023 names_already_handled=
8024 names_next_round='iconv '
8025 while test -n "$names_next_round"; do
8026 names_this_round="$names_next_round"
8027 names_next_round=
8028 for name in $names_this_round; do
8029 already_handled=
8030 for n in $names_already_handled; do
8031 if test "$n" = "$name"; then
8032 already_handled=yes
8033 break
8035 done
8036 if test -z "$already_handled"; then
8037 names_already_handled="$names_already_handled $name"
8038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8039 eval value=\"\$HAVE_LIB$uppername\"
8040 if test -n "$value"; then
8041 if test "$value" = yes; then
8042 eval value=\"\$LIB$uppername\"
8043 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8044 eval value=\"\$LTLIB$uppername\"
8045 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8046 else
8049 else
8050 found_dir=
8051 found_la=
8052 found_so=
8053 found_a=
8054 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8055 if test -n "$acl_shlibext"; then
8056 shrext=".$acl_shlibext" # typically: shrext=.so
8057 else
8058 shrext=
8060 if test $use_additional = yes; then
8061 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8062 if test "X$found_dir" = "X"; then
8063 eval dir=\$$additional_libdir_variable
8064 if test -n "$dir"; then
8065 if test -n "$acl_shlibext"; then
8066 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8067 found_dir="$dir"
8068 found_so="$dir/$libname$shrext"
8069 else
8070 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8071 ver=`(cd "$dir" && \
8072 for f in "$libname$shrext".*; do echo "$f"; done \
8073 | sed -e "s,^$libname$shrext\\\\.,," \
8074 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8075 | sed 1q ) 2>/dev/null`
8076 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8077 found_dir="$dir"
8078 found_so="$dir/$libname$shrext.$ver"
8080 else
8081 eval library_names=\"$acl_library_names_spec\"
8082 for f in $library_names; do
8083 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8084 found_dir="$dir"
8085 found_so="$dir/$f"
8086 break
8088 done
8092 if test "X$found_dir" = "X"; then
8093 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8094 found_dir="$dir"
8095 found_a="$dir/$libname.$acl_libext"
8098 if test "X$found_dir" != "X"; then
8099 if test -f "$dir/$libname.la"; then
8100 found_la="$dir/$libname.la"
8105 done
8107 if test "X$found_dir" = "X"; then
8108 for x in $LDFLAGS $LTLIBICONV; do
8110 acl_save_prefix="$prefix"
8111 prefix="$acl_final_prefix"
8112 acl_save_exec_prefix="$exec_prefix"
8113 exec_prefix="$acl_final_exec_prefix"
8114 eval x=\"$x\"
8115 exec_prefix="$acl_save_exec_prefix"
8116 prefix="$acl_save_prefix"
8118 case "$x" in
8119 -L*)
8120 dir=`echo "X$x" | sed -e 's/^X-L//'`
8121 if test -n "$acl_shlibext"; then
8122 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8123 found_dir="$dir"
8124 found_so="$dir/$libname$shrext"
8125 else
8126 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8127 ver=`(cd "$dir" && \
8128 for f in "$libname$shrext".*; do echo "$f"; done \
8129 | sed -e "s,^$libname$shrext\\\\.,," \
8130 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8131 | sed 1q ) 2>/dev/null`
8132 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8133 found_dir="$dir"
8134 found_so="$dir/$libname$shrext.$ver"
8136 else
8137 eval library_names=\"$acl_library_names_spec\"
8138 for f in $library_names; do
8139 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8140 found_dir="$dir"
8141 found_so="$dir/$f"
8142 break
8144 done
8148 if test "X$found_dir" = "X"; then
8149 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8150 found_dir="$dir"
8151 found_a="$dir/$libname.$acl_libext"
8154 if test "X$found_dir" != "X"; then
8155 if test -f "$dir/$libname.la"; then
8156 found_la="$dir/$libname.la"
8160 esac
8161 if test "X$found_dir" != "X"; then
8162 break
8164 done
8166 if test "X$found_dir" != "X"; then
8167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8168 if test "X$found_so" != "X"; then
8169 if test "$enable_rpath" = no \
8170 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8171 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8172 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8174 else
8175 haveit=
8176 for x in $ltrpathdirs; do
8177 if test "X$x" = "X$found_dir"; then
8178 haveit=yes
8179 break
8181 done
8182 if test -z "$haveit"; then
8183 ltrpathdirs="$ltrpathdirs $found_dir"
8185 if test "$acl_hardcode_direct" = yes; then
8186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8187 else
8188 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8190 haveit=
8191 for x in $rpathdirs; do
8192 if test "X$x" = "X$found_dir"; then
8193 haveit=yes
8194 break
8196 done
8197 if test -z "$haveit"; then
8198 rpathdirs="$rpathdirs $found_dir"
8200 else
8201 haveit=
8202 for x in $LDFLAGS $LIBICONV; do
8204 acl_save_prefix="$prefix"
8205 prefix="$acl_final_prefix"
8206 acl_save_exec_prefix="$exec_prefix"
8207 exec_prefix="$acl_final_exec_prefix"
8208 eval x=\"$x\"
8209 exec_prefix="$acl_save_exec_prefix"
8210 prefix="$acl_save_prefix"
8212 if test "X$x" = "X-L$found_dir"; then
8213 haveit=yes
8214 break
8216 done
8217 if test -z "$haveit"; then
8218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8220 if test "$acl_hardcode_minus_L" != no; then
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8222 else
8223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8228 else
8229 if test "X$found_a" != "X"; then
8230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8231 else
8232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8235 additional_includedir=
8236 case "$found_dir" in
8237 */$acl_libdirstem | */$acl_libdirstem/)
8238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8239 if test "$name" = 'iconv'; then
8240 LIBICONV_PREFIX="$basedir"
8242 additional_includedir="$basedir/include"
8244 */$acl_libdirstem2 | */$acl_libdirstem2/)
8245 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8246 if test "$name" = 'iconv'; then
8247 LIBICONV_PREFIX="$basedir"
8249 additional_includedir="$basedir/include"
8251 */$acl_libdirstem3 | */$acl_libdirstem3/)
8252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8253 if test "$name" = 'iconv'; then
8254 LIBICONV_PREFIX="$basedir"
8256 additional_includedir="$basedir/include"
8258 esac
8259 if test "X$additional_includedir" != "X"; then
8260 if test "X$additional_includedir" != "X/usr/include"; then
8261 haveit=
8262 if test "X$additional_includedir" = "X/usr/local/include"; then
8263 if test -n "$GCC"; then
8264 case $host_os in
8265 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8266 esac
8269 if test -z "$haveit"; then
8270 for x in $CPPFLAGS $INCICONV; do
8272 acl_save_prefix="$prefix"
8273 prefix="$acl_final_prefix"
8274 acl_save_exec_prefix="$exec_prefix"
8275 exec_prefix="$acl_final_exec_prefix"
8276 eval x=\"$x\"
8277 exec_prefix="$acl_save_exec_prefix"
8278 prefix="$acl_save_prefix"
8280 if test "X$x" = "X-I$additional_includedir"; then
8281 haveit=yes
8282 break
8284 done
8285 if test -z "$haveit"; then
8286 if test -d "$additional_includedir"; then
8287 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8293 if test -n "$found_la"; then
8294 save_libdir="$libdir"
8295 case "$found_la" in
8296 */* | *\\*) . "$found_la" ;;
8297 *) . "./$found_la" ;;
8298 esac
8299 libdir="$save_libdir"
8300 for dep in $dependency_libs; do
8301 case "$dep" in
8302 -L*)
8303 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8304 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8305 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8306 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8307 haveit=
8308 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8309 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8310 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8311 if test -n "$GCC"; then
8312 case $host_os in
8313 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8314 esac
8317 if test -z "$haveit"; then
8318 haveit=
8319 for x in $LDFLAGS $LIBICONV; do
8321 acl_save_prefix="$prefix"
8322 prefix="$acl_final_prefix"
8323 acl_save_exec_prefix="$exec_prefix"
8324 exec_prefix="$acl_final_exec_prefix"
8325 eval x=\"$x\"
8326 exec_prefix="$acl_save_exec_prefix"
8327 prefix="$acl_save_prefix"
8329 if test "X$x" = "X-L$dependency_libdir"; then
8330 haveit=yes
8331 break
8333 done
8334 if test -z "$haveit"; then
8335 if test -d "$dependency_libdir"; then
8336 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8339 haveit=
8340 for x in $LDFLAGS $LTLIBICONV; do
8342 acl_save_prefix="$prefix"
8343 prefix="$acl_final_prefix"
8344 acl_save_exec_prefix="$exec_prefix"
8345 exec_prefix="$acl_final_exec_prefix"
8346 eval x=\"$x\"
8347 exec_prefix="$acl_save_exec_prefix"
8348 prefix="$acl_save_prefix"
8350 if test "X$x" = "X-L$dependency_libdir"; then
8351 haveit=yes
8352 break
8354 done
8355 if test -z "$haveit"; then
8356 if test -d "$dependency_libdir"; then
8357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8363 -R*)
8364 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8365 if test "$enable_rpath" != no; then
8366 haveit=
8367 for x in $rpathdirs; do
8368 if test "X$x" = "X$dir"; then
8369 haveit=yes
8370 break
8372 done
8373 if test -z "$haveit"; then
8374 rpathdirs="$rpathdirs $dir"
8376 haveit=
8377 for x in $ltrpathdirs; do
8378 if test "X$x" = "X$dir"; then
8379 haveit=yes
8380 break
8382 done
8383 if test -z "$haveit"; then
8384 ltrpathdirs="$ltrpathdirs $dir"
8388 -l*)
8389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8391 *.la)
8392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8395 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8398 esac
8399 done
8401 else
8402 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8403 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8407 done
8408 done
8409 if test "X$rpathdirs" != "X"; then
8410 if test -n "$acl_hardcode_libdir_separator"; then
8411 alldirs=
8412 for found_dir in $rpathdirs; do
8413 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8414 done
8415 acl_save_libdir="$libdir"
8416 libdir="$alldirs"
8417 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8418 libdir="$acl_save_libdir"
8419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8420 else
8421 for found_dir in $rpathdirs; do
8422 acl_save_libdir="$libdir"
8423 libdir="$found_dir"
8424 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8425 libdir="$acl_save_libdir"
8426 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8427 done
8430 if test "X$ltrpathdirs" != "X"; then
8431 for found_dir in $ltrpathdirs; do
8432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8433 done
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8465 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8466 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 gt_save_LIBS="$LIBS"
8470 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 #include <CoreFoundation/CFPreferences.h>
8475 main ()
8477 CFPreferencesCopyAppValue(NULL, NULL)
8479 return 0;
8481 _ACEOF
8482 if ac_fn_c_try_link "$LINENO"; then :
8483 gt_cv_func_CFPreferencesCopyAppValue=yes
8484 else
8485 gt_cv_func_CFPreferencesCopyAppValue=no
8487 rm -f core conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
8489 LIBS="$gt_save_LIBS"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8492 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8493 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8495 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8499 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8500 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 gt_save_LIBS="$LIBS"
8504 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <CoreFoundation/CFLocale.h>
8509 main ()
8511 CFLocaleCopyPreferredLanguages();
8513 return 0;
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
8518 else
8519 gt_cv_func_CFLocaleCopyPreferredLanguages=no
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS="$gt_save_LIBS"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8526 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8527 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8529 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
8532 INTL_MACOSX_LIBS=
8533 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8534 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
8535 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8543 LIBINTL=
8544 LTLIBINTL=
8545 POSUB=
8547 case " $gt_needs " in
8548 *" need-formatstring-macros "*) gt_api_version=3 ;;
8549 *" need-ngettext "*) gt_api_version=2 ;;
8550 *) gt_api_version=1 ;;
8551 esac
8552 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8553 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8555 if test "$USE_NLS" = "yes"; then
8556 gt_use_preinstalled_gnugettext=no
8559 if test $gt_api_version -ge 3; then
8560 gt_revision_test_code='
8561 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8562 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8563 #endif
8564 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8566 else
8567 gt_revision_test_code=
8569 if test $gt_api_version -ge 2; then
8570 gt_expression_test_code=' + * ngettext ("", "", 0)'
8571 else
8572 gt_expression_test_code=
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8576 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8577 if eval \${$gt_func_gnugettext_libc+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 #include <libintl.h>
8584 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8585 extern int _nl_msg_cat_cntr;
8586 extern int *_nl_domain_bindings;
8587 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8588 #else
8589 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8590 #endif
8591 $gt_revision_test_code
8594 main ()
8597 bindtextdomain ("", "");
8598 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8601 return 0;
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 eval "$gt_func_gnugettext_libc=yes"
8606 else
8607 eval "$gt_func_gnugettext_libc=no"
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8612 eval ac_res=\$$gt_func_gnugettext_libc
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8614 $as_echo "$ac_res" >&6; }
8616 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8622 am_save_CPPFLAGS="$CPPFLAGS"
8624 for element in $INCICONV; do
8625 haveit=
8626 for x in $CPPFLAGS; do
8628 acl_save_prefix="$prefix"
8629 prefix="$acl_final_prefix"
8630 acl_save_exec_prefix="$exec_prefix"
8631 exec_prefix="$acl_final_exec_prefix"
8632 eval x=\"$x\"
8633 exec_prefix="$acl_save_exec_prefix"
8634 prefix="$acl_save_prefix"
8636 if test "X$x" = "X$element"; then
8637 haveit=yes
8638 break
8640 done
8641 if test -z "$haveit"; then
8642 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8644 done
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8648 $as_echo_n "checking for iconv... " >&6; }
8649 if ${am_cv_func_iconv+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8653 am_cv_func_iconv="no, consider installing GNU libiconv"
8654 am_cv_lib_iconv=no
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8658 #include <stdlib.h>
8659 #include <iconv.h>
8662 main ()
8664 iconv_t cd = iconv_open("","");
8665 iconv(cd,NULL,NULL,NULL,NULL);
8666 iconv_close(cd);
8668 return 0;
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8672 am_cv_func_iconv=yes
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test "$am_cv_func_iconv" != yes; then
8677 am_save_LIBS="$LIBS"
8678 LIBS="$LIBS $LIBICONV"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 #include <stdlib.h>
8683 #include <iconv.h>
8686 main ()
8688 iconv_t cd = iconv_open("","");
8689 iconv(cd,NULL,NULL,NULL,NULL);
8690 iconv_close(cd);
8692 return 0;
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696 am_cv_lib_iconv=yes
8697 am_cv_func_iconv=yes
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS="$am_save_LIBS"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8706 $as_echo "$am_cv_func_iconv" >&6; }
8707 if test "$am_cv_func_iconv" = yes; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8709 $as_echo_n "checking for working iconv... " >&6; }
8710 if ${am_cv_func_iconv_works+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8714 am_save_LIBS="$LIBS"
8715 if test $am_cv_lib_iconv = yes; then
8716 LIBS="$LIBS $LIBICONV"
8718 am_cv_func_iconv_works=no
8719 for ac_iconv_const in '' 'const'; do
8720 if test "$cross_compiling" = yes; then :
8721 case "$host_os" in
8722 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8723 *) am_cv_func_iconv_works="guessing yes" ;;
8724 esac
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8729 #include <iconv.h>
8730 #include <string.h>
8732 #ifndef ICONV_CONST
8733 # define ICONV_CONST $ac_iconv_const
8734 #endif
8737 main ()
8739 int result = 0;
8740 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8741 returns. */
8743 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8744 if (cd_utf8_to_88591 != (iconv_t)(-1))
8746 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8747 char buf[10];
8748 ICONV_CONST char *inptr = input;
8749 size_t inbytesleft = strlen (input);
8750 char *outptr = buf;
8751 size_t outbytesleft = sizeof (buf);
8752 size_t res = iconv (cd_utf8_to_88591,
8753 &inptr, &inbytesleft,
8754 &outptr, &outbytesleft);
8755 if (res == 0)
8756 result |= 1;
8757 iconv_close (cd_utf8_to_88591);
8760 /* Test against Solaris 10 bug: Failures are not distinguishable from
8761 successful returns. */
8763 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8764 if (cd_ascii_to_88591 != (iconv_t)(-1))
8766 static ICONV_CONST char input[] = "\263";
8767 char buf[10];
8768 ICONV_CONST char *inptr = input;
8769 size_t inbytesleft = strlen (input);
8770 char *outptr = buf;
8771 size_t outbytesleft = sizeof (buf);
8772 size_t res = iconv (cd_ascii_to_88591,
8773 &inptr, &inbytesleft,
8774 &outptr, &outbytesleft);
8775 if (res == 0)
8776 result |= 2;
8777 iconv_close (cd_ascii_to_88591);
8780 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8782 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8783 if (cd_88591_to_utf8 != (iconv_t)(-1))
8785 static ICONV_CONST char input[] = "\304";
8786 static char buf[2] = { (char)0xDE, (char)0xAD };
8787 ICONV_CONST char *inptr = input;
8788 size_t inbytesleft = 1;
8789 char *outptr = buf;
8790 size_t outbytesleft = 1;
8791 size_t res = iconv (cd_88591_to_utf8,
8792 &inptr, &inbytesleft,
8793 &outptr, &outbytesleft);
8794 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8795 result |= 4;
8796 iconv_close (cd_88591_to_utf8);
8799 #if 0 /* This bug could be worked around by the caller. */
8800 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8802 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8803 if (cd_88591_to_utf8 != (iconv_t)(-1))
8805 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8806 char buf[50];
8807 ICONV_CONST char *inptr = input;
8808 size_t inbytesleft = strlen (input);
8809 char *outptr = buf;
8810 size_t outbytesleft = sizeof (buf);
8811 size_t res = iconv (cd_88591_to_utf8,
8812 &inptr, &inbytesleft,
8813 &outptr, &outbytesleft);
8814 if ((int)res > 0)
8815 result |= 8;
8816 iconv_close (cd_88591_to_utf8);
8819 #endif
8820 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8821 provided. */
8823 /* Try standardized names. */
8824 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8825 /* Try IRIX, OSF/1 names. */
8826 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8827 /* Try AIX names. */
8828 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8829 /* Try HP-UX names. */
8830 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8831 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8832 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8833 result |= 16;
8834 if (cd1 != (iconv_t)(-1))
8835 iconv_close (cd1);
8836 if (cd2 != (iconv_t)(-1))
8837 iconv_close (cd2);
8838 if (cd3 != (iconv_t)(-1))
8839 iconv_close (cd3);
8840 if (cd4 != (iconv_t)(-1))
8841 iconv_close (cd4);
8843 return result;
8846 return 0;
8848 _ACEOF
8849 if ac_fn_c_try_run "$LINENO"; then :
8850 am_cv_func_iconv_works=yes
8852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8853 conftest.$ac_objext conftest.beam conftest.$ac_ext
8856 test "$am_cv_func_iconv_works" = no || break
8857 done
8858 LIBS="$am_save_LIBS"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8862 $as_echo "$am_cv_func_iconv_works" >&6; }
8863 case "$am_cv_func_iconv_works" in
8864 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8865 *) am_func_iconv=yes ;;
8866 esac
8867 else
8868 am_func_iconv=no am_cv_lib_iconv=no
8870 if test "$am_func_iconv" = yes; then
8872 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8875 if test "$am_cv_lib_iconv" = yes; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8877 $as_echo_n "checking how to link with libiconv... " >&6; }
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8879 $as_echo "$LIBICONV" >&6; }
8880 else
8881 CPPFLAGS="$am_save_CPPFLAGS"
8882 LIBICONV=
8883 LTLIBICONV=
8895 use_additional=yes
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
8902 eval additional_includedir=\"$includedir\"
8903 eval additional_libdir=\"$libdir\"
8904 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8905 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8907 exec_prefix="$acl_save_exec_prefix"
8908 prefix="$acl_save_prefix"
8911 # Check whether --with-libintl-prefix was given.
8912 if test "${with_libintl_prefix+set}" = set; then :
8913 withval=$with_libintl_prefix;
8914 if test "X$withval" = "Xno"; then
8915 use_additional=no
8916 else
8917 if test "X$withval" = "X"; then
8919 acl_save_prefix="$prefix"
8920 prefix="$acl_final_prefix"
8921 acl_save_exec_prefix="$exec_prefix"
8922 exec_prefix="$acl_final_exec_prefix"
8924 eval additional_includedir=\"$includedir\"
8925 eval additional_libdir=\"$libdir\"
8926 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8927 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8929 exec_prefix="$acl_save_exec_prefix"
8930 prefix="$acl_save_prefix"
8932 else
8933 additional_includedir="$withval/include"
8934 additional_libdir="$withval/$acl_libdirstem"
8935 additional_libdir2="$withval/$acl_libdirstem2"
8936 additional_libdir3="$withval/$acl_libdirstem3"
8942 if test "X$additional_libdir2" = "X$additional_libdir"; then
8943 additional_libdir2=
8945 if test "X$additional_libdir3" = "X$additional_libdir"; then
8946 additional_libdir3=
8948 LIBINTL=
8949 LTLIBINTL=
8950 INCINTL=
8951 LIBINTL_PREFIX=
8952 HAVE_LIBINTL=
8953 rpathdirs=
8954 ltrpathdirs=
8955 names_already_handled=
8956 names_next_round='intl '
8957 while test -n "$names_next_round"; do
8958 names_this_round="$names_next_round"
8959 names_next_round=
8960 for name in $names_this_round; do
8961 already_handled=
8962 for n in $names_already_handled; do
8963 if test "$n" = "$name"; then
8964 already_handled=yes
8965 break
8967 done
8968 if test -z "$already_handled"; then
8969 names_already_handled="$names_already_handled $name"
8970 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8971 eval value=\"\$HAVE_LIB$uppername\"
8972 if test -n "$value"; then
8973 if test "$value" = yes; then
8974 eval value=\"\$LIB$uppername\"
8975 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8976 eval value=\"\$LTLIB$uppername\"
8977 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8978 else
8981 else
8982 found_dir=
8983 found_la=
8984 found_so=
8985 found_a=
8986 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8987 if test -n "$acl_shlibext"; then
8988 shrext=".$acl_shlibext" # typically: shrext=.so
8989 else
8990 shrext=
8992 if test $use_additional = yes; then
8993 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8994 if test "X$found_dir" = "X"; then
8995 eval dir=\$$additional_libdir_variable
8996 if test -n "$dir"; then
8997 if test -n "$acl_shlibext"; then
8998 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8999 found_dir="$dir"
9000 found_so="$dir/$libname$shrext"
9001 else
9002 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9003 ver=`(cd "$dir" && \
9004 for f in "$libname$shrext".*; do echo "$f"; done \
9005 | sed -e "s,^$libname$shrext\\\\.,," \
9006 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9007 | sed 1q ) 2>/dev/null`
9008 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9009 found_dir="$dir"
9010 found_so="$dir/$libname$shrext.$ver"
9012 else
9013 eval library_names=\"$acl_library_names_spec\"
9014 for f in $library_names; do
9015 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9016 found_dir="$dir"
9017 found_so="$dir/$f"
9018 break
9020 done
9024 if test "X$found_dir" = "X"; then
9025 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9026 found_dir="$dir"
9027 found_a="$dir/$libname.$acl_libext"
9030 if test "X$found_dir" != "X"; then
9031 if test -f "$dir/$libname.la"; then
9032 found_la="$dir/$libname.la"
9037 done
9039 if test "X$found_dir" = "X"; then
9040 for x in $LDFLAGS $LTLIBINTL; do
9042 acl_save_prefix="$prefix"
9043 prefix="$acl_final_prefix"
9044 acl_save_exec_prefix="$exec_prefix"
9045 exec_prefix="$acl_final_exec_prefix"
9046 eval x=\"$x\"
9047 exec_prefix="$acl_save_exec_prefix"
9048 prefix="$acl_save_prefix"
9050 case "$x" in
9051 -L*)
9052 dir=`echo "X$x" | sed -e 's/^X-L//'`
9053 if test -n "$acl_shlibext"; then
9054 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9055 found_dir="$dir"
9056 found_so="$dir/$libname$shrext"
9057 else
9058 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9059 ver=`(cd "$dir" && \
9060 for f in "$libname$shrext".*; do echo "$f"; done \
9061 | sed -e "s,^$libname$shrext\\\\.,," \
9062 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9063 | sed 1q ) 2>/dev/null`
9064 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9065 found_dir="$dir"
9066 found_so="$dir/$libname$shrext.$ver"
9068 else
9069 eval library_names=\"$acl_library_names_spec\"
9070 for f in $library_names; do
9071 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9072 found_dir="$dir"
9073 found_so="$dir/$f"
9074 break
9076 done
9080 if test "X$found_dir" = "X"; then
9081 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9082 found_dir="$dir"
9083 found_a="$dir/$libname.$acl_libext"
9086 if test "X$found_dir" != "X"; then
9087 if test -f "$dir/$libname.la"; then
9088 found_la="$dir/$libname.la"
9092 esac
9093 if test "X$found_dir" != "X"; then
9094 break
9096 done
9098 if test "X$found_dir" != "X"; then
9099 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9100 if test "X$found_so" != "X"; then
9101 if test "$enable_rpath" = no \
9102 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9103 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9104 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9106 else
9107 haveit=
9108 for x in $ltrpathdirs; do
9109 if test "X$x" = "X$found_dir"; then
9110 haveit=yes
9111 break
9113 done
9114 if test -z "$haveit"; then
9115 ltrpathdirs="$ltrpathdirs $found_dir"
9117 if test "$acl_hardcode_direct" = yes; then
9118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9119 else
9120 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9122 haveit=
9123 for x in $rpathdirs; do
9124 if test "X$x" = "X$found_dir"; then
9125 haveit=yes
9126 break
9128 done
9129 if test -z "$haveit"; then
9130 rpathdirs="$rpathdirs $found_dir"
9132 else
9133 haveit=
9134 for x in $LDFLAGS $LIBINTL; do
9136 acl_save_prefix="$prefix"
9137 prefix="$acl_final_prefix"
9138 acl_save_exec_prefix="$exec_prefix"
9139 exec_prefix="$acl_final_exec_prefix"
9140 eval x=\"$x\"
9141 exec_prefix="$acl_save_exec_prefix"
9142 prefix="$acl_save_prefix"
9144 if test "X$x" = "X-L$found_dir"; then
9145 haveit=yes
9146 break
9148 done
9149 if test -z "$haveit"; then
9150 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9152 if test "$acl_hardcode_minus_L" != no; then
9153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9154 else
9155 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9160 else
9161 if test "X$found_a" != "X"; then
9162 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9163 else
9164 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9167 additional_includedir=
9168 case "$found_dir" in
9169 */$acl_libdirstem | */$acl_libdirstem/)
9170 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9171 if test "$name" = 'intl'; then
9172 LIBINTL_PREFIX="$basedir"
9174 additional_includedir="$basedir/include"
9176 */$acl_libdirstem2 | */$acl_libdirstem2/)
9177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9178 if test "$name" = 'intl'; then
9179 LIBINTL_PREFIX="$basedir"
9181 additional_includedir="$basedir/include"
9183 */$acl_libdirstem3 | */$acl_libdirstem3/)
9184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9185 if test "$name" = 'intl'; then
9186 LIBINTL_PREFIX="$basedir"
9188 additional_includedir="$basedir/include"
9190 esac
9191 if test "X$additional_includedir" != "X"; then
9192 if test "X$additional_includedir" != "X/usr/include"; then
9193 haveit=
9194 if test "X$additional_includedir" = "X/usr/local/include"; then
9195 if test -n "$GCC"; then
9196 case $host_os in
9197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9198 esac
9201 if test -z "$haveit"; then
9202 for x in $CPPFLAGS $INCINTL; do
9204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9212 if test "X$x" = "X-I$additional_includedir"; then
9213 haveit=yes
9214 break
9216 done
9217 if test -z "$haveit"; then
9218 if test -d "$additional_includedir"; then
9219 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9225 if test -n "$found_la"; then
9226 save_libdir="$libdir"
9227 case "$found_la" in
9228 */* | *\\*) . "$found_la" ;;
9229 *) . "./$found_la" ;;
9230 esac
9231 libdir="$save_libdir"
9232 for dep in $dependency_libs; do
9233 case "$dep" in
9234 -L*)
9235 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9236 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9237 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9238 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9239 haveit=
9240 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9241 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9242 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9243 if test -n "$GCC"; then
9244 case $host_os in
9245 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9246 esac
9249 if test -z "$haveit"; then
9250 haveit=
9251 for x in $LDFLAGS $LIBINTL; do
9253 acl_save_prefix="$prefix"
9254 prefix="$acl_final_prefix"
9255 acl_save_exec_prefix="$exec_prefix"
9256 exec_prefix="$acl_final_exec_prefix"
9257 eval x=\"$x\"
9258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
9261 if test "X$x" = "X-L$dependency_libdir"; then
9262 haveit=yes
9263 break
9265 done
9266 if test -z "$haveit"; then
9267 if test -d "$dependency_libdir"; then
9268 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9271 haveit=
9272 for x in $LDFLAGS $LTLIBINTL; do
9274 acl_save_prefix="$prefix"
9275 prefix="$acl_final_prefix"
9276 acl_save_exec_prefix="$exec_prefix"
9277 exec_prefix="$acl_final_exec_prefix"
9278 eval x=\"$x\"
9279 exec_prefix="$acl_save_exec_prefix"
9280 prefix="$acl_save_prefix"
9282 if test "X$x" = "X-L$dependency_libdir"; then
9283 haveit=yes
9284 break
9286 done
9287 if test -z "$haveit"; then
9288 if test -d "$dependency_libdir"; then
9289 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9295 -R*)
9296 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9297 if test "$enable_rpath" != no; then
9298 haveit=
9299 for x in $rpathdirs; do
9300 if test "X$x" = "X$dir"; then
9301 haveit=yes
9302 break
9304 done
9305 if test -z "$haveit"; then
9306 rpathdirs="$rpathdirs $dir"
9308 haveit=
9309 for x in $ltrpathdirs; do
9310 if test "X$x" = "X$dir"; then
9311 haveit=yes
9312 break
9314 done
9315 if test -z "$haveit"; then
9316 ltrpathdirs="$ltrpathdirs $dir"
9320 -l*)
9321 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9323 *.la)
9324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9327 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9330 esac
9331 done
9333 else
9334 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9335 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9339 done
9340 done
9341 if test "X$rpathdirs" != "X"; then
9342 if test -n "$acl_hardcode_libdir_separator"; then
9343 alldirs=
9344 for found_dir in $rpathdirs; do
9345 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9346 done
9347 acl_save_libdir="$libdir"
9348 libdir="$alldirs"
9349 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9350 libdir="$acl_save_libdir"
9351 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9352 else
9353 for found_dir in $rpathdirs; do
9354 acl_save_libdir="$libdir"
9355 libdir="$found_dir"
9356 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9357 libdir="$acl_save_libdir"
9358 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9359 done
9362 if test "X$ltrpathdirs" != "X"; then
9363 for found_dir in $ltrpathdirs; do
9364 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9365 done
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9373 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9374 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 gt_save_CPPFLAGS="$CPPFLAGS"
9378 CPPFLAGS="$CPPFLAGS $INCINTL"
9379 gt_save_LIBS="$LIBS"
9380 LIBS="$LIBS $LIBINTL"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9384 #include <libintl.h>
9385 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9386 extern int _nl_msg_cat_cntr;
9387 extern
9388 #ifdef __cplusplus
9390 #endif
9391 const char *_nl_expand_alias (const char *);
9392 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9393 #else
9394 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9395 #endif
9396 $gt_revision_test_code
9399 main ()
9402 bindtextdomain ("", "");
9403 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9406 return 0;
9408 _ACEOF
9409 if ac_fn_c_try_link "$LINENO"; then :
9410 eval "$gt_func_gnugettext_libintl=yes"
9411 else
9412 eval "$gt_func_gnugettext_libintl=no"
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9417 LIBS="$LIBS $LIBICONV"
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9421 #include <libintl.h>
9422 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9423 extern int _nl_msg_cat_cntr;
9424 extern
9425 #ifdef __cplusplus
9427 #endif
9428 const char *_nl_expand_alias (const char *);
9429 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9430 #else
9431 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9432 #endif
9433 $gt_revision_test_code
9436 main ()
9439 bindtextdomain ("", "");
9440 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9443 return 0;
9445 _ACEOF
9446 if ac_fn_c_try_link "$LINENO"; then :
9447 LIBINTL="$LIBINTL $LIBICONV"
9448 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9449 eval "$gt_func_gnugettext_libintl=yes"
9452 rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9455 CPPFLAGS="$gt_save_CPPFLAGS"
9456 LIBS="$gt_save_LIBS"
9458 eval ac_res=\$$gt_func_gnugettext_libintl
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9460 $as_echo "$ac_res" >&6; }
9463 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9464 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9465 && test "$PACKAGE" != gettext-runtime \
9466 && test "$PACKAGE" != gettext-tools; }; then
9467 gt_use_preinstalled_gnugettext=yes
9468 else
9469 LIBINTL=
9470 LTLIBINTL=
9471 INCINTL=
9476 if test -n "$INTL_MACOSX_LIBS"; then
9477 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9478 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9479 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9480 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9484 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9485 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9487 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9489 else
9490 USE_NLS=no
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9495 $as_echo_n "checking whether to use NLS... " >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9497 $as_echo "$USE_NLS" >&6; }
9498 if test "$USE_NLS" = "yes"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9500 $as_echo_n "checking where the gettext function comes from... " >&6; }
9501 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9502 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9503 gt_source="external libintl"
9504 else
9505 gt_source="libc"
9507 else
9508 gt_source="included intl directory"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9511 $as_echo "$gt_source" >&6; }
9514 if test "$USE_NLS" = "yes"; then
9516 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9517 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9519 $as_echo_n "checking how to link with libintl... " >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9521 $as_echo "$LIBINTL" >&6; }
9523 for element in $INCINTL; do
9524 haveit=
9525 for x in $CPPFLAGS; do
9527 acl_save_prefix="$prefix"
9528 prefix="$acl_final_prefix"
9529 acl_save_exec_prefix="$exec_prefix"
9530 exec_prefix="$acl_final_exec_prefix"
9531 eval x=\"$x\"
9532 exec_prefix="$acl_save_exec_prefix"
9533 prefix="$acl_save_prefix"
9535 if test "X$x" = "X$element"; then
9536 haveit=yes
9537 break
9539 done
9540 if test -z "$haveit"; then
9541 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9543 done
9548 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9551 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9555 POSUB=po
9560 INTLLIBS="$LIBINTL"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9570 set x ${MAKE-make}
9571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9572 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 cat >conftest.make <<\_ACEOF
9576 SHELL = /bin/sh
9577 all:
9578 @echo '@@@%%%=$(MAKE)=@@@%%%'
9579 _ACEOF
9580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9582 *@@@%%%=?*=@@@%%%*)
9583 eval ac_cv_prog_make_${ac_make}_set=yes;;
9585 eval ac_cv_prog_make_${ac_make}_set=no;;
9586 esac
9587 rm -f conftest.make
9589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591 $as_echo "yes" >&6; }
9592 SET_MAKE=
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9596 SET_MAKE="MAKE=${MAKE-make}"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9600 $as_echo_n "checking for GNU make... " >&6; }
9601 if ${_cv_gnu_make_command+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 _cv_gnu_make_command='' ;
9605 if test -n "$FORCE_NATIVE_MAKE" ; then
9606 MAKES="make"
9607 else
9608 MAKES="make gmake gnumake"
9610 for a in "$MAKE" $MAKES ; do
9611 if test -z "$a" ; then continue ; fi ;
9612 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9613 _cv_gnu_make_command=$a ;
9614 break;
9616 done ;
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9620 $as_echo "$_cv_gnu_make_command" >&6; } ;
9621 if test "x$_cv_gnu_make_command" != "x" ; then
9622 ifGNUmake='' ;
9623 ifNotGNUmake='#' ;
9624 else
9625 ifGNUmake='#' ;
9626 ifNotGNUmake='' ;
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9628 $as_echo "\"Not found\"" >&6; };
9633 # Extract the first word of "ln", so it can be a program name with args.
9634 set dummy ln; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_path_LN+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 case $LN in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $PATH
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9656 done
9657 done
9658 IFS=$as_save_IFS
9660 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9662 esac
9664 LN=$ac_cv_path_LN
9665 if test -n "$LN"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9667 $as_echo "$LN" >&6; }
9668 else
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9675 mkdir_p=$MKDIR_P
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9678 $as_echo_n "checking whether ln -s works... " >&6; }
9679 LN_S=$as_ln_s
9680 if test "$LN_S" = "ln -s"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682 $as_echo "yes" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9685 $as_echo "no, using $LN_S" >&6; }
9688 # Extract the first word of "mv", so it can be a program name with args.
9689 set dummy mv; ac_word=$2
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691 $as_echo_n "checking for $ac_word... " >&6; }
9692 if ${ac_cv_path_MV+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 case $MV in
9696 [\\/]* | ?:[\\/]*)
9697 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in $PATH
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9707 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9711 done
9712 done
9713 IFS=$as_save_IFS
9715 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9717 esac
9719 MV=$ac_cv_path_MV
9720 if test -n "$MV"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9722 $as_echo "$MV" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 # Extract the first word of "cp", so it can be a program name with args.
9730 set dummy cp; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_path_CP+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 case $CP in
9737 [\\/]* | ?:[\\/]*)
9738 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9752 done
9753 done
9754 IFS=$as_save_IFS
9756 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9758 esac
9760 CP=$ac_cv_path_CP
9761 if test -n "$CP"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9763 $as_echo "$CP" >&6; }
9764 else
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9770 # Extract the first word of "rm", so it can be a program name with args.
9771 set dummy rm; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_RM+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 case $RM in
9778 [\\/]* | ?:[\\/]*)
9779 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9793 done
9794 done
9795 IFS=$as_save_IFS
9797 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9799 esac
9801 RM=$ac_cv_path_RM
9802 if test -n "$RM"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9804 $as_echo "$RM" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9811 # Extract the first word of "chmod", so it can be a program name with args.
9812 set dummy chmod; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_path_CHMOD+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 case $CHMOD in
9819 [\\/]* | ?:[\\/]*)
9820 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9834 done
9835 done
9836 IFS=$as_save_IFS
9838 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9840 esac
9842 CHMOD=$ac_cv_path_CHMOD
9843 if test -n "$CHMOD"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9845 $as_echo "$CHMOD" >&6; }
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9852 for ac_prog in gawk mawk nawk awk
9854 # Extract the first word of "$ac_prog", so it can be a program name with args.
9855 set dummy $ac_prog; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_AWK+:} false; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 if test -n "$AWK"; then
9862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871 ac_cv_prog_AWK="$ac_prog"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9875 done
9876 done
9877 IFS=$as_save_IFS
9881 AWK=$ac_cv_prog_AWK
9882 if test -n "$AWK"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9884 $as_echo "$AWK" >&6; }
9885 else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9891 test -n "$AWK" && break
9892 done
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9895 $as_echo_n "checking for egrep... " >&6; }
9896 if ${ac_cv_path_EGREP+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9900 then ac_cv_path_EGREP="$GREP -E"
9901 else
9902 if test -z "$EGREP"; then
9903 ac_path_EGREP_found=false
9904 # Loop through the user's path and test for each of PROGNAME-LIST
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_prog in egrep; do
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9913 as_fn_executable_p "$ac_path_EGREP" || continue
9914 # Check for GNU ac_path_EGREP and select it if it is found.
9915 # Check for GNU $ac_path_EGREP
9916 case `"$ac_path_EGREP" --version 2>&1` in
9917 *GNU*)
9918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9920 ac_count=0
9921 $as_echo_n 0123456789 >"conftest.in"
9922 while :
9924 cat "conftest.in" "conftest.in" >"conftest.tmp"
9925 mv "conftest.tmp" "conftest.in"
9926 cp "conftest.in" "conftest.nl"
9927 $as_echo 'EGREP' >> "conftest.nl"
9928 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9930 as_fn_arith $ac_count + 1 && ac_count=$as_val
9931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9932 # Best one so far, save it but keep looking for a better one
9933 ac_cv_path_EGREP="$ac_path_EGREP"
9934 ac_path_EGREP_max=$ac_count
9936 # 10*(2^10) chars as input seems more than enough
9937 test $ac_count -gt 10 && break
9938 done
9939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9940 esac
9942 $ac_path_EGREP_found && break 3
9943 done
9944 done
9945 done
9946 IFS=$as_save_IFS
9947 if test -z "$ac_cv_path_EGREP"; then
9948 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9950 else
9951 ac_cv_path_EGREP=$EGREP
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9957 $as_echo "$ac_cv_path_EGREP" >&6; }
9958 EGREP="$ac_cv_path_EGREP"
9961 # Extract the first word of "sed", so it can be a program name with args.
9962 set dummy sed; ac_word=$2
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if ${ac_cv_path_SED+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 case $SED in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9988 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9990 esac
9992 SED=$ac_cv_path_SED
9993 if test -n "$SED"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9995 $as_echo "$SED" >&6; }
9996 else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
10002 # Extract the first word of "perl", so it can be a program name with args.
10003 set dummy perl; ac_word=$2
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 $as_echo_n "checking for $ac_word... " >&6; }
10006 if ${ac_cv_path_PERL+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 case $PERL in
10010 [\\/]* | ?:[\\/]*)
10011 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015 for as_dir in $PATH
10017 IFS=$as_save_IFS
10018 test -z "$as_dir" && as_dir=.
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023 break 2
10025 done
10026 done
10027 IFS=$as_save_IFS
10029 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10031 esac
10033 PERL=$ac_cv_path_PERL
10034 if test -n "$PERL"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10036 $as_echo "$PERL" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10043 # Extract the first word of "ldconfig", so it can be a program name with args.
10044 set dummy ldconfig; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_path_LDCONFIG+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 case $LDCONFIG in
10051 [\\/]* | ?:[\\/]*)
10052 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10066 done
10067 done
10068 IFS=$as_save_IFS
10070 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10072 esac
10074 LDCONFIG=$ac_cv_path_LDCONFIG
10075 if test -n "$LDCONFIG"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10077 $as_echo "$LDCONFIG" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10084 if test -n "$ac_tool_prefix"; then
10085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10086 set dummy ${ac_tool_prefix}ar; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_prog_AR+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 if test -n "$AR"; then
10093 ac_cv_prog_AR="$AR" # Let the user override the test.
10094 else
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_AR="${ac_tool_prefix}ar"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10106 done
10107 done
10108 IFS=$as_save_IFS
10112 AR=$ac_cv_prog_AR
10113 if test -n "$AR"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10115 $as_echo "$AR" >&6; }
10116 else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10123 if test -z "$ac_cv_prog_AR"; then
10124 ac_ct_AR=$AR
10125 # Extract the first word of "ar", so it can be a program name with args.
10126 set dummy ar; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 if test -n "$ac_ct_AR"; then
10133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10134 else
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_ac_ct_AR="ar"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10146 done
10147 done
10148 IFS=$as_save_IFS
10152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10153 if test -n "$ac_ct_AR"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10155 $as_echo "$ac_ct_AR" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10161 if test "x$ac_ct_AR" = x; then
10162 AR="ar"
10163 else
10164 case $cross_compiling:$ac_tool_warned in
10165 yes:)
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10168 ac_tool_warned=yes ;;
10169 esac
10170 AR=$ac_ct_AR
10172 else
10173 AR="$ac_cv_prog_AR"
10176 if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_prog_RANLIB+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 if test -n "$RANLIB"; then
10185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10204 RANLIB=$ac_cv_prog_RANLIB
10205 if test -n "$RANLIB"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10207 $as_echo "$RANLIB" >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10215 if test -z "$ac_cv_prog_RANLIB"; then
10216 ac_ct_RANLIB=$RANLIB
10217 # Extract the first word of "ranlib", so it can be a program name with args.
10218 set dummy ranlib; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 if test -n "$ac_ct_RANLIB"; then
10225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_ac_ct_RANLIB="ranlib"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10238 done
10239 done
10240 IFS=$as_save_IFS
10244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10245 if test -n "$ac_ct_RANLIB"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10247 $as_echo "$ac_ct_RANLIB" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10253 if test "x$ac_ct_RANLIB" = x; then
10254 RANLIB=":"
10255 else
10256 case $cross_compiling:$ac_tool_warned in
10257 yes:)
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260 ac_tool_warned=yes ;;
10261 esac
10262 RANLIB=$ac_ct_RANLIB
10264 else
10265 RANLIB="$ac_cv_prog_RANLIB"
10268 if test -n "$ac_tool_prefix"; then
10269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10270 set dummy ${ac_tool_prefix}strip; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if ${ac_cv_prog_STRIP+:} false; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 if test -n "$STRIP"; then
10277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10292 IFS=$as_save_IFS
10296 STRIP=$ac_cv_prog_STRIP
10297 if test -n "$STRIP"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10299 $as_echo "$STRIP" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10307 if test -z "$ac_cv_prog_STRIP"; then
10308 ac_ct_STRIP=$STRIP
10309 # Extract the first word of "strip", so it can be a program name with args.
10310 set dummy strip; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 if test -n "$ac_ct_STRIP"; then
10317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10318 else
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326 ac_cv_prog_ac_ct_STRIP="strip"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10337 if test -n "$ac_ct_STRIP"; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10339 $as_echo "$ac_ct_STRIP" >&6; }
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10345 if test "x$ac_ct_STRIP" = x; then
10346 STRIP=":"
10347 else
10348 case $cross_compiling:$ac_tool_warned in
10349 yes:)
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10352 ac_tool_warned=yes ;;
10353 esac
10354 STRIP=$ac_ct_STRIP
10356 else
10357 STRIP="$ac_cv_prog_STRIP"
10360 # Extract the first word of "makeinfo", so it can be a program name with args.
10361 set dummy makeinfo; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_MAKEINFO+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test -n "$MAKEINFO"; then
10368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_MAKEINFO="makeinfo"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10381 done
10382 done
10383 IFS=$as_save_IFS
10387 MAKEINFO=$ac_cv_prog_MAKEINFO
10388 if test -n "$MAKEINFO"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10390 $as_echo "$MAKEINFO" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10397 if test "_$MAKEINFO" = "_"; then
10398 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
10399 else
10400 case "$MAKEINFO" in
10401 */missing.*)
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10403 *** Makeinfo is missing. Info documentation will not be built." >&5
10404 $as_echo "$as_me: WARNING:
10405 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10409 esac
10413 # See if we need a separate native compiler.
10414 if test $cross_compiling = no; then
10415 BUILD_CC="$CC"
10417 else
10418 for ac_prog in gcc cc
10420 # Extract the first word of "$ac_prog", so it can be a program name with args.
10421 set dummy $ac_prog; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_prog_BUILD_CC+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test -n "$BUILD_CC"; then
10428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437 ac_cv_prog_BUILD_CC="$ac_prog"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10441 done
10442 done
10443 IFS=$as_save_IFS
10447 BUILD_CC=$ac_cv_prog_BUILD_CC
10448 if test -n "$BUILD_CC"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10450 $as_echo "$BUILD_CC" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10457 test -n "$BUILD_CC" && break
10458 done
10461 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
10462 do :
10463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10464 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10466 cat >>confdefs.h <<_ACEOF
10467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10468 _ACEOF
10472 done
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10475 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10477 for i in dd gdd ; do
10478 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10479 DD=$i
10480 break
10482 done
10483 if test -n "$DD" ; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10485 $as_echo "$DD" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10488 $as_echo "not found, using dd" >&6; }
10489 DD=dd
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10491 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10495 for ac_header in net/if.h
10496 do :
10497 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10498 #if HAVE_SYS_TYPES_H
10499 #include <sys/types.h>
10500 #endif
10501 #if HAVE_SYS_SOCKET
10502 #include <sys/socket.h>
10503 #endif
10506 if test "x$ac_cv_header_net_if_h" = xyes; then :
10507 cat >>confdefs.h <<_ACEOF
10508 #define HAVE_NET_IF_H 1
10509 _ACEOF
10513 done
10515 for ac_func in vprintf
10516 do :
10517 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10518 if test "x$ac_cv_func_vprintf" = xyes; then :
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_VPRINTF 1
10521 _ACEOF
10523 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10524 if test "x$ac_cv_func__doprnt" = xyes; then :
10526 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10531 done
10534 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10536 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10538 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10542 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10543 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10545 cat >>confdefs.h <<_ACEOF
10546 #define HAVE_STRUCT_STAT_ST_ATIM 1
10547 _ACEOF
10552 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10554 if test "x$ac_cv_type_ssize_t" = xyes; then :
10556 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10560 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10562 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10564 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10568 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10569 #define _LARGEFILE64_SOURCE
10570 #include <unistd.h>
10572 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10574 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10578 # The cast to long int works around a bug in the HP C Compiler
10579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581 # This bug is HP SR number 8606223364.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10583 $as_echo_n "checking size of short... " >&6; }
10584 if ${ac_cv_sizeof_short+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10589 else
10590 if test "$ac_cv_type_short" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 as_fn_error 77 "cannot compute sizeof (short)
10594 See \`config.log' for more details" "$LINENO" 5; }
10595 else
10596 ac_cv_sizeof_short=0
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10602 $as_echo "$ac_cv_sizeof_short" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_SHORT $ac_cv_sizeof_short
10608 _ACEOF
10611 # The cast to long int works around a bug in the HP C Compiler
10612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10614 # This bug is HP SR number 8606223364.
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10616 $as_echo_n "checking size of int... " >&6; }
10617 if ${ac_cv_sizeof_int+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10622 else
10623 if test "$ac_cv_type_int" = yes; then
10624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10626 as_fn_error 77 "cannot compute sizeof (int)
10627 See \`config.log' for more details" "$LINENO" 5; }
10628 else
10629 ac_cv_sizeof_int=0
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10635 $as_echo "$ac_cv_sizeof_int" >&6; }
10639 cat >>confdefs.h <<_ACEOF
10640 #define SIZEOF_INT $ac_cv_sizeof_int
10641 _ACEOF
10644 # The cast to long int works around a bug in the HP C Compiler
10645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10647 # This bug is HP SR number 8606223364.
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10649 $as_echo_n "checking size of long... " >&6; }
10650 if ${ac_cv_sizeof_long+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10655 else
10656 if test "$ac_cv_type_long" = yes; then
10657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659 as_fn_error 77 "cannot compute sizeof (long)
10660 See \`config.log' for more details" "$LINENO" 5; }
10661 else
10662 ac_cv_sizeof_long=0
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10668 $as_echo "$ac_cv_sizeof_long" >&6; }
10672 cat >>confdefs.h <<_ACEOF
10673 #define SIZEOF_LONG $ac_cv_sizeof_long
10674 _ACEOF
10677 # The cast to long int works around a bug in the HP C Compiler
10678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680 # This bug is HP SR number 8606223364.
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10682 $as_echo_n "checking size of long long... " >&6; }
10683 if ${ac_cv_sizeof_long_long+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10688 else
10689 if test "$ac_cv_type_long_long" = yes; then
10690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10692 as_fn_error 77 "cannot compute sizeof (long long)
10693 See \`config.log' for more details" "$LINENO" 5; }
10694 else
10695 ac_cv_sizeof_long_long=0
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10701 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10705 cat >>confdefs.h <<_ACEOF
10706 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10707 _ACEOF
10710 # The cast to long int works around a bug in the HP C Compiler
10711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10713 # This bug is HP SR number 8606223364.
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10715 $as_echo_n "checking size of off_t... " >&6; }
10716 if ${ac_cv_sizeof_off_t+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10721 else
10722 if test "$ac_cv_type_off_t" = yes; then
10723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10725 as_fn_error 77 "cannot compute sizeof (off_t)
10726 See \`config.log' for more details" "$LINENO" 5; }
10727 else
10728 ac_cv_sizeof_off_t=0
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10734 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10738 cat >>confdefs.h <<_ACEOF
10739 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10740 _ACEOF
10743 # The cast to long int works around a bug in the HP C Compiler
10744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10746 # This bug is HP SR number 8606223364.
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10748 $as_echo_n "checking size of time_t... " >&6; }
10749 if ${ac_cv_sizeof_time_t+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10754 else
10755 if test "$ac_cv_type_time_t" = yes; then
10756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10758 as_fn_error 77 "cannot compute sizeof (time_t)
10759 See \`config.log' for more details" "$LINENO" 5; }
10760 else
10761 ac_cv_sizeof_time_t=0
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10767 $as_echo "$ac_cv_sizeof_time_t" >&6; }
10771 cat >>confdefs.h <<_ACEOF
10772 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10773 _ACEOF
10776 SIZEOF_SHORT=$ac_cv_sizeof_short
10777 SIZEOF_INT=$ac_cv_sizeof_int
10778 SIZEOF_LONG=$ac_cv_sizeof_long
10779 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10780 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10781 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10789 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10790 if ${ac_cv_c_bigendian+:} false; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 ac_cv_c_bigendian=unknown
10794 # See if we're dealing with a universal compiler.
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #ifndef __APPLE_CC__
10798 not a universal capable compiler
10799 #endif
10800 typedef int dummy;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"; then :
10805 # Check for potential -arch flags. It is not universal unless
10806 # there are at least two -arch flags with different values.
10807 ac_arch=
10808 ac_prev=
10809 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10810 if test -n "$ac_prev"; then
10811 case $ac_word in
10812 i?86 | x86_64 | ppc | ppc64)
10813 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10814 ac_arch=$ac_word
10815 else
10816 ac_cv_c_bigendian=universal
10817 break
10820 esac
10821 ac_prev=
10822 elif test "x$ac_word" = "x-arch"; then
10823 ac_prev=arch
10825 done
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 if test $ac_cv_c_bigendian = unknown; then
10829 # See if sys/param.h defines the BYTE_ORDER macro.
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832 #include <sys/types.h>
10833 #include <sys/param.h>
10836 main ()
10838 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10839 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10840 && LITTLE_ENDIAN)
10841 bogus endian macros
10842 #endif
10845 return 0;
10847 _ACEOF
10848 if ac_fn_c_try_compile "$LINENO"; then :
10849 # It does; now see whether it defined to BIG_ENDIAN or not.
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852 #include <sys/types.h>
10853 #include <sys/param.h>
10856 main ()
10858 #if BYTE_ORDER != BIG_ENDIAN
10859 not big endian
10860 #endif
10863 return 0;
10865 _ACEOF
10866 if ac_fn_c_try_compile "$LINENO"; then :
10867 ac_cv_c_bigendian=yes
10868 else
10869 ac_cv_c_bigendian=no
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10875 if test $ac_cv_c_bigendian = unknown; then
10876 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 #include <limits.h>
10882 main ()
10884 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10885 bogus endian macros
10886 #endif
10889 return 0;
10891 _ACEOF
10892 if ac_fn_c_try_compile "$LINENO"; then :
10893 # It does; now see whether it defined to _BIG_ENDIAN or not.
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 #include <limits.h>
10899 main ()
10901 #ifndef _BIG_ENDIAN
10902 not big endian
10903 #endif
10906 return 0;
10908 _ACEOF
10909 if ac_fn_c_try_compile "$LINENO"; then :
10910 ac_cv_c_bigendian=yes
10911 else
10912 ac_cv_c_bigendian=no
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 if test $ac_cv_c_bigendian = unknown; then
10919 # Compile a test program.
10920 if test "$cross_compiling" = yes; then :
10921 # Try to guess by grepping values from an object file.
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 short int ascii_mm[] =
10925 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10926 short int ascii_ii[] =
10927 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10928 int use_ascii (int i) {
10929 return ascii_mm[i] + ascii_ii[i];
10931 short int ebcdic_ii[] =
10932 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10933 short int ebcdic_mm[] =
10934 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10935 int use_ebcdic (int i) {
10936 return ebcdic_mm[i] + ebcdic_ii[i];
10938 extern int foo;
10941 main ()
10943 return use_ascii (foo) == use_ebcdic (foo);
10945 return 0;
10947 _ACEOF
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10950 ac_cv_c_bigendian=yes
10952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10953 if test "$ac_cv_c_bigendian" = unknown; then
10954 ac_cv_c_bigendian=no
10955 else
10956 # finding both strings is unlikely to happen, but who knows?
10957 ac_cv_c_bigendian=unknown
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 else
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 $ac_includes_default
10967 main ()
10970 /* Are we little or big endian? From Harbison&Steele. */
10971 union
10973 long int l;
10974 char c[sizeof (long int)];
10975 } u;
10976 u.l = 1;
10977 return u.c[sizeof (long int) - 1] == 1;
10980 return 0;
10982 _ACEOF
10983 if ac_fn_c_try_run "$LINENO"; then :
10984 ac_cv_c_bigendian=no
10985 else
10986 ac_cv_c_bigendian=yes
10988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10989 conftest.$ac_objext conftest.beam conftest.$ac_ext
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10995 $as_echo "$ac_cv_c_bigendian" >&6; }
10996 case $ac_cv_c_bigendian in #(
10997 yes)
10998 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10999 ;; #(
11001 ;; #(
11002 universal)
11004 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11006 ;; #(
11008 as_fn_error $? "unknown endianness
11009 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11010 esac
11012 if test $cross_compiling = no; then
11013 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11014 else
11015 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11017 ASM_TYPES_HEADER=./asm_types.h
11019 echo "/* These defines are needed for the public ext2fs.h header file */" \
11020 > public_config.h
11021 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11022 uniq tmp_config.$$ >> public_config.h
11023 else
11024 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11026 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11027 uniq tmp_config.$$ >> public_config.h
11028 else
11029 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11031 rm -f tmp_config.$$
11032 PUBLIC_CONFIG_HEADER=./public_config.h
11034 for ac_header in inttypes.h
11035 do :
11036 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11037 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11038 cat >>confdefs.h <<_ACEOF
11039 #define HAVE_INTTYPES_H 1
11040 _ACEOF
11044 done
11046 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11047 if test "x$ac_cv_type_intptr_t" = xyes; then :
11049 cat >>confdefs.h <<_ACEOF
11050 #define HAVE_INTPTR_T 1
11051 _ACEOF
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11057 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11058 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 #include <sys/stat.h>
11065 main ()
11067 struct stat stat; stat.st_flags = 0;
11069 return 0;
11071 _ACEOF
11072 if ac_fn_c_try_compile "$LINENO"; then :
11073 e2fsprogs_cv_struct_st_flags=yes
11074 else
11075 e2fsprogs_cv_struct_st_flags=no
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11081 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11082 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11084 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11085 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 #include <sys/stat.h>
11092 main ()
11094 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11096 return 0;
11098 _ACEOF
11099 if ac_fn_c_try_compile "$LINENO"; then :
11100 e2fsprogs_cv_struct_st_flags_immut=yes
11101 else
11102 e2fsprogs_cv_struct_st_flags_immut=no
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11108 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11109 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11111 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11115 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11116 #include <sys/socket.h>
11118 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_SA_LEN 1
11122 _ACEOF
11126 if test -n "$BLKID_CMT"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11128 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11129 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-lblkid $LIBS"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char blkid_probe_get_topology ();
11145 main ()
11147 return blkid_probe_get_topology ();
11149 return 0;
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11154 else
11155 ac_cv_lib_blkid_blkid_probe_get_topology=no
11157 rm -f core conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11162 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11163 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
11165 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11170 $as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11171 if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 ac_check_lib_save_LIBS=$LIBS
11175 LIBS="-lblkid $LIBS"
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 /* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11182 #ifdef __cplusplus
11183 extern "C"
11184 #endif
11185 char blkid_topology_get_dax ();
11187 main ()
11189 return blkid_topology_get_dax ();
11191 return 0;
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11196 else
11197 ac_cv_lib_blkid_blkid_topology_get_dax=no
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11204 $as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11205 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11207 $as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11212 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11213 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-lblkid $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char blkid_probe_enable_partitions ();
11229 main ()
11231 return blkid_probe_enable_partitions ();
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
11238 else
11239 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11246 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11247 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
11249 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
11254 if test -n "$DLOPEN_LIB" ; then
11255 ac_cv_func_dlopen=yes
11257 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
11258 do :
11259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11261 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11262 cat >>confdefs.h <<_ACEOF
11263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264 _ACEOF
11267 done
11269 SOCKET_LIB=''
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11271 $as_echo_n "checking for socket in -lsocket... " >&6; }
11272 if ${ac_cv_lib_socket_socket+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lsocket $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char socket ();
11288 main ()
11290 return socket ();
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_socket_socket=yes
11297 else
11298 ac_cv_lib_socket_socket=no
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11305 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11306 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11307 SOCKET_LIB=-lsocket
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11312 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
11313 if ${ac_cv_lib_magic_magic_file+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lmagic $LIBS"
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char magic_file ();
11329 main ()
11331 return magic_file ();
11333 return 0;
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337 ac_cv_lib_magic_magic_file=yes
11338 else
11339 ac_cv_lib_magic_magic_file=no
11341 rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11346 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11347 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11348 MAGIC_LIB=-lmagic
11349 for ac_header in magic.h
11350 do :
11351 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11352 if test "x$ac_cv_header_magic_h" = xyes; then :
11353 cat >>confdefs.h <<_ACEOF
11354 #define HAVE_MAGIC_H 1
11355 _ACEOF
11359 done
11363 if test "$ac_cv_func_dlopen" = yes ; then
11364 MAGIC_LIB=$DLOPEN_LIB
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11368 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11369 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-lrt $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char clock_gettime ();
11385 main ()
11387 return clock_gettime ();
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_rt_clock_gettime=yes
11394 else
11395 ac_cv_lib_rt_clock_gettime=no
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11402 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11403 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11404 CLOCK_GETTIME_LIB=-lrt
11408 FUSE_CMT=
11409 FUSE_LIB=
11410 # Check whether --enable-fuse2fs was given.
11411 if test "${enable_fuse2fs+set}" = set; then :
11412 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11413 then
11414 FUSE_CMT="#"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11416 $as_echo "Disabling fuse2fs" >&6; }
11417 else
11418 for ac_header in pthread.h fuse.h
11419 do :
11420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11422 #define FUSE_USE_VERSION 29
11424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11425 cat >>confdefs.h <<_ACEOF
11426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 _ACEOF
11429 else
11430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11432 as_fn_error $? "Cannot find fuse2fs headers.
11433 See \`config.log' for more details" "$LINENO" 5; }
11436 done
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #define FUSE_USE_VERSION 29
11442 #ifdef __linux__
11443 #include <linux/fs.h>
11444 #include <linux/falloc.h>
11445 #include <linux/xattr.h>
11446 #endif
11449 main ()
11453 return 0;
11455 _ACEOF
11456 if ac_fn_c_try_cpp "$LINENO"; then :
11458 else
11459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11461 as_fn_error $? "Cannot find fuse2fs Linux headers.
11462 See \`config.log' for more details" "$LINENO" 5; }
11464 rm -f conftest.err conftest.i conftest.$ac_ext
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11467 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11468 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 ac_check_lib_save_LIBS=$LIBS
11472 LIBS="-losxfuse $LIBS"
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479 #ifdef __cplusplus
11480 extern "C"
11481 #endif
11482 char fuse_main ();
11484 main ()
11486 return fuse_main ();
11488 return 0;
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 ac_cv_lib_osxfuse_fuse_main=yes
11493 else
11494 ac_cv_lib_osxfuse_fuse_main=no
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11501 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11502 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11503 FUSE_LIB=-losxfuse
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11506 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11507 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-lfuse $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char fuse_main ();
11523 main ()
11525 return fuse_main ();
11527 return 0;
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_fuse_fuse_main=yes
11532 else
11533 ac_cv_lib_fuse_fuse_main=no
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11540 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11541 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11542 FUSE_LIB=-lfuse
11543 else
11544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11546 as_fn_error $? "Cannot find fuse library.
11547 See \`config.log' for more details" "$LINENO" 5; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11553 $as_echo "Enabling fuse2fs" >&6; }
11556 else
11557 for ac_header in pthread.h fuse.h
11558 do :
11559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11561 #define FUSE_USE_VERSION 29
11562 #ifdef __linux__
11563 # include <linux/fs.h>
11564 # include <linux/falloc.h>
11565 # include <linux/xattr.h>
11566 #endif
11568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11569 cat >>confdefs.h <<_ACEOF
11570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571 _ACEOF
11573 else
11574 FUSE_CMT="#"
11577 done
11579 if test -z "$FUSE_CMT"
11580 then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11582 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11583 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-losxfuse $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char fuse_main ();
11599 main ()
11601 return fuse_main ();
11603 return 0;
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_osxfuse_fuse_main=yes
11608 else
11609 ac_cv_lib_osxfuse_fuse_main=no
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11616 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11617 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11618 FUSE_LIB=-losxfuse
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11621 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11622 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 ac_check_lib_save_LIBS=$LIBS
11626 LIBS="-lfuse $LIBS"
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 char fuse_main ();
11638 main ()
11640 return fuse_main ();
11642 return 0;
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_lib_fuse_fuse_main=yes
11647 else
11648 ac_cv_lib_fuse_fuse_main=no
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_lib_save_LIBS
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11655 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11656 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11657 FUSE_LIB=-lfuse
11658 else
11659 FUSE_CMT="#"
11665 if test -z "$FUSE_CMT"
11666 then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11668 $as_echo "Enabling fuse2fs by default." >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11676 $as_echo_n "checking for optreset... " >&6; }
11677 if ${ac_cv_have_optreset+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682 #include <unistd.h>
11684 _ACEOF
11685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11686 $EGREP "optreset" >/dev/null 2>&1; then :
11687 ac_cv_have_optreset=yes
11688 else
11689 ac_cv_have_optreset=no
11691 rm -f conftest*
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11695 $as_echo "$ac_cv_have_optreset" >&6; }
11696 if test $ac_cv_have_optreset = yes; then
11698 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11702 SEM_INIT_LIB=''
11703 echo GL_THREADS_API: ${gl_threads_api}
11704 if test "${gl_threads_api}" != none
11705 then
11706 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11707 if test "x$ac_cv_func_sem_init" = xyes; then :
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11711 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11712 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 ac_check_lib_save_LIBS=$LIBS
11716 LIBS="-lpthread $LIBS"
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11720 /* Override any GCC internal prototype to avoid an error.
11721 Use char because int might match the return type of a GCC
11722 builtin and then its argument prototype would still apply. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 #endif
11726 char sem_init ();
11728 main ()
11730 return sem_init ();
11732 return 0;
11734 _ACEOF
11735 if ac_fn_c_try_link "$LINENO"; then :
11736 ac_cv_lib_pthread_sem_init=yes
11737 else
11738 ac_cv_lib_pthread_sem_init=no
11740 rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11742 LIBS=$ac_check_lib_save_LIBS
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11745 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11746 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11747 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11749 SEM_INIT_LIB=-lpthread
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11752 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11753 if ${ac_cv_lib_rt_sem_init+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lrt $LIBS"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11761 /* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char sem_init ();
11769 main ()
11771 return sem_init ();
11773 return 0;
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777 ac_cv_lib_rt_sem_init=yes
11778 else
11779 ac_cv_lib_rt_sem_init=no
11781 rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11786 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11787 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11788 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11790 SEM_INIT_LIB=-lrt
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11793 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11794 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-lposix4 $LIBS"
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char sem_init ();
11810 main ()
11812 return sem_init ();
11814 return 0;
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_posix4_sem_init=yes
11819 else
11820 ac_cv_lib_posix4_sem_init=no
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11827 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11828 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11829 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11831 SEM_INIT_LIB=-lposix4
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11842 $as_echo_n "checking for unified diff option... " >&6; }
11843 if diff -u $0 $0 > /dev/null 2>&1 ; then
11844 UNI_DIFF_OPTS=-u
11845 else
11846 UNI_DIFF_OPTS=-c
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11849 $as_echo "$UNI_DIFF_OPTS" >&6; }
11851 case "$host_os" in
11852 linux*)
11854 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11857 esac
11859 $as_echo_n "checking for mount 'nosuid' option... "
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 #include <sys/mount.h>
11864 main ()
11866 void *temp = (void *)(MS_NOSUID); (void) temp;
11868 return 0;
11870 _ACEOF
11871 if ac_fn_c_try_compile "$LINENO"; then :
11873 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11875 ac_cv_mount_nosuid=yes
11876 $as_echo "yes"
11877 else
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880 #include <sys/mount.h>
11882 main ()
11884 void *temp = (void *)(MNT_NOSUID); (void) temp;
11886 return 0;
11888 _ACEOF
11889 if ac_fn_c_try_compile "$LINENO"; then :
11891 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11893 ac_cv_mount_nosuid=yes
11894 $as_echo "yes"
11895 else
11896 ac_cv_mount_nosuid=no
11897 $as_echo "no"
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 $as_echo_n "checking for mount 'nodev' option... "
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/mount.h>
11911 main ()
11913 void *temp = (void *)(MS_NODEV); (void) temp;
11915 return 0;
11917 _ACEOF
11918 if ac_fn_c_try_compile "$LINENO"; then :
11920 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11922 ac_cv_mount_nodev=yes
11923 $as_echo "yes"
11924 else
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11927 #include <sys/mount.h>
11929 main ()
11931 void *temp = (void *)(MNT_NODEV); (void) temp;
11933 return 0;
11935 _ACEOF
11936 if ac_fn_c_try_compile "$LINENO"; then :
11938 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11940 ac_cv_mount_nodev=yes
11941 $as_echo "yes"
11942 else
11943 ac_cv_mount_nodev=no
11944 $as_echo "no"
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11952 # Check whether --enable-lto was given.
11953 if test "${enable_lto+set}" = set; then :
11954 enableval=$enable_lto;
11955 else
11956 enable_lto=no
11959 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11961 $as_echo_n "checking if C compiler supports LTO... " >&6; }
11962 OLD_CFLAGS="$CFLAGS"
11963 OLD_LDFLAGS="$LDFLAGS"
11964 LTO_FLAGS="-g -flto -ffat-lto-objects"
11965 CFLAGS="$CFLAGS $LTO_FLAGS"
11966 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11971 main ()
11975 return 0;
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981 lto_cflags=$LTO_FLAGS
11982 lto_ldflags=$LTO_FLAGS
11983 # Extract the first word of "gcc-ar", so it can be a program name with args.
11984 set dummy gcc-ar; ac_word=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if ${ac_cv_path_gcc_ar+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 case $gcc_ar in
11991 [\\/]* | ?:[\\/]*)
11992 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12006 done
12007 done
12008 IFS=$as_save_IFS
12011 esac
12013 gcc_ar=$ac_cv_path_gcc_ar
12014 if test -n "$gcc_ar"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12016 $as_echo "$gcc_ar" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12023 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12024 set dummy gcc-ranlib; ac_word=$2
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if ${ac_cv_path_gcc_ranlib+:} false; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 case $gcc_ranlib in
12031 [\\/]* | ?:[\\/]*)
12032 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12046 done
12047 done
12048 IFS=$as_save_IFS
12051 esac
12053 gcc_ranlib=$ac_cv_path_gcc_ranlib
12054 if test -n "$gcc_ranlib"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12056 $as_echo "$gcc_ranlib" >&6; }
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12070 have_lto=yes
12071 AR="${gcc_ar}"
12072 RANLIB="${gcc_ranlib}"
12074 CFLAGS="${OLD_CFLAGS}"
12075 LDFLAGS="${OLD_LDFLAGS}"
12080 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12081 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12083 # Check whether --enable-ubsan was given.
12084 if test "${enable_ubsan+set}" = set; then :
12085 enableval=$enable_ubsan;
12086 else
12087 enable_ubsan=no
12090 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12092 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12093 OLD_CFLAGS="$CFLAGS"
12094 OLD_LDFLAGS="$LDFLAGS"
12095 UBSAN_FLAGS="-fsanitize=undefined"
12096 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12097 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12102 main ()
12106 return 0;
12108 _ACEOF
12109 if ac_fn_c_try_link "$LINENO"; then :
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111 $as_echo "yes" >&6; }
12112 ubsan_cflags=$UBSAN_FLAGS
12113 ubsan_ldflags=$UBSAN_FLAGS
12114 have_ubsan=yes
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 CFLAGS="${OLD_CFLAGS}"
12122 LDFLAGS="${OLD_LDFLAGS}"
12127 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12128 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12130 # Check whether --enable-addrsan was given.
12131 if test "${enable_addrsan+set}" = set; then :
12132 enableval=$enable_addrsan;
12133 else
12134 enable_addrsan=no
12137 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12139 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12140 OLD_CFLAGS="$CFLAGS"
12141 OLD_LDFLAGS="$LDFLAGS"
12142 ADDRSAN_FLAGS="-fsanitize=address"
12143 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12144 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12149 main ()
12153 return 0;
12155 _ACEOF
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158 $as_echo "yes" >&6; }
12159 addrsan_cflags=$ADDRSAN_FLAGS
12160 addrsan_ldflags=$ADDRSAN_FLAGS
12161 have_addrsan=yes
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 CFLAGS="${OLD_CFLAGS}"
12169 LDFLAGS="${OLD_LDFLAGS}"
12174 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12175 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12177 # Check whether --enable-threadsan was given.
12178 if test "${enable_threadsan+set}" = set; then :
12179 enableval=$enable_threadsan;
12180 else
12181 enable_threadsan=no
12184 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12186 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12187 OLD_CFLAGS="$CFLAGS"
12188 OLD_LDFLAGS="$LDFLAGS"
12189 THREADSAN_FLAGS="-fsanitize=thread"
12190 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12191 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12196 main ()
12200 return 0;
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12205 $as_echo "yes" >&6; }
12206 threadsan_cflags=$THREADSAN_FLAGS
12207 threadsan_ldflags=$THREADSAN_FLAGS
12208 have_threadsan=yes
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 CFLAGS="${OLD_CFLAGS}"
12216 LDFLAGS="${OLD_LDFLAGS}"
12221 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12222 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12224 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12226 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12228 LINUX_CMT="#"
12229 CYGWIN_CMT="#"
12230 UNIX_CMT=
12231 case "$host_os" in
12232 linux*)
12233 LINUX_CMT=
12235 cygwin)
12236 CYGWIN_CMT=
12237 UNIX_CMT="#"
12239 esac
12243 E2SCRUB_CMT="$LINUX_CMT"
12245 case "$host_os" in
12246 linux* | gnu* | k*bsd*-gnu)
12247 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12248 root_prefix="";
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
12250 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
12253 esac
12254 case "$host_os" in
12255 linux* | gnu* | k*bsd*-gnu)
12256 if test "$prefix" = NONE ; then
12257 prefix="/usr";
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
12259 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
12260 if test "$mandir" = '${prefix}/man' ; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
12262 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
12263 mandir=/usr/share/man
12267 esac
12268 if test "$root_prefix" = NONE ; then
12269 if test "$prefix" = NONE ; then
12270 root_prefix="$ac_default_prefix"
12271 else
12272 root_prefix="$prefix"
12274 root_bindir=$bindir
12275 root_sbindir=$sbindir
12276 root_libdir=$libdir
12277 root_sysconfdir=$sysconfdir
12278 else
12279 root_bindir='${root_prefix}/bin'
12280 root_sbindir='${root_prefix}/sbin'
12281 root_libdir='${root_prefix}/lib'
12282 root_sysconfdir='${root_prefix}/etc'
12284 if test "$bindir" != '${exec_prefix}/bin'; then
12285 root_bindir=$bindir
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
12287 $as_echo "Setting root_bindir to $root_bindir" >&6; }
12289 if test "$sbindir" != '${exec_prefix}/sbin'; then
12290 root_sbindir=$sbindir
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
12292 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
12294 if test "$libdir" != '${exec_prefix}/lib'; then
12295 root_libdir=$libdir
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
12297 $as_echo "Setting root_libdir to $root_libdir" >&6; }
12299 if test "$sysconfdir" != '${prefix}/etc'; then
12300 root_sysconfdir=$sysconfdir
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
12302 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
12310 # Check whether --with-multiarch was given.
12311 if test "${with_multiarch+set}" = set; then :
12312 withval=$with_multiarch; if test "$withval" = "lib64"; then
12313 libdir=/usr/lib64
12314 root_libdir=/lib64
12315 else
12316 libdir=$libdir/$withval
12317 root_libdir=$root_libdir/$withval
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12323 $as_echo_n "checking whether we can link with -static... " >&6; }
12324 if ${ac_cv_e2fsprogs_use_static+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <stdio.h>
12332 main ()
12334 fflush(stdout);
12336 return 0;
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"; then :
12340 ac_cv_e2fsprogs_use_static=yes
12341 else
12342 ac_cv_e2fsprogs_use_static=no
12344 rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346 LDFLAGS=$SAVE_LDFLAGS
12349 case "$host_os" in
12350 solaris2.*)
12351 ac_cv_e2fsprogs_use_static=no
12353 esac
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
12355 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
12356 if test $ac_cv_e2fsprogs_use_static = yes; then
12357 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
12360 case "$host_os" in
12361 darwin*)
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
12363 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
12365 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
12368 esac
12369 if test "$cross_compiling" = yes ; then
12370 DO_TEST_SUITE=
12371 else
12372 DO_TEST_SUITE=check
12375 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12376 if test -n "$CPPFLAGS" ; then
12377 INCLUDES="$INCLUDES $CPPFLAGS"
12379 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
12380 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
12382 if test -n "$WITH_DIET_LIBC" ; then
12383 INCLUDES="$INCLUDES -D_REENTRANT"
12386 if test $cross_compiling = no; then
12387 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
12388 BUILD_LDFLAGS="$LDFLAGS"
12392 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12393 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12394 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12400 # Check whether --with-udev_rules_dir was given.
12401 if test "${with_udev_rules_dir+set}" = set; then :
12402 withval=$with_udev_rules_dir;
12403 else
12404 with_udev_rules_dir=yes
12407 if test "x${with_udev_rules_dir}" != "xno"; then :
12409 if test "x${with_udev_rules_dir}" = "xyes"; then :
12412 pkg_failed=no
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12414 $as_echo_n "checking for udev... " >&6; }
12416 if test -n "$udev_CFLAGS"; then
12417 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12418 elif test -n "$PKG_CONFIG"; then
12419 if test -n "$PKG_CONFIG" && \
12420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12421 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12425 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12426 test "x$?" != "x0" && pkg_failed=yes
12427 else
12428 pkg_failed=yes
12430 else
12431 pkg_failed=untried
12433 if test -n "$udev_LIBS"; then
12434 pkg_cv_udev_LIBS="$udev_LIBS"
12435 elif test -n "$PKG_CONFIG"; then
12436 if test -n "$PKG_CONFIG" && \
12437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12438 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12439 ac_status=$?
12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441 test $ac_status = 0; }; then
12442 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12443 test "x$?" != "x0" && pkg_failed=yes
12444 else
12445 pkg_failed=yes
12447 else
12448 pkg_failed=untried
12453 if test $pkg_failed = yes; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12458 _pkg_short_errors_supported=yes
12459 else
12460 _pkg_short_errors_supported=no
12462 if test $_pkg_short_errors_supported = yes; then
12463 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12464 else
12465 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12467 # Put the nasty error message in config.log where it belongs
12468 echo "$udev_PKG_ERRORS" >&5
12471 with_udev_rules_dir=""
12473 elif test $pkg_failed = untried; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12477 with_udev_rules_dir=""
12479 else
12480 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12481 udev_LIBS=$pkg_cv_udev_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12485 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12491 $as_echo_n "checking for udev rules dir... " >&6; }
12492 pkg_udev_rules_dir="${with_udev_rules_dir}"
12493 if test -n "${pkg_udev_rules_dir}"; then :
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12496 $as_echo "${pkg_udev_rules_dir}" >&6; }
12497 have_udev="yes"
12499 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 have_udev="no"
12507 else
12509 have_udev="disabled"
12516 # Check whether --with-crond_dir was given.
12517 if test "${with_crond_dir+set}" = set; then :
12518 withval=$with_crond_dir;
12519 else
12520 with_crond_dir=yes
12523 if test "x${with_crond_dir}" != "xno"; then :
12525 if test "x${with_crond_dir}" = "xyes"; then :
12527 if test -d "/etc/cron.d"; then :
12528 with_crond_dir="/etc/cron.d"
12529 else
12530 have_crond="no"; with_crond_dir=""
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12535 $as_echo_n "checking for system crontab dir... " >&6; }
12536 crond_dir="${with_crond_dir}"
12537 if test -n "${crond_dir}"; then :
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12540 $as_echo "${crond_dir}" >&6; }
12541 have_crond="yes"
12543 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 have_crond="no"
12551 else
12553 have_crond="disabled"
12560 # Check whether --with-systemd_unit_dir was given.
12561 if test "${with_systemd_unit_dir+set}" = set; then :
12562 withval=$with_systemd_unit_dir;
12563 else
12564 with_systemd_unit_dir=yes
12567 if test "x${with_systemd_unit_dir}" != "xno"; then :
12569 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12572 pkg_failed=no
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12574 $as_echo_n "checking for systemd... " >&6; }
12576 if test -n "$systemd_CFLAGS"; then
12577 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12578 elif test -n "$PKG_CONFIG"; then
12579 if test -n "$PKG_CONFIG" && \
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12581 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12582 ac_status=$?
12583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584 test $ac_status = 0; }; then
12585 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12586 test "x$?" != "x0" && pkg_failed=yes
12587 else
12588 pkg_failed=yes
12590 else
12591 pkg_failed=untried
12593 if test -n "$systemd_LIBS"; then
12594 pkg_cv_systemd_LIBS="$systemd_LIBS"
12595 elif test -n "$PKG_CONFIG"; then
12596 if test -n "$PKG_CONFIG" && \
12597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12598 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12599 ac_status=$?
12600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12601 test $ac_status = 0; }; then
12602 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12603 test "x$?" != "x0" && pkg_failed=yes
12604 else
12605 pkg_failed=yes
12607 else
12608 pkg_failed=untried
12613 if test $pkg_failed = yes; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12617 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12618 _pkg_short_errors_supported=yes
12619 else
12620 _pkg_short_errors_supported=no
12622 if test $_pkg_short_errors_supported = yes; then
12623 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12624 else
12625 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12627 # Put the nasty error message in config.log where it belongs
12628 echo "$systemd_PKG_ERRORS" >&5
12631 with_systemd_unit_dir=""
12633 elif test $pkg_failed = untried; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12637 with_systemd_unit_dir=""
12639 else
12640 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12641 systemd_LIBS=$pkg_cv_systemd_LIBS
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643 $as_echo "yes" >&6; }
12645 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12652 $as_echo_n "checking for systemd system unit dir... " >&6; }
12653 systemd_system_unit_dir="${with_systemd_unit_dir}"
12654 if test -n "${systemd_system_unit_dir}"; then :
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12657 $as_echo "${systemd_system_unit_dir}" >&6; }
12658 have_systemd="yes"
12660 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 have_systemd="no"
12668 else
12670 have_systemd="disabled"
12675 OS_IO_FILE=""
12676 case "$host_os" in
12677 cigwin*|mingw*|msys*)
12678 OS_IO_FILE=windows_io
12681 OS_IO_FILE=unix_io
12683 esac
12685 test -d lib || mkdir lib
12686 test -d include || mkdir include
12687 test -d include/linux || mkdir include/linux
12688 test -d include/asm || mkdir include/asm
12689 if test -z "$UUID_CMT" ; then
12690 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12691 lib/uuid/uuid_types.h"
12693 if test -z "$BLKID_CMT" ; then
12694 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12695 lib/blkid/blkid_types.h"
12697 for i in MCONFIG Makefile \
12698 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
12699 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12700 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
12701 $uuid_out_list $blkid_out_list lib/support/Makefile \
12702 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
12703 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
12704 debugfs/Makefile tests/Makefile tests/progs/Makefile \
12705 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
12706 if test -d `dirname ${srcdir}/$i` ; then
12707 outlist="$outlist $i"
12709 done
12710 ac_config_files="$ac_config_files $outlist"
12712 cat >confcache <<\_ACEOF
12713 # This file is a shell script that caches the results of configure
12714 # tests run on this system so they can be shared between configure
12715 # scripts and configure runs, see configure's option --config-cache.
12716 # It is not useful on other systems. If it contains results you don't
12717 # want to keep, you may remove or edit it.
12719 # config.status only pays attention to the cache file if you give it
12720 # the --recheck option to rerun configure.
12722 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12723 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12724 # following values.
12726 _ACEOF
12728 # The following way of writing the cache mishandles newlines in values,
12729 # but we know of no workaround that is simple, portable, and efficient.
12730 # So, we kill variables containing newlines.
12731 # Ultrix sh set writes to stderr and can't be redirected directly,
12732 # and sets the high bit in the cache file unless we assign to the vars.
12734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12735 eval ac_val=\$$ac_var
12736 case $ac_val in #(
12737 *${as_nl}*)
12738 case $ac_var in #(
12739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12741 esac
12742 case $ac_var in #(
12743 _ | IFS | as_nl) ;; #(
12744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12745 *) { eval $ac_var=; unset $ac_var;} ;;
12746 esac ;;
12747 esac
12748 done
12750 (set) 2>&1 |
12751 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12752 *${as_nl}ac_space=\ *)
12753 # `set' does not quote correctly, so add quotes: double-quote
12754 # substitution turns \\\\ into \\, and sed turns \\ into \.
12755 sed -n \
12756 "s/'/'\\\\''/g;
12757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12758 ;; #(
12760 # `set' quotes correctly as required by POSIX, so do not add quotes.
12761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12763 esac |
12764 sort
12766 sed '
12767 /^ac_cv_env_/b end
12768 t clear
12769 :clear
12770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12771 t end
12772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12773 :end' >>confcache
12774 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12775 if test -w "$cache_file"; then
12776 if test "x$cache_file" != "x/dev/null"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12778 $as_echo "$as_me: updating cache $cache_file" >&6;}
12779 if test ! -f "$cache_file" || test -h "$cache_file"; then
12780 cat confcache >"$cache_file"
12781 else
12782 case $cache_file in #(
12783 */* | ?:*)
12784 mv -f confcache "$cache_file"$$ &&
12785 mv -f "$cache_file"$$ "$cache_file" ;; #(
12787 mv -f confcache "$cache_file" ;;
12788 esac
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12796 rm -f confcache
12798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12799 # Let make expand exec_prefix.
12800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12802 DEFS=-DHAVE_CONFIG_H
12804 ac_libobjs=
12805 ac_ltlibobjs=
12807 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12808 # 1. Remove the extension, and $U if already installed.
12809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12810 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12812 # will be set to the directory where LIBOBJS objects are built.
12813 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12814 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12815 done
12816 LIBOBJS=$ac_libobjs
12818 LTLIBOBJS=$ac_ltlibobjs
12823 : "${CONFIG_STATUS=./config.status}"
12824 ac_write_fail=0
12825 ac_clean_files_save=$ac_clean_files
12826 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12828 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12829 as_write_fail=0
12830 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12831 #! $SHELL
12832 # Generated by $as_me.
12833 # Run this file to recreate the current configuration.
12834 # Compiler output produced by configure, useful for debugging
12835 # configure, is in config.log if it exists.
12837 debug=false
12838 ac_cs_recheck=false
12839 ac_cs_silent=false
12841 SHELL=\${CONFIG_SHELL-$SHELL}
12842 export SHELL
12843 _ASEOF
12844 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12845 ## -------------------- ##
12846 ## M4sh Initialization. ##
12847 ## -------------------- ##
12849 # Be more Bourne compatible
12850 DUALCASE=1; export DUALCASE # for MKS sh
12851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12852 emulate sh
12853 NULLCMD=:
12854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12855 # is contrary to our usage. Disable this feature.
12856 alias -g '${1+"$@"}'='"$@"'
12857 setopt NO_GLOB_SUBST
12858 else
12859 case `(set -o) 2>/dev/null` in #(
12860 *posix*) :
12861 set -o posix ;; #(
12862 *) :
12864 esac
12868 as_nl='
12870 export as_nl
12871 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12872 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12875 # Prefer a ksh shell builtin over an external printf program on Solaris,
12876 # but without wasting forks for bash or zsh.
12877 if test -z "$BASH_VERSION$ZSH_VERSION" \
12878 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12879 as_echo='print -r --'
12880 as_echo_n='print -rn --'
12881 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12882 as_echo='printf %s\n'
12883 as_echo_n='printf %s'
12884 else
12885 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12886 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12887 as_echo_n='/usr/ucb/echo -n'
12888 else
12889 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12890 as_echo_n_body='eval
12891 arg=$1;
12892 case $arg in #(
12893 *"$as_nl"*)
12894 expr "X$arg" : "X\\(.*\\)$as_nl";
12895 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12896 esac;
12897 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12899 export as_echo_n_body
12900 as_echo_n='sh -c $as_echo_n_body as_echo'
12902 export as_echo_body
12903 as_echo='sh -c $as_echo_body as_echo'
12906 # The user is always right.
12907 if test "${PATH_SEPARATOR+set}" != set; then
12908 PATH_SEPARATOR=:
12909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12911 PATH_SEPARATOR=';'
12916 # IFS
12917 # We need space, tab and new line, in precisely that order. Quoting is
12918 # there to prevent editors from complaining about space-tab.
12919 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12920 # splitting by setting IFS to empty value.)
12921 IFS=" "" $as_nl"
12923 # Find who we are. Look in the path if we contain no directory separator.
12924 as_myself=
12925 case $0 in #((
12926 *[\\/]* ) as_myself=$0 ;;
12927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12933 done
12934 IFS=$as_save_IFS
12937 esac
12938 # We did not find ourselves, most probably we were run as `sh COMMAND'
12939 # in which case we are not to be found in the path.
12940 if test "x$as_myself" = x; then
12941 as_myself=$0
12943 if test ! -f "$as_myself"; then
12944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12945 exit 1
12948 # Unset variables that we do not need and which cause bugs (e.g. in
12949 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12950 # suppresses any "Segmentation fault" message there. '((' could
12951 # trigger a bug in pdksh 5.2.14.
12952 for as_var in BASH_ENV ENV MAIL MAILPATH
12953 do eval test x\${$as_var+set} = xset \
12954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12955 done
12956 PS1='$ '
12957 PS2='> '
12958 PS4='+ '
12960 # NLS nuisances.
12961 LC_ALL=C
12962 export LC_ALL
12963 LANGUAGE=C
12964 export LANGUAGE
12966 # CDPATH.
12967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12970 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12971 # ----------------------------------------
12972 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12973 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12974 # script with STATUS, using 1 if that was 0.
12975 as_fn_error ()
12977 as_status=$1; test $as_status -eq 0 && as_status=1
12978 if test "$4"; then
12979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12982 $as_echo "$as_me: error: $2" >&2
12983 as_fn_exit $as_status
12984 } # as_fn_error
12987 # as_fn_set_status STATUS
12988 # -----------------------
12989 # Set $? to STATUS, without forking.
12990 as_fn_set_status ()
12992 return $1
12993 } # as_fn_set_status
12995 # as_fn_exit STATUS
12996 # -----------------
12997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12998 as_fn_exit ()
13000 set +e
13001 as_fn_set_status $1
13002 exit $1
13003 } # as_fn_exit
13005 # as_fn_unset VAR
13006 # ---------------
13007 # Portably unset VAR.
13008 as_fn_unset ()
13010 { eval $1=; unset $1;}
13012 as_unset=as_fn_unset
13013 # as_fn_append VAR VALUE
13014 # ----------------------
13015 # Append the text in VALUE to the end of the definition contained in VAR. Take
13016 # advantage of any shell optimizations that allow amortized linear growth over
13017 # repeated appends, instead of the typical quadratic growth present in naive
13018 # implementations.
13019 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13020 eval 'as_fn_append ()
13022 eval $1+=\$2
13024 else
13025 as_fn_append ()
13027 eval $1=\$$1\$2
13029 fi # as_fn_append
13031 # as_fn_arith ARG...
13032 # ------------------
13033 # Perform arithmetic evaluation on the ARGs, and store the result in the
13034 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13035 # must be portable across $(()) and expr.
13036 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13037 eval 'as_fn_arith ()
13039 as_val=$(( $* ))
13041 else
13042 as_fn_arith ()
13044 as_val=`expr "$@" || test $? -eq 1`
13046 fi # as_fn_arith
13049 if expr a : '\(a\)' >/dev/null 2>&1 &&
13050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13051 as_expr=expr
13052 else
13053 as_expr=false
13056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13057 as_basename=basename
13058 else
13059 as_basename=false
13062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13063 as_dirname=dirname
13064 else
13065 as_dirname=false
13068 as_me=`$as_basename -- "$0" ||
13069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13070 X"$0" : 'X\(//\)$' \| \
13071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13072 $as_echo X/"$0" |
13073 sed '/^.*\/\([^/][^/]*\)\/*$/{
13074 s//\1/
13077 /^X\/\(\/\/\)$/{
13078 s//\1/
13081 /^X\/\(\/\).*/{
13082 s//\1/
13085 s/.*/./; q'`
13087 # Avoid depending upon Character Ranges.
13088 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13091 as_cr_digits='0123456789'
13092 as_cr_alnum=$as_cr_Letters$as_cr_digits
13094 ECHO_C= ECHO_N= ECHO_T=
13095 case `echo -n x` in #(((((
13096 -n*)
13097 case `echo 'xy\c'` in
13098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13099 xy) ECHO_C='\c';;
13100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13101 ECHO_T=' ';;
13102 esac;;
13104 ECHO_N='-n';;
13105 esac
13107 rm -f conf$$ conf$$.exe conf$$.file
13108 if test -d conf$$.dir; then
13109 rm -f conf$$.dir/conf$$.file
13110 else
13111 rm -f conf$$.dir
13112 mkdir conf$$.dir 2>/dev/null
13114 if (echo >conf$$.file) 2>/dev/null; then
13115 if ln -s conf$$.file conf$$ 2>/dev/null; then
13116 as_ln_s='ln -s'
13117 # ... but there are two gotchas:
13118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13120 # In both cases, we have to default to `cp -pR'.
13121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13122 as_ln_s='cp -pR'
13123 elif ln conf$$.file conf$$ 2>/dev/null; then
13124 as_ln_s=ln
13125 else
13126 as_ln_s='cp -pR'
13128 else
13129 as_ln_s='cp -pR'
13131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13132 rmdir conf$$.dir 2>/dev/null
13135 # as_fn_mkdir_p
13136 # -------------
13137 # Create "$as_dir" as a directory, including parents if necessary.
13138 as_fn_mkdir_p ()
13141 case $as_dir in #(
13142 -*) as_dir=./$as_dir;;
13143 esac
13144 test -d "$as_dir" || eval $as_mkdir_p || {
13145 as_dirs=
13146 while :; do
13147 case $as_dir in #(
13148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13149 *) as_qdir=$as_dir;;
13150 esac
13151 as_dirs="'$as_qdir' $as_dirs"
13152 as_dir=`$as_dirname -- "$as_dir" ||
13153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13154 X"$as_dir" : 'X\(//\)[^/]' \| \
13155 X"$as_dir" : 'X\(//\)$' \| \
13156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13157 $as_echo X"$as_dir" |
13158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13159 s//\1/
13162 /^X\(\/\/\)[^/].*/{
13163 s//\1/
13166 /^X\(\/\/\)$/{
13167 s//\1/
13170 /^X\(\/\).*/{
13171 s//\1/
13174 s/.*/./; q'`
13175 test -d "$as_dir" && break
13176 done
13177 test -z "$as_dirs" || eval "mkdir $as_dirs"
13178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13181 } # as_fn_mkdir_p
13182 if mkdir -p . 2>/dev/null; then
13183 as_mkdir_p='mkdir -p "$as_dir"'
13184 else
13185 test -d ./-p && rmdir ./-p
13186 as_mkdir_p=false
13190 # as_fn_executable_p FILE
13191 # -----------------------
13192 # Test if FILE is an executable regular file.
13193 as_fn_executable_p ()
13195 test -f "$1" && test -x "$1"
13196 } # as_fn_executable_p
13197 as_test_x='test -x'
13198 as_executable_p=as_fn_executable_p
13200 # Sed expression to map a string onto a valid CPP name.
13201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13203 # Sed expression to map a string onto a valid variable name.
13204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13207 exec 6>&1
13208 ## ----------------------------------- ##
13209 ## Main body of $CONFIG_STATUS script. ##
13210 ## ----------------------------------- ##
13211 _ASEOF
13212 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13215 # Save the log message, to keep $0 and so on meaningful, and to
13216 # report actual input values of CONFIG_FILES etc. instead of their
13217 # values after options handling.
13218 ac_log="
13219 This file was extended by $as_me, which was
13220 generated by GNU Autoconf 2.69. Invocation command line was
13222 CONFIG_FILES = $CONFIG_FILES
13223 CONFIG_HEADERS = $CONFIG_HEADERS
13224 CONFIG_LINKS = $CONFIG_LINKS
13225 CONFIG_COMMANDS = $CONFIG_COMMANDS
13226 $ $0 $@
13228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13231 _ACEOF
13233 case $ac_config_files in *"
13234 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13235 esac
13237 case $ac_config_headers in *"
13238 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13239 esac
13242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13243 # Files that config.status was made for.
13244 config_files="$ac_config_files"
13245 config_headers="$ac_config_headers"
13246 config_commands="$ac_config_commands"
13248 _ACEOF
13250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13251 ac_cs_usage="\
13252 \`$as_me' instantiates files and other configuration actions
13253 from templates according to the current configuration. Unless the files
13254 and actions are specified as TAGs, all are instantiated by default.
13256 Usage: $0 [OPTION]... [TAG]...
13258 -h, --help print this help, then exit
13259 -V, --version print version number and configuration settings, then exit
13260 --config print configuration, then exit
13261 -q, --quiet, --silent
13262 do not print progress messages
13263 -d, --debug don't remove temporary files
13264 --recheck update $as_me by reconfiguring in the same conditions
13265 --file=FILE[:TEMPLATE]
13266 instantiate the configuration file FILE
13267 --header=FILE[:TEMPLATE]
13268 instantiate the configuration header FILE
13270 Configuration files:
13271 $config_files
13273 Configuration headers:
13274 $config_headers
13276 Configuration commands:
13277 $config_commands
13279 Report bugs to the package provider."
13281 _ACEOF
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13284 ac_cs_version="\\
13285 config.status
13286 configured by $0, generated by GNU Autoconf 2.69,
13287 with options \\"\$ac_cs_config\\"
13289 Copyright (C) 2012 Free Software Foundation, Inc.
13290 This config.status script is free software; the Free Software Foundation
13291 gives unlimited permission to copy, distribute and modify it."
13293 ac_pwd='$ac_pwd'
13294 srcdir='$srcdir'
13295 INSTALL='$INSTALL'
13296 MKDIR_P='$MKDIR_P'
13297 AWK='$AWK'
13298 test -n "\$AWK" || AWK=awk
13299 _ACEOF
13301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13302 # The default lists apply if the user does not specify any file.
13303 ac_need_defaults=:
13304 while test $# != 0
13306 case $1 in
13307 --*=?*)
13308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13309 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13310 ac_shift=:
13312 --*=)
13313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13314 ac_optarg=
13315 ac_shift=:
13318 ac_option=$1
13319 ac_optarg=$2
13320 ac_shift=shift
13322 esac
13324 case $ac_option in
13325 # Handling of the options.
13326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13327 ac_cs_recheck=: ;;
13328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13329 $as_echo "$ac_cs_version"; exit ;;
13330 --config | --confi | --conf | --con | --co | --c )
13331 $as_echo "$ac_cs_config"; exit ;;
13332 --debug | --debu | --deb | --de | --d | -d )
13333 debug=: ;;
13334 --file | --fil | --fi | --f )
13335 $ac_shift
13336 case $ac_optarg in
13337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13338 '') as_fn_error $? "missing file argument" ;;
13339 esac
13340 as_fn_append CONFIG_FILES " '$ac_optarg'"
13341 ac_need_defaults=false;;
13342 --header | --heade | --head | --hea )
13343 $ac_shift
13344 case $ac_optarg in
13345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13346 esac
13347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13348 ac_need_defaults=false;;
13349 --he | --h)
13350 # Conflict between --help and --header
13351 as_fn_error $? "ambiguous option: \`$1'
13352 Try \`$0 --help' for more information.";;
13353 --help | --hel | -h )
13354 $as_echo "$ac_cs_usage"; exit ;;
13355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13357 ac_cs_silent=: ;;
13359 # This is an error.
13360 -*) as_fn_error $? "unrecognized option: \`$1'
13361 Try \`$0 --help' for more information." ;;
13363 *) as_fn_append ac_config_targets " $1"
13364 ac_need_defaults=false ;;
13366 esac
13367 shift
13368 done
13370 ac_configure_extra_args=
13372 if $ac_cs_silent; then
13373 exec 6>/dev/null
13374 ac_configure_extra_args="$ac_configure_extra_args --silent"
13377 _ACEOF
13378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13379 if \$ac_cs_recheck; then
13380 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13381 shift
13382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13383 CONFIG_SHELL='$SHELL'
13384 export CONFIG_SHELL
13385 exec "\$@"
13388 _ACEOF
13389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13390 exec 5>>config.log
13392 echo
13393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13394 ## Running $as_me. ##
13395 _ASBOX
13396 $as_echo "$ac_log"
13397 } >&5
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402 # INIT-COMMANDS
13404 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13405 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13406 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
13407 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13408 LINGUAS="${LINGUAS-%UNSET%}"
13411 _ACEOF
13413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13415 # Handling of arguments.
13416 for ac_config_target in $ac_config_targets
13418 case $ac_config_target in
13419 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
13420 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13421 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13423 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13424 esac
13425 done
13428 # If the user did not use the arguments to specify the items to instantiate,
13429 # then the envvar interface is used. Set only those that are not.
13430 # We use the long form for the default assignment because of an extremely
13431 # bizarre bug on SunOS 4.1.3.
13432 if $ac_need_defaults; then
13433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13438 # Have a temporary directory for convenience. Make it in the build tree
13439 # simply because there is no reason against having it here, and in addition,
13440 # creating and moving files from /tmp can sometimes cause problems.
13441 # Hook for its removal unless debugging.
13442 # Note that there is a small window in which the directory will not be cleaned:
13443 # after its creation but before its name has been assigned to `$tmp'.
13444 $debug ||
13446 tmp= ac_tmp=
13447 trap 'exit_status=$?
13448 : "${ac_tmp:=$tmp}"
13449 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13451 trap 'as_fn_exit 1' 1 2 13 15
13453 # Create a (secure) tmp directory for tmp files.
13456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13457 test -d "$tmp"
13458 } ||
13460 tmp=./conf$$-$RANDOM
13461 (umask 077 && mkdir "$tmp")
13462 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13463 ac_tmp=$tmp
13465 # Set up the scripts for CONFIG_FILES section.
13466 # No need to generate them if there are no CONFIG_FILES.
13467 # This happens for instance with `./config.status config.h'.
13468 if test -n "$CONFIG_FILES"; then
13470 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13471 ac_cs_awk_getline=:
13472 ac_cs_awk_pipe_init=
13473 ac_cs_awk_read_file='
13474 while ((getline aline < (F[key])) > 0)
13475 print(aline)
13476 close(F[key])'
13477 ac_cs_awk_pipe_fini=
13478 else
13479 ac_cs_awk_getline=false
13480 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13481 ac_cs_awk_read_file='
13482 print "|#_!!_#|"
13483 print "cat " F[key] " &&"
13484 '$ac_cs_awk_pipe_init
13485 # The final `:' finishes the AND list.
13486 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13488 ac_cr=`echo X | tr X '\015'`
13489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13490 # But we know of no other shell where ac_cr would be empty at this
13491 # point, so we can use a bashism as a fallback.
13492 if test "x$ac_cr" = x; then
13493 eval ac_cr=\$\'\\r\'
13495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13497 ac_cs_awk_cr='\\r'
13498 else
13499 ac_cs_awk_cr=$ac_cr
13502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13503 _ACEOF
13505 # Create commands to substitute file output variables.
13507 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13508 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13509 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13510 echo "_ACAWK" &&
13511 echo "_ACEOF"
13512 } >conf$$files.sh &&
13513 . ./conf$$files.sh ||
13514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13515 rm -f conf$$files.sh
13518 echo "cat >conf$$subs.awk <<_ACEOF" &&
13519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13520 echo "_ACEOF"
13521 } >conf$$subs.sh ||
13522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13524 ac_delim='%!_!# '
13525 for ac_last_try in false false false false false :; do
13526 . ./conf$$subs.sh ||
13527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13530 if test $ac_delim_n = $ac_delim_num; then
13531 break
13532 elif $ac_last_try; then
13533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13534 else
13535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13537 done
13538 rm -f conf$$subs.sh
13540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13542 _ACEOF
13543 sed -n '
13545 s/^/S["/; s/!.*/"]=/
13548 s/^[^!]*!//
13549 :repl
13550 t repl
13551 s/'"$ac_delim"'$//
13552 t delim
13555 s/\(.\{148\}\)..*/\1/
13556 t more1
13557 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13560 b repl
13561 :more1
13562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13565 s/.\{148\}//
13566 t nl
13567 :delim
13569 s/\(.\{148\}\)..*/\1/
13570 t more2
13571 s/["\\]/\\&/g; s/^/"/; s/$/"/
13574 :more2
13575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13578 s/.\{148\}//
13579 t delim
13580 ' <conf$$subs.awk | sed '
13581 /^[^""]/{
13583 s/\n//
13585 ' >>$CONFIG_STATUS || ac_write_fail=1
13586 rm -f conf$$subs.awk
13587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588 _ACAWK
13589 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13590 for (key in S) S_is_set[key] = 1
13591 FS = "\a"
13592 \$ac_cs_awk_pipe_init
13595 line = $ 0
13596 nfields = split(line, field, "@")
13597 substed = 0
13598 len = length(field[1])
13599 for (i = 2; i < nfields; i++) {
13600 key = field[i]
13601 keylen = length(key)
13602 if (S_is_set[key]) {
13603 value = S[key]
13604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13605 len += length(value) + length(field[++i])
13606 substed = 1
13607 } else
13608 len += 1 + keylen
13610 if (nfields == 3 && !substed) {
13611 key = field[2]
13612 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13613 \$ac_cs_awk_read_file
13614 next
13617 print line
13619 \$ac_cs_awk_pipe_fini
13620 _ACAWK
13621 _ACEOF
13622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13625 else
13627 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13628 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13629 _ACEOF
13631 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13632 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13633 # trailing colons and then remove the whole line if VPATH becomes empty
13634 # (actually we leave an empty line to preserve line numbers).
13635 if test "x$srcdir" = x.; then
13636 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13638 s///
13639 s/^/:/
13640 s/[ ]*$/:/
13641 s/:\$(srcdir):/:/g
13642 s/:\${srcdir}:/:/g
13643 s/:@srcdir@:/:/g
13644 s/^:*//
13645 s/:*$//
13647 s/\(=[ ]*\).*/\1/
13649 s/\n//
13650 s/^[^=]*=[ ]*$//
13654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13655 fi # test -n "$CONFIG_FILES"
13657 # Set up the scripts for CONFIG_HEADERS section.
13658 # No need to generate them if there are no CONFIG_HEADERS.
13659 # This happens for instance with `./config.status Makefile'.
13660 if test -n "$CONFIG_HEADERS"; then
13661 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13662 BEGIN {
13663 _ACEOF
13665 # Transform confdefs.h into an awk script `defines.awk', embedded as
13666 # here-document in config.status, that substitutes the proper values into
13667 # config.h.in to produce config.h.
13669 # Create a delimiter string that does not exist in confdefs.h, to ease
13670 # handling of long lines.
13671 ac_delim='%!_!# '
13672 for ac_last_try in false false :; do
13673 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13674 if test -z "$ac_tt"; then
13675 break
13676 elif $ac_last_try; then
13677 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13678 else
13679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13681 done
13683 # For the awk script, D is an array of macro values keyed by name,
13684 # likewise P contains macro parameters if any. Preserve backslash
13685 # newline sequences.
13687 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13688 sed -n '
13689 s/.\{148\}/&'"$ac_delim"'/g
13690 t rset
13691 :rset
13692 s/^[ ]*#[ ]*define[ ][ ]*/ /
13693 t def
13695 :def
13696 s/\\$//
13697 t bsnl
13698 s/["\\]/\\&/g
13699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13700 D["\1"]=" \3"/p
13701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13703 :bsnl
13704 s/["\\]/\\&/g
13705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13706 D["\1"]=" \3\\\\\\n"\\/p
13707 t cont
13708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13709 t cont
13711 :cont
13713 s/.\{148\}/&'"$ac_delim"'/g
13714 t clear
13715 :clear
13716 s/\\$//
13717 t bsnlc
13718 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13720 :bsnlc
13721 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13722 b cont
13723 ' <confdefs.h | sed '
13724 s/'"$ac_delim"'/"\\\
13725 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13728 for (key in D) D_is_set[key] = 1
13729 FS = "\a"
13731 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13732 line = \$ 0
13733 split(line, arg, " ")
13734 if (arg[1] == "#") {
13735 defundef = arg[2]
13736 mac1 = arg[3]
13737 } else {
13738 defundef = substr(arg[1], 2)
13739 mac1 = arg[2]
13741 split(mac1, mac2, "(") #)
13742 macro = mac2[1]
13743 prefix = substr(line, 1, index(line, defundef) - 1)
13744 if (D_is_set[macro]) {
13745 # Preserve the white space surrounding the "#".
13746 print prefix "define", macro P[macro] D[macro]
13747 next
13748 } else {
13749 # Replace #undef with comments. This is necessary, for example,
13750 # in the case of _POSIX_SOURCE, which is predefined and required
13751 # on some systems where configure will not decide to define it.
13752 if (defundef == "undef") {
13753 print "/*", prefix defundef, macro, "*/"
13754 next
13758 { print }
13759 _ACAWK
13760 _ACEOF
13761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13763 fi # test -n "$CONFIG_HEADERS"
13766 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13767 shift
13768 for ac_tag
13770 case $ac_tag in
13771 :[FHLC]) ac_mode=$ac_tag; continue;;
13772 esac
13773 case $ac_mode$ac_tag in
13774 :[FHL]*:*);;
13775 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13776 :[FH]-) ac_tag=-:-;;
13777 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13778 esac
13779 ac_save_IFS=$IFS
13780 IFS=:
13781 set x $ac_tag
13782 IFS=$ac_save_IFS
13783 shift
13784 ac_file=$1
13785 shift
13787 case $ac_mode in
13788 :L) ac_source=$1;;
13789 :[FH])
13790 ac_file_inputs=
13791 for ac_f
13793 case $ac_f in
13794 -) ac_f="$ac_tmp/stdin";;
13795 *) # Look for the file first in the build tree, then in the source tree
13796 # (if the path is not absolute). The absolute path cannot be DOS-style,
13797 # because $ac_f cannot contain `:'.
13798 test -f "$ac_f" ||
13799 case $ac_f in
13800 [\\/$]*) false;;
13801 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13802 esac ||
13803 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13804 esac
13805 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13806 as_fn_append ac_file_inputs " '$ac_f'"
13807 done
13809 # Let's still pretend it is `configure' which instantiates (i.e., don't
13810 # use $as_me), people would be surprised to read:
13811 # /* config.h. Generated by config.status. */
13812 configure_input='Generated from '`
13813 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13814 `' by configure.'
13815 if test x"$ac_file" != x-; then
13816 configure_input="$ac_file. $configure_input"
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13818 $as_echo "$as_me: creating $ac_file" >&6;}
13820 # Neutralize special characters interpreted by sed in replacement strings.
13821 case $configure_input in #(
13822 *\&* | *\|* | *\\* )
13823 ac_sed_conf_input=`$as_echo "$configure_input" |
13824 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13825 *) ac_sed_conf_input=$configure_input;;
13826 esac
13828 case $ac_tag in
13829 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13831 esac
13833 esac
13835 ac_dir=`$as_dirname -- "$ac_file" ||
13836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13837 X"$ac_file" : 'X\(//\)[^/]' \| \
13838 X"$ac_file" : 'X\(//\)$' \| \
13839 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13840 $as_echo X"$ac_file" |
13841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13842 s//\1/
13845 /^X\(\/\/\)[^/].*/{
13846 s//\1/
13849 /^X\(\/\/\)$/{
13850 s//\1/
13853 /^X\(\/\).*/{
13854 s//\1/
13857 s/.*/./; q'`
13858 as_dir="$ac_dir"; as_fn_mkdir_p
13859 ac_builddir=.
13861 case "$ac_dir" in
13862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13865 # A ".." for each directory in $ac_dir_suffix.
13866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13867 case $ac_top_builddir_sub in
13868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13870 esac ;;
13871 esac
13872 ac_abs_top_builddir=$ac_pwd
13873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13874 # for backward compatibility:
13875 ac_top_builddir=$ac_top_build_prefix
13877 case $srcdir in
13878 .) # We are building in place.
13879 ac_srcdir=.
13880 ac_top_srcdir=$ac_top_builddir_sub
13881 ac_abs_top_srcdir=$ac_pwd ;;
13882 [\\/]* | ?:[\\/]* ) # Absolute name.
13883 ac_srcdir=$srcdir$ac_dir_suffix;
13884 ac_top_srcdir=$srcdir
13885 ac_abs_top_srcdir=$srcdir ;;
13886 *) # Relative name.
13887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13888 ac_top_srcdir=$ac_top_build_prefix$srcdir
13889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13890 esac
13891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13894 case $ac_mode in
13897 # CONFIG_FILE
13900 case $INSTALL in
13901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13903 esac
13904 ac_MKDIR_P=$MKDIR_P
13905 case $MKDIR_P in
13906 [\\/$]* | ?:[\\/]* ) ;;
13907 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13908 esac
13909 _ACEOF
13911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912 # If the template does not know about datarootdir, expand it.
13913 # FIXME: This hack should be removed a few years after 2.60.
13914 ac_datarootdir_hack=; ac_datarootdir_seen=
13915 ac_sed_dataroot='
13916 /datarootdir/ {
13920 /@datadir@/p
13921 /@docdir@/p
13922 /@infodir@/p
13923 /@localedir@/p
13924 /@mandir@/p'
13925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13926 *datarootdir*) ac_datarootdir_seen=yes;;
13927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13930 _ACEOF
13931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13932 ac_datarootdir_hack='
13933 s&@datadir@&$datadir&g
13934 s&@docdir@&$docdir&g
13935 s&@infodir@&$infodir&g
13936 s&@localedir@&$localedir&g
13937 s&@mandir@&$mandir&g
13938 s&\\\${datarootdir}&$datarootdir&g' ;;
13939 esac
13940 _ACEOF
13942 # Neutralize VPATH when `$srcdir' = `.'.
13943 # Shell code in configure.ac might set extrasub.
13944 # FIXME: do we really want to maintain this feature?
13945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946 ac_sed_extra="$ac_vpsub
13947 $extrasub
13948 _ACEOF
13949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13952 s|@configure_input@|$ac_sed_conf_input|;t t
13953 s&@top_builddir@&$ac_top_builddir_sub&;t t
13954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13955 s&@srcdir@&$ac_srcdir&;t t
13956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13957 s&@top_srcdir@&$ac_top_srcdir&;t t
13958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13959 s&@builddir@&$ac_builddir&;t t
13960 s&@abs_builddir@&$ac_abs_builddir&;t t
13961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13962 s&@INSTALL@&$ac_INSTALL&;t t
13963 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13964 $ac_datarootdir_hack
13966 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13967 if $ac_cs_awk_getline; then
13968 $AWK -f "$ac_tmp/subs.awk"
13969 else
13970 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13971 fi \
13972 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13974 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13975 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13977 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13979 which seems to be undefined. Please make sure it is defined" >&5
13980 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13981 which seems to be undefined. Please make sure it is defined" >&2;}
13983 rm -f "$ac_tmp/stdin"
13984 case $ac_file in
13985 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13986 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13987 esac \
13988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13992 # CONFIG_HEADER
13994 if test x"$ac_file" != x-; then
13996 $as_echo "/* $configure_input */" \
13997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13998 } >"$ac_tmp/config.h" \
13999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14000 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14002 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14003 else
14004 rm -f "$ac_file"
14005 mv "$ac_tmp/config.h" "$ac_file" \
14006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14008 else
14009 $as_echo "/* $configure_input */" \
14010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14011 || as_fn_error $? "could not create -" "$LINENO" 5
14015 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14016 $as_echo "$as_me: executing $ac_file commands" >&6;}
14018 esac
14021 case $ac_file$ac_mode in
14022 "po-directories":C)
14023 for ac_file in $CONFIG_FILES; do
14024 # Support "outfile[:infile[:infile...]]"
14025 case "$ac_file" in
14026 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14027 esac
14028 # PO directories have a Makefile.in generated from Makefile.in.in.
14029 case "$ac_file" in */Makefile.in)
14030 # Adjust a relative srcdir.
14031 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14032 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14033 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14034 # In autoconf-2.13 it is called $ac_given_srcdir.
14035 # In autoconf-2.50 it is called $srcdir.
14036 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14037 case "$ac_given_srcdir" in
14038 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14039 /*) top_srcdir="$ac_given_srcdir" ;;
14040 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14041 esac
14042 # Treat a directory as a PO directory if and only if it has a
14043 # POTFILES.in file. This allows packages to have multiple PO
14044 # directories under different names or in different locations.
14045 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14046 rm -f "$ac_dir/POTFILES"
14047 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14048 gt_tab=`printf '\t'`
14049 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"
14050 POMAKEFILEDEPS="POTFILES.in"
14051 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14052 # on $ac_dir but don't depend on user-specified configuration
14053 # parameters.
14054 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14055 # The LINGUAS file contains the set of available languages.
14056 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14057 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14059 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14060 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14061 else
14062 # The set of available languages was given in configure.in.
14063 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14065 # Compute POFILES
14066 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14067 # Compute UPDATEPOFILES
14068 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14069 # Compute DUMMYPOFILES
14070 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14071 # Compute GMOFILES
14072 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14073 case "$ac_given_srcdir" in
14074 .) srcdirpre= ;;
14075 *) srcdirpre='$(srcdir)/' ;;
14076 esac
14077 POFILES=
14078 UPDATEPOFILES=
14079 DUMMYPOFILES=
14080 GMOFILES=
14081 for lang in $ALL_LINGUAS; do
14082 POFILES="$POFILES $srcdirpre$lang.po"
14083 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14084 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14085 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14086 done
14087 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14088 # environment variable.
14089 INST_LINGUAS=
14090 if test -n "$ALL_LINGUAS"; then
14091 for presentlang in $ALL_LINGUAS; do
14092 useit=no
14093 if test "%UNSET%" != "$LINGUAS"; then
14094 desiredlanguages="$LINGUAS"
14095 else
14096 desiredlanguages="$ALL_LINGUAS"
14098 for desiredlang in $desiredlanguages; do
14099 # Use the presentlang catalog if desiredlang is
14100 # a. equal to presentlang, or
14101 # b. a variant of presentlang (because in this case,
14102 # presentlang can be used as a fallback for messages
14103 # which are not translated in the desiredlang catalog).
14104 case "$desiredlang" in
14105 "$presentlang"*) useit=yes;;
14106 esac
14107 done
14108 if test $useit = yes; then
14109 INST_LINGUAS="$INST_LINGUAS $presentlang"
14111 done
14113 CATALOGS=
14114 if test -n "$INST_LINGUAS"; then
14115 for lang in $INST_LINGUAS; do
14116 CATALOGS="$CATALOGS $lang.gmo"
14117 done
14119 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14120 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"
14121 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14122 if test -f "$f"; then
14123 case "$f" in
14124 *.orig | *.bak | *~) ;;
14125 *) cat "$f" >> "$ac_dir/Makefile" ;;
14126 esac
14128 done
14131 esac
14132 done ;;
14134 esac
14135 done # for ac_tag
14138 as_fn_exit 0
14139 _ACEOF
14140 ac_clean_files=$ac_clean_files_save
14142 test $ac_write_fail = 0 ||
14143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14146 # configure is writing to config.log, and then calls config.status.
14147 # config.status does its own redirection, appending to config.log.
14148 # Unfortunately, on DOS this fails, as config.log is still kept open
14149 # by configure, so config.status won't be able to write to it; its
14150 # output is simply discarded. So we exec the FD to /dev/null,
14151 # effectively closing config.log, so it can be properly (re)opened and
14152 # appended to by config.status. When coming back to configure, we
14153 # need to make the FD available again.
14154 if test "$no_create" != yes; then
14155 ac_cs_success=:
14156 ac_config_status_args=
14157 test "$silent" = yes &&
14158 ac_config_status_args="$ac_config_status_args --quiet"
14159 exec 5>/dev/null
14160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14161 exec 5>>config.log
14162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14163 # would make configure fail if this is the last instruction.
14164 $ac_cs_success || as_fn_exit 1
14166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14171 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi