]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
ext2fs: implement dir entry creation in htree directories
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
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
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
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
225 fi
226 fi
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
236
237
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
258 fi
259
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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
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 ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
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/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
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"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
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 ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
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 ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
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 ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
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
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
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
436 fi
437
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/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
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
463
464
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 '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
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; }
487
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
498 }
499
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;;
509 *)
510 ECHO_N='-n';;
511 esac
512
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
519 fi
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'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
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
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
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'"
552
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'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
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`
564
565 #
566 # Initializations.
567 #
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=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
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"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 systemd_system_unit_dir
629 have_systemd
630 systemd_LIBS
631 systemd_CFLAGS
632 crond_dir
633 have_crond
634 pkg_udev_rules_dir
635 have_udev
636 udev_LIBS
637 udev_CFLAGS
638 LDFLAGS_SHLIB
639 CFLAGS_STLIB
640 CFLAGS_SHLIB
641 BUILD_LDFLAGS
642 BUILD_CFLAGS
643 INCLUDES
644 DO_TEST_SUITE
645 LDFLAGS_STATIC
646 root_sysconfdir
647 root_libdir
648 root_sbindir
649 root_bindir
650 root_prefix
651 E2SCRUB_CMT
652 UNIX_CMT
653 CYGWIN_CMT
654 LINUX_CMT
655 threadsan_ldflags
656 threadsan_cflags
657 have_threadsan
658 addrsan_ldflags
659 addrsan_cflags
660 have_addrsan
661 ubsan_ldflags
662 ubsan_cflags
663 have_ubsan
664 lto_ldflags
665 lto_cflags
666 have_lto
667 gcc_ranlib
668 gcc_ar
669 UNI_DIFF_OPTS
670 SEM_INIT_LIB
671 FUSE_CMT
672 FUSE_LIB
673 CLOCK_GETTIME_LIB
674 MAGIC_LIB
675 SOCKET_LIB
676 SIZEOF_TIME_T
677 SIZEOF_OFF_T
678 SIZEOF_LONG_LONG
679 SIZEOF_LONG
680 SIZEOF_INT
681 SIZEOF_SHORT
682 DD
683 BUILD_CC
684 MAKEINFO
685 STRIP
686 AR
687 LDCONFIG
688 PERL
689 AWK
690 CHMOD
691 RM
692 CP
693 MV
694 LN_S
695 LN
696 ifNotGNUmake
697 ifGNUmake
698 BINARY_TYPE
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 INTL_LIBTOOL_SUFFIX_PREFIX
704 INTLOBJS
705 GENCAT
706 INSTOBJEXT
707 DATADIRNAME
708 CATOBJEXT
709 USE_INCLUDED_LIBINTL
710 BUILD_INCLUDED_LIBINTL
711 LTLIBC
712 WINDRES
713 WOE32
714 WOE32DLL
715 HAVE_WPRINTF
716 HAVE_NEWLOCALE
717 HAVE_SNPRINTF
718 HAVE_ASPRINTF
719 HAVE_POSIX_PRINTF
720 INTL_DEFAULT_VERBOSITY
721 INTL_MACOSX_LIBS
722 GLIBC21
723 INTLBISON
724 LTLIBICONV
725 LIBICONV
726 LTLIBMULTITHREAD
727 LIBMULTITHREAD
728 LTLIBTHREAD
729 LIBTHREAD
730 LIBPTH_PREFIX
731 LTLIBPTH
732 LIBPTH
733 PRI_MACROS_BROKEN
734 ALLOCA
735 HAVE_VISIBILITY
736 CFLAG_VISIBILITY
737 RANLIB
738 GLIBC2
739 XGETTEXT_EXTRA_OPTIONS
740 MSGMERGE
741 XGETTEXT_015
742 XGETTEXT
743 GMSGFMT_015
744 MSGFMT_015
745 GMSGFMT
746 MSGFMT
747 GETTEXT_MACRO_VERSION
748 USE_NLS
749 SED
750 MKDIR_P
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 SET_MAKE
755 VERSION
756 PACKAGE
757 GETTEXT_PACKAGE
758 TDB_MAN_COMMENT
759 TDB_CMT
760 UUIDD_CMT
761 E2INITRD_MAN
762 E2INITRD_PROG
763 FSCK_MAN
764 FSCK_PROG
765 DEFRAG_CMT
766 RESIZER_CMT
767 IMAGER_CMT
768 DEBUGFS_CMT
769 SUBSET_CMT
770 ALL_CMT
771 BLKID_CMT
772 DEPPROFILED_LIBBLKID
773 PROFILED_LIBBLKID
774 DEPSTATIC_LIBBLKID
775 STATIC_LIBBLKID
776 DEPLIBBLKID
777 LIBBLKID
778 UUID_CMT
779 DEPPROFILED_LIBUUID
780 PROFILED_LIBUUID
781 DEPSTATIC_LIBUUID
782 STATIC_LIBUUID
783 DEPLIBUUID
784 LIBUUID
785 PKG_CONFIG_LIBDIR
786 PKG_CONFIG_PATH
787 PKG_CONFIG
788 DEV_FEATURES_CMT
789 TEST_IO_CMT
790 PRIVATE_LIBS_CMT
791 LDFLAG_DYNAMIC
792 PROFILED_LIB_EXT
793 STATIC_LIB_EXT
794 LIB_EXT
795 PROFILE_CMT
796 BSDLIB_CMT
797 ELF_CMT
798 Q
799 ES
800 E
801 LINK_BUILD_FLAGS
802 SYMLINK_RELATIVE
803 LINK_INSTALL_FLAGS
804 MAINTAINER_CMT
805 EGREP
806 GREP
807 CPP
808 RDYNAMIC
809 DLOPEN_LIB
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
816 CC
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 E2FSPROGS_DATE
826 E2FSPROGS_PKGVER
827 E2FSPROGS_VERSION
828 E2FSPROGS_DAY
829 E2FSPROGS_MONTH
830 E2FSPROGS_YEAR
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 runstatedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='MCONFIG
871 MAKEFILE_ELF
872 MAKEFILE_BSDLIB
873 MAKEFILE_PROFILE
874 MAKEFILE_LIBRARY
875 ASM_TYPES_HEADER
876 PUBLIC_CONFIG_HEADER'
877 ac_user_opts='
878 enable_option_checking
879 with_diet_libc
880 with_cc
881 with_ccopts
882 with_ldopts
883 with_root_prefix
884 enable_maintainer_mode
885 enable_symlink_install
886 enable_relative_symlinks
887 enable_symlink_relative_symlinks
888 enable_symlink_build
889 enable_verbose_makecmds
890 enable_elf_shlibs
891 enable_bsd_shlibs
892 enable_profile
893 enable_gcov
894 enable_hardening
895 enable_jbd_debug
896 enable_blkid_debug
897 enable_testio_debug
898 enable_developer_features
899 enable_libuuid
900 enable_libblkid
901 enable_subset
902 enable_backtrace
903 enable_debugfs
904 enable_imager
905 enable_resizer
906 enable_defrag
907 enable_fsck
908 enable_e2initrd_helper
909 enable_tls
910 enable_uuidd
911 enable_mmp
912 enable_tdb
913 enable_bmap_stats
914 enable_bmap_stats_ops
915 enable_nls
916 enable_threads
917 with_gnu_ld
918 enable_rpath
919 with_libpth_prefix
920 with_libiconv_prefix
921 with_included_gettext
922 with_libintl_prefix
923 enable_fuse2fs
924 enable_lto
925 enable_ubsan
926 enable_addrsan
927 enable_threadsan
928 with_multiarch
929 with_udev_rules_dir
930 with_crond_dir
931 with_systemd_unit_dir
932 '
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CPP
942 PKG_CONFIG
943 PKG_CONFIG_PATH
944 PKG_CONFIG_LIBDIR
945 udev_CFLAGS
946 udev_LIBS
947 systemd_CFLAGS
948 systemd_LIBS'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 ac_unrecognized_opts=
955 ac_unrecognized_sep=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 runstatedir='${localstatedir}/run'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1009 fi
1010
1011 case $ac_option in
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -runstatedir | --runstatedir | --runstatedi | --runstated \
1241 | --runstate | --runstat | --runsta | --runst | --runs \
1242 | --run | --ru | --r)
1243 ac_prev=runstatedir ;;
1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246 | --run=* | --ru=* | --r=*)
1247 runstatedir=$ac_optarg ;;
1248
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1254
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1265
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1270
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1275
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1282
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1287
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1290
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1293
1294 -with-* | --with-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1309
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1325
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1329
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1336
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1343
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1346 ;;
1347
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354 esac
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1357
1358 *)
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 ;;
1365
1366 esac
1367 done
1368
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1372 fi
1373
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir runstatedir
1387 do
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1402
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1409
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\).*/{
1456 s//\1/
1457 q
1458 }
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1463 fi
1464 else
1465 ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1554
1555 cat <<\_ACEOF
1556
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564
1565 cat <<\_ACEOF
1566
1567 Optional Features:
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-maintainer-mode enable makefile rules useful for maintainers
1572 --enable-symlink-install use symlinks when installing instead of hard links
1573 --enable-relative-symlinks use relative symlinks when installing
1574
1575 --enable-symlink-build use symlinks while building instead of hard links
1576 --enable-verbose-makecmds enable verbose make command output
1577 --enable-elf-shlibs select ELF shared libraries
1578 --enable-bsd-shlibs select BSD shared libraries
1579 --enable-profile build profiling libraries
1580 --enable-gcov build for coverage testing using gcov
1581 --enable-hardening build for coverage testing using gcov
1582 --enable-jbd-debug enable journal debugging
1583 --enable-blkid-debug enable blkid debugging
1584 --disable-testio-debug disable the use of the test I/O manager for debugging
1585 --enable-developer-features enable features for use by ext4 developers
1586 --enable-libuuid build and use private uuid library
1587 --enable-libblkid build and use private blkid library
1588 --enable-subset enable subset-only build
1589 --disable-backtrace disable use backtrace
1590 --disable-debugfs disable support of debugfs program
1591 --disable-imager disable support of e2image program
1592 --disable-resizer disable support of e2resize program
1593 --disable-defrag disable support of e4defrag program
1594 --enable-fsck build fsck wrapper program
1595 --enable-e2initrd-helper build e2initrd-helper program
1596 --disable-tls disable use of thread local support
1597 --disable-uuidd disable building the uuid daemon
1598 --disable-mmp disable support mmp, Multi Mount Protection
1599 --disable-tdb disable tdb support
1600 --disable-bmap-stats disable collection of bitmap stats.
1601 --enable-bmap-stats-ops enable collection of additional bitmap stats
1602 --disable-nls do not use Native Language Support
1603 --enable-threads={posix|solaris|pth|windows}
1604 specify multithreading API
1605 --disable-threads build without multithread safety
1606 --disable-rpath do not hardcode runtime library paths
1607 --disable-fuse2fs do not build fuse2fs
1608 --enable-lto enable link time optimization
1609 --enable-ubsan enable undefined behavior sanitizer
1610 --enable-addrsan enable address sanitizer
1611 --enable-threadsan enable thread sanitizer
1612
1613 Optional Packages:
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1616 --with-diet-libc use diet libc
1617 --with-cc no longer supported, use CC= instead
1618 --with-ccopts no longer supported, use CFLAGS= instead
1619 --with-ldopts no longer supported, use LDFLAGS= instead
1620 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1623 --without-libpth-prefix don't search for libpth in includedir and libdir
1624 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1625 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1626 --with-included-gettext use the GNU gettext library included here
1627 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1628 --without-libintl-prefix don't search for libintl in includedir and libdir
1629 --with-multiarch=ARCH specify the multiarch triplet
1630 --with-udev-rules-dir[=DIR]
1631 Install udev rules into DIR.
1632 --with-crond-dir[=DIR] Install system crontabs into DIR.
1633 --with-systemd-unit-dir[=DIR]
1634 Install systemd system units into DIR.
1635
1636 Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1644 CPP C preprocessor
1645 PKG_CONFIG path to pkg-config utility
1646 PKG_CONFIG_PATH
1647 directories to add to pkg-config's search path
1648 PKG_CONFIG_LIBDIR
1649 path overriding pkg-config's built-in search path
1650 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1651 udev_LIBS linker flags for udev, overriding pkg-config
1652 systemd_CFLAGS
1653 C compiler flags for systemd, overriding pkg-config
1654 systemd_LIBS
1655 linker flags for systemd, overriding pkg-config
1656
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1659
1660 Report bugs to the package provider.
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 configure
1724 generated by GNU Autoconf 2.69
1725
1726 Copyright (C) 2012 Free Software Foundation, Inc.
1727 This configure script is free software; the Free Software Foundation
1728 gives unlimited permission to copy, distribute and modify it.
1729 _ACEOF
1730 exit
1731 fi
1732
1733 ## ------------------------ ##
1734 ## Autoconf initialization. ##
1735 ## ------------------------ ##
1736
1737 # ac_fn_c_try_compile LINENO
1738 # --------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_compile ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_compile
1774
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_link
1820
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } > conftest.i && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_cpp
1857
1858 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861 # the include files in INCLUDES and setting the cache variable VAR
1862 # accordingly.
1863 ac_fn_c_check_header_mongrel ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if eval \${$3+:} false; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 else
1876 # Is the header compilable?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878 $as_echo_n "checking $2 usability... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1886 else
1887 ac_header_compiler=no
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891 $as_echo "$ac_header_compiler" >&6; }
1892
1893 # Is the header present?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895 $as_echo_n "checking $2 presence... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1902 else
1903 ac_header_preproc=no
1904 fi
1905 rm -f conftest.err conftest.i conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907 $as_echo "$ac_header_preproc" >&6; }
1908
1909 # So? What about this header?
1910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911 yes:no: )
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ;;
1917 no:yes:* )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 ;;
1929 esac
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 eval "$3=\$ac_header_compiler"
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 fi
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_header_mongrel
1944
1945 # ac_fn_c_try_run LINENO
1946 # ----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1948 # that executables *can* be run.
1949 ac_fn_c_try_run ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1963 { { case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_try") 2>&5
1970 ac_status=$?
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; }; }; then :
1973 ac_retval=0
1974 else
1975 $as_echo "$as_me: program exited with status $ac_status" >&5
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=$ac_status
1980 fi
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_run
1986
1987 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists and can be compiled using the include files in
1990 # INCLUDES, setting the cache variable VAR accordingly.
1991 ac_fn_c_check_header_compile ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 else
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2001 $4
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 eval "$3=yes"
2006 else
2007 eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_header_compile
2017
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof ($2))
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 if (sizeof (($2)))
2051 return 0;
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057
2058 else
2059 eval "$3=yes"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_c_check_type
2071
2072 # ac_fn_c_check_func LINENO FUNC VAR
2073 # ----------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_c_check_func ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 #define $2 innocuous_$2
2088
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
2093
2094 #ifdef __STDC__
2095 # include <limits.h>
2096 #else
2097 # include <assert.h>
2098 #endif
2099
2100 #undef $2
2101
2102 /* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2105 #ifdef __cplusplus
2106 extern "C"
2107 #endif
2108 char $2 ();
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined __stub_$2 || defined __stub___$2
2113 choke me
2114 #endif
2115
2116 int
2117 main ()
2118 {
2119 return $2 ();
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_link "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_func
2138
2139 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2140 # ---------------------------------------------
2141 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2142 # accordingly.
2143 ac_fn_c_check_decl ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 as_decl_name=`echo $2|sed 's/ *(.*//'`
2147 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2149 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152 else
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $4
2156 int
2157 main ()
2158 {
2159 #ifndef $as_decl_name
2160 #ifdef __cplusplus
2161 (void) $as_decl_use;
2162 #else
2163 (void) $as_decl_name;
2164 #endif
2165 #endif
2166
2167 ;
2168 return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 eval "$3=yes"
2173 else
2174 eval "$3=no"
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 fi
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182
2183 } # ac_fn_c_check_decl
2184
2185 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2186 # --------------------------------------------
2187 # Tries to find the compile-time value of EXPR in a program that includes
2188 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2189 # computed
2190 ac_fn_c_compute_int ()
2191 {
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if test "$cross_compiling" = yes; then
2194 # Depending upon the size, compute the lo and hi bounds.
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $4
2198 int
2199 main ()
2200 {
2201 static int test_array [1 - 2 * !(($2) >= 0)];
2202 test_array [0] = 0;
2203 return test_array [0];
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_lo=0 ac_mid=0
2211 while :; do
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $4
2215 int
2216 main ()
2217 {
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 test_array [0] = 0;
2220 return test_array [0];
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid; break
2228 else
2229 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2230 if test $ac_lo -le $ac_mid; then
2231 ac_lo= ac_hi=
2232 break
2233 fi
2234 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 done
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 static int test_array [1 - 2 * !(($2) < 0)];
2246 test_array [0] = 0;
2247 return test_array [0];
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=-1 ac_mid=-1
2255 while :; do
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_lo=$ac_mid; break
2272 else
2273 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2274 if test $ac_mid -le $ac_hi; then
2275 ac_lo= ac_hi=
2276 break
2277 fi
2278 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 done
2282 else
2283 ac_lo= ac_hi=
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 # Binary search between lo and hi bounds.
2289 while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293 $4
2294 int
2295 main ()
2296 {
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2298 test_array [0] = 0;
2299 return test_array [0];
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 ac_hi=$ac_mid
2307 else
2308 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 done
2312 case $ac_lo in #((
2313 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2314 '') ac_retval=1 ;;
2315 esac
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 static long int longval () { return $2; }
2321 static unsigned long int ulongval () { return $2; }
2322 #include <stdio.h>
2323 #include <stdlib.h>
2324 int
2325 main ()
2326 {
2327
2328 FILE *f = fopen ("conftest.val", "w");
2329 if (! f)
2330 return 1;
2331 if (($2) < 0)
2332 {
2333 long int i = longval ();
2334 if (i != ($2))
2335 return 1;
2336 fprintf (f, "%ld", i);
2337 }
2338 else
2339 {
2340 unsigned long int i = ulongval ();
2341 if (i != ($2))
2342 return 1;
2343 fprintf (f, "%lu", i);
2344 }
2345 /* Do not output a trailing newline, as this causes \r\n confusion
2346 on some platforms. */
2347 return ferror (f) || fclose (f) != 0;
2348
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_run "$LINENO"; then :
2354 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2355 else
2356 ac_retval=1
2357 fi
2358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2359 conftest.$ac_objext conftest.beam conftest.$ac_ext
2360 rm -f conftest.val
2361
2362 fi
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2365
2366 } # ac_fn_c_compute_int
2367
2368 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2369 # ----------------------------------------------------
2370 # Tries to find if the field MEMBER exists in type AGGR, after including
2371 # INCLUDES, setting cache variable VAR accordingly.
2372 ac_fn_c_check_member ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2376 $as_echo_n "checking for $2.$3... " >&6; }
2377 if eval \${$4+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $5
2383 int
2384 main ()
2385 {
2386 static $2 ac_aggr;
2387 if (ac_aggr.$3)
2388 return 0;
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 eval "$4=yes"
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $5
2399 int
2400 main ()
2401 {
2402 static $2 ac_aggr;
2403 if (sizeof ac_aggr.$3)
2404 return 0;
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"; then :
2410 eval "$4=yes"
2411 else
2412 eval "$4=no"
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 fi
2418 eval ac_res=\$$4
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422
2423 } # ac_fn_c_check_member
2424 cat >config.log <<_ACEOF
2425 This file contains any messages produced by compilers while
2426 running configure, to aid debugging if configure makes a mistake.
2427
2428 It was created by $as_me, which was
2429 generated by GNU Autoconf 2.69. Invocation command line was
2430
2431 $ $0 $@
2432
2433 _ACEOF
2434 exec 5>>config.log
2435 {
2436 cat <<_ASUNAME
2437 ## --------- ##
2438 ## Platform. ##
2439 ## --------- ##
2440
2441 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2442 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2443 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2444 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2445 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2446
2447 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2448 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2449
2450 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2451 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2452 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2453 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2454 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2455 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2456 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2457
2458 _ASUNAME
2459
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 $as_echo "PATH: $as_dir"
2466 done
2467 IFS=$as_save_IFS
2468
2469 } >&5
2470
2471 cat >&5 <<_ACEOF
2472
2473
2474 ## ----------- ##
2475 ## Core tests. ##
2476 ## ----------- ##
2477
2478 _ACEOF
2479
2480
2481 # Keep a trace of the command line.
2482 # Strip out --no-create and --no-recursion so they do not pile up.
2483 # Strip out --silent because we don't want to record it for future runs.
2484 # Also quote any args containing shell meta-characters.
2485 # Make two passes to allow for proper duplicate-argument suppression.
2486 ac_configure_args=
2487 ac_configure_args0=
2488 ac_configure_args1=
2489 ac_must_keep_next=false
2490 for ac_pass in 1 2
2491 do
2492 for ac_arg
2493 do
2494 case $ac_arg in
2495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497 | -silent | --silent | --silen | --sile | --sil)
2498 continue ;;
2499 *\'*)
2500 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 esac
2502 case $ac_pass in
2503 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2504 2)
2505 as_fn_append ac_configure_args1 " '$ac_arg'"
2506 if test $ac_must_keep_next = true; then
2507 ac_must_keep_next=false # Got value, back to normal.
2508 else
2509 case $ac_arg in
2510 *=* | --config-cache | -C | -disable-* | --disable-* \
2511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513 | -with-* | --with-* | -without-* | --without-* | --x)
2514 case "$ac_configure_args0 " in
2515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516 esac
2517 ;;
2518 -* ) ac_must_keep_next=true ;;
2519 esac
2520 fi
2521 as_fn_append ac_configure_args " '$ac_arg'"
2522 ;;
2523 esac
2524 done
2525 done
2526 { ac_configure_args0=; unset ac_configure_args0;}
2527 { ac_configure_args1=; unset ac_configure_args1;}
2528
2529 # When interrupted or exit'd, cleanup temporary files, and complete
2530 # config.log. We remove comments because anyway the quotes in there
2531 # would cause problems or look ugly.
2532 # WARNING: Use '\'' to represent an apostrophe within the trap.
2533 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534 trap 'exit_status=$?
2535 # Save into config.log some information that might help in debugging.
2536 {
2537 echo
2538
2539 $as_echo "## ---------------- ##
2540 ## Cache variables. ##
2541 ## ---------------- ##"
2542 echo
2543 # The following way of writing the cache mishandles newlines in values,
2544 (
2545 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2546 eval ac_val=\$$ac_var
2547 case $ac_val in #(
2548 *${as_nl}*)
2549 case $ac_var in #(
2550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552 esac
2553 case $ac_var in #(
2554 _ | IFS | as_nl) ;; #(
2555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556 *) { eval $ac_var=; unset $ac_var;} ;;
2557 esac ;;
2558 esac
2559 done
2560 (set) 2>&1 |
2561 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2562 *${as_nl}ac_space=\ *)
2563 sed -n \
2564 "s/'\''/'\''\\\\'\'''\''/g;
2565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566 ;; #(
2567 *)
2568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 ;;
2570 esac |
2571 sort
2572 )
2573 echo
2574
2575 $as_echo "## ----------------- ##
2576 ## Output variables. ##
2577 ## ----------------- ##"
2578 echo
2579 for ac_var in $ac_subst_vars
2580 do
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 esac
2585 $as_echo "$ac_var='\''$ac_val'\''"
2586 done | sort
2587 echo
2588
2589 if test -n "$ac_subst_files"; then
2590 $as_echo "## ------------------- ##
2591 ## File substitutions. ##
2592 ## ------------------- ##"
2593 echo
2594 for ac_var in $ac_subst_files
2595 do
2596 eval ac_val=\$$ac_var
2597 case $ac_val in
2598 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2599 esac
2600 $as_echo "$ac_var='\''$ac_val'\''"
2601 done | sort
2602 echo
2603 fi
2604
2605 if test -s confdefs.h; then
2606 $as_echo "## ----------- ##
2607 ## confdefs.h. ##
2608 ## ----------- ##"
2609 echo
2610 cat confdefs.h
2611 echo
2612 fi
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2616 } >&5
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 exit $exit_status
2620 ' 0
2621 for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2623 done
2624 ac_signal=0
2625
2626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2627 rm -f -r conftest* confdefs.h
2628
2629 $as_echo "/* confdefs.h */" > confdefs.h
2630
2631 # Predefined preprocessor variables.
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_NAME "$PACKAGE_NAME"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639 _ACEOF
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 _ACEOF
2644
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_STRING "$PACKAGE_STRING"
2647 _ACEOF
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651 _ACEOF
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_URL "$PACKAGE_URL"
2655 _ACEOF
2656
2657
2658 # Let the site file select an alternate cache file if it wants to.
2659 # Prefer an explicitly selected file to automatically selected ones.
2660 ac_site_file1=NONE
2661 ac_site_file2=NONE
2662 if test -n "$CONFIG_SITE"; then
2663 # We do not want a PATH search for config.site.
2664 case $CONFIG_SITE in #((
2665 -*) ac_site_file1=./$CONFIG_SITE;;
2666 */*) ac_site_file1=$CONFIG_SITE;;
2667 *) ac_site_file1=./$CONFIG_SITE;;
2668 esac
2669 elif test "x$prefix" != xNONE; then
2670 ac_site_file1=$prefix/share/config.site
2671 ac_site_file2=$prefix/etc/config.site
2672 else
2673 ac_site_file1=$ac_default_prefix/share/config.site
2674 ac_site_file2=$ac_default_prefix/etc/config.site
2675 fi
2676 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2677 do
2678 test "x$ac_site_file" = xNONE && continue
2679 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
2683 . "$ac_site_file" \
2684 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site script $ac_site_file
2687 See \`config.log' for more details" "$LINENO" 5; }
2688 fi
2689 done
2690
2691 if test -r "$cache_file"; then
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 $as_echo "$as_me: loading cache $cache_file" >&6;}
2697 case $cache_file in
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2700 esac
2701 fi
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 $as_echo "$as_me: creating cache $cache_file" >&6;}
2705 >$cache_file
2706 fi
2707
2708 gt_needs="$gt_needs "
2709 as_fn_append ac_header_list " stdlib.h"
2710 as_fn_append ac_header_list " unistd.h"
2711 as_fn_append ac_header_list " sys/param.h"
2712 as_fn_append ac_func_list " symlink"
2713 # Check that the precious variables saved in the cache have kept the same
2714 # value.
2715 ac_cache_corrupted=false
2716 for ac_var in $ac_precious_vars; do
2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718 eval ac_new_set=\$ac_env_${ac_var}_set
2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720 eval ac_new_val=\$ac_env_${ac_var}_value
2721 case $ac_old_set,$ac_new_set in
2722 set,)
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2726 ,set)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2730 ,);;
2731 *)
2732 if test "x$ac_old_val" != "x$ac_new_val"; then
2733 # differences in whitespace do not lead to failure.
2734 ac_old_val_w=`echo x $ac_old_val`
2735 ac_new_val_w=`echo x $ac_new_val`
2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739 ac_cache_corrupted=:
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743 eval $ac_var=\$ac_old_val
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2746 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2748 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2749 fi;;
2750 esac
2751 # Pass precious variables to config.status.
2752 if test "$ac_new_set" = set; then
2753 case $ac_new_val in
2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 *) ac_arg=$ac_var=$ac_new_val ;;
2756 esac
2757 case " $ac_configure_args " in
2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 esac
2761 fi
2762 done
2763 if $ac_cache_corrupted; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2768 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2769 fi
2770 ## -------------------- ##
2771 ## Main body of script. ##
2772 ## -------------------- ##
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780
2781
2782 ac_aux_dir=
2783 for ac_dir in config "$srcdir"/config; do
2784 if test -f "$ac_dir/install-sh"; then
2785 ac_aux_dir=$ac_dir
2786 ac_install_sh="$ac_aux_dir/install-sh -c"
2787 break
2788 elif test -f "$ac_dir/install.sh"; then
2789 ac_aux_dir=$ac_dir
2790 ac_install_sh="$ac_aux_dir/install.sh -c"
2791 break
2792 elif test -f "$ac_dir/shtool"; then
2793 ac_aux_dir=$ac_dir
2794 ac_install_sh="$ac_aux_dir/shtool install -c"
2795 break
2796 fi
2797 done
2798 if test -z "$ac_aux_dir"; then
2799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2800 fi
2801
2802 # These three variables are undocumented and unsupported,
2803 # and are intended to be withdrawn in a future Autoconf release.
2804 # They can cause serious problems if a builder's source tree is in a directory
2805 # whose full name contains unusual characters.
2806 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2807 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2808 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2809
2810
2811 ac_config_headers="$ac_config_headers lib/config.h"
2812
2813
2814 MCONFIG=./MCONFIG
2815
2816 BINARY_TYPE=bin
2817 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2818 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2819 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2820 | tr \" " " | awk '{print $1}'`
2821 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2822 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2823 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2824
2825 if expr $YEAR ">" 1900 > /dev/null ; then
2826 E2FSPROGS_YEAR=$YEAR
2827 elif expr $YEAR ">" 90 >/dev/null ; then
2828 E2FSPROGS_YEAR=19$YEAR
2829 else
2830 E2FSPROGS_YEAR=20$YEAR
2831 fi
2832
2833 case $MONTH in
2834 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2835 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2836 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2837 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2838 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2839 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2840 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2841 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2842 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2843 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2844 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2845 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2846 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2847 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2848 esac
2849
2850 base_ver=`echo $E2FSPROGS_VERSION | \
2851 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2852
2853 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2854
2855 case $E2FSPROGS_VERSION in
2856 *-WIP|pre-*)
2857 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2858 ;;
2859 *)
2860 E2FSPROGS_PKGVER="$base_ver"
2861 ;;
2862 esac
2863
2864 unset DATE MONTH YEAR base_ver pre_vers date_spec
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2866 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2868 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2869
2870
2871
2872
2873
2874
2875 WITH_DIET_LIBC=
2876
2877 # Check whether --with-diet-libc was given.
2878 if test "${with_diet_libc+set}" = set; then :
2879 withval=$with_diet_libc; CC="diet cc -nostdinc"
2880 WITH_DIET_LIBC=yes
2881 if test -z "$LIBS"
2882 then
2883 LIBS="-lcompat"
2884 else
2885 LIBS="$LIBS -lcompat"
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2888 $as_echo "CC=$CC" >&6; }
2889 fi
2890 # Make sure we can run config.sub.
2891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2892 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2895 $as_echo_n "checking build system type... " >&6; }
2896 if ${ac_cv_build+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 ac_build_alias=$build_alias
2900 test "x$ac_build_alias" = x &&
2901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2902 test "x$ac_build_alias" = x &&
2903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2906
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2909 $as_echo "$ac_cv_build" >&6; }
2910 case $ac_cv_build in
2911 *-*-*) ;;
2912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2913 esac
2914 build=$ac_cv_build
2915 ac_save_IFS=$IFS; IFS='-'
2916 set x $ac_cv_build
2917 shift
2918 build_cpu=$1
2919 build_vendor=$2
2920 shift; shift
2921 # Remember, the first character of IFS is used to create $*,
2922 # except with old shells:
2923 build_os=$*
2924 IFS=$ac_save_IFS
2925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2926
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2929 $as_echo_n "checking host system type... " >&6; }
2930 if ${ac_cv_host+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test "x$host_alias" = x; then
2934 ac_cv_host=$ac_cv_build
2935 else
2936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2938 fi
2939
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2942 $as_echo "$ac_cv_host" >&6; }
2943 case $ac_cv_host in
2944 *-*-*) ;;
2945 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2946 esac
2947 host=$ac_cv_host
2948 ac_save_IFS=$IFS; IFS='-'
2949 set x $ac_cv_host
2950 shift
2951 host_cpu=$1
2952 host_vendor=$2
2953 shift; shift
2954 # Remember, the first character of IFS is used to create $*,
2955 # except with old shells:
2956 host_os=$*
2957 IFS=$ac_save_IFS
2958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2959
2960
2961 DLOPEN_LIB=''
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$ac_cv_prog_CC"; then
3007 ac_ct_CC=$CC
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044 if test "x$ac_ct_CC" = x; then
3045 CC=""
3046 else
3047 case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053 CC=$ac_ct_CC
3054 fi
3055 else
3056 CC="$ac_cv_prog_CC"
3057 fi
3058
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="${ac_tool_prefix}cc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 fi
3100 if test -z "$CC"; then
3101 # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 ac_prog_rejected=no
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120 ac_prog_rejected=yes
3121 continue
3122 fi
3123 ac_cv_prog_CC="cc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3134 shift
3135 if test $# != 0; then
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3139 shift
3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 fi
3142 fi
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl.exe
3159 do
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 test -n "$CC" && break
3198 done
3199 fi
3200 if test -z "$CC"; then
3201 ac_ct_CC=$CC
3202 for ac_prog in cl.exe
3203 do
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_CC="$ac_prog"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241 test -n "$ac_ct_CC" && break
3242 done
3243
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253 CC=$ac_ct_CC
3254 fi
3255 fi
3256
3257 fi
3258
3259
3260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "no acceptable C compiler found in \$PATH
3263 See \`config.log' for more details" "$LINENO" 5; }
3264
3265 # Provide some information about the compiler.
3266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267 set X $ac_compile
3268 ac_compiler=$2
3269 for ac_option in --version -v -V -qversion; do
3270 { { ac_try="$ac_compiler $ac_option >&5"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278 ac_status=$?
3279 if test -s conftest.err; then
3280 sed '10a\
3281 ... rest of stderr output deleted ...
3282 10q' conftest.err >conftest.er1
3283 cat conftest.er1 >&5
3284 fi
3285 rm -f conftest.er1 conftest.err
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3288 done
3289
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3292
3293 int
3294 main ()
3295 {
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3305 # of exeext.
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307 $as_echo_n "checking whether the C compiler works... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313 ac_rmfiles=
3314 for ac_file in $ac_files
3315 do
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 esac
3320 done
3321 rm -f $ac_rmfiles
3322
3323 if { { ac_try="$ac_link_default"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link_default") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3338 # Autoconf.
3339 for ac_file in $ac_files ''
3340 do
3341 test -f "$ac_file" || continue
3342 case $ac_file in
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 ;;
3345 [ab].out )
3346 # We found the default executable, but exeext='' is most
3347 # certainly right.
3348 break;;
3349 *.* )
3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351 then :; else
3352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 fi
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3358 # actually working.
3359 break;;
3360 * )
3361 break;;
3362 esac
3363 done
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366 else
3367 ac_file=''
3368 fi
3369 if test -z "$ac_file"; then :
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error 77 "C compiler cannot create executables
3378 See \`config.log' for more details" "$LINENO" 5; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 ac_exeext=$ac_cv_exeext
3388
3389 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3407 # `rm'.
3408 for ac_file in conftest.exe conftest conftest.*; do
3409 test -f "$ac_file" || continue
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 break;;
3414 * ) break;;
3415 esac
3416 done
3417 else
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details" "$LINENO" 5; }
3422 fi
3423 rm -f conftest conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3426
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3429 ac_exeext=$EXEEXT
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432 #include <stdio.h>
3433 int
3434 main ()
3435 {
3436 FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 ac_clean_files="$ac_clean_files conftest.out"
3444 # Check that the compiler produces executables we can run. If not, either
3445 # the compiler is broken, or we cross compile.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447 $as_echo_n "checking whether we are cross compiling... " >&6; }
3448 if test "$cross_compiling" != yes; then
3449 { { ac_try="$ac_link"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 if { ac_try='./conftest$ac_cv_exeext'
3461 { { case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_try") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; }; then
3471 cross_compiling=no
3472 else
3473 if test "$cross_compiling" = maybe; then
3474 cross_compiling=yes
3475 else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot run C compiled programs.
3479 If you meant to cross compile, use \`--host'.
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 fi
3482 fi
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485 $as_echo "$cross_compiling" >&6; }
3486
3487 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490 $as_echo_n "checking for suffix of object files... " >&6; }
3491 if ${ac_cv_objext+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.o conftest.obj
3506 if { { ac_try="$ac_compile"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_compile") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 for ac_file in conftest.o conftest.obj conftest.*; do
3518 test -f "$ac_file" || continue;
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522 break;;
3523 esac
3524 done
3525 else
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3532 See \`config.log' for more details" "$LINENO" 5; }
3533 fi
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3539 ac_objext=$OBJEXT
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if ${ac_cv_c_compiler_gnu+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551 #ifndef __GNUC__
3552 choke me
3553 #endif
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560 ac_compiler_gnu=yes
3561 else
3562 ac_compiler_gnu=no
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570 if test $ac_compiler_gnu = yes; then
3571 GCC=yes
3572 else
3573 GCC=
3574 fi
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3579 if ${ac_cv_prog_cc_g+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 ac_save_c_werror_flag=$ac_c_werror_flag
3583 ac_c_werror_flag=yes
3584 ac_cv_prog_cc_g=no
3585 CFLAGS="-g"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_g=yes
3599 else
3600 CFLAGS=""
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613
3614 else
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616 CFLAGS="-g"
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_cv_prog_cc_g=yes
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639 $as_echo "$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641 CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643 if test "$GCC" = yes; then
3644 CFLAGS="-g -O2"
3645 else
3646 CFLAGS="-g"
3647 fi
3648 else
3649 if test "$GCC" = yes; then
3650 CFLAGS="-O2"
3651 else
3652 CFLAGS=
3653 fi
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657 if ${ac_cv_prog_cc_c89+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_cv_prog_cc_c89=no
3661 ac_save_CC=$CC
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664 #include <stdarg.h>
3665 #include <stdio.h>
3666 struct stat;
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3671 char **p;
3672 int i;
3673 {
3674 return p[i];
3675 }
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3677 {
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3684 }
3685
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697 #define FOO(x) 'x'
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 int argc;
3705 char **argv;
3706 int
3707 main ()
3708 {
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 do
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3726
3727 fi
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c89" in
3730 x)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3736 *)
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740 esac
3741 if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
3743 fi
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3754 if ${ac_cv_lib_dl_dlopen+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_check_lib_save_LIBS=$LIBS
3758 LIBS="-ldl $LIBS"
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 /* Override any GCC internal prototype to avoid an error.
3763 Use char because int might match the return type of a GCC
3764 builtin and then its argument prototype would still apply. */
3765 #ifdef __cplusplus
3766 extern "C"
3767 #endif
3768 char dlopen ();
3769 int
3770 main ()
3771 {
3772 return dlopen ();
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_link "$LINENO"; then :
3778 ac_cv_lib_dl_dlopen=yes
3779 else
3780 ac_cv_lib_dl_dlopen=no
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext \
3783 conftest$ac_exeext conftest.$ac_ext
3784 LIBS=$ac_check_lib_save_LIBS
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3788 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3789 DLOPEN_LIB=-ldl
3790 fi
3791
3792
3793
3794 # Check whether --with-cc was given.
3795 if test "${with_cc+set}" = set; then :
3796 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3797 fi
3798
3799
3800 # Check whether --with-ccopts was given.
3801 if test "${with_ccopts+set}" = set; then :
3802 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3803 fi
3804
3805
3806 # Check whether --with-ldopts was given.
3807 if test "${with_ldopts+set}" = set; then :
3808 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3809 fi
3810
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 CC=$ac_cv_prog_CC
3845 if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 $as_echo "$CC" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 fi
3852
3853
3854 fi
3855 if test -z "$ac_cv_prog_CC"; then
3856 ac_ct_CC=$CC
3857 # Extract the first word of "gcc", so it can be a program name with args.
3858 set dummy gcc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$ac_ct_CC"; then
3865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_ac_ct_CC="gcc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878 done
3879 done
3880 IFS=$as_save_IFS
3881
3882 fi
3883 fi
3884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885 if test -n "$ac_ct_CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887 $as_echo "$ac_ct_CC" >&6; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3891 fi
3892
3893 if test "x$ac_ct_CC" = x; then
3894 CC=""
3895 else
3896 case $cross_compiling:$ac_tool_warned in
3897 yes:)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900 ac_tool_warned=yes ;;
3901 esac
3902 CC=$ac_ct_CC
3903 fi
3904 else
3905 CC="$ac_cv_prog_CC"
3906 fi
3907
3908 if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}cc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_CC="${ac_tool_prefix}cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 CC=$ac_cv_prog_CC
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3941 else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947 fi
3948 fi
3949 if test -z "$CC"; then
3950 # Extract the first word of "cc", so it can be a program name with args.
3951 set dummy cc; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if ${ac_cv_prog_CC+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 else
3960 ac_prog_rejected=no
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969 ac_prog_rejected=yes
3970 continue
3971 fi
3972 ac_cv_prog_CC="cc"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 if test $ac_prog_rejected = yes; then
3981 # We found a bogon in the path, so make sure we never use it.
3982 set dummy $ac_cv_prog_CC
3983 shift
3984 if test $# != 0; then
3985 # We chose a different compiler from the bogus one.
3986 # However, it has the same basename, so the bogon will be chosen
3987 # first if we set CC to just the basename; use the full file name.
3988 shift
3989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990 fi
3991 fi
3992 fi
3993 fi
3994 CC=$ac_cv_prog_CC
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002
4003
4004 fi
4005 if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 for ac_prog in cl.exe
4008 do
4009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 $as_echo_n "checking for $ac_word... " >&6; }
4013 if ${ac_cv_prog_CC+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 if test -n "$CC"; then
4017 ac_cv_prog_CC="$CC" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi
4035 fi
4036 CC=$ac_cv_prog_CC
4037 if test -n "$CC"; then
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039 $as_echo "$CC" >&6; }
4040 else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 $as_echo "no" >&6; }
4043 fi
4044
4045
4046 test -n "$CC" && break
4047 done
4048 fi
4049 if test -z "$CC"; then
4050 ac_ct_CC=$CC
4051 for ac_prog in cl.exe
4052 do
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_CC="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081 if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083 $as_echo "$ac_ct_CC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 test -n "$ac_ct_CC" && break
4091 done
4092
4093 if test "x$ac_ct_CC" = x; then
4094 CC=""
4095 else
4096 case $cross_compiling:$ac_tool_warned in
4097 yes:)
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned=yes ;;
4101 esac
4102 CC=$ac_ct_CC
4103 fi
4104 fi
4105
4106 fi
4107
4108
4109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "no acceptable C compiler found in \$PATH
4112 See \`config.log' for more details" "$LINENO" 5; }
4113
4114 # Provide some information about the compiler.
4115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4116 set X $ac_compile
4117 ac_compiler=$2
4118 for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
4120 case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127 ac_status=$?
4128 if test -s conftest.err; then
4129 sed '10a\
4130 ... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
4133 fi
4134 rm -f conftest.er1 conftest.err
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137 done
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4141 if ${ac_cv_c_compiler_gnu+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146
4147 int
4148 main ()
4149 {
4150 #ifndef __GNUC__
4151 choke me
4152 #endif
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_compiler_gnu=yes
4160 else
4161 ac_compiler_gnu=no
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4169 if test $ac_compiler_gnu = yes; then
4170 GCC=yes
4171 else
4172 GCC=
4173 fi
4174 ac_test_CFLAGS=${CFLAGS+set}
4175 ac_save_CFLAGS=$CFLAGS
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4178 if ${ac_cv_prog_cc_g+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 ac_save_c_werror_flag=$ac_c_werror_flag
4182 ac_c_werror_flag=yes
4183 ac_cv_prog_cc_g=no
4184 CFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187
4188 int
4189 main ()
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_g=yes
4198 else
4199 CFLAGS=""
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main ()
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212
4213 else
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4215 CFLAGS="-g"
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218
4219 int
4220 main ()
4221 {
4222
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_g=yes
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_c_werror_flag=$ac_save_c_werror_flag
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238 $as_echo "$ac_cv_prog_cc_g" >&6; }
4239 if test "$ac_test_CFLAGS" = set; then
4240 CFLAGS=$ac_save_CFLAGS
4241 elif test $ac_cv_prog_cc_g = yes; then
4242 if test "$GCC" = yes; then
4243 CFLAGS="-g -O2"
4244 else
4245 CFLAGS="-g"
4246 fi
4247 else
4248 if test "$GCC" = yes; then
4249 CFLAGS="-O2"
4250 else
4251 CFLAGS=
4252 fi
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4256 if ${ac_cv_prog_cc_c89+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 ac_cv_prog_cc_c89=no
4260 ac_save_CC=$CC
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #include <stdarg.h>
4264 #include <stdio.h>
4265 struct stat;
4266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4267 struct buf { int x; };
4268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4269 static char *e (p, i)
4270 char **p;
4271 int i;
4272 {
4273 return p[i];
4274 }
4275 static char *f (char * (*g) (char **, int), char **p, ...)
4276 {
4277 char *s;
4278 va_list v;
4279 va_start (v,p);
4280 s = g (p, va_arg (v,int));
4281 va_end (v);
4282 return s;
4283 }
4284
4285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4286 function prototypes and stuff, but not '\xHH' hex character constants.
4287 These don't provoke an error unfortunately, instead are silently treated
4288 as 'x'. The following induces an error, until -std is added to get
4289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4290 array size at least. It's necessary to write '\x00'==0 to get something
4291 that's true only with -std. */
4292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4293
4294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4295 inside strings and character constants. */
4296 #define FOO(x) 'x'
4297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4298
4299 int test (int i, double x);
4300 struct s1 {int (*f) (int a);};
4301 struct s2 {int (*f) (double a);};
4302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4303 int argc;
4304 char **argv;
4305 int
4306 main ()
4307 {
4308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4315 do
4316 CC="$ac_save_CC $ac_arg"
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_prog_cc_c89=$ac_arg
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext
4321 test "x$ac_cv_prog_cc_c89" != "xno" && break
4322 done
4323 rm -f conftest.$ac_ext
4324 CC=$ac_save_CC
4325
4326 fi
4327 # AC_CACHE_VAL
4328 case "x$ac_cv_prog_cc_c89" in
4329 x)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331 $as_echo "none needed" >&6; } ;;
4332 xno)
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4334 $as_echo "unsupported" >&6; } ;;
4335 *)
4336 CC="$CC $ac_cv_prog_cc_c89"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4339 esac
4340 if test "x$ac_cv_prog_cc_c89" != xno; then :
4341
4342 fi
4343
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
4350 if test "$GCC" = yes; then
4351 RDYNAMIC="-rdynamic"
4352
4353 fi
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4360 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4361 # On Suns, sometimes $CPP names a directory.
4362 if test -n "$CPP" && test -d "$CPP"; then
4363 CPP=
4364 fi
4365 if test -z "$CPP"; then
4366 if ${ac_cv_prog_CPP+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 # Double quotes because CPP needs to be expanded
4370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4371 do
4372 ac_preproc_ok=false
4373 for ac_c_preproc_warn_flag in '' yes
4374 do
4375 # Use a header file that comes with gcc, so configuring glibc
4376 # with a fresh cross-compiler works.
4377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4378 # <limits.h> exists even on freestanding compilers.
4379 # On the NeXT, cc -E runs the code through the compiler's parser,
4380 # not just through cpp. "Syntax error" is here to catch this case.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #ifdef __STDC__
4384 # include <limits.h>
4385 #else
4386 # include <assert.h>
4387 #endif
4388 Syntax error
4389 _ACEOF
4390 if ac_fn_c_try_cpp "$LINENO"; then :
4391
4392 else
4393 # Broken: fails on valid input.
4394 continue
4395 fi
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4397
4398 # OK, works on sane cases. Now check whether nonexistent headers
4399 # can be detected and how.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <ac_nonexistent.h>
4403 _ACEOF
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4405 # Broken: success on invalid input.
4406 continue
4407 else
4408 # Passes both tests.
4409 ac_preproc_ok=:
4410 break
4411 fi
4412 rm -f conftest.err conftest.i conftest.$ac_ext
4413
4414 done
4415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4416 rm -f conftest.i conftest.err conftest.$ac_ext
4417 if $ac_preproc_ok; then :
4418 break
4419 fi
4420
4421 done
4422 ac_cv_prog_CPP=$CPP
4423
4424 fi
4425 CPP=$ac_cv_prog_CPP
4426 else
4427 ac_cv_prog_CPP=$CPP
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4430 $as_echo "$CPP" >&6; }
4431 ac_preproc_ok=false
4432 for ac_c_preproc_warn_flag in '' yes
4433 do
4434 # Use a header file that comes with gcc, so configuring glibc
4435 # with a fresh cross-compiler works.
4436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 # <limits.h> exists even on freestanding compilers.
4438 # On the NeXT, cc -E runs the code through the compiler's parser,
4439 # not just through cpp. "Syntax error" is here to catch this case.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447 Syntax error
4448 _ACEOF
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4450
4451 else
4452 # Broken: fails on valid input.
4453 continue
4454 fi
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <ac_nonexistent.h>
4462 _ACEOF
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: success on invalid input.
4465 continue
4466 else
4467 # Passes both tests.
4468 ac_preproc_ok=:
4469 break
4470 fi
4471 rm -f conftest.err conftest.i conftest.$ac_ext
4472
4473 done
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.i conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then :
4477
4478 else
4479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4482 See \`config.log' for more details" "$LINENO" 5; }
4483 fi
4484
4485 ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4492 $as_echo_n "checking for additional special compiler flags... " >&6; }
4493 if test "$GCC" = yes
4494 then
4495 case "$host_cpu" in
4496 alpha) addcflags="-mieee" ;;
4497 esac
4498 fi
4499 if test "x$addcflags" != x
4500 then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4502 $as_echo "$addcflags" >&6; }
4503 CFLAGS="$addcflags $CFLAGS"
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4506 $as_echo "(none)" >&6; }
4507 fi
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if ${ac_cv_path_GREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 as_fn_executable_p "$ac_path_GREP" || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4531 *)
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4535 do
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4547 fi
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4553
4554 $ac_path_GREP_found && break 3
4555 done
4556 done
4557 done
4558 IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 fi
4562 else
4563 ac_cv_path_GREP=$GREP
4564 fi
4565
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP="$ac_cv_path_GREP"
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if ${ac_cv_path_EGREP+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578 then ac_cv_path_EGREP="$GREP -E"
4579 else
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in egrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 as_fn_executable_p "$ac_path_EGREP" || continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4597 *)
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4601 do
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP="$ac_path_EGREP"
4612 ac_path_EGREP_max=$ac_count
4613 fi
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4619
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 fi
4628 else
4629 ac_cv_path_EGREP=$EGREP
4630 fi
4631
4632 fi
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP="$ac_cv_path_EGREP"
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4640 $as_echo_n "checking for ANSI C header files... " >&6; }
4641 if ${ac_cv_header_stdc+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 #include <stdlib.h>
4647 #include <stdarg.h>
4648 #include <string.h>
4649 #include <float.h>
4650
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_header_stdc=yes
4661 else
4662 ac_cv_header_stdc=no
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665
4666 if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670 #include <string.h>
4671
4672 _ACEOF
4673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "memchr" >/dev/null 2>&1; then :
4675
4676 else
4677 ac_cv_header_stdc=no
4678 fi
4679 rm -f conftest*
4680
4681 fi
4682
4683 if test $ac_cv_header_stdc = yes; then
4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <stdlib.h>
4688
4689 _ACEOF
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "free" >/dev/null 2>&1; then :
4692
4693 else
4694 ac_cv_header_stdc=no
4695 fi
4696 rm -f conftest*
4697
4698 fi
4699
4700 if test $ac_cv_header_stdc = yes; then
4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4702 if test "$cross_compiling" = yes; then :
4703 :
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <ctype.h>
4708 #include <stdlib.h>
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 #else
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718 #endif
4719
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 int
4722 main ()
4723 {
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 return 2;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_run "$LINENO"; then :
4733
4734 else
4735 ac_cv_header_stdc=no
4736 fi
4737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4738 conftest.$ac_objext conftest.beam conftest.$ac_ext
4739 fi
4740
4741 fi
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4744 $as_echo "$ac_cv_header_stdc" >&6; }
4745 if test $ac_cv_header_stdc = yes; then
4746
4747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4748
4749 fi
4750
4751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4754 do :
4755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4757 "
4758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4759 cat >>confdefs.h <<_ACEOF
4760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761 _ACEOF
4762
4763 fi
4764
4765 done
4766
4767
4768
4769 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4770 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4771 MINIX=yes
4772 else
4773 MINIX=
4774 fi
4775
4776
4777 if test "$MINIX" = yes; then
4778
4779 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4780
4781
4782 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4783
4784
4785 $as_echo "#define _MINIX 1" >>confdefs.h
4786
4787 fi
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4791 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4792 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797
4798 # define __EXTENSIONS__ 1
4799 $ac_includes_default
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_safe_to_define___extensions__=yes
4810 else
4811 ac_cv_safe_to_define___extensions__=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4816 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4817 test $ac_cv_safe_to_define___extensions__ = yes &&
4818 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4819
4820 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4821
4822 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4823
4824 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4825
4826 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4827
4828
4829 LIB_EXT=.a
4830 STATIC_LIB_EXT=.a
4831 PROFILED_LIB_EXT=.a
4832
4833 # Check whether --with-root-prefix was given.
4834 if test "${with_root_prefix+set}" = set; then :
4835 withval=$with_root_prefix; root_prefix=$withval
4836 else
4837 root_prefix=NONE
4838 fi
4839 # Check whether --enable-maintainer-mode was given.
4840 if test "${enable_maintainer_mode+set}" = set; then :
4841 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4842 then
4843 MAINTAINER_CMT=#
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4845 $as_echo "Disabling maintainer mode" >&6; }
4846 else
4847 MAINTAINER_CMT=
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4849 $as_echo "Enabling maintainer mode" >&6; }
4850 fi
4851
4852 else
4853 MAINTAINER_CMT=#
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4855 $as_echo "Disabling maintainer mode by default" >&6; }
4856
4857 fi
4858
4859
4860 # Check whether --enable-symlink-install was given.
4861 if test "${enable_symlink_install+set}" = set; then :
4862 enableval=$enable_symlink_install; if test "$enableval" = "no"
4863 then
4864 LINK_INSTALL_FLAGS=-f
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4866 $as_echo "Disabling symlinks for install" >&6; }
4867 else
4868 LINK_INSTALL_FLAGS=-sf
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4870 $as_echo "Enabling symlinks for install" >&6; }
4871 fi
4872
4873 else
4874 LINK_INSTALL_FLAGS=-f
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4876 $as_echo "Disabling symlinks for install by default" >&6; }
4877
4878 fi
4879
4880
4881 relative_symlink_defined=
4882 # Check whether --enable-relative-symlinks was given.
4883 if test "${enable_relative_symlinks+set}" = set; then :
4884 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4885 then
4886 SYMLINK_RELATIVE=
4887 relative_symlink_defined=yes
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4889 $as_echo "Disabling relative symlinks for install" >&6; }
4890 else
4891 SYMLINK_RELATIVE=--relative
4892 relative_symlink_defined=yes
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4894 $as_echo "Enabling relative symlinks for install" >&6; }
4895 fi
4896 fi
4897
4898 # Check whether --enable-symlink-relative-symlinks was given.
4899 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4900 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4901 then
4902 SYMLINK_RELATIVE=yes
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4904 $as_echo "Disabling relative symlinks for install" >&6; }
4905 else
4906 SYMLINK_RELATIVE=--relative
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4908 $as_echo "Enabling relative symlinks for install" >&6; }
4909 fi
4910
4911 else
4912 if test -z "$relative_symlink_defined"
4913 then
4914 SYMLINK_RELATIVE=
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4916 $as_echo "Disabling relative symlinks for install by default" >&6; }
4917 fi
4918
4919 fi
4920
4921
4922 # Check whether --enable-symlink-build was given.
4923 if test "${enable_symlink_build+set}" = set; then :
4924 enableval=$enable_symlink_build; if test "$enableval" = "no"
4925 then
4926 LINK_BUILD_FLAGS=
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4928 $as_echo "Disabling symlinks for build" >&6; }
4929 else
4930 LINK_BUILD_FLAGS=-s
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4932 $as_echo "Enabling symlinks for build" >&6; }
4933 fi
4934
4935 else
4936 LINK_BUILD_FLAGS=
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4938 $as_echo "Disabling symlinks for build by default" >&6; }
4939
4940 fi
4941
4942
4943 # Check whether --enable-verbose-makecmds was given.
4944 if test "${enable_verbose_makecmds+set}" = set; then :
4945 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4946 then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4948 $as_echo "Disabling verbose make commands" >&6; }
4949 E=@echo
4950 ES=echo
4951 Q=@
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4954 $as_echo "Enabling verbose make commands" >&6; }
4955 E=@\\#
4956 ES=\\#
4957 Q=
4958 fi
4959
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4962 $as_echo "Disabling verbose make commands" >&6; }
4963 E=@echo
4964 ES=echo
4965 Q=@
4966
4967 fi
4968
4969
4970
4971
4972 E2_PKG_CONFIG_STATIC=--static
4973 LDFLAG_DYNAMIC=
4974 PRIVATE_LIBS_CMT=
4975 # Check whether --enable-elf-shlibs was given.
4976 if test "${enable_elf_shlibs+set}" = set; then :
4977 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4978 then
4979 ELF_CMT=#
4980 MAKEFILE_ELF=/dev/null
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4982 $as_echo "Disabling ELF shared libraries" >&6; }
4983 else
4984 E2_PKG_CONFIG_STATIC=
4985 ELF_CMT=
4986 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4987 case "$host_os" in
4988 solaris2.*)
4989 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4990 ;;
4991 esac
4992 BINARY_TYPE=elfbin
4993 LIB_EXT=.so
4994 PRIVATE_LIBS_CMT=#
4995 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4997 $as_echo "Enabling ELF shared libraries" >&6; }
4998 fi
4999
5000 else
5001 MAKEFILE_ELF=/dev/null
5002 ELF_CMT=#
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5004 $as_echo "Disabling ELF shared libraries by default" >&6; }
5005
5006 fi
5007
5008
5009
5010 # Check whether --enable-bsd-shlibs was given.
5011 if test "${enable_bsd_shlibs+set}" = set; then :
5012 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5013 then
5014 BSDLIB_CMT=#
5015 MAKEFILE_BSDLIB=/dev/null
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5017 $as_echo "Disabling BSD shared libraries" >&6; }
5018 else
5019 E2_PKG_CONFIG_STATIC=
5020 BSDLIB_CMT=
5021 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5022 LIB_EXT=.so
5023 case "$host_os" in
5024 darwin*)
5025 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5026 LIB_EXT=.dylib
5027 ;;
5028 esac
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5030 $as_echo "Enabling BSD shared libraries" >&6; }
5031 fi
5032
5033 else
5034 MAKEFILE_BSDLIB=/dev/null
5035 BSDLIB_CMT=#
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5037 $as_echo "Disabling BSD shared libraries by default" >&6; }
5038
5039 fi
5040
5041
5042
5043 # Check whether --enable-profile was given.
5044 if test "${enable_profile+set}" = set; then :
5045 enableval=$enable_profile; if test "$enableval" = "no"
5046 then
5047 PROFILE_CMT=#
5048 MAKEFILE_PROFILE=/dev/null
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5050 $as_echo "Disabling profiling libraries" >&6; }
5051 else
5052 PROFILE_CMT=
5053 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5054 PROFILED_LIB_EXT=_p.a
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5056 $as_echo "Building profiling libraries" >&6; }
5057 fi
5058
5059 else
5060 PROFILE_CMT=#
5061 MAKEFILE_PROFILE=/dev/null
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5063 $as_echo "Disabling profiling libraries by default" >&6; }
5064
5065 fi
5066
5067
5068
5069 # Check whether --enable-gcov was given.
5070 if test "${enable_gcov+set}" = set; then :
5071 enableval=$enable_gcov; if test "$enableval" = "yes"
5072 then
5073 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5074 LDFLAGS="-fprofile-arcs -ftest-coverage"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5076 $as_echo "Enabling gcov support" >&6; }
5077 fi
5078
5079 fi
5080
5081 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5082 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5083 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5084 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5085 # Check whether --enable-hardening was given.
5086 if test "${enable_hardening+set}" = set; then :
5087 enableval=$enable_hardening; if test "$enableval" = "yes"
5088 then
5089 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5090 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5091 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5092 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5093 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5094 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5095 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5096 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5098 $as_echo "Enabling hardening support" >&6; }
5099 fi
5100
5101 fi
5102
5103
5104
5105
5106
5107
5108 # Check whether --enable-jbd-debug was given.
5109 if test "${enable_jbd_debug+set}" = set; then :
5110 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5111 then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5113 $as_echo "Disabling journal debugging" >&6; }
5114 else
5115
5116 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5119 $as_echo "Enabling journal debugging" >&6; }
5120 fi
5121
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5124 $as_echo "Disabling journal debugging by default" >&6; }
5125
5126 fi
5127
5128 # Check whether --enable-blkid-debug was given.
5129 if test "${enable_blkid_debug+set}" = set; then :
5130 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5131 then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5133 $as_echo "Disabling blkid debugging" >&6; }
5134 else
5135
5136 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5139 $as_echo "Enabling blkid debugging" >&6; }
5140 fi
5141
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5144 $as_echo "Disabling blkid debugging by default" >&6; }
5145
5146 fi
5147
5148 # Check whether --enable-testio-debug was given.
5149 if test "${enable_testio_debug+set}" = set; then :
5150 enableval=$enable_testio_debug;
5151 if test "$enableval" = "no"
5152 then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5154 $as_echo "Disabling testio debugging" >&6; }
5155 TEST_IO_CMT="#"
5156 else
5157 TEST_IO_CMT=
5158 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5161 $as_echo "Enabling testio debugging" >&6; }
5162 fi
5163
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5166 $as_echo "Enabling testio debugging by default" >&6; }
5167 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5168
5169 TEST_IO_CMT=
5170
5171 fi
5172
5173
5174 # Check whether --enable-developer-features was given.
5175 if test "${enable_developer_features+set}" = set; then :
5176 enableval=$enable_developer_features;
5177 if test "$enableval" = "yes"
5178 then
5179 DEV_FEATURES_CMT=
5180 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5183 $as_echo "Enabling ext4 developer features" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5186 $as_echo "Disabling ext4 developer features" >&6; }
5187 DEV_FEATURES_CMT="#"
5188 fi
5189
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5192 $as_echo "Disabling ext4 developer features by default" >&6; }
5193 DEV_FEATURES_CMT=
5194
5195 fi
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 case $PKG_CONFIG in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 ;;
5235 esac
5236 fi
5237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5238 if test -n "$PKG_CONFIG"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5240 $as_echo "$PKG_CONFIG" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 fi
5248 if test -z "$ac_cv_path_PKG_CONFIG"; then
5249 ac_pt_PKG_CONFIG=$PKG_CONFIG
5250 # Extract the first word of "pkg-config", so it can be a program name with args.
5251 set dummy pkg-config; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 case $ac_pt_PKG_CONFIG in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5260 ;;
5261 *)
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273 done
5274 done
5275 IFS=$as_save_IFS
5276
5277 ;;
5278 esac
5279 fi
5280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5281 if test -n "$ac_pt_PKG_CONFIG"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5283 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289 if test "x$ac_pt_PKG_CONFIG" = x; then
5290 PKG_CONFIG=""
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298 PKG_CONFIG=$ac_pt_PKG_CONFIG
5299 fi
5300 else
5301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5302 fi
5303
5304 fi
5305 if test -n "$PKG_CONFIG"; then
5306 _pkg_min_version=0.9.0
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5308 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 PKG_CONFIG=""
5316 fi
5317 fi
5318 LIBUUID=
5319 DEPLIBUUID=
5320 STATIC_LIBUUID=
5321 DEPSTATIC_LIBUUID=
5322 PROFILED_LIBUUID=
5323 DEPPROFILED_LIBUUID=
5324 UUID_CMT=
5325 # Check whether --enable-libuuid was given.
5326 if test "${enable_libuuid+set}" = set; then :
5327 enableval=$enable_libuuid; if test "$enableval" = "no"
5328 then
5329 if test -z "$PKG_CONFIG"; then
5330 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5331 fi
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5334 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5335 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 ac_check_lib_save_LIBS=$LIBS
5339 LIBS="-luuid $LIBS"
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342
5343 /* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5346 #ifdef __cplusplus
5347 extern "C"
5348 #endif
5349 char uuid_generate ();
5350 int
5351 main ()
5352 {
5353 return uuid_generate ();
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_lib_uuid_uuid_generate=yes
5360 else
5361 ac_cv_lib_uuid_uuid_generate=no
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 LIBS=$ac_check_lib_save_LIBS
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5368 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5369 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5370 LIBUUID=`$PKG_CONFIG --libs uuid`;
5371 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5372 else
5373 as_fn_error $? "external uuid library not found" "$LINENO" 5
5374 fi
5375
5376 PROFILED_LIBUUID=$LIBUUID
5377 UUID_CMT=#
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5379 $as_echo "Disabling private uuid library" >&6; }
5380 else
5381 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5382 DEPLIBUUID=$LIBUUID
5383 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5384 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5385 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5386 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5388 $as_echo "Enabling private uuid library" >&6; }
5389 fi
5390
5391 else
5392 if test -n "$PKG_CONFIG"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5394 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5395 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 ac_check_lib_save_LIBS=$LIBS
5399 LIBS="-luuid $LIBS"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402
5403 /* Override any GCC internal prototype to avoid an error.
5404 Use char because int might match the return type of a GCC
5405 builtin and then its argument prototype would still apply. */
5406 #ifdef __cplusplus
5407 extern "C"
5408 #endif
5409 char uuid_generate ();
5410 int
5411 main ()
5412 {
5413 return uuid_generate ();
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_link "$LINENO"; then :
5419 ac_cv_lib_uuid_uuid_generate=yes
5420 else
5421 ac_cv_lib_uuid_uuid_generate=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5428 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5429 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5430 LIBUUID=`$PKG_CONFIG --libs uuid`;
5431 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5432 fi
5433
5434 fi
5435 if test -n "$LIBUUID"; then
5436 PROFILED_LIBUUID=$LIBUUID
5437 UUID_CMT=#
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5439 $as_echo "Using system uuid by default" >&6; }
5440 else
5441 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5442 DEPLIBUUID=$LIBUUID
5443 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5444 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5445 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5446 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5448 $as_echo "Enabling private uuid library by default" >&6; }
5449 fi
5450
5451 fi
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 case $PKG_CONFIG in
5477 [\\/]* | ?:[\\/]*)
5478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5479 ;;
5480 *)
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 ;;
5497 esac
5498 fi
5499 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5500 if test -n "$PKG_CONFIG"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5502 $as_echo "$PKG_CONFIG" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508
5509 fi
5510 if test -z "$ac_cv_path_PKG_CONFIG"; then
5511 ac_pt_PKG_CONFIG=$PKG_CONFIG
5512 # Extract the first word of "pkg-config", so it can be a program name with args.
5513 set dummy pkg-config; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 case $ac_pt_PKG_CONFIG in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 ;;
5540 esac
5541 fi
5542 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5543 if test -n "$ac_pt_PKG_CONFIG"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5545 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551 if test "x$ac_pt_PKG_CONFIG" = x; then
5552 PKG_CONFIG=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560 PKG_CONFIG=$ac_pt_PKG_CONFIG
5561 fi
5562 else
5563 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5564 fi
5565
5566 fi
5567 if test -n "$PKG_CONFIG"; then
5568 _pkg_min_version=0.9.0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5570 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5571 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573 $as_echo "yes" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 PKG_CONFIG=""
5578 fi
5579 fi
5580 LIBBLKID=
5581 DEPLIBBLKID=
5582 STATIC_LIBBLKID=
5583 DEPSTATIC_LIBBLKID=
5584 PROFILED_LIBBLKID=
5585 DEPPROFILED_LIBBLKID=
5586 BLKID_CMT=
5587
5588 # Check whether --enable-libblkid was given.
5589 if test "${enable_libblkid+set}" = set; then :
5590 enableval=$enable_libblkid; if test "$enableval" = "no"
5591 then
5592 if test -z "$PKG_CONFIG"; then
5593 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5594 fi
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5597 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5598 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 ac_check_lib_save_LIBS=$LIBS
5602 LIBS="-lblkid -luuid $LIBS"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605
5606 /* Override any GCC internal prototype to avoid an error.
5607 Use char because int might match the return type of a GCC
5608 builtin and then its argument prototype would still apply. */
5609 #ifdef __cplusplus
5610 extern "C"
5611 #endif
5612 char blkid_get_cache ();
5613 int
5614 main ()
5615 {
5616 return blkid_get_cache ();
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_link "$LINENO"; then :
5622 ac_cv_lib_blkid_blkid_get_cache=yes
5623 else
5624 ac_cv_lib_blkid_blkid_get_cache=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext conftest.$ac_ext
5628 LIBS=$ac_check_lib_save_LIBS
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5631 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5632 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5633 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5634 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5635 else
5636 as_fn_error $? "external blkid library not found" "$LINENO" 5
5637 fi
5638
5639 BLKID_CMT=#
5640 PROFILED_LIBBLKID=$LIBBLKID
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5642 $as_echo "Disabling private blkid library" >&6; }
5643 else
5644 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5645 DEPLIBBLKID=$LIBBLKID
5646 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5647 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5648 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5649 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5650 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5653 $as_echo "Enabling private blkid library" >&6; }
5654 fi
5655
5656 else
5657 if test -n "$PKG_CONFIG"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5659 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5660 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 ac_check_lib_save_LIBS=$LIBS
5664 LIBS="-lblkid $LIBS"
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667
5668 /* Override any GCC internal prototype to avoid an error.
5669 Use char because int might match the return type of a GCC
5670 builtin and then its argument prototype would still apply. */
5671 #ifdef __cplusplus
5672 extern "C"
5673 #endif
5674 char blkid_get_cache ();
5675 int
5676 main ()
5677 {
5678 return blkid_get_cache ();
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_link "$LINENO"; then :
5684 ac_cv_lib_blkid_blkid_get_cache=yes
5685 else
5686 ac_cv_lib_blkid_blkid_get_cache=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690 LIBS=$ac_check_lib_save_LIBS
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5693 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5694 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5695 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5696 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5697 fi
5698
5699 fi
5700 if test -n "$LIBBLKID"; then
5701 BLKID_CMT=#
5702 PROFILED_LIBBLKID=$LIBBLKID
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5704 $as_echo "Using system blkid library by default" >&6; }
5705 else
5706 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5707 DEPLIBBLKID=$LIBBLKID
5708 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5709 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5710 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5711 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5712 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5715 $as_echo "Enabling private blkid library by default" >&6; }
5716 fi
5717
5718 fi
5719
5720
5721
5722
5723
5724
5725
5726
5727 ALL_CMT=
5728 SUBSET_CMT=
5729 # Check whether --enable-subset was given.
5730 if test "${enable_subset+set}" = set; then :
5731 enableval=$enable_subset; if test "$enableval" = "no"
5732 then
5733 SUBSET_CMT=#
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5735 $as_echo "Disabling subset-only build" >&6; }
5736 else
5737 ALL_CMT=#
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5739 $as_echo "Enabling subset-only-build" >&6; }
5740 fi
5741
5742 fi
5743
5744
5745
5746
5747 # Check whether --enable-backtrace was given.
5748 if test "${enable_backtrace+set}" = set; then :
5749 enableval=$enable_backtrace; if test "$enableval" = "no"
5750 then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5752 $as_echo "Disabling use of backtrace" >&6; }
5753 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5754
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5757 $as_echo "Enabling use of backtrace" >&6; }
5758 fi
5759
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5762 $as_echo "Enabling use of backtrace by default" >&6; }
5763
5764 fi
5765
5766 # Check whether --enable-debugfs was given.
5767 if test "${enable_debugfs+set}" = set; then :
5768 enableval=$enable_debugfs; if test "$enableval" = "no"
5769 then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5771 $as_echo "Disabling debugfs support" >&6; }
5772 DEBUGFS_CMT="#"
5773 else
5774 DEBUGFS_CMT=
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5776 $as_echo "Enabling debugfs support" >&6; }
5777 fi
5778
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5781 $as_echo "Enabling debugfs support by default" >&6; }
5782 DEBUGFS_CMT=
5783
5784 fi
5785
5786
5787 # Check whether --enable-imager was given.
5788 if test "${enable_imager+set}" = set; then :
5789 enableval=$enable_imager; if test "$enableval" = "no"
5790 then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5792 $as_echo "Disabling e2image support" >&6; }
5793 IMAGER_CMT="#"
5794 else
5795 IMAGER_CMT=
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5797 $as_echo "Enabling e2image support" >&6; }
5798 fi
5799
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5802 $as_echo "Enabling e2image support by default" >&6; }
5803 IMAGER_CMT=
5804
5805 fi
5806
5807
5808 # Check whether --enable-resizer was given.
5809 if test "${enable_resizer+set}" = set; then :
5810 enableval=$enable_resizer; if test "$enableval" = "no"
5811 then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5813 $as_echo "Disabling e2resize support" >&6; }
5814 RESIZER_CMT="#"
5815 else
5816 RESIZER_CMT=
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5818 $as_echo "Enabling e2resize support" >&6; }
5819 fi
5820
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5823 $as_echo "Enabling e2resize support by default" >&6; }
5824 RESIZER_CMT=
5825
5826 fi
5827
5828
5829 # Check whether --enable-defrag was given.
5830 if test "${enable_defrag+set}" = set; then :
5831 enableval=$enable_defrag; if test "$enableval" = "no"
5832 then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5834 $as_echo "Disabling e4defrag support" >&6; }
5835 DEFRAG_CMT="#"
5836 else
5837 DEFRAG_CMT=
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5839 $as_echo "Enabling e4defrag support" >&6; }
5840 fi
5841
5842 else
5843 if test -z "$WITH_DIET_LIBC"
5844 then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5846 $as_echo "Enabling e4defrag support by default" >&6; }
5847 DEFRAG_CMT=
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5850 $as_echo "Disabling e4defrag support by default" >&6; }
5851 DEFRAG_CMT="#"
5852 fi
5853
5854 fi
5855
5856
5857 # Check whether --enable-fsck was given.
5858 if test "${enable_fsck+set}" = set; then :
5859 enableval=$enable_fsck; if test "$enableval" = "no"
5860 then
5861 FSCK_PROG='' FSCK_MAN=''
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5863 $as_echo "Not building fsck wrapper" >&6; }
5864 else
5865 FSCK_PROG=fsck FSCK_MAN=fsck.8
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5867 $as_echo "Building fsck wrapper" >&6; }
5868 fi
5869
5870 else
5871 case "$host_os" in
5872 gnu*)
5873 FSCK_PROG='' FSCK_MAN=''
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5875 $as_echo "Not building fsck wrapper by default" >&6; }
5876 ;;
5877 *)
5878 FSCK_PROG=fsck FSCK_MAN=fsck.8
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5880 $as_echo "Building fsck wrapper by default" >&6; }
5881 esac
5882
5883 fi
5884
5885
5886
5887 # Check whether --enable-e2initrd-helper was given.
5888 if test "${enable_e2initrd_helper+set}" = set; then :
5889 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5890 then
5891 E2INITRD_PROG='' E2INITRD_MAN=''
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5893 $as_echo "Not building e2initrd helper" >&6; }
5894 else
5895 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5897 $as_echo "Building e2initrd helper" >&6; }
5898 fi
5899
5900 else
5901 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5903 $as_echo "Building e2initrd helper by default" >&6; }
5904
5905 fi
5906
5907
5908
5909 # Check whether --enable-tls was given.
5910 if test "${enable_tls+set}" = set; then :
5911 enableval=$enable_tls; if test "$enableval" = "no"
5912 then
5913 try_tls=""
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5915 $as_echo "Disabling thread local support" >&6; }
5916 else
5917 try_tls="yes"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5919 $as_echo "Enabling thread local support" >&6; }
5920 fi
5921
5922 else
5923 if test -n "$WITH_DIET_LIBC"
5924 then
5925 try_tls=""
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5927 $as_echo "Diet libc does not support thread local support" >&6; }
5928 else
5929 try_tls="yes"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5931 $as_echo "Try using thread local support by default" >&6; }
5932 fi
5933
5934 fi
5935
5936 if test "$try_tls" = "yes"
5937 then
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5940 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5941 if ${ac_cv_tls+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944
5945 ax_tls_keywords="__thread __declspec(thread) none"
5946 for ax_tls_keyword in $ax_tls_keywords; do
5947 case $ax_tls_keyword in
5948 none) ac_cv_tls=none ; break ;;
5949 *)
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <stdlib.h>
5953 static void
5954 foo(void) {
5955 static $ax_tls_keyword int bar;
5956 exit(1);
5957 }
5958 int
5959 main ()
5960 {
5961
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 ac_cv_tls=$ax_tls_keyword ; break
5968 else
5969 ac_cv_tls=none
5970
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 esac
5974 done
5975
5976 fi
5977
5978
5979 if test "$ac_cv_tls" != "none"; then
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define TLS $ac_cv_tls
5983 _ACEOF
5984
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5987 $as_echo "$ac_cv_tls" >&6; }
5988
5989 fi
5990
5991 # Check whether --enable-uuidd was given.
5992 if test "${enable_uuidd+set}" = set; then :
5993 enableval=$enable_uuidd; if test "$enableval" = "no"
5994 then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5996 $as_echo "Not building uuidd" >&6; }
5997 UUIDD_CMT="#"
5998 else
5999 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6000
6001 UUIDD_CMT=""
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6003 $as_echo "Building uuidd" >&6; }
6004 fi
6005
6006 else
6007 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6008
6009 if test -z "$UUID_CMT"
6010 then
6011 UUIDD_CMT=""
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6013 $as_echo "Building uuidd by default" >&6; }
6014 else
6015 UUIDD_CMT="#"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6017 $as_echo "Disabling uuidd by default" >&6; }
6018 fi
6019
6020 fi
6021
6022
6023
6024 # Check whether --enable-mmp was given.
6025 if test "${enable_mmp+set}" = set; then :
6026 enableval=$enable_mmp; if test "$enableval" = "no"
6027 then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6029 $as_echo "Disabling mmp support" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6032 $as_echo "Enabling mmp support" >&6; }
6033 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6034
6035 fi
6036
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6039 $as_echo "Enabling mmp support by default" >&6; }
6040 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6041
6042
6043 fi
6044
6045
6046 # Check whether --enable-tdb was given.
6047 if test "${enable_tdb+set}" = set; then :
6048 enableval=$enable_tdb; if test "$enableval" = "no"
6049 then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6051 $as_echo "Disabling tdb support" >&6; }
6052 TDB_CMT="#"
6053 TDB_MAN_COMMENT='.\"'
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6056 $as_echo "Enabling tdb support" >&6; }
6057 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6058
6059 TDB_CMT=""
6060 TDB_MAN_COMMENT=""
6061 fi
6062
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6065 $as_echo "Enabling mmp support by default" >&6; }
6066 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6067
6068 TDB_CMT=""
6069 TDB_MAN_COMMENT=""
6070
6071 fi
6072
6073
6074
6075
6076 # Check whether --enable-bmap-stats was given.
6077 if test "${enable_bmap_stats+set}" = set; then :
6078 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6079 then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6081 $as_echo "Disabling bitmap statistics support" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6084 $as_echo "Enabling bitmap statistics support" >&6; }
6085 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6086
6087 fi
6088
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6091 $as_echo "Enabling bitmap statistics support by default" >&6; }
6092 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6093
6094
6095 fi
6096
6097
6098 # Check whether --enable-bmap-stats-ops was given.
6099 if test "${enable_bmap_stats_ops+set}" = set; then :
6100 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6101 then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6103 $as_echo "Disabling additional bitmap statistics" >&6; }
6104 else
6105 if test "x${enable_bmap_stats}" = "xno"; then :
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6109 See \`config.log' for more details" "$LINENO" 5; }
6110 fi
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6113 $as_echo "Enabling additional bitmap statistics" >&6; }
6114 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6115
6116 fi
6117
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6120 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6121
6122 fi
6123
6124 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6125
6126 GETTEXT_PACKAGE=e2fsprogs
6127 PACKAGE=e2fsprogs
6128 VERSION="$E2FSPROGS_VERSION"
6129 VERSION=0.14.1
6130
6131 cat >>confdefs.h <<_ACEOF
6132 #define PACKAGE "$PACKAGE"
6133 _ACEOF
6134
6135
6136 cat >>confdefs.h <<_ACEOF
6137 #define VERSION "$VERSION"
6138 _ACEOF
6139
6140
6141
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6146 set x ${MAKE-make}
6147 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6148 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat >conftest.make <<\_ACEOF
6152 SHELL = /bin/sh
6153 all:
6154 @echo '@@@%%%=$(MAKE)=@@@%%%'
6155 _ACEOF
6156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6158 *@@@%%%=?*=@@@%%%*)
6159 eval ac_cv_prog_make_${ac_make}_set=yes;;
6160 *)
6161 eval ac_cv_prog_make_${ac_make}_set=no;;
6162 esac
6163 rm -f conftest.make
6164 fi
6165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6167 $as_echo "yes" >&6; }
6168 SET_MAKE=
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 SET_MAKE="MAKE=${MAKE-make}"
6173 fi
6174
6175 # Find a good install program. We prefer a C program (faster),
6176 # so one script is as good as another. But avoid the broken or
6177 # incompatible versions:
6178 # SysV /etc/install, /usr/sbin/install
6179 # SunOS /usr/etc/install
6180 # IRIX /sbin/install
6181 # AIX /bin/install
6182 # AmigaOS /C/install, which installs bootblocks on floppy discs
6183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6186 # OS/2's system install, which has a completely different semantic
6187 # ./install, which can be erroneously created by make from ./install.sh.
6188 # Reject install programs that cannot install multiple files.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6190 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6191 if test -z "$INSTALL"; then
6192 if ${ac_cv_path_install+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 # Account for people who put trailing slashes in PATH elements.
6201 case $as_dir/ in #((
6202 ./ | .// | /[cC]/* | \
6203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6205 /usr/ucb/* ) ;;
6206 *)
6207 # OSF1 and SCO ODT 3.0 have their own names for install.
6208 # Don't use installbsd from OSF since it installs stuff as root
6209 # by default.
6210 for ac_prog in ginstall scoinst install; do
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6213 if test $ac_prog = install &&
6214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6215 # AIX install. It has an incompatible calling convention.
6216 :
6217 elif test $ac_prog = install &&
6218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6219 # program-specific install script used by HP pwplus--don't use.
6220 :
6221 else
6222 rm -rf conftest.one conftest.two conftest.dir
6223 echo one > conftest.one
6224 echo two > conftest.two
6225 mkdir conftest.dir
6226 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6227 test -s conftest.one && test -s conftest.two &&
6228 test -s conftest.dir/conftest.one &&
6229 test -s conftest.dir/conftest.two
6230 then
6231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6232 break 3
6233 fi
6234 fi
6235 fi
6236 done
6237 done
6238 ;;
6239 esac
6240
6241 done
6242 IFS=$as_save_IFS
6243
6244 rm -rf conftest.one conftest.two conftest.dir
6245
6246 fi
6247 if test "${ac_cv_path_install+set}" = set; then
6248 INSTALL=$ac_cv_path_install
6249 else
6250 # As a last resort, use the slow shell script. Don't cache a
6251 # value for INSTALL within a source directory, because that will
6252 # break other packages using the cache if that directory is
6253 # removed, or if the value is a relative name.
6254 INSTALL=$ac_install_sh
6255 fi
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6258 $as_echo "$INSTALL" >&6; }
6259
6260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6261 # It thinks the first close brace ends the variable substitution.
6262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6263
6264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6265
6266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6269 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6270 if test -z "$MKDIR_P"; then
6271 if ${ac_cv_path_mkdir+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6276 do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_prog in mkdir gmkdir; do
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6282 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6283 'mkdir (GNU coreutils) '* | \
6284 'mkdir (coreutils) '* | \
6285 'mkdir (fileutils) '4.1*)
6286 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6287 break 3;;
6288 esac
6289 done
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295
6296 test -d ./--version && rmdir ./--version
6297 if test "${ac_cv_path_mkdir+set}" = set; then
6298 MKDIR_P="$ac_cv_path_mkdir -p"
6299 else
6300 # As a last resort, use the slow shell script. Don't cache a
6301 # value for MKDIR_P within a source directory, because that will
6302 # break other packages using the cache if that directory is
6303 # removed, or if the value is a relative name.
6304 MKDIR_P="$ac_install_sh -d"
6305 fi
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6308 $as_echo "$MKDIR_P" >&6; }
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6311 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6312 if ${ac_cv_path_SED+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6316 for ac_i in 1 2 3 4 5 6 7; do
6317 ac_script="$ac_script$as_nl$ac_script"
6318 done
6319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6320 { ac_script=; unset ac_script;}
6321 if test -z "$SED"; then
6322 ac_path_SED_found=false
6323 # Loop through the user's path and test for each of PROGNAME-LIST
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_prog in sed gsed; do
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6332 as_fn_executable_p "$ac_path_SED" || continue
6333 # Check for GNU ac_path_SED and select it if it is found.
6334 # Check for GNU $ac_path_SED
6335 case `"$ac_path_SED" --version 2>&1` in
6336 *GNU*)
6337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6338 *)
6339 ac_count=0
6340 $as_echo_n 0123456789 >"conftest.in"
6341 while :
6342 do
6343 cat "conftest.in" "conftest.in" >"conftest.tmp"
6344 mv "conftest.tmp" "conftest.in"
6345 cp "conftest.in" "conftest.nl"
6346 $as_echo '' >> "conftest.nl"
6347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6349 as_fn_arith $ac_count + 1 && ac_count=$as_val
6350 if test $ac_count -gt ${ac_path_SED_max-0}; then
6351 # Best one so far, save it but keep looking for a better one
6352 ac_cv_path_SED="$ac_path_SED"
6353 ac_path_SED_max=$ac_count
6354 fi
6355 # 10*(2^10) chars as input seems more than enough
6356 test $ac_count -gt 10 && break
6357 done
6358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6359 esac
6360
6361 $ac_path_SED_found && break 3
6362 done
6363 done
6364 done
6365 IFS=$as_save_IFS
6366 if test -z "$ac_cv_path_SED"; then
6367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6368 fi
6369 else
6370 ac_cv_path_SED=$SED
6371 fi
6372
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6375 $as_echo "$ac_cv_path_SED" >&6; }
6376 SED="$ac_cv_path_SED"
6377 rm -f conftest.sed
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6381 $as_echo_n "checking whether NLS is requested... " >&6; }
6382 # Check whether --enable-nls was given.
6383 if test "${enable_nls+set}" = set; then :
6384 enableval=$enable_nls; USE_NLS=$enableval
6385 else
6386 USE_NLS=yes
6387 fi
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6390 $as_echo "$USE_NLS" >&6; }
6391
6392
6393
6394
6395 GETTEXT_MACRO_VERSION=0.18
6396
6397
6398
6399
6400 # Prepare PATH_SEPARATOR.
6401 # The user is always right.
6402 if test "${PATH_SEPARATOR+set}" != set; then
6403 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6404 # contains only /bin. Note that ksh looks also at the FPATH variable,
6405 # so we have to set that as well for the test.
6406 PATH_SEPARATOR=:
6407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6408 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6409 || PATH_SEPARATOR=';'
6410 }
6411 fi
6412
6413 # Find out how to test for executable files. Don't use a zero-byte file,
6414 # as systems may use methods other than mode bits to determine executability.
6415 cat >conf$$.file <<_ASEOF
6416 #! /bin/sh
6417 exit 0
6418 _ASEOF
6419 chmod +x conf$$.file
6420 if test -x conf$$.file >/dev/null 2>&1; then
6421 ac_executable_p="test -x"
6422 else
6423 ac_executable_p="test -f"
6424 fi
6425 rm -f conf$$.file
6426
6427 # Extract the first word of "msgfmt", so it can be a program name with args.
6428 set dummy msgfmt; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_path_MSGFMT+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 case "$MSGFMT" in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH; do
6441 IFS="$ac_save_IFS"
6442 test -z "$ac_dir" && ac_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6445 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6446 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6447 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6448 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6449 break 2
6450 fi
6451 fi
6452 done
6453 done
6454 IFS="$ac_save_IFS"
6455 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6456 ;;
6457 esac
6458 fi
6459 MSGFMT="$ac_cv_path_MSGFMT"
6460 if test "$MSGFMT" != ":"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6462 $as_echo "$MSGFMT" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6469 set dummy gmsgfmt; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_path_GMSGFMT+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 case $GMSGFMT in
6476 [\\/]* | ?:[\\/]*)
6477 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6478 ;;
6479 *)
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6496 ;;
6497 esac
6498 fi
6499 GMSGFMT=$ac_cv_path_GMSGFMT
6500 if test -n "$GMSGFMT"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6502 $as_echo "$GMSGFMT" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509
6510 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6511 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6512 *) MSGFMT_015=$MSGFMT ;;
6513 esac
6514
6515 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6516 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6517 *) GMSGFMT_015=$GMSGFMT ;;
6518 esac
6519
6520
6521
6522 # Prepare PATH_SEPARATOR.
6523 # The user is always right.
6524 if test "${PATH_SEPARATOR+set}" != set; then
6525 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6526 # contains only /bin. Note that ksh looks also at the FPATH variable,
6527 # so we have to set that as well for the test.
6528 PATH_SEPARATOR=:
6529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6530 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6531 || PATH_SEPARATOR=';'
6532 }
6533 fi
6534
6535 # Find out how to test for executable files. Don't use a zero-byte file,
6536 # as systems may use methods other than mode bits to determine executability.
6537 cat >conf$$.file <<_ASEOF
6538 #! /bin/sh
6539 exit 0
6540 _ASEOF
6541 chmod +x conf$$.file
6542 if test -x conf$$.file >/dev/null 2>&1; then
6543 ac_executable_p="test -x"
6544 else
6545 ac_executable_p="test -f"
6546 fi
6547 rm -f conf$$.file
6548
6549 # Extract the first word of "xgettext", so it can be a program name with args.
6550 set dummy xgettext; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_path_XGETTEXT+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 case "$XGETTEXT" in
6557 [\\/]* | ?:[\\/]*)
6558 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6559 ;;
6560 *)
6561 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6562 for ac_dir in $PATH; do
6563 IFS="$ac_save_IFS"
6564 test -z "$ac_dir" && ac_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6567 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6568 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6569 (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
6570 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6571 break 2
6572 fi
6573 fi
6574 done
6575 done
6576 IFS="$ac_save_IFS"
6577 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6578 ;;
6579 esac
6580 fi
6581 XGETTEXT="$ac_cv_path_XGETTEXT"
6582 if test "$XGETTEXT" != ":"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6584 $as_echo "$XGETTEXT" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590 rm -f messages.po
6591
6592 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6593 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6594 *) XGETTEXT_015=$XGETTEXT ;;
6595 esac
6596
6597
6598
6599 # Prepare PATH_SEPARATOR.
6600 # The user is always right.
6601 if test "${PATH_SEPARATOR+set}" != set; then
6602 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6603 # contains only /bin. Note that ksh looks also at the FPATH variable,
6604 # so we have to set that as well for the test.
6605 PATH_SEPARATOR=:
6606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6607 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6608 || PATH_SEPARATOR=';'
6609 }
6610 fi
6611
6612 # Find out how to test for executable files. Don't use a zero-byte file,
6613 # as systems may use methods other than mode bits to determine executability.
6614 cat >conf$$.file <<_ASEOF
6615 #! /bin/sh
6616 exit 0
6617 _ASEOF
6618 chmod +x conf$$.file
6619 if test -x conf$$.file >/dev/null 2>&1; then
6620 ac_executable_p="test -x"
6621 else
6622 ac_executable_p="test -f"
6623 fi
6624 rm -f conf$$.file
6625
6626 # Extract the first word of "msgmerge", so it can be a program name with args.
6627 set dummy msgmerge; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_path_MSGMERGE+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 case "$MSGMERGE" in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6639 for ac_dir in $PATH; do
6640 IFS="$ac_save_IFS"
6641 test -z "$ac_dir" && ac_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6644 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6645 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6646 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6647 break 2
6648 fi
6649 fi
6650 done
6651 done
6652 IFS="$ac_save_IFS"
6653 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6654 ;;
6655 esac
6656 fi
6657 MSGMERGE="$ac_cv_path_MSGMERGE"
6658 if test "$MSGMERGE" != ":"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6660 $as_echo "$MSGMERGE" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 test -n "$localedir" || localedir='${datadir}/locale'
6668
6669
6670 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6671
6672
6673 ac_config_commands="$ac_config_commands po-directories"
6674
6675
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6678 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6679 if ${ac_cv_gnu_library_2+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684
6685 #include <features.h>
6686 #ifdef __GNU_LIBRARY__
6687 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6688 Lucky GNU user
6689 #endif
6690 #endif
6691
6692 _ACEOF
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6695 ac_cv_gnu_library_2=yes
6696 else
6697 ac_cv_gnu_library_2=no
6698 fi
6699 rm -f conftest*
6700
6701
6702
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6705 $as_echo "$ac_cv_gnu_library_2" >&6; }
6706
6707 GLIBC2="$ac_cv_gnu_library_2"
6708
6709
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_RANLIB+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741 $as_echo "$RANLIB" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781 $as_echo "$ac_ct_RANLIB" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796 RANLIB=$ac_ct_RANLIB
6797 fi
6798 else
6799 RANLIB="$ac_cv_prog_RANLIB"
6800 fi
6801
6802
6803
6804 CFLAG_VISIBILITY=
6805 HAVE_VISIBILITY=0
6806 if test -n "$GCC"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6808 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6809 if ${gl_cv_cc_vis_werror+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812
6813 gl_save_CFLAGS="$CFLAGS"
6814 CFLAGS="$CFLAGS -Werror"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817
6818 int
6819 main ()
6820 {
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 gl_cv_cc_vis_werror=yes
6828 else
6829 gl_cv_cc_vis_werror=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 CFLAGS="$gl_save_CFLAGS"
6833 fi
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6836 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6838 $as_echo_n "checking for simple visibility declarations... " >&6; }
6839 if ${gl_cv_cc_visibility+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842
6843 gl_save_CFLAGS="$CFLAGS"
6844 CFLAGS="$CFLAGS -fvisibility=hidden"
6845 if test $gl_cv_cc_vis_werror = yes; then
6846 CFLAGS="$CFLAGS -Werror"
6847 fi
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6851 extern __attribute__((__visibility__("default"))) int exportedvar;
6852 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6853 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6854 void dummyfunc (void) {}
6855
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_cc_visibility=yes
6866 else
6867 gl_cv_cc_visibility=no
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 CFLAGS="$gl_save_CFLAGS"
6871 fi
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6874 $as_echo "$gl_cv_cc_visibility" >&6; }
6875 if test $gl_cv_cc_visibility = yes; then
6876 CFLAG_VISIBILITY="-fvisibility=hidden"
6877 HAVE_VISIBILITY=1
6878 fi
6879 fi
6880
6881
6882
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6885 _ACEOF
6886
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6889 $as_echo_n "checking for inline... " >&6; }
6890 if ${ac_cv_c_inline+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 ac_cv_c_inline=no
6894 for ac_kw in inline __inline__ __inline; do
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #ifndef __cplusplus
6898 typedef int foo_t;
6899 static $ac_kw foo_t static_foo () {return 0; }
6900 $ac_kw foo_t foo () {return 0; }
6901 #endif
6902
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 ac_cv_c_inline=$ac_kw
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 test "$ac_cv_c_inline" != no && break
6909 done
6910
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6913 $as_echo "$ac_cv_c_inline" >&6; }
6914
6915 case $ac_cv_c_inline in
6916 inline | yes) ;;
6917 *)
6918 case $ac_cv_c_inline in
6919 no) ac_val=;;
6920 *) ac_val=$ac_cv_c_inline;;
6921 esac
6922 cat >>confdefs.h <<_ACEOF
6923 #ifndef __cplusplus
6924 #define inline $ac_val
6925 #endif
6926 _ACEOF
6927 ;;
6928 esac
6929
6930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6931 if test "x$ac_cv_type_size_t" = xyes; then :
6932
6933 else
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define size_t unsigned int
6937 _ACEOF
6938
6939 fi
6940
6941
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6943 $as_echo_n "checking for stdint.h... " >&6; }
6944 if ${gl_cv_header_stdint_h+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <sys/types.h>
6950 #include <stdint.h>
6951 int
6952 main ()
6953 {
6954 uintmax_t i = (uintmax_t) -1; return !i;
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 gl_cv_header_stdint_h=yes
6961 else
6962 gl_cv_header_stdint_h=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6967 $as_echo "$gl_cv_header_stdint_h" >&6; }
6968 if test $gl_cv_header_stdint_h = yes; then
6969
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_STDINT_H_WITH_UINTMAX 1
6972 _ACEOF
6973
6974 fi
6975
6976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6977 # for constant arguments. Useless!
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6979 $as_echo_n "checking for working alloca.h... " >&6; }
6980 if ${ac_cv_working_alloca_h+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 #include <alloca.h>
6986 int
6987 main ()
6988 {
6989 char *p = (char *) alloca (2 * sizeof (int));
6990 if (p) return 0;
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_link "$LINENO"; then :
6996 ac_cv_working_alloca_h=yes
6997 else
6998 ac_cv_working_alloca_h=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7004 $as_echo "$ac_cv_working_alloca_h" >&6; }
7005 if test $ac_cv_working_alloca_h = yes; then
7006
7007 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7008
7009 fi
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7012 $as_echo_n "checking for alloca... " >&6; }
7013 if ${ac_cv_func_alloca_works+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #ifdef __GNUC__
7019 # define alloca __builtin_alloca
7020 #else
7021 # ifdef _MSC_VER
7022 # include <malloc.h>
7023 # define alloca _alloca
7024 # else
7025 # ifdef HAVE_ALLOCA_H
7026 # include <alloca.h>
7027 # else
7028 # ifdef _AIX
7029 #pragma alloca
7030 # else
7031 # ifndef alloca /* predefined by HP cc +Olibcalls */
7032 void *alloca (size_t);
7033 # endif
7034 # endif
7035 # endif
7036 # endif
7037 #endif
7038
7039 int
7040 main ()
7041 {
7042 char *p = (char *) alloca (1);
7043 if (p) return 0;
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 ac_cv_func_alloca_works=yes
7050 else
7051 ac_cv_func_alloca_works=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7057 $as_echo "$ac_cv_func_alloca_works" >&6; }
7058
7059 if test $ac_cv_func_alloca_works = yes; then
7060
7061 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7062
7063 else
7064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7065 # that cause trouble. Some versions do not even contain alloca or
7066 # contain a buggy version. If you still want to use their alloca,
7067 # use ar to extract alloca.o from them instead of compiling alloca.c.
7068
7069 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7070
7071 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7072
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7075 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7076 if ${ac_cv_os_cray+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #if defined CRAY && ! defined CRAY2
7082 webecray
7083 #else
7084 wenotbecray
7085 #endif
7086
7087 _ACEOF
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "webecray" >/dev/null 2>&1; then :
7090 ac_cv_os_cray=yes
7091 else
7092 ac_cv_os_cray=no
7093 fi
7094 rm -f conftest*
7095
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7098 $as_echo "$ac_cv_os_cray" >&6; }
7099 if test $ac_cv_os_cray = yes; then
7100 for ac_func in _getb67 GETB67 getb67; do
7101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7103 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define CRAY_STACKSEG_END $ac_func
7107 _ACEOF
7108
7109 break
7110 fi
7111
7112 done
7113 fi
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7116 $as_echo_n "checking stack direction for C alloca... " >&6; }
7117 if ${ac_cv_c_stack_direction+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test "$cross_compiling" = yes; then :
7121 ac_cv_c_stack_direction=0
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 int
7127 find_stack_direction (int *addr, int depth)
7128 {
7129 int dir, dummy = 0;
7130 if (! addr)
7131 addr = &dummy;
7132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7134 return dir + dummy;
7135 }
7136
7137 int
7138 main (int argc, char **argv)
7139 {
7140 return find_stack_direction (0, argc + !argv + 20) < 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_run "$LINENO"; then :
7144 ac_cv_c_stack_direction=1
7145 else
7146 ac_cv_c_stack_direction=-1
7147 fi
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext
7150 fi
7151
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7154 $as_echo "$ac_cv_c_stack_direction" >&6; }
7155 cat >>confdefs.h <<_ACEOF
7156 #define STACK_DIRECTION $ac_cv_c_stack_direction
7157 _ACEOF
7158
7159
7160 fi
7161
7162
7163
7164
7165 for ac_header in $ac_header_list
7166 do :
7167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7169 "
7170 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7171 cat >>confdefs.h <<_ACEOF
7172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7174
7175 fi
7176
7177 done
7178
7179
7180
7181
7182
7183
7184
7185
7186 for ac_func in getpagesize
7187 do :
7188 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7189 if test "x$ac_cv_func_getpagesize" = xyes; then :
7190 cat >>confdefs.h <<_ACEOF
7191 #define HAVE_GETPAGESIZE 1
7192 _ACEOF
7193
7194 fi
7195 done
7196
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7198 $as_echo_n "checking for working mmap... " >&6; }
7199 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test "$cross_compiling" = yes; then :
7203 ac_cv_func_mmap_fixed_mapped=no
7204 else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 /* malloc might have been renamed as rpl_malloc. */
7209 #undef malloc
7210
7211 /* Thanks to Mike Haertel and Jim Avera for this test.
7212 Here is a matrix of mmap possibilities:
7213 mmap private not fixed
7214 mmap private fixed at somewhere currently unmapped
7215 mmap private fixed at somewhere already mapped
7216 mmap shared not fixed
7217 mmap shared fixed at somewhere currently unmapped
7218 mmap shared fixed at somewhere already mapped
7219 For private mappings, we should verify that changes cannot be read()
7220 back from the file, nor mmap's back from the file at a different
7221 address. (There have been systems where private was not correctly
7222 implemented like the infamous i386 svr4.0, and systems where the
7223 VM page cache was not coherent with the file system buffer cache
7224 like early versions of FreeBSD and possibly contemporary NetBSD.)
7225 For shared mappings, we should conversely verify that changes get
7226 propagated back to all the places they're supposed to be.
7227
7228 Grep wants private fixed already mapped.
7229 The main things grep needs to know about mmap are:
7230 * does it exist and is it safe to write into the mmap'd area
7231 * how to use it (BSD variants) */
7232
7233 #include <fcntl.h>
7234 #include <sys/mman.h>
7235
7236 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7237 char *malloc ();
7238 #endif
7239
7240 /* This mess was copied from the GNU getpagesize.h. */
7241 #ifndef HAVE_GETPAGESIZE
7242 # ifdef _SC_PAGESIZE
7243 # define getpagesize() sysconf(_SC_PAGESIZE)
7244 # else /* no _SC_PAGESIZE */
7245 # ifdef HAVE_SYS_PARAM_H
7246 # include <sys/param.h>
7247 # ifdef EXEC_PAGESIZE
7248 # define getpagesize() EXEC_PAGESIZE
7249 # else /* no EXEC_PAGESIZE */
7250 # ifdef NBPG
7251 # define getpagesize() NBPG * CLSIZE
7252 # ifndef CLSIZE
7253 # define CLSIZE 1
7254 # endif /* no CLSIZE */
7255 # else /* no NBPG */
7256 # ifdef NBPC
7257 # define getpagesize() NBPC
7258 # else /* no NBPC */
7259 # ifdef PAGESIZE
7260 # define getpagesize() PAGESIZE
7261 # endif /* PAGESIZE */
7262 # endif /* no NBPC */
7263 # endif /* no NBPG */
7264 # endif /* no EXEC_PAGESIZE */
7265 # else /* no HAVE_SYS_PARAM_H */
7266 # define getpagesize() 8192 /* punt totally */
7267 # endif /* no HAVE_SYS_PARAM_H */
7268 # endif /* no _SC_PAGESIZE */
7269
7270 #endif /* no HAVE_GETPAGESIZE */
7271
7272 int
7273 main ()
7274 {
7275 char *data, *data2, *data3;
7276 const char *cdata2;
7277 int i, pagesize;
7278 int fd, fd2;
7279
7280 pagesize = getpagesize ();
7281
7282 /* First, make a file with some known garbage in it. */
7283 data = (char *) malloc (pagesize);
7284 if (!data)
7285 return 1;
7286 for (i = 0; i < pagesize; ++i)
7287 *(data + i) = rand ();
7288 umask (0);
7289 fd = creat ("conftest.mmap", 0600);
7290 if (fd < 0)
7291 return 2;
7292 if (write (fd, data, pagesize) != pagesize)
7293 return 3;
7294 close (fd);
7295
7296 /* Next, check that the tail of a page is zero-filled. File must have
7297 non-zero length, otherwise we risk SIGBUS for entire page. */
7298 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7299 if (fd2 < 0)
7300 return 4;
7301 cdata2 = "";
7302 if (write (fd2, cdata2, 1) != 1)
7303 return 5;
7304 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7305 if (data2 == MAP_FAILED)
7306 return 6;
7307 for (i = 0; i < pagesize; ++i)
7308 if (*(data2 + i))
7309 return 7;
7310 close (fd2);
7311 if (munmap (data2, pagesize))
7312 return 8;
7313
7314 /* Next, try to mmap the file at a fixed address which already has
7315 something else allocated at it. If we can, also make sure that
7316 we see the same garbage. */
7317 fd = open ("conftest.mmap", O_RDWR);
7318 if (fd < 0)
7319 return 9;
7320 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7321 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7322 return 10;
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data2 + i))
7325 return 11;
7326
7327 /* Finally, make sure that changes to the mapped area do not
7328 percolate back to the file as seen by read(). (This is a bug on
7329 some variants of i386 svr4.0.) */
7330 for (i = 0; i < pagesize; ++i)
7331 *(data2 + i) = *(data2 + i) + 1;
7332 data3 = (char *) malloc (pagesize);
7333 if (!data3)
7334 return 12;
7335 if (read (fd, data3, pagesize) != pagesize)
7336 return 13;
7337 for (i = 0; i < pagesize; ++i)
7338 if (*(data + i) != *(data3 + i))
7339 return 14;
7340 close (fd);
7341 free (data);
7342 free (data3);
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_run "$LINENO"; then :
7347 ac_cv_func_mmap_fixed_mapped=yes
7348 else
7349 ac_cv_func_mmap_fixed_mapped=no
7350 fi
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7353 fi
7354
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7357 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7359
7360 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7361
7362 fi
7363 rm -f conftest.mmap conftest.txt
7364
7365
7366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7368 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7369 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372
7373 gt_cv_int_divbyzero_sigfpe=
7374 case "$host_os" in
7375 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7376 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7377 # compiling. If we were to perform the real test, 1 Crash Report
7378 # dialog window would pop up.
7379 case "$host_cpu" in
7380 i[34567]86 | x86_64)
7381 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7382 esac
7383 ;;
7384 esac
7385 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7386 if test "$cross_compiling" = yes; then :
7387
7388 # Guess based on the CPU.
7389 case "$host_cpu" in
7390 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7391 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7392 *)
7393 gt_cv_int_divbyzero_sigfpe="guessing no";;
7394 esac
7395
7396 else
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399
7400 #include <stdlib.h>
7401 #include <signal.h>
7402
7403 static void
7404 sigfpe_handler (int sig)
7405 {
7406 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7407 exit (sig != SIGFPE);
7408 }
7409
7410 int x = 1;
7411 int y = 0;
7412 int z;
7413 int nan;
7414
7415 int main ()
7416 {
7417 signal (SIGFPE, sigfpe_handler);
7418 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7419 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7420 signal (SIGTRAP, sigfpe_handler);
7421 #endif
7422 /* Linux/SPARC yields signal SIGILL. */
7423 #if defined (__sparc__) && defined (__linux__)
7424 signal (SIGILL, sigfpe_handler);
7425 #endif
7426
7427 z = x / y;
7428 nan = y / y;
7429 exit (2);
7430 }
7431
7432 _ACEOF
7433 if ac_fn_c_try_run "$LINENO"; then :
7434 gt_cv_int_divbyzero_sigfpe=yes
7435 else
7436 gt_cv_int_divbyzero_sigfpe=no
7437 fi
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7440 fi
7441
7442 fi
7443
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7446 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7447 case "$gt_cv_int_divbyzero_sigfpe" in
7448 *yes) value=1;;
7449 *) value=0;;
7450 esac
7451
7452 cat >>confdefs.h <<_ACEOF
7453 #define INTDIV0_RAISES_SIGFPE $value
7454 _ACEOF
7455
7456
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7459 $as_echo_n "checking for inttypes.h... " >&6; }
7460 if ${gl_cv_header_inttypes_h+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465
7466 #include <sys/types.h>
7467 #include <inttypes.h>
7468
7469 int
7470 main ()
7471 {
7472 uintmax_t i = (uintmax_t) -1; return !i;
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 gl_cv_header_inttypes_h=yes
7479 else
7480 gl_cv_header_inttypes_h=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7485 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7486 if test $gl_cv_header_inttypes_h = yes; then
7487
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7490 _ACEOF
7491
7492 fi
7493
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7496 $as_echo_n "checking for unsigned long long int... " >&6; }
7497 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 ac_cv_type_unsigned_long_long_int=yes
7501 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504
7505 /* For now, do not test the preprocessor; as of 2007 there are too many
7506 implementations with broken preprocessors. Perhaps this can
7507 be revisited in 2012. In the meantime, code should not expect
7508 #if to work with literals wider than 32 bits. */
7509 /* Test literals. */
7510 long long int ll = 9223372036854775807ll;
7511 long long int nll = -9223372036854775807LL;
7512 unsigned long long int ull = 18446744073709551615ULL;
7513 /* Test constant expressions. */
7514 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7515 ? 1 : -1)];
7516 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7517 ? 1 : -1)];
7518 int i = 63;
7519 int
7520 main ()
7521 {
7522 /* Test availability of runtime routines for shift and division. */
7523 long long int llmax = 9223372036854775807ll;
7524 unsigned long long int ullmax = 18446744073709551615ull;
7525 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7526 | (llmax / ll) | (llmax % ll)
7527 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7528 | (ullmax / ull) | (ullmax % ull));
7529 ;
7530 return 0;
7531 }
7532
7533 _ACEOF
7534 if ac_fn_c_try_link "$LINENO"; then :
7535
7536 else
7537 ac_cv_type_unsigned_long_long_int=no
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541 fi
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7544 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7545 if test $ac_cv_type_unsigned_long_long_int = yes; then
7546
7547 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7548
7549 fi
7550
7551
7552
7553
7554 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7555
7556 test $ac_cv_type_unsigned_long_long_int = yes \
7557 && ac_type='unsigned long long' \
7558 || ac_type='unsigned long'
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define uintmax_t $ac_type
7562 _ACEOF
7563
7564 else
7565
7566 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7567
7568 fi
7569
7570
7571 for ac_header in inttypes.h
7572 do :
7573 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7574 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7575 cat >>confdefs.h <<_ACEOF
7576 #define HAVE_INTTYPES_H 1
7577 _ACEOF
7578
7579 fi
7580
7581 done
7582
7583 if test $ac_cv_header_inttypes_h = yes; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7585 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7586 if ${gt_cv_inttypes_pri_broken+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592
7593 #include <inttypes.h>
7594 #ifdef PRId32
7595 char *p = PRId32;
7596 #endif
7597
7598 int
7599 main ()
7600 {
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 gt_cv_inttypes_pri_broken=no
7608 else
7609 gt_cv_inttypes_pri_broken=yes
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7615 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7616 fi
7617 if test "$gt_cv_inttypes_pri_broken" = yes; then
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define PRI_MACROS_BROKEN 1
7621 _ACEOF
7622
7623 PRI_MACROS_BROKEN=1
7624 else
7625 PRI_MACROS_BROKEN=0
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634 # Check whether --enable-threads was given.
7635 if test "${enable_threads+set}" = set; then :
7636 enableval=$enable_threads; gl_use_threads=$enableval
7637 else
7638 if test -n "$gl_use_threads_default"; then
7639 gl_use_threads="$gl_use_threads_default"
7640 else
7641 case "$host_os" in
7642 osf*) gl_use_threads=no ;;
7643 cygwin*)
7644 case `uname -r` in
7645 1.[0-5].*) gl_use_threads=no ;;
7646 *) gl_use_threads=yes ;;
7647 esac
7648 ;;
7649 *) gl_use_threads=yes ;;
7650 esac
7651 fi
7652
7653 fi
7654
7655 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7656 # For using <pthread.h>:
7657 case "$host_os" in
7658 osf*)
7659 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7660 # groks <pthread.h>. cc also understands the flag -pthread, but
7661 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7662 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7663 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7664 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7665 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7666 ;;
7667 esac
7668 # Some systems optimize for single-threaded programs by default, and
7669 # need special flags to disable these optimizations. For example, the
7670 # definition of 'errno' in <errno.h>.
7671 case "$host_os" in
7672 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7673 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7674 esac
7675 fi
7676
7677
7678
7679
7680
7681 if test "X$prefix" = "XNONE"; then
7682 acl_final_prefix="$ac_default_prefix"
7683 else
7684 acl_final_prefix="$prefix"
7685 fi
7686 if test "X$exec_prefix" = "XNONE"; then
7687 acl_final_exec_prefix='${prefix}'
7688 else
7689 acl_final_exec_prefix="$exec_prefix"
7690 fi
7691 acl_save_prefix="$prefix"
7692 prefix="$acl_final_prefix"
7693 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7694 prefix="$acl_save_prefix"
7695
7696
7697
7698 # Check whether --with-gnu-ld was given.
7699 if test "${with_gnu_ld+set}" = set; then :
7700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7701 else
7702 with_gnu_ld=no
7703 fi
7704
7705 # Prepare PATH_SEPARATOR.
7706 # The user is always right.
7707 if test "${PATH_SEPARATOR+set}" != set; then
7708 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7709 # contains only /bin. Note that ksh looks also at the FPATH variable,
7710 # so we have to set that as well for the test.
7711 PATH_SEPARATOR=:
7712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7713 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7714 || PATH_SEPARATOR=';'
7715 }
7716 fi
7717
7718 ac_prog=ld
7719 if test "$GCC" = yes; then
7720 # Check if gcc -print-prog-name=ld gives a path.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7722 $as_echo_n "checking for ld used by $CC... " >&6; }
7723 case $host in
7724 *-*-mingw*)
7725 # gcc leaves a trailing carriage return which upsets mingw
7726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7727 *)
7728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7729 esac
7730 case $ac_prog in
7731 # Accept absolute paths.
7732 [\\/]* | ?:[\\/]*)
7733 re_direlt='/[^/][^/]*/\.\./'
7734 # Canonicalize the pathname of ld
7735 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7736 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7737 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7738 done
7739 test -z "$LD" && LD="$ac_prog"
7740 ;;
7741 "")
7742 # If it fails, then pretend we aren't using GCC.
7743 ac_prog=ld
7744 ;;
7745 *)
7746 # If it is relative, then search for the first ld in PATH.
7747 with_gnu_ld=unknown
7748 ;;
7749 esac
7750 elif test "$with_gnu_ld" = yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7752 $as_echo_n "checking for GNU ld... " >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7755 $as_echo_n "checking for non-GNU ld... " >&6; }
7756 fi
7757 if ${acl_cv_path_LD+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -z "$LD"; then
7761 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 for ac_dir in $PATH; do
7763 IFS="$acl_save_ifs"
7764 test -z "$ac_dir" && ac_dir=.
7765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7766 acl_cv_path_LD="$ac_dir/$ac_prog"
7767 # Check to see if the program is GNU ld. I'd rather use --version,
7768 # but apparently some variants of GNU ld only accept -v.
7769 # Break only if it was the GNU/non-GNU ld that we prefer.
7770 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7771 *GNU* | *'with BFD'*)
7772 test "$with_gnu_ld" != no && break
7773 ;;
7774 *)
7775 test "$with_gnu_ld" != yes && break
7776 ;;
7777 esac
7778 fi
7779 done
7780 IFS="$acl_save_ifs"
7781 else
7782 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7783 fi
7784 fi
7785
7786 LD="$acl_cv_path_LD"
7787 if test -n "$LD"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7789 $as_echo "$LD" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7797 if ${acl_cv_prog_gnu_ld+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7801 case `$LD -v 2>&1 </dev/null` in
7802 *GNU* | *'with BFD'*)
7803 acl_cv_prog_gnu_ld=yes
7804 ;;
7805 *)
7806 acl_cv_prog_gnu_ld=no
7807 ;;
7808 esac
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7811 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7812 with_gnu_ld=$acl_cv_prog_gnu_ld
7813
7814
7815
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7818 $as_echo_n "checking for shared library run path origin... " >&6; }
7819 if ${acl_cv_rpath+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822
7823 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7824 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7825 . ./conftest.sh
7826 rm -f ./conftest.sh
7827 acl_cv_rpath=done
7828
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7831 $as_echo "$acl_cv_rpath" >&6; }
7832 wl="$acl_cv_wl"
7833 acl_libext="$acl_cv_libext"
7834 acl_shlibext="$acl_cv_shlibext"
7835 acl_libname_spec="$acl_cv_libname_spec"
7836 acl_library_names_spec="$acl_cv_library_names_spec"
7837 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7838 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7839 acl_hardcode_direct="$acl_cv_hardcode_direct"
7840 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7841 # Check whether --enable-rpath was given.
7842 if test "${enable_rpath+set}" = set; then :
7843 enableval=$enable_rpath; :
7844 else
7845 enable_rpath=yes
7846 fi
7847
7848
7849
7850
7851 acl_libdirstem=lib
7852 acl_libdirstem2=
7853 case "$host_os" in
7854 solaris*)
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7856 $as_echo_n "checking for 64-bit host... " >&6; }
7857 if ${gl_cv_solaris_64bit+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862
7863 #ifdef _LP64
7864 sixtyfour bits
7865 #endif
7866
7867 _ACEOF
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7870 gl_cv_solaris_64bit=yes
7871 else
7872 gl_cv_solaris_64bit=no
7873 fi
7874 rm -f conftest*
7875
7876
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7879 $as_echo "$gl_cv_solaris_64bit" >&6; }
7880 if test $gl_cv_solaris_64bit = yes; then
7881 acl_libdirstem=lib/64
7882 case "$host_cpu" in
7883 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7884 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7885 esac
7886 fi
7887 ;;
7888 *)
7889 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7890 if test -n "$searchpath"; then
7891 acl_save_IFS="${IFS= }"; IFS=":"
7892 for searchdir in $searchpath; do
7893 if test -d "$searchdir"; then
7894 case "$searchdir" in
7895 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7896 */../ | */.. )
7897 # Better ignore directories of this form. They are misleading.
7898 ;;
7899 *) searchdir=`cd "$searchdir" && pwd`
7900 case "$searchdir" in
7901 */lib64 ) acl_libdirstem=lib64 ;;
7902 esac ;;
7903 esac
7904 fi
7905 done
7906 IFS="$acl_save_IFS"
7907 fi
7908 ;;
7909 esac
7910 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7911
7912
7913
7914 gl_threads_api=none
7915 LIBTHREAD=
7916 LTLIBTHREAD=
7917 LIBMULTITHREAD=
7918 LTLIBMULTITHREAD=
7919 if test "$gl_use_threads" != no; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7921 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7922 if ${gl_cv_have_weak+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 gl_cv_have_weak=no
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 extern void xyzzy ();
7929 #pragma weak xyzzy
7930 int
7931 main ()
7932 {
7933 xyzzy();
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"; then :
7939 gl_cv_have_weak=maybe
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 if test $gl_cv_have_weak = maybe; then
7944 if test "$cross_compiling" = yes; then :
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #ifdef __ELF__
7948 Extensible Linking Format
7949 #endif
7950
7951 _ACEOF
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7954 gl_cv_have_weak="guessing yes"
7955 else
7956 gl_cv_have_weak="guessing no"
7957 fi
7958 rm -f conftest*
7959
7960
7961 else
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964
7965 #include <stdio.h>
7966 #pragma weak fputs
7967 int main ()
7968 {
7969 return (fputs == NULL);
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_run "$LINENO"; then :
7973 gl_cv_have_weak=yes
7974 else
7975 gl_cv_have_weak=no
7976 fi
7977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978 conftest.$ac_objext conftest.beam conftest.$ac_ext
7979 fi
7980
7981 fi
7982
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7985 $as_echo "$gl_cv_have_weak" >&6; }
7986 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7987 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7988 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7989 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7990 if test "x$ac_cv_header_pthread_h" = xyes; then :
7991 gl_have_pthread_h=yes
7992 else
7993 gl_have_pthread_h=no
7994 fi
7995
7996
7997 if test "$gl_have_pthread_h" = yes; then
7998 # Other possible tests:
7999 # -lpthreads (FSU threads, PCthreads)
8000 # -lgthreads
8001 gl_have_pthread=
8002 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8003 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8004 # the second one only in libpthread, and lock.c needs it.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <pthread.h>
8008 int
8009 main ()
8010 {
8011 pthread_mutex_lock((pthread_mutex_t*)0);
8012 pthread_mutexattr_init((pthread_mutexattr_t*)0);
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 gl_have_pthread=yes
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8023 # since it is defined as a macro on OSF/1.)
8024 if test -n "$gl_have_pthread"; then
8025 # The program links fine without libpthread. But it may actually
8026 # need to link with libpthread in order to create multiple threads.
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8028 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8029 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-lpthread $LIBS"
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036
8037 /* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8040 #ifdef __cplusplus
8041 extern "C"
8042 #endif
8043 char pthread_kill ();
8044 int
8045 main ()
8046 {
8047 return pthread_kill ();
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_link "$LINENO"; then :
8053 ac_cv_lib_pthread_pthread_kill=yes
8054 else
8055 ac_cv_lib_pthread_pthread_kill=no
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8062 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8063 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8064 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8065 # On Solaris and HP-UX, most pthread functions exist also in libc.
8066 # Therefore pthread_in_use() needs to actually try to create a
8067 # thread: pthread_create from libc will fail, whereas
8068 # pthread_create will actually create a thread.
8069 case "$host_os" in
8070 solaris* | hpux*)
8071
8072 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8073
8074 esac
8075
8076 fi
8077
8078 else
8079 # Some library is needed. Try libpthread and libc_r.
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8081 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8082 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-lpthread $LIBS"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8093 #ifdef __cplusplus
8094 extern "C"
8095 #endif
8096 char pthread_kill ();
8097 int
8098 main ()
8099 {
8100 return pthread_kill ();
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 ac_cv_lib_pthread_pthread_kill=yes
8107 else
8108 ac_cv_lib_pthread_pthread_kill=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8115 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8116 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8117 gl_have_pthread=yes
8118 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8119 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8120 fi
8121
8122 if test -z "$gl_have_pthread"; then
8123 # For FreeBSD 4.
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8125 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8126 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lc_r $LIBS"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133
8134 /* Override any GCC internal prototype to avoid an error.
8135 Use char because int might match the return type of a GCC
8136 builtin and then its argument prototype would still apply. */
8137 #ifdef __cplusplus
8138 extern "C"
8139 #endif
8140 char pthread_kill ();
8141 int
8142 main ()
8143 {
8144 return pthread_kill ();
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"; then :
8150 ac_cv_lib_c_r_pthread_kill=yes
8151 else
8152 ac_cv_lib_c_r_pthread_kill=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156 LIBS=$ac_check_lib_save_LIBS
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8159 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8160 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8161 gl_have_pthread=yes
8162 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8163 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8164 fi
8165
8166 fi
8167 fi
8168 if test -n "$gl_have_pthread"; then
8169 gl_threads_api=posix
8170
8171 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8172
8173 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8174 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8175
8176 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8177
8178 LIBTHREAD=
8179 LTLIBTHREAD=
8180 fi
8181 fi
8182 fi
8183 fi
8184 fi
8185 if test -z "$gl_have_pthread"; then
8186 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8187 gl_have_solaristhread=
8188 gl_save_LIBS="$LIBS"
8189 LIBS="$LIBS -lthread"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192
8193 #include <thread.h>
8194 #include <synch.h>
8195
8196 int
8197 main ()
8198 {
8199 thr_self();
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_link "$LINENO"; then :
8205 gl_have_solaristhread=yes
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LIBS="$gl_save_LIBS"
8210 if test -n "$gl_have_solaristhread"; then
8211 gl_threads_api=solaris
8212 LIBTHREAD=-lthread
8213 LTLIBTHREAD=-lthread
8214 LIBMULTITHREAD="$LIBTHREAD"
8215 LTLIBMULTITHREAD="$LTLIBTHREAD"
8216
8217 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8218
8219 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8220
8221 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8222
8223 LIBTHREAD=
8224 LTLIBTHREAD=
8225 fi
8226 fi
8227 fi
8228 fi
8229 if test "$gl_use_threads" = pth; then
8230 gl_save_CPPFLAGS="$CPPFLAGS"
8231
8232
8233
8234
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8237 $as_echo_n "checking how to link with libpth... " >&6; }
8238 if ${ac_cv_libpth_libs+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241
8242
8243
8244
8245
8246
8247
8248
8249 use_additional=yes
8250
8251 acl_save_prefix="$prefix"
8252 prefix="$acl_final_prefix"
8253 acl_save_exec_prefix="$exec_prefix"
8254 exec_prefix="$acl_final_exec_prefix"
8255
8256 eval additional_includedir=\"$includedir\"
8257 eval additional_libdir=\"$libdir\"
8258
8259 exec_prefix="$acl_save_exec_prefix"
8260 prefix="$acl_save_prefix"
8261
8262
8263 # Check whether --with-libpth-prefix was given.
8264 if test "${with_libpth_prefix+set}" = set; then :
8265 withval=$with_libpth_prefix;
8266 if test "X$withval" = "Xno"; then
8267 use_additional=no
8268 else
8269 if test "X$withval" = "X"; then
8270
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8275
8276 eval additional_includedir=\"$includedir\"
8277 eval additional_libdir=\"$libdir\"
8278
8279 exec_prefix="$acl_save_exec_prefix"
8280 prefix="$acl_save_prefix"
8281
8282 else
8283 additional_includedir="$withval/include"
8284 additional_libdir="$withval/$acl_libdirstem"
8285 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8286 && ! test -d "$withval/$acl_libdirstem"; then
8287 additional_libdir="$withval/$acl_libdirstem2"
8288 fi
8289 fi
8290 fi
8291
8292 fi
8293
8294 LIBPTH=
8295 LTLIBPTH=
8296 INCPTH=
8297 LIBPTH_PREFIX=
8298 HAVE_LIBPTH=
8299 rpathdirs=
8300 ltrpathdirs=
8301 names_already_handled=
8302 names_next_round='pth '
8303 while test -n "$names_next_round"; do
8304 names_this_round="$names_next_round"
8305 names_next_round=
8306 for name in $names_this_round; do
8307 already_handled=
8308 for n in $names_already_handled; do
8309 if test "$n" = "$name"; then
8310 already_handled=yes
8311 break
8312 fi
8313 done
8314 if test -z "$already_handled"; then
8315 names_already_handled="$names_already_handled $name"
8316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8317 eval value=\"\$HAVE_LIB$uppername\"
8318 if test -n "$value"; then
8319 if test "$value" = yes; then
8320 eval value=\"\$LIB$uppername\"
8321 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8322 eval value=\"\$LTLIB$uppername\"
8323 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8324 else
8325 :
8326 fi
8327 else
8328 found_dir=
8329 found_la=
8330 found_so=
8331 found_a=
8332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8333 if test -n "$acl_shlibext"; then
8334 shrext=".$acl_shlibext" # typically: shrext=.so
8335 else
8336 shrext=
8337 fi
8338 if test $use_additional = yes; then
8339 dir="$additional_libdir"
8340 if test -n "$acl_shlibext"; then
8341 if test -f "$dir/$libname$shrext"; then
8342 found_dir="$dir"
8343 found_so="$dir/$libname$shrext"
8344 else
8345 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8346 ver=`(cd "$dir" && \
8347 for f in "$libname$shrext".*; do echo "$f"; done \
8348 | sed -e "s,^$libname$shrext\\\\.,," \
8349 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8350 | sed 1q ) 2>/dev/null`
8351 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8352 found_dir="$dir"
8353 found_so="$dir/$libname$shrext.$ver"
8354 fi
8355 else
8356 eval library_names=\"$acl_library_names_spec\"
8357 for f in $library_names; do
8358 if test -f "$dir/$f"; then
8359 found_dir="$dir"
8360 found_so="$dir/$f"
8361 break
8362 fi
8363 done
8364 fi
8365 fi
8366 fi
8367 if test "X$found_dir" = "X"; then
8368 if test -f "$dir/$libname.$acl_libext"; then
8369 found_dir="$dir"
8370 found_a="$dir/$libname.$acl_libext"
8371 fi
8372 fi
8373 if test "X$found_dir" != "X"; then
8374 if test -f "$dir/$libname.la"; then
8375 found_la="$dir/$libname.la"
8376 fi
8377 fi
8378 fi
8379 if test "X$found_dir" = "X"; then
8380 for x in $LDFLAGS $LTLIBPTH; do
8381
8382 acl_save_prefix="$prefix"
8383 prefix="$acl_final_prefix"
8384 acl_save_exec_prefix="$exec_prefix"
8385 exec_prefix="$acl_final_exec_prefix"
8386 eval x=\"$x\"
8387 exec_prefix="$acl_save_exec_prefix"
8388 prefix="$acl_save_prefix"
8389
8390 case "$x" in
8391 -L*)
8392 dir=`echo "X$x" | sed -e 's/^X-L//'`
8393 if test -n "$acl_shlibext"; then
8394 if test -f "$dir/$libname$shrext"; then
8395 found_dir="$dir"
8396 found_so="$dir/$libname$shrext"
8397 else
8398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8399 ver=`(cd "$dir" && \
8400 for f in "$libname$shrext".*; do echo "$f"; done \
8401 | sed -e "s,^$libname$shrext\\\\.,," \
8402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8403 | sed 1q ) 2>/dev/null`
8404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8405 found_dir="$dir"
8406 found_so="$dir/$libname$shrext.$ver"
8407 fi
8408 else
8409 eval library_names=\"$acl_library_names_spec\"
8410 for f in $library_names; do
8411 if test -f "$dir/$f"; then
8412 found_dir="$dir"
8413 found_so="$dir/$f"
8414 break
8415 fi
8416 done
8417 fi
8418 fi
8419 fi
8420 if test "X$found_dir" = "X"; then
8421 if test -f "$dir/$libname.$acl_libext"; then
8422 found_dir="$dir"
8423 found_a="$dir/$libname.$acl_libext"
8424 fi
8425 fi
8426 if test "X$found_dir" != "X"; then
8427 if test -f "$dir/$libname.la"; then
8428 found_la="$dir/$libname.la"
8429 fi
8430 fi
8431 ;;
8432 esac
8433 if test "X$found_dir" != "X"; then
8434 break
8435 fi
8436 done
8437 fi
8438 if test "X$found_dir" != "X"; then
8439 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8440 if test "X$found_so" != "X"; then
8441 if test "$enable_rpath" = no \
8442 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8443 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8444 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8445 else
8446 haveit=
8447 for x in $ltrpathdirs; do
8448 if test "X$x" = "X$found_dir"; then
8449 haveit=yes
8450 break
8451 fi
8452 done
8453 if test -z "$haveit"; then
8454 ltrpathdirs="$ltrpathdirs $found_dir"
8455 fi
8456 if test "$acl_hardcode_direct" = yes; then
8457 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8458 else
8459 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8460 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8461 haveit=
8462 for x in $rpathdirs; do
8463 if test "X$x" = "X$found_dir"; then
8464 haveit=yes
8465 break
8466 fi
8467 done
8468 if test -z "$haveit"; then
8469 rpathdirs="$rpathdirs $found_dir"
8470 fi
8471 else
8472 haveit=
8473 for x in $LDFLAGS $LIBPTH; do
8474
8475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8479 eval x=\"$x\"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8482
8483 if test "X$x" = "X-L$found_dir"; then
8484 haveit=yes
8485 break
8486 fi
8487 done
8488 if test -z "$haveit"; then
8489 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8490 fi
8491 if test "$acl_hardcode_minus_L" != no; then
8492 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8493 else
8494 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8495 fi
8496 fi
8497 fi
8498 fi
8499 else
8500 if test "X$found_a" != "X"; then
8501 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8502 else
8503 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8504 fi
8505 fi
8506 additional_includedir=
8507 case "$found_dir" in
8508 */$acl_libdirstem | */$acl_libdirstem/)
8509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8510 if test "$name" = 'pth'; then
8511 LIBPTH_PREFIX="$basedir"
8512 fi
8513 additional_includedir="$basedir/include"
8514 ;;
8515 */$acl_libdirstem2 | */$acl_libdirstem2/)
8516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8517 if test "$name" = 'pth'; then
8518 LIBPTH_PREFIX="$basedir"
8519 fi
8520 additional_includedir="$basedir/include"
8521 ;;
8522 esac
8523 if test "X$additional_includedir" != "X"; then
8524 if test "X$additional_includedir" != "X/usr/include"; then
8525 haveit=
8526 if test "X$additional_includedir" = "X/usr/local/include"; then
8527 if test -n "$GCC"; then
8528 case $host_os in
8529 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8530 esac
8531 fi
8532 fi
8533 if test -z "$haveit"; then
8534 for x in $CPPFLAGS $INCPTH; do
8535
8536 acl_save_prefix="$prefix"
8537 prefix="$acl_final_prefix"
8538 acl_save_exec_prefix="$exec_prefix"
8539 exec_prefix="$acl_final_exec_prefix"
8540 eval x=\"$x\"
8541 exec_prefix="$acl_save_exec_prefix"
8542 prefix="$acl_save_prefix"
8543
8544 if test "X$x" = "X-I$additional_includedir"; then
8545 haveit=yes
8546 break
8547 fi
8548 done
8549 if test -z "$haveit"; then
8550 if test -d "$additional_includedir"; then
8551 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8552 fi
8553 fi
8554 fi
8555 fi
8556 fi
8557 if test -n "$found_la"; then
8558 save_libdir="$libdir"
8559 case "$found_la" in
8560 */* | *\\*) . "$found_la" ;;
8561 *) . "./$found_la" ;;
8562 esac
8563 libdir="$save_libdir"
8564 for dep in $dependency_libs; do
8565 case "$dep" in
8566 -L*)
8567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8568 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8569 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8570 haveit=
8571 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8572 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8573 if test -n "$GCC"; then
8574 case $host_os in
8575 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8576 esac
8577 fi
8578 fi
8579 if test -z "$haveit"; then
8580 haveit=
8581 for x in $LDFLAGS $LIBPTH; do
8582
8583 acl_save_prefix="$prefix"
8584 prefix="$acl_final_prefix"
8585 acl_save_exec_prefix="$exec_prefix"
8586 exec_prefix="$acl_final_exec_prefix"
8587 eval x=\"$x\"
8588 exec_prefix="$acl_save_exec_prefix"
8589 prefix="$acl_save_prefix"
8590
8591 if test "X$x" = "X-L$additional_libdir"; then
8592 haveit=yes
8593 break
8594 fi
8595 done
8596 if test -z "$haveit"; then
8597 if test -d "$additional_libdir"; then
8598 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8599 fi
8600 fi
8601 haveit=
8602 for x in $LDFLAGS $LTLIBPTH; do
8603
8604 acl_save_prefix="$prefix"
8605 prefix="$acl_final_prefix"
8606 acl_save_exec_prefix="$exec_prefix"
8607 exec_prefix="$acl_final_exec_prefix"
8608 eval x=\"$x\"
8609 exec_prefix="$acl_save_exec_prefix"
8610 prefix="$acl_save_prefix"
8611
8612 if test "X$x" = "X-L$additional_libdir"; then
8613 haveit=yes
8614 break
8615 fi
8616 done
8617 if test -z "$haveit"; then
8618 if test -d "$additional_libdir"; then
8619 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8620 fi
8621 fi
8622 fi
8623 fi
8624 ;;
8625 -R*)
8626 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8627 if test "$enable_rpath" != no; then
8628 haveit=
8629 for x in $rpathdirs; do
8630 if test "X$x" = "X$dir"; then
8631 haveit=yes
8632 break
8633 fi
8634 done
8635 if test -z "$haveit"; then
8636 rpathdirs="$rpathdirs $dir"
8637 fi
8638 haveit=
8639 for x in $ltrpathdirs; do
8640 if test "X$x" = "X$dir"; then
8641 haveit=yes
8642 break
8643 fi
8644 done
8645 if test -z "$haveit"; then
8646 ltrpathdirs="$ltrpathdirs $dir"
8647 fi
8648 fi
8649 ;;
8650 -l*)
8651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8652 ;;
8653 *.la)
8654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8655 ;;
8656 *)
8657 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8658 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8659 ;;
8660 esac
8661 done
8662 fi
8663 else
8664 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8665 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8666 fi
8667 fi
8668 fi
8669 done
8670 done
8671 if test "X$rpathdirs" != "X"; then
8672 if test -n "$acl_hardcode_libdir_separator"; then
8673 alldirs=
8674 for found_dir in $rpathdirs; do
8675 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8676 done
8677 acl_save_libdir="$libdir"
8678 libdir="$alldirs"
8679 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8680 libdir="$acl_save_libdir"
8681 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8682 else
8683 for found_dir in $rpathdirs; do
8684 acl_save_libdir="$libdir"
8685 libdir="$found_dir"
8686 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8687 libdir="$acl_save_libdir"
8688 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8689 done
8690 fi
8691 fi
8692 if test "X$ltrpathdirs" != "X"; then
8693 for found_dir in $ltrpathdirs; do
8694 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8695 done
8696 fi
8697
8698
8699
8700
8701
8702
8703 ac_cv_libpth_libs="$LIBPTH"
8704 ac_cv_libpth_ltlibs="$LTLIBPTH"
8705 ac_cv_libpth_cppflags="$INCPTH"
8706 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8710 $as_echo "$ac_cv_libpth_libs" >&6; }
8711 LIBPTH="$ac_cv_libpth_libs"
8712 LTLIBPTH="$ac_cv_libpth_ltlibs"
8713 INCPTH="$ac_cv_libpth_cppflags"
8714 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8715
8716 for element in $INCPTH; do
8717 haveit=
8718 for x in $CPPFLAGS; do
8719
8720 acl_save_prefix="$prefix"
8721 prefix="$acl_final_prefix"
8722 acl_save_exec_prefix="$exec_prefix"
8723 exec_prefix="$acl_final_exec_prefix"
8724 eval x=\"$x\"
8725 exec_prefix="$acl_save_exec_prefix"
8726 prefix="$acl_save_prefix"
8727
8728 if test "X$x" = "X$element"; then
8729 haveit=yes
8730 break
8731 fi
8732 done
8733 if test -z "$haveit"; then
8734 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8735 fi
8736 done
8737
8738
8739
8740
8741 HAVE_LIBPTH=yes
8742
8743
8744
8745 gl_have_pth=
8746 gl_save_LIBS="$LIBS"
8747 LIBS="$LIBS $LIBPTH"
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 #include <pth.h>
8751 int
8752 main ()
8753 {
8754 pth_self();
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 gl_have_pth=yes
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LIBS="$gl_save_LIBS"
8765 if test -n "$gl_have_pth"; then
8766 gl_threads_api=pth
8767 LIBTHREAD="$LIBPTH"
8768 LTLIBTHREAD="$LTLIBPTH"
8769 LIBMULTITHREAD="$LIBTHREAD"
8770 LTLIBMULTITHREAD="$LTLIBTHREAD"
8771
8772 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8773
8774 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8775 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8776
8777 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8778
8779 LIBTHREAD=
8780 LTLIBTHREAD=
8781 fi
8782 fi
8783 else
8784 CPPFLAGS="$gl_save_CPPFLAGS"
8785 fi
8786 fi
8787 if test -z "$gl_have_pthread"; then
8788 case "$gl_use_threads" in
8789 yes | windows | win32) # The 'win32' is for backward compatibility.
8790 if { case "$host_os" in
8791 mingw*) true;;
8792 *) false;;
8793 esac
8794 }; then
8795 gl_threads_api=windows
8796
8797 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8798
8799 fi
8800 ;;
8801 esac
8802 fi
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8805 $as_echo_n "checking for multithread API to use... " >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8807 $as_echo "$gl_threads_api" >&6; }
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 if test "$gl_threads_api" = posix; then
8820 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8821 # pthread_rwlock_* functions.
8822 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8823 "
8824 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8825
8826 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8827
8828 fi
8829
8830 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833
8834 #include <pthread.h>
8835 int
8836 main ()
8837 {
8838
8839 #if __FreeBSD__ == 4
8840 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8841 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8842 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8843 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8844 #else
8845 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8846 return !x;
8847 #endif
8848
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"; then :
8854
8855 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8856
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 :
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 use_additional=yes
8874
8875 acl_save_prefix="$prefix"
8876 prefix="$acl_final_prefix"
8877 acl_save_exec_prefix="$exec_prefix"
8878 exec_prefix="$acl_final_exec_prefix"
8879
8880 eval additional_includedir=\"$includedir\"
8881 eval additional_libdir=\"$libdir\"
8882
8883 exec_prefix="$acl_save_exec_prefix"
8884 prefix="$acl_save_prefix"
8885
8886
8887 # Check whether --with-libiconv-prefix was given.
8888 if test "${with_libiconv_prefix+set}" = set; then :
8889 withval=$with_libiconv_prefix;
8890 if test "X$withval" = "Xno"; then
8891 use_additional=no
8892 else
8893 if test "X$withval" = "X"; then
8894
8895 acl_save_prefix="$prefix"
8896 prefix="$acl_final_prefix"
8897 acl_save_exec_prefix="$exec_prefix"
8898 exec_prefix="$acl_final_exec_prefix"
8899
8900 eval additional_includedir=\"$includedir\"
8901 eval additional_libdir=\"$libdir\"
8902
8903 exec_prefix="$acl_save_exec_prefix"
8904 prefix="$acl_save_prefix"
8905
8906 else
8907 additional_includedir="$withval/include"
8908 additional_libdir="$withval/$acl_libdirstem"
8909 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8910 && ! test -d "$withval/$acl_libdirstem"; then
8911 additional_libdir="$withval/$acl_libdirstem2"
8912 fi
8913 fi
8914 fi
8915
8916 fi
8917
8918 LIBICONV=
8919 LTLIBICONV=
8920 INCICONV=
8921 LIBICONV_PREFIX=
8922 HAVE_LIBICONV=
8923 rpathdirs=
8924 ltrpathdirs=
8925 names_already_handled=
8926 names_next_round='iconv '
8927 while test -n "$names_next_round"; do
8928 names_this_round="$names_next_round"
8929 names_next_round=
8930 for name in $names_this_round; do
8931 already_handled=
8932 for n in $names_already_handled; do
8933 if test "$n" = "$name"; then
8934 already_handled=yes
8935 break
8936 fi
8937 done
8938 if test -z "$already_handled"; then
8939 names_already_handled="$names_already_handled $name"
8940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8941 eval value=\"\$HAVE_LIB$uppername\"
8942 if test -n "$value"; then
8943 if test "$value" = yes; then
8944 eval value=\"\$LIB$uppername\"
8945 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8946 eval value=\"\$LTLIB$uppername\"
8947 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8948 else
8949 :
8950 fi
8951 else
8952 found_dir=
8953 found_la=
8954 found_so=
8955 found_a=
8956 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8957 if test -n "$acl_shlibext"; then
8958 shrext=".$acl_shlibext" # typically: shrext=.so
8959 else
8960 shrext=
8961 fi
8962 if test $use_additional = yes; then
8963 dir="$additional_libdir"
8964 if test -n "$acl_shlibext"; then
8965 if test -f "$dir/$libname$shrext"; then
8966 found_dir="$dir"
8967 found_so="$dir/$libname$shrext"
8968 else
8969 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8970 ver=`(cd "$dir" && \
8971 for f in "$libname$shrext".*; do echo "$f"; done \
8972 | sed -e "s,^$libname$shrext\\\\.,," \
8973 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8974 | sed 1q ) 2>/dev/null`
8975 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8976 found_dir="$dir"
8977 found_so="$dir/$libname$shrext.$ver"
8978 fi
8979 else
8980 eval library_names=\"$acl_library_names_spec\"
8981 for f in $library_names; do
8982 if test -f "$dir/$f"; then
8983 found_dir="$dir"
8984 found_so="$dir/$f"
8985 break
8986 fi
8987 done
8988 fi
8989 fi
8990 fi
8991 if test "X$found_dir" = "X"; then
8992 if test -f "$dir/$libname.$acl_libext"; then
8993 found_dir="$dir"
8994 found_a="$dir/$libname.$acl_libext"
8995 fi
8996 fi
8997 if test "X$found_dir" != "X"; then
8998 if test -f "$dir/$libname.la"; then
8999 found_la="$dir/$libname.la"
9000 fi
9001 fi
9002 fi
9003 if test "X$found_dir" = "X"; then
9004 for x in $LDFLAGS $LTLIBICONV; do
9005
9006 acl_save_prefix="$prefix"
9007 prefix="$acl_final_prefix"
9008 acl_save_exec_prefix="$exec_prefix"
9009 exec_prefix="$acl_final_exec_prefix"
9010 eval x=\"$x\"
9011 exec_prefix="$acl_save_exec_prefix"
9012 prefix="$acl_save_prefix"
9013
9014 case "$x" in
9015 -L*)
9016 dir=`echo "X$x" | sed -e 's/^X-L//'`
9017 if test -n "$acl_shlibext"; then
9018 if test -f "$dir/$libname$shrext"; then
9019 found_dir="$dir"
9020 found_so="$dir/$libname$shrext"
9021 else
9022 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9023 ver=`(cd "$dir" && \
9024 for f in "$libname$shrext".*; do echo "$f"; done \
9025 | sed -e "s,^$libname$shrext\\\\.,," \
9026 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9027 | sed 1q ) 2>/dev/null`
9028 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9029 found_dir="$dir"
9030 found_so="$dir/$libname$shrext.$ver"
9031 fi
9032 else
9033 eval library_names=\"$acl_library_names_spec\"
9034 for f in $library_names; do
9035 if test -f "$dir/$f"; then
9036 found_dir="$dir"
9037 found_so="$dir/$f"
9038 break
9039 fi
9040 done
9041 fi
9042 fi
9043 fi
9044 if test "X$found_dir" = "X"; then
9045 if test -f "$dir/$libname.$acl_libext"; then
9046 found_dir="$dir"
9047 found_a="$dir/$libname.$acl_libext"
9048 fi
9049 fi
9050 if test "X$found_dir" != "X"; then
9051 if test -f "$dir/$libname.la"; then
9052 found_la="$dir/$libname.la"
9053 fi
9054 fi
9055 ;;
9056 esac
9057 if test "X$found_dir" != "X"; then
9058 break
9059 fi
9060 done
9061 fi
9062 if test "X$found_dir" != "X"; then
9063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9064 if test "X$found_so" != "X"; then
9065 if test "$enable_rpath" = no \
9066 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9067 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9069 else
9070 haveit=
9071 for x in $ltrpathdirs; do
9072 if test "X$x" = "X$found_dir"; then
9073 haveit=yes
9074 break
9075 fi
9076 done
9077 if test -z "$haveit"; then
9078 ltrpathdirs="$ltrpathdirs $found_dir"
9079 fi
9080 if test "$acl_hardcode_direct" = yes; then
9081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9082 else
9083 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9085 haveit=
9086 for x in $rpathdirs; do
9087 if test "X$x" = "X$found_dir"; then
9088 haveit=yes
9089 break
9090 fi
9091 done
9092 if test -z "$haveit"; then
9093 rpathdirs="$rpathdirs $found_dir"
9094 fi
9095 else
9096 haveit=
9097 for x in $LDFLAGS $LIBICONV; do
9098
9099 acl_save_prefix="$prefix"
9100 prefix="$acl_final_prefix"
9101 acl_save_exec_prefix="$exec_prefix"
9102 exec_prefix="$acl_final_exec_prefix"
9103 eval x=\"$x\"
9104 exec_prefix="$acl_save_exec_prefix"
9105 prefix="$acl_save_prefix"
9106
9107 if test "X$x" = "X-L$found_dir"; then
9108 haveit=yes
9109 break
9110 fi
9111 done
9112 if test -z "$haveit"; then
9113 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9114 fi
9115 if test "$acl_hardcode_minus_L" != no; then
9116 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9117 else
9118 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9119 fi
9120 fi
9121 fi
9122 fi
9123 else
9124 if test "X$found_a" != "X"; then
9125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9126 else
9127 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9128 fi
9129 fi
9130 additional_includedir=
9131 case "$found_dir" in
9132 */$acl_libdirstem | */$acl_libdirstem/)
9133 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9134 if test "$name" = 'iconv'; then
9135 LIBICONV_PREFIX="$basedir"
9136 fi
9137 additional_includedir="$basedir/include"
9138 ;;
9139 */$acl_libdirstem2 | */$acl_libdirstem2/)
9140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9141 if test "$name" = 'iconv'; then
9142 LIBICONV_PREFIX="$basedir"
9143 fi
9144 additional_includedir="$basedir/include"
9145 ;;
9146 esac
9147 if test "X$additional_includedir" != "X"; then
9148 if test "X$additional_includedir" != "X/usr/include"; then
9149 haveit=
9150 if test "X$additional_includedir" = "X/usr/local/include"; then
9151 if test -n "$GCC"; then
9152 case $host_os in
9153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9154 esac
9155 fi
9156 fi
9157 if test -z "$haveit"; then
9158 for x in $CPPFLAGS $INCICONV; do
9159
9160 acl_save_prefix="$prefix"
9161 prefix="$acl_final_prefix"
9162 acl_save_exec_prefix="$exec_prefix"
9163 exec_prefix="$acl_final_exec_prefix"
9164 eval x=\"$x\"
9165 exec_prefix="$acl_save_exec_prefix"
9166 prefix="$acl_save_prefix"
9167
9168 if test "X$x" = "X-I$additional_includedir"; then
9169 haveit=yes
9170 break
9171 fi
9172 done
9173 if test -z "$haveit"; then
9174 if test -d "$additional_includedir"; then
9175 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9176 fi
9177 fi
9178 fi
9179 fi
9180 fi
9181 if test -n "$found_la"; then
9182 save_libdir="$libdir"
9183 case "$found_la" in
9184 */* | *\\*) . "$found_la" ;;
9185 *) . "./$found_la" ;;
9186 esac
9187 libdir="$save_libdir"
9188 for dep in $dependency_libs; do
9189 case "$dep" in
9190 -L*)
9191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9192 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9193 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9194 haveit=
9195 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9196 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9197 if test -n "$GCC"; then
9198 case $host_os in
9199 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9200 esac
9201 fi
9202 fi
9203 if test -z "$haveit"; then
9204 haveit=
9205 for x in $LDFLAGS $LIBICONV; do
9206
9207 acl_save_prefix="$prefix"
9208 prefix="$acl_final_prefix"
9209 acl_save_exec_prefix="$exec_prefix"
9210 exec_prefix="$acl_final_exec_prefix"
9211 eval x=\"$x\"
9212 exec_prefix="$acl_save_exec_prefix"
9213 prefix="$acl_save_prefix"
9214
9215 if test "X$x" = "X-L$additional_libdir"; then
9216 haveit=yes
9217 break
9218 fi
9219 done
9220 if test -z "$haveit"; then
9221 if test -d "$additional_libdir"; then
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9223 fi
9224 fi
9225 haveit=
9226 for x in $LDFLAGS $LTLIBICONV; do
9227
9228 acl_save_prefix="$prefix"
9229 prefix="$acl_final_prefix"
9230 acl_save_exec_prefix="$exec_prefix"
9231 exec_prefix="$acl_final_exec_prefix"
9232 eval x=\"$x\"
9233 exec_prefix="$acl_save_exec_prefix"
9234 prefix="$acl_save_prefix"
9235
9236 if test "X$x" = "X-L$additional_libdir"; then
9237 haveit=yes
9238 break
9239 fi
9240 done
9241 if test -z "$haveit"; then
9242 if test -d "$additional_libdir"; then
9243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9244 fi
9245 fi
9246 fi
9247 fi
9248 ;;
9249 -R*)
9250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9251 if test "$enable_rpath" != no; then
9252 haveit=
9253 for x in $rpathdirs; do
9254 if test "X$x" = "X$dir"; then
9255 haveit=yes
9256 break
9257 fi
9258 done
9259 if test -z "$haveit"; then
9260 rpathdirs="$rpathdirs $dir"
9261 fi
9262 haveit=
9263 for x in $ltrpathdirs; do
9264 if test "X$x" = "X$dir"; then
9265 haveit=yes
9266 break
9267 fi
9268 done
9269 if test -z "$haveit"; then
9270 ltrpathdirs="$ltrpathdirs $dir"
9271 fi
9272 fi
9273 ;;
9274 -l*)
9275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9276 ;;
9277 *.la)
9278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9279 ;;
9280 *)
9281 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9283 ;;
9284 esac
9285 done
9286 fi
9287 else
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9290 fi
9291 fi
9292 fi
9293 done
9294 done
9295 if test "X$rpathdirs" != "X"; then
9296 if test -n "$acl_hardcode_libdir_separator"; then
9297 alldirs=
9298 for found_dir in $rpathdirs; do
9299 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9300 done
9301 acl_save_libdir="$libdir"
9302 libdir="$alldirs"
9303 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9304 libdir="$acl_save_libdir"
9305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9306 else
9307 for found_dir in $rpathdirs; do
9308 acl_save_libdir="$libdir"
9309 libdir="$found_dir"
9310 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9311 libdir="$acl_save_libdir"
9312 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9313 done
9314 fi
9315 fi
9316 if test "X$ltrpathdirs" != "X"; then
9317 for found_dir in $ltrpathdirs; do
9318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9319 done
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 am_save_CPPFLAGS="$CPPFLAGS"
9334
9335 for element in $INCICONV; do
9336 haveit=
9337 for x in $CPPFLAGS; do
9338
9339 acl_save_prefix="$prefix"
9340 prefix="$acl_final_prefix"
9341 acl_save_exec_prefix="$exec_prefix"
9342 exec_prefix="$acl_final_exec_prefix"
9343 eval x=\"$x\"
9344 exec_prefix="$acl_save_exec_prefix"
9345 prefix="$acl_save_prefix"
9346
9347 if test "X$x" = "X$element"; then
9348 haveit=yes
9349 break
9350 fi
9351 done
9352 if test -z "$haveit"; then
9353 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9354 fi
9355 done
9356
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9359 $as_echo_n "checking for iconv... " >&6; }
9360 if ${am_cv_func_iconv+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363
9364 am_cv_func_iconv="no, consider installing GNU libiconv"
9365 am_cv_lib_iconv=no
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368
9369 #include <stdlib.h>
9370 #include <iconv.h>
9371
9372 int
9373 main ()
9374 {
9375 iconv_t cd = iconv_open("","");
9376 iconv(cd,NULL,NULL,NULL,NULL);
9377 iconv_close(cd);
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 am_cv_func_iconv=yes
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test "$am_cv_func_iconv" != yes; then
9388 am_save_LIBS="$LIBS"
9389 LIBS="$LIBS $LIBICONV"
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392
9393 #include <stdlib.h>
9394 #include <iconv.h>
9395
9396 int
9397 main ()
9398 {
9399 iconv_t cd = iconv_open("","");
9400 iconv(cd,NULL,NULL,NULL,NULL);
9401 iconv_close(cd);
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 am_cv_lib_iconv=yes
9408 am_cv_func_iconv=yes
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS="$am_save_LIBS"
9413 fi
9414
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9417 $as_echo "$am_cv_func_iconv" >&6; }
9418 if test "$am_cv_func_iconv" = yes; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9420 $as_echo_n "checking for working iconv... " >&6; }
9421 if ${am_cv_func_iconv_works+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424
9425 am_save_LIBS="$LIBS"
9426 if test $am_cv_lib_iconv = yes; then
9427 LIBS="$LIBS $LIBICONV"
9428 fi
9429 if test "$cross_compiling" = yes; then :
9430
9431 case "$host_os" in
9432 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9433 *) am_cv_func_iconv_works="guessing yes" ;;
9434 esac
9435
9436 else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439
9440 #include <iconv.h>
9441 #include <string.h>
9442 int main ()
9443 {
9444 int result = 0;
9445 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9446 returns. */
9447 {
9448 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9449 if (cd_utf8_to_88591 != (iconv_t)(-1))
9450 {
9451 static const char input[] = "\342\202\254"; /* EURO SIGN */
9452 char buf[10];
9453 const char *inptr = input;
9454 size_t inbytesleft = strlen (input);
9455 char *outptr = buf;
9456 size_t outbytesleft = sizeof (buf);
9457 size_t res = iconv (cd_utf8_to_88591,
9458 (char **) &inptr, &inbytesleft,
9459 &outptr, &outbytesleft);
9460 if (res == 0)
9461 result |= 1;
9462 iconv_close (cd_utf8_to_88591);
9463 }
9464 }
9465 /* Test against Solaris 10 bug: Failures are not distinguishable from
9466 successful returns. */
9467 {
9468 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9469 if (cd_ascii_to_88591 != (iconv_t)(-1))
9470 {
9471 static const char input[] = "\263";
9472 char buf[10];
9473 const char *inptr = input;
9474 size_t inbytesleft = strlen (input);
9475 char *outptr = buf;
9476 size_t outbytesleft = sizeof (buf);
9477 size_t res = iconv (cd_ascii_to_88591,
9478 (char **) &inptr, &inbytesleft,
9479 &outptr, &outbytesleft);
9480 if (res == 0)
9481 result |= 2;
9482 iconv_close (cd_ascii_to_88591);
9483 }
9484 }
9485 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9486 {
9487 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9488 if (cd_88591_to_utf8 != (iconv_t)(-1))
9489 {
9490 static const char input[] = "\304";
9491 static char buf[2] = { (char)0xDE, (char)0xAD };
9492 const char *inptr = input;
9493 size_t inbytesleft = 1;
9494 char *outptr = buf;
9495 size_t outbytesleft = 1;
9496 size_t res = iconv (cd_88591_to_utf8,
9497 (char **) &inptr, &inbytesleft,
9498 &outptr, &outbytesleft);
9499 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9500 result |= 4;
9501 iconv_close (cd_88591_to_utf8);
9502 }
9503 }
9504 #if 0 /* This bug could be worked around by the caller. */
9505 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9506 {
9507 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9508 if (cd_88591_to_utf8 != (iconv_t)(-1))
9509 {
9510 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9511 char buf[50];
9512 const char *inptr = input;
9513 size_t inbytesleft = strlen (input);
9514 char *outptr = buf;
9515 size_t outbytesleft = sizeof (buf);
9516 size_t res = iconv (cd_88591_to_utf8,
9517 (char **) &inptr, &inbytesleft,
9518 &outptr, &outbytesleft);
9519 if ((int)res > 0)
9520 result |= 8;
9521 iconv_close (cd_88591_to_utf8);
9522 }
9523 }
9524 #endif
9525 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9526 provided. */
9527 if (/* Try standardized names. */
9528 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9529 /* Try IRIX, OSF/1 names. */
9530 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9531 /* Try AIX names. */
9532 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9533 /* Try HP-UX names. */
9534 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9535 result |= 16;
9536 return result;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_run "$LINENO"; then :
9540 am_cv_func_iconv_works=yes
9541 else
9542 am_cv_func_iconv_works=no
9543 fi
9544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545 conftest.$ac_objext conftest.beam conftest.$ac_ext
9546 fi
9547
9548 LIBS="$am_save_LIBS"
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9552 $as_echo "$am_cv_func_iconv_works" >&6; }
9553 case "$am_cv_func_iconv_works" in
9554 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9555 *) am_func_iconv=yes ;;
9556 esac
9557 else
9558 am_func_iconv=no am_cv_lib_iconv=no
9559 fi
9560 if test "$am_func_iconv" = yes; then
9561
9562 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9563
9564 fi
9565 if test "$am_cv_lib_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9567 $as_echo_n "checking how to link with libiconv... " >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9569 $as_echo "$LIBICONV" >&6; }
9570 else
9571 CPPFLAGS="$am_save_CPPFLAGS"
9572 LIBICONV=
9573 LTLIBICONV=
9574 fi
9575
9576
9577
9578 if test "$am_cv_func_iconv" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9580 $as_echo_n "checking for iconv declaration... " >&6; }
9581 if ${am_cv_proto_iconv+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587
9588 #include <stdlib.h>
9589 #include <iconv.h>
9590 extern
9591 #ifdef __cplusplus
9592 "C"
9593 #endif
9594 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9595 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9596 #else
9597 size_t iconv();
9598 #endif
9599
9600 int
9601 main ()
9602 {
9603
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 am_cv_proto_iconv_arg1=""
9610 else
9611 am_cv_proto_iconv_arg1="const"
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9615 fi
9616
9617 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9619 $am_cv_proto_iconv" >&5
9620 $as_echo "
9621 $am_cv_proto_iconv" >&6; }
9622
9623 cat >>confdefs.h <<_ACEOF
9624 #define ICONV_CONST $am_cv_proto_iconv_arg1
9625 _ACEOF
9626
9627
9628 fi
9629
9630
9631
9632
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9636 int
9637 main ()
9638 {
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645
9646 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9647
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651
9652 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9653 do :
9654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9657 cat >>confdefs.h <<_ACEOF
9658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659 _ACEOF
9660
9661 fi
9662
9663 done
9664
9665 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9666 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9667 argz_stringify argz_next __fsetlocking
9668 do :
9669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9672 cat >>confdefs.h <<_ACEOF
9673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9674 _ACEOF
9675
9676 fi
9677 done
9678
9679
9680 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9681 "
9682 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9683 ac_have_decl=1
9684 else
9685 ac_have_decl=0
9686 fi
9687
9688 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9690 _ACEOF
9691 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9692 "
9693 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9694 ac_have_decl=1
9695 else
9696 ac_have_decl=0
9697 fi
9698
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9701 _ACEOF
9702
9703
9704
9705
9706 for ac_prog in bison
9707 do
9708 # Extract the first word of "$ac_prog", so it can be a program name with args.
9709 set dummy $ac_prog; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_prog_INTLBISON+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test -n "$INTLBISON"; then
9716 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725 ac_cv_prog_INTLBISON="$ac_prog"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9728 fi
9729 done
9730 done
9731 IFS=$as_save_IFS
9732
9733 fi
9734 fi
9735 INTLBISON=$ac_cv_prog_INTLBISON
9736 if test -n "$INTLBISON"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9738 $as_echo "$INTLBISON" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743
9744
9745 test -n "$INTLBISON" && break
9746 done
9747
9748 if test -z "$INTLBISON"; then
9749 ac_verc_fail=yes
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9752 $as_echo_n "checking version of bison... " >&6; }
9753 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9754 case $ac_prog_version in
9755 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9756 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9757 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9758 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9759 esac
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9761 $as_echo "$ac_prog_version" >&6; }
9762 fi
9763 if test $ac_verc_fail = yes; then
9764 INTLBISON=:
9765 fi
9766
9767
9768
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9770 $as_echo_n "checking for long long int... " >&6; }
9771 if ${ac_cv_type_long_long_int+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 ac_cv_type_long_long_int=yes
9775 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9776 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9777 if test $ac_cv_type_long_long_int = yes; then
9778 if test "$cross_compiling" = yes; then :
9779 :
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 #include <limits.h>
9784 #ifndef LLONG_MAX
9785 # define HALF \
9786 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9787 # define LLONG_MAX (HALF - 1 + HALF)
9788 #endif
9789 int
9790 main ()
9791 {
9792 long long int n = 1;
9793 int i;
9794 for (i = 0; ; i++)
9795 {
9796 long long int m = n << i;
9797 if (m >> i != n)
9798 return 1;
9799 if (LLONG_MAX / 2 < m)
9800 break;
9801 }
9802 return 0;
9803 ;
9804 return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_run "$LINENO"; then :
9808
9809 else
9810 ac_cv_type_long_long_int=no
9811 fi
9812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9813 conftest.$ac_objext conftest.beam conftest.$ac_ext
9814 fi
9815
9816 fi
9817 fi
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9820 $as_echo "$ac_cv_type_long_long_int" >&6; }
9821 if test $ac_cv_type_long_long_int = yes; then
9822
9823 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9824
9825 fi
9826
9827
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9829 $as_echo_n "checking for wchar_t... " >&6; }
9830 if ${gt_cv_c_wchar_t+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <stddef.h>
9836 wchar_t foo = (wchar_t)'\0';
9837 int
9838 main ()
9839 {
9840
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_compile "$LINENO"; then :
9846 gt_cv_c_wchar_t=yes
9847 else
9848 gt_cv_c_wchar_t=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9853 $as_echo "$gt_cv_c_wchar_t" >&6; }
9854 if test $gt_cv_c_wchar_t = yes; then
9855
9856 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9857
9858 fi
9859
9860
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9862 $as_echo_n "checking for wint_t... " >&6; }
9863 if ${gt_cv_c_wint_t+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868
9869 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9870 <wchar.h>.
9871 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9872 before <wchar.h>. */
9873 #include <stddef.h>
9874 #include <stdio.h>
9875 #include <time.h>
9876 #include <wchar.h>
9877 wint_t foo = (wchar_t)'\0';
9878 int
9879 main ()
9880 {
9881
9882 ;
9883 return 0;
9884 }
9885 _ACEOF
9886 if ac_fn_c_try_compile "$LINENO"; then :
9887 gt_cv_c_wint_t=yes
9888 else
9889 gt_cv_c_wint_t=no
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9894 $as_echo "$gt_cv_c_wint_t" >&6; }
9895 if test $gt_cv_c_wint_t = yes; then
9896
9897 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9898
9899 fi
9900
9901
9902
9903
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9905 $as_echo_n "checking for intmax_t... " >&6; }
9906 if ${gt_cv_c_intmax_t+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9911
9912 #include <stddef.h>
9913 #include <stdlib.h>
9914 #if HAVE_STDINT_H_WITH_UINTMAX
9915 #include <stdint.h>
9916 #endif
9917 #if HAVE_INTTYPES_H_WITH_UINTMAX
9918 #include <inttypes.h>
9919 #endif
9920
9921 int
9922 main ()
9923 {
9924 intmax_t x = -1;
9925 return !x;
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 gt_cv_c_intmax_t=yes
9932 else
9933 gt_cv_c_intmax_t=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9938 $as_echo "$gt_cv_c_intmax_t" >&6; }
9939 if test $gt_cv_c_intmax_t = yes; then
9940
9941 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9942
9943 fi
9944
9945
9946
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9948 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9949 if ${gt_cv_func_printf_posix+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952
9953 if test "$cross_compiling" = yes; then :
9954
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957
9958 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9959 notposix
9960 #endif
9961
9962 _ACEOF
9963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9964 $EGREP "notposix" >/dev/null 2>&1; then :
9965 gt_cv_func_printf_posix="guessing no"
9966 else
9967 gt_cv_func_printf_posix="guessing yes"
9968 fi
9969 rm -f conftest*
9970
9971
9972 else
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975
9976 #include <stdio.h>
9977 #include <string.h>
9978 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9979 dollar expansion (possibly an autoconf bug). */
9980 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9981 static char buf[100];
9982 int main ()
9983 {
9984 sprintf (buf, format, 33, 55);
9985 return (strcmp (buf, "55 33") != 0);
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_run "$LINENO"; then :
9989 gt_cv_func_printf_posix=yes
9990 else
9991 gt_cv_func_printf_posix=no
9992 fi
9993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9994 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 fi
9996
9997
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
10000 $as_echo "$gt_cv_func_printf_posix" >&6; }
10001 case $gt_cv_func_printf_posix in
10002 *yes)
10003
10004 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10005
10006 ;;
10007 esac
10008
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10011 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10012 if ${ac_cv_gnu_library_2_1+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017
10018 #include <features.h>
10019 #ifdef __GNU_LIBRARY__
10020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10021 Lucky GNU user
10022 #endif
10023 #endif
10024 #ifdef __UCLIBC__
10025 Lucky user
10026 #endif
10027
10028 _ACEOF
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "Lucky" >/dev/null 2>&1; then :
10031 ac_cv_gnu_library_2_1=yes
10032 else
10033 ac_cv_gnu_library_2_1=no
10034 fi
10035 rm -f conftest*
10036
10037
10038
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10041 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10042
10043 GLIBC21="$ac_cv_gnu_library_2_1"
10044
10045
10046
10047 for ac_header in stdint.h
10048 do :
10049 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10050 if test "x$ac_cv_header_stdint_h" = xyes; then :
10051 cat >>confdefs.h <<_ACEOF
10052 #define HAVE_STDINT_H 1
10053 _ACEOF
10054
10055 fi
10056
10057 done
10058
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10060 $as_echo_n "checking for SIZE_MAX... " >&6; }
10061 if ${gl_cv_size_max+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064
10065 gl_cv_size_max=
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068
10069 #include <limits.h>
10070 #if HAVE_STDINT_H
10071 #include <stdint.h>
10072 #endif
10073 #ifdef SIZE_MAX
10074 Found it
10075 #endif
10076
10077 _ACEOF
10078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10079 $EGREP "Found it" >/dev/null 2>&1; then :
10080 gl_cv_size_max=yes
10081 fi
10082 rm -f conftest*
10083
10084 if test -z "$gl_cv_size_max"; then
10085 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10086 #include <limits.h>"; then :
10087
10088 else
10089 size_t_bits_minus_1=
10090 fi
10091
10092 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10093
10094 else
10095 fits_in_uint=
10096 fi
10097
10098 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10099 if test $fits_in_uint = 1; then
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 #include <stddef.h>
10103 extern size_t foo;
10104 extern unsigned long foo;
10105
10106 int
10107 main ()
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115 fits_in_uint=0
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 if test $fits_in_uint = 1; then
10120 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10121 else
10122 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10123 fi
10124 else
10125 gl_cv_size_max='((size_t)~(size_t)0)'
10126 fi
10127 fi
10128
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10131 $as_echo "$gl_cv_size_max" >&6; }
10132 if test "$gl_cv_size_max" != yes; then
10133
10134 cat >>confdefs.h <<_ACEOF
10135 #define SIZE_MAX $gl_cv_size_max
10136 _ACEOF
10137
10138 fi
10139
10140
10141
10142
10143 for ac_header in stdint.h
10144 do :
10145 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10146 if test "x$ac_cv_header_stdint_h" = xyes; then :
10147 cat >>confdefs.h <<_ACEOF
10148 #define HAVE_STDINT_H 1
10149 _ACEOF
10150
10151 fi
10152
10153 done
10154
10155
10156
10157
10158
10159 for ac_func in $ac_func_list
10160 do :
10161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10163 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10164 cat >>confdefs.h <<_ACEOF
10165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10166 _ACEOF
10167
10168 fi
10169 done
10170
10171
10172
10173
10174
10175
10176
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10179 $as_echo_n "checking for working fcntl.h... " >&6; }
10180 if ${gl_cv_header_working_fcntl_h+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 if test "$cross_compiling" = yes; then :
10184 gl_cv_header_working_fcntl_h=cross-compiling
10185 else
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188 #include <sys/types.h>
10189 #include <sys/stat.h>
10190 #if HAVE_UNISTD_H
10191 # include <unistd.h>
10192 #else /* on Windows with MSVC */
10193 # include <io.h>
10194 # include <stdlib.h>
10195 # defined sleep(n) _sleep ((n) * 1000)
10196 #endif
10197 #include <fcntl.h>
10198 #ifndef O_NOATIME
10199 #define O_NOATIME 0
10200 #endif
10201 #ifndef O_NOFOLLOW
10202 #define O_NOFOLLOW 0
10203 #endif
10204 static int const constants[] =
10205 {
10206 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10207 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10208 };
10209
10210 int
10211 main ()
10212 {
10213
10214 int result = !constants;
10215 #if HAVE_SYMLINK
10216 {
10217 static char const sym[] = "conftest.sym";
10218 if (symlink ("/dev/null", sym) != 0)
10219 result |= 2;
10220 else
10221 {
10222 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10223 if (fd >= 0)
10224 {
10225 close (fd);
10226 result |= 4;
10227 }
10228 }
10229 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10230 result |= 2;
10231 else
10232 {
10233 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10234 if (fd >= 0)
10235 {
10236 close (fd);
10237 result |= 4;
10238 }
10239 }
10240 unlink (sym);
10241 }
10242 #endif
10243 {
10244 static char const file[] = "confdefs.h";
10245 int fd = open (file, O_RDONLY | O_NOATIME);
10246 if (fd < 0)
10247 result |= 8;
10248 else
10249 {
10250 struct stat st0;
10251 if (fstat (fd, &st0) != 0)
10252 result |= 16;
10253 else
10254 {
10255 char c;
10256 sleep (1);
10257 if (read (fd, &c, 1) != 1)
10258 result |= 24;
10259 else
10260 {
10261 if (close (fd) != 0)
10262 result |= 32;
10263 else
10264 {
10265 struct stat st1;
10266 if (stat (file, &st1) != 0)
10267 result |= 40;
10268 else
10269 if (st0.st_atime != st1.st_atime)
10270 result |= 64;
10271 }
10272 }
10273 }
10274 }
10275 }
10276 return result;
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 if ac_fn_c_try_run "$LINENO"; then :
10282 gl_cv_header_working_fcntl_h=yes
10283 else
10284 case $? in #(
10285 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10286 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10287 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10288 *) gl_cv_header_working_fcntl_h='no';;
10289 esac
10290 fi
10291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
10293 fi
10294
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10297 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10298
10299 case $gl_cv_header_working_fcntl_h in #(
10300 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10301 *) ac_val=1;;
10302 esac
10303
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_WORKING_O_NOATIME $ac_val
10306 _ACEOF
10307
10308
10309 case $gl_cv_header_working_fcntl_h in #(
10310 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10311 *) ac_val=1;;
10312 esac
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10316 _ACEOF
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10321 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10322 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 gt_save_LIBS="$LIBS"
10326 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 #include <CoreFoundation/CFPreferences.h>
10330 int
10331 main ()
10332 {
10333 CFPreferencesCopyAppValue(NULL, NULL)
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339 gt_cv_func_CFPreferencesCopyAppValue=yes
10340 else
10341 gt_cv_func_CFPreferencesCopyAppValue=no
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS="$gt_save_LIBS"
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10348 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10349 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10350
10351 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10352
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10355 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10356 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 gt_save_LIBS="$LIBS"
10360 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 #include <CoreFoundation/CFLocale.h>
10364 int
10365 main ()
10366 {
10367 CFLocaleCopyCurrent();
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 gt_cv_func_CFLocaleCopyCurrent=yes
10374 else
10375 gt_cv_func_CFLocaleCopyCurrent=no
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 LIBS="$gt_save_LIBS"
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10382 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10383 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10384
10385 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10386
10387 fi
10388 INTL_MACOSX_LIBS=
10389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10390 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10391 fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402 case "$enable_silent_rules" in
10403 yes) INTL_DEFAULT_VERBOSITY=0;;
10404 no) INTL_DEFAULT_VERBOSITY=1;;
10405 *) INTL_DEFAULT_VERBOSITY=1;;
10406 esac
10407
10408
10409 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10410 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10411
10412 else
10413
10414 $as_echo "#define ptrdiff_t long" >>confdefs.h
10415
10416
10417 fi
10418
10419 for ac_header in features.h stddef.h stdlib.h string.h
10420 do :
10421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 _ACEOF
10427
10428 fi
10429
10430 done
10431
10432 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10433 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10434 do :
10435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10438 cat >>confdefs.h <<_ACEOF
10439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10440 _ACEOF
10441
10442 fi
10443 done
10444
10445
10446 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10447 "
10448 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10449 ac_have_decl=1
10450 else
10451 ac_have_decl=0
10452 fi
10453
10454 cat >>confdefs.h <<_ACEOF
10455 #define HAVE_DECL__SNPRINTF $ac_have_decl
10456 _ACEOF
10457 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10458 "
10459 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10460 ac_have_decl=1
10461 else
10462 ac_have_decl=0
10463 fi
10464
10465 cat >>confdefs.h <<_ACEOF
10466 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10467 _ACEOF
10468
10469
10470 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10471 "
10472 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10473 ac_have_decl=1
10474 else
10475 ac_have_decl=0
10476 fi
10477
10478 cat >>confdefs.h <<_ACEOF
10479 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10480 _ACEOF
10481
10482
10483 case $gt_cv_func_printf_posix in
10484 *yes) HAVE_POSIX_PRINTF=1 ;;
10485 *) HAVE_POSIX_PRINTF=0 ;;
10486 esac
10487
10488 if test "$ac_cv_func_asprintf" = yes; then
10489 HAVE_ASPRINTF=1
10490 else
10491 HAVE_ASPRINTF=0
10492 fi
10493
10494 if test "$ac_cv_func_snprintf" = yes; then
10495 HAVE_SNPRINTF=1
10496 else
10497 HAVE_SNPRINTF=0
10498 fi
10499
10500 if test "$ac_cv_func_newlocale" = yes; then
10501 HAVE_NEWLOCALE=1
10502 else
10503 HAVE_NEWLOCALE=0
10504 fi
10505
10506 if test "$ac_cv_func_wprintf" = yes; then
10507 HAVE_WPRINTF=1
10508 else
10509 HAVE_WPRINTF=0
10510 fi
10511
10512
10513
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10515 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10516 if ${am_cv_langinfo_codeset+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <langinfo.h>
10522 int
10523 main ()
10524 {
10525 char* cs = nl_langinfo(CODESET); return !cs;
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 am_cv_langinfo_codeset=yes
10532 else
10533 am_cv_langinfo_codeset=no
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10540 $as_echo "$am_cv_langinfo_codeset" >&6; }
10541 if test $am_cv_langinfo_codeset = yes; then
10542
10543 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10544
10545 fi
10546
10547
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10549 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10550 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10555 #include <locale.h>
10556 int
10557 main ()
10558 {
10559 return LC_MESSAGES
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 if ac_fn_c_try_link "$LINENO"; then :
10565 gt_cv_val_LC_MESSAGES=yes
10566 else
10567 gt_cv_val_LC_MESSAGES=no
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10573 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10574 if test $gt_cv_val_LC_MESSAGES = yes; then
10575
10576 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10577
10578 fi
10579
10580
10581 if test "$enable_shared" = yes; then
10582 case "$host_os" in
10583 mingw* | cygwin*) is_woe32dll=yes ;;
10584 *) is_woe32dll=no ;;
10585 esac
10586 else
10587 is_woe32dll=no
10588 fi
10589 WOE32DLL=$is_woe32dll
10590
10591
10592 case "$host_os" in
10593 mingw* | cygwin*) is_woe32=yes ;;
10594 *) is_woe32=no ;;
10595 esac
10596 WOE32=$is_woe32
10597
10598 if test $WOE32 = yes; then
10599 if test -n "$ac_tool_prefix"; then
10600 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}windres; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_WINDRES+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 if test -n "$WINDRES"; then
10608 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619 break 2
10620 fi
10621 done
10622 done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 WINDRES=$ac_cv_prog_WINDRES
10628 if test -n "$WINDRES"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10630 $as_echo "$WINDRES" >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637 fi
10638 if test -z "$ac_cv_prog_WINDRES"; then
10639 ac_ct_WINDRES=$WINDRES
10640 # Extract the first word of "windres", so it can be a program name with args.
10641 set dummy windres; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 if test -n "$ac_ct_WINDRES"; then
10648 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10649 else
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10652 do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_ac_ct_WINDRES="windres"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661 done
10662 done
10663 IFS=$as_save_IFS
10664
10665 fi
10666 fi
10667 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10668 if test -n "$ac_ct_WINDRES"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10670 $as_echo "$ac_ct_WINDRES" >&6; }
10671 else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 fi
10675
10676 if test "x$ac_ct_WINDRES" = x; then
10677 WINDRES=""
10678 else
10679 case $cross_compiling:$ac_tool_warned in
10680 yes:)
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683 ac_tool_warned=yes ;;
10684 esac
10685 WINDRES=$ac_ct_WINDRES
10686 fi
10687 else
10688 WINDRES="$ac_cv_prog_WINDRES"
10689 fi
10690
10691 fi
10692
10693 case "$host_os" in
10694 hpux*) LTLIBC="" ;;
10695 *) LTLIBC="-lc" ;;
10696 esac
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10725 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10726 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 gt_save_LIBS="$LIBS"
10730 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <CoreFoundation/CFPreferences.h>
10734 int
10735 main ()
10736 {
10737 CFPreferencesCopyAppValue(NULL, NULL)
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 gt_cv_func_CFPreferencesCopyAppValue=yes
10744 else
10745 gt_cv_func_CFPreferencesCopyAppValue=no
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS="$gt_save_LIBS"
10750 fi
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10752 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10754
10755 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10756
10757 fi
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10759 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10760 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 gt_save_LIBS="$LIBS"
10764 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 #include <CoreFoundation/CFLocale.h>
10768 int
10769 main ()
10770 {
10771 CFLocaleCopyCurrent();
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 gt_cv_func_CFLocaleCopyCurrent=yes
10778 else
10779 gt_cv_func_CFLocaleCopyCurrent=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS="$gt_save_LIBS"
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10786 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10787 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10788
10789 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10790
10791 fi
10792 INTL_MACOSX_LIBS=
10793 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10794 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10795 fi
10796
10797
10798
10799
10800
10801
10802 BUILD_INCLUDED_LIBINTL=no
10803 USE_INCLUDED_LIBINTL=no
10804
10805 LIBINTL=
10806 LTLIBINTL=
10807 POSUB=
10808
10809 case " $gt_needs " in
10810 *" need-formatstring-macros "*) gt_api_version=3 ;;
10811 *" need-ngettext "*) gt_api_version=2 ;;
10812 *) gt_api_version=1 ;;
10813 esac
10814 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10815 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10816
10817 if test "$USE_NLS" = "yes"; then
10818 gt_use_preinstalled_gnugettext=no
10819
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10821 $as_echo_n "checking whether included gettext is requested... " >&6; }
10822
10823 # Check whether --with-included-gettext was given.
10824 if test "${with_included_gettext+set}" = set; then :
10825 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10826 else
10827 nls_cv_force_use_gnu_gettext=no
10828 fi
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10831 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10832
10833 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10834 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10835
10836
10837 if test $gt_api_version -ge 3; then
10838 gt_revision_test_code='
10839 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10840 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10841 #endif
10842 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10843 '
10844 else
10845 gt_revision_test_code=
10846 fi
10847 if test $gt_api_version -ge 2; then
10848 gt_expression_test_code=' + * ngettext ("", "", 0)'
10849 else
10850 gt_expression_test_code=
10851 fi
10852
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10854 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10855 if eval \${$gt_func_gnugettext_libc+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860
10861 #include <libintl.h>
10862 $gt_revision_test_code
10863 extern int _nl_msg_cat_cntr;
10864 extern int *_nl_domain_bindings;
10865
10866 int
10867 main ()
10868 {
10869
10870 bindtextdomain ("", "");
10871 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10872
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 if ac_fn_c_try_link "$LINENO"; then :
10878 eval "$gt_func_gnugettext_libc=yes"
10879 else
10880 eval "$gt_func_gnugettext_libc=no"
10881 fi
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 fi
10885 eval ac_res=\$$gt_func_gnugettext_libc
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10888
10889 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10890
10891
10892
10893
10894
10895
10896
10897
10898 use_additional=yes
10899
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 acl_save_exec_prefix="$exec_prefix"
10903 exec_prefix="$acl_final_exec_prefix"
10904
10905 eval additional_includedir=\"$includedir\"
10906 eval additional_libdir=\"$libdir\"
10907
10908 exec_prefix="$acl_save_exec_prefix"
10909 prefix="$acl_save_prefix"
10910
10911
10912 # Check whether --with-libintl-prefix was given.
10913 if test "${with_libintl_prefix+set}" = set; then :
10914 withval=$with_libintl_prefix;
10915 if test "X$withval" = "Xno"; then
10916 use_additional=no
10917 else
10918 if test "X$withval" = "X"; then
10919
10920 acl_save_prefix="$prefix"
10921 prefix="$acl_final_prefix"
10922 acl_save_exec_prefix="$exec_prefix"
10923 exec_prefix="$acl_final_exec_prefix"
10924
10925 eval additional_includedir=\"$includedir\"
10926 eval additional_libdir=\"$libdir\"
10927
10928 exec_prefix="$acl_save_exec_prefix"
10929 prefix="$acl_save_prefix"
10930
10931 else
10932 additional_includedir="$withval/include"
10933 additional_libdir="$withval/$acl_libdirstem"
10934 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10935 && ! test -d "$withval/$acl_libdirstem"; then
10936 additional_libdir="$withval/$acl_libdirstem2"
10937 fi
10938 fi
10939 fi
10940
10941 fi
10942
10943 LIBINTL=
10944 LTLIBINTL=
10945 INCINTL=
10946 LIBINTL_PREFIX=
10947 HAVE_LIBINTL=
10948 rpathdirs=
10949 ltrpathdirs=
10950 names_already_handled=
10951 names_next_round='intl '
10952 while test -n "$names_next_round"; do
10953 names_this_round="$names_next_round"
10954 names_next_round=
10955 for name in $names_this_round; do
10956 already_handled=
10957 for n in $names_already_handled; do
10958 if test "$n" = "$name"; then
10959 already_handled=yes
10960 break
10961 fi
10962 done
10963 if test -z "$already_handled"; then
10964 names_already_handled="$names_already_handled $name"
10965 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10966 eval value=\"\$HAVE_LIB$uppername\"
10967 if test -n "$value"; then
10968 if test "$value" = yes; then
10969 eval value=\"\$LIB$uppername\"
10970 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10971 eval value=\"\$LTLIB$uppername\"
10972 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10973 else
10974 :
10975 fi
10976 else
10977 found_dir=
10978 found_la=
10979 found_so=
10980 found_a=
10981 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10982 if test -n "$acl_shlibext"; then
10983 shrext=".$acl_shlibext" # typically: shrext=.so
10984 else
10985 shrext=
10986 fi
10987 if test $use_additional = yes; then
10988 dir="$additional_libdir"
10989 if test -n "$acl_shlibext"; then
10990 if test -f "$dir/$libname$shrext"; then
10991 found_dir="$dir"
10992 found_so="$dir/$libname$shrext"
10993 else
10994 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10995 ver=`(cd "$dir" && \
10996 for f in "$libname$shrext".*; do echo "$f"; done \
10997 | sed -e "s,^$libname$shrext\\\\.,," \
10998 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10999 | sed 1q ) 2>/dev/null`
11000 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11001 found_dir="$dir"
11002 found_so="$dir/$libname$shrext.$ver"
11003 fi
11004 else
11005 eval library_names=\"$acl_library_names_spec\"
11006 for f in $library_names; do
11007 if test -f "$dir/$f"; then
11008 found_dir="$dir"
11009 found_so="$dir/$f"
11010 break
11011 fi
11012 done
11013 fi
11014 fi
11015 fi
11016 if test "X$found_dir" = "X"; then
11017 if test -f "$dir/$libname.$acl_libext"; then
11018 found_dir="$dir"
11019 found_a="$dir/$libname.$acl_libext"
11020 fi
11021 fi
11022 if test "X$found_dir" != "X"; then
11023 if test -f "$dir/$libname.la"; then
11024 found_la="$dir/$libname.la"
11025 fi
11026 fi
11027 fi
11028 if test "X$found_dir" = "X"; then
11029 for x in $LDFLAGS $LTLIBINTL; do
11030
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11035 eval x=\"$x\"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
11038
11039 case "$x" in
11040 -L*)
11041 dir=`echo "X$x" | sed -e 's/^X-L//'`
11042 if test -n "$acl_shlibext"; then
11043 if test -f "$dir/$libname$shrext"; then
11044 found_dir="$dir"
11045 found_so="$dir/$libname$shrext"
11046 else
11047 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11048 ver=`(cd "$dir" && \
11049 for f in "$libname$shrext".*; do echo "$f"; done \
11050 | sed -e "s,^$libname$shrext\\\\.,," \
11051 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11052 | sed 1q ) 2>/dev/null`
11053 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11054 found_dir="$dir"
11055 found_so="$dir/$libname$shrext.$ver"
11056 fi
11057 else
11058 eval library_names=\"$acl_library_names_spec\"
11059 for f in $library_names; do
11060 if test -f "$dir/$f"; then
11061 found_dir="$dir"
11062 found_so="$dir/$f"
11063 break
11064 fi
11065 done
11066 fi
11067 fi
11068 fi
11069 if test "X$found_dir" = "X"; then
11070 if test -f "$dir/$libname.$acl_libext"; then
11071 found_dir="$dir"
11072 found_a="$dir/$libname.$acl_libext"
11073 fi
11074 fi
11075 if test "X$found_dir" != "X"; then
11076 if test -f "$dir/$libname.la"; then
11077 found_la="$dir/$libname.la"
11078 fi
11079 fi
11080 ;;
11081 esac
11082 if test "X$found_dir" != "X"; then
11083 break
11084 fi
11085 done
11086 fi
11087 if test "X$found_dir" != "X"; then
11088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11089 if test "X$found_so" != "X"; then
11090 if test "$enable_rpath" = no \
11091 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11092 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11094 else
11095 haveit=
11096 for x in $ltrpathdirs; do
11097 if test "X$x" = "X$found_dir"; then
11098 haveit=yes
11099 break
11100 fi
11101 done
11102 if test -z "$haveit"; then
11103 ltrpathdirs="$ltrpathdirs $found_dir"
11104 fi
11105 if test "$acl_hardcode_direct" = yes; then
11106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11107 else
11108 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11110 haveit=
11111 for x in $rpathdirs; do
11112 if test "X$x" = "X$found_dir"; then
11113 haveit=yes
11114 break
11115 fi
11116 done
11117 if test -z "$haveit"; then
11118 rpathdirs="$rpathdirs $found_dir"
11119 fi
11120 else
11121 haveit=
11122 for x in $LDFLAGS $LIBINTL; do
11123
11124 acl_save_prefix="$prefix"
11125 prefix="$acl_final_prefix"
11126 acl_save_exec_prefix="$exec_prefix"
11127 exec_prefix="$acl_final_exec_prefix"
11128 eval x=\"$x\"
11129 exec_prefix="$acl_save_exec_prefix"
11130 prefix="$acl_save_prefix"
11131
11132 if test "X$x" = "X-L$found_dir"; then
11133 haveit=yes
11134 break
11135 fi
11136 done
11137 if test -z "$haveit"; then
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11139 fi
11140 if test "$acl_hardcode_minus_L" != no; then
11141 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11142 else
11143 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11144 fi
11145 fi
11146 fi
11147 fi
11148 else
11149 if test "X$found_a" != "X"; then
11150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11151 else
11152 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11153 fi
11154 fi
11155 additional_includedir=
11156 case "$found_dir" in
11157 */$acl_libdirstem | */$acl_libdirstem/)
11158 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11159 if test "$name" = 'intl'; then
11160 LIBINTL_PREFIX="$basedir"
11161 fi
11162 additional_includedir="$basedir/include"
11163 ;;
11164 */$acl_libdirstem2 | */$acl_libdirstem2/)
11165 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11166 if test "$name" = 'intl'; then
11167 LIBINTL_PREFIX="$basedir"
11168 fi
11169 additional_includedir="$basedir/include"
11170 ;;
11171 esac
11172 if test "X$additional_includedir" != "X"; then
11173 if test "X$additional_includedir" != "X/usr/include"; then
11174 haveit=
11175 if test "X$additional_includedir" = "X/usr/local/include"; then
11176 if test -n "$GCC"; then
11177 case $host_os in
11178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11179 esac
11180 fi
11181 fi
11182 if test -z "$haveit"; then
11183 for x in $CPPFLAGS $INCINTL; do
11184
11185 acl_save_prefix="$prefix"
11186 prefix="$acl_final_prefix"
11187 acl_save_exec_prefix="$exec_prefix"
11188 exec_prefix="$acl_final_exec_prefix"
11189 eval x=\"$x\"
11190 exec_prefix="$acl_save_exec_prefix"
11191 prefix="$acl_save_prefix"
11192
11193 if test "X$x" = "X-I$additional_includedir"; then
11194 haveit=yes
11195 break
11196 fi
11197 done
11198 if test -z "$haveit"; then
11199 if test -d "$additional_includedir"; then
11200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11201 fi
11202 fi
11203 fi
11204 fi
11205 fi
11206 if test -n "$found_la"; then
11207 save_libdir="$libdir"
11208 case "$found_la" in
11209 */* | *\\*) . "$found_la" ;;
11210 *) . "./$found_la" ;;
11211 esac
11212 libdir="$save_libdir"
11213 for dep in $dependency_libs; do
11214 case "$dep" in
11215 -L*)
11216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11217 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11218 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11219 haveit=
11220 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11221 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11222 if test -n "$GCC"; then
11223 case $host_os in
11224 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11225 esac
11226 fi
11227 fi
11228 if test -z "$haveit"; then
11229 haveit=
11230 for x in $LDFLAGS $LIBINTL; do
11231
11232 acl_save_prefix="$prefix"
11233 prefix="$acl_final_prefix"
11234 acl_save_exec_prefix="$exec_prefix"
11235 exec_prefix="$acl_final_exec_prefix"
11236 eval x=\"$x\"
11237 exec_prefix="$acl_save_exec_prefix"
11238 prefix="$acl_save_prefix"
11239
11240 if test "X$x" = "X-L$additional_libdir"; then
11241 haveit=yes
11242 break
11243 fi
11244 done
11245 if test -z "$haveit"; then
11246 if test -d "$additional_libdir"; then
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11248 fi
11249 fi
11250 haveit=
11251 for x in $LDFLAGS $LTLIBINTL; do
11252
11253 acl_save_prefix="$prefix"
11254 prefix="$acl_final_prefix"
11255 acl_save_exec_prefix="$exec_prefix"
11256 exec_prefix="$acl_final_exec_prefix"
11257 eval x=\"$x\"
11258 exec_prefix="$acl_save_exec_prefix"
11259 prefix="$acl_save_prefix"
11260
11261 if test "X$x" = "X-L$additional_libdir"; then
11262 haveit=yes
11263 break
11264 fi
11265 done
11266 if test -z "$haveit"; then
11267 if test -d "$additional_libdir"; then
11268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11269 fi
11270 fi
11271 fi
11272 fi
11273 ;;
11274 -R*)
11275 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11276 if test "$enable_rpath" != no; then
11277 haveit=
11278 for x in $rpathdirs; do
11279 if test "X$x" = "X$dir"; then
11280 haveit=yes
11281 break
11282 fi
11283 done
11284 if test -z "$haveit"; then
11285 rpathdirs="$rpathdirs $dir"
11286 fi
11287 haveit=
11288 for x in $ltrpathdirs; do
11289 if test "X$x" = "X$dir"; then
11290 haveit=yes
11291 break
11292 fi
11293 done
11294 if test -z "$haveit"; then
11295 ltrpathdirs="$ltrpathdirs $dir"
11296 fi
11297 fi
11298 ;;
11299 -l*)
11300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11301 ;;
11302 *.la)
11303 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11304 ;;
11305 *)
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11307 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11308 ;;
11309 esac
11310 done
11311 fi
11312 else
11313 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11315 fi
11316 fi
11317 fi
11318 done
11319 done
11320 if test "X$rpathdirs" != "X"; then
11321 if test -n "$acl_hardcode_libdir_separator"; then
11322 alldirs=
11323 for found_dir in $rpathdirs; do
11324 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11325 done
11326 acl_save_libdir="$libdir"
11327 libdir="$alldirs"
11328 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11329 libdir="$acl_save_libdir"
11330 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11331 else
11332 for found_dir in $rpathdirs; do
11333 acl_save_libdir="$libdir"
11334 libdir="$found_dir"
11335 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11336 libdir="$acl_save_libdir"
11337 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11338 done
11339 fi
11340 fi
11341 if test "X$ltrpathdirs" != "X"; then
11342 for found_dir in $ltrpathdirs; do
11343 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11344 done
11345 fi
11346
11347
11348
11349
11350
11351
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11353 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11354 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 gt_save_CPPFLAGS="$CPPFLAGS"
11358 CPPFLAGS="$CPPFLAGS $INCINTL"
11359 gt_save_LIBS="$LIBS"
11360 LIBS="$LIBS $LIBINTL"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363
11364 #include <libintl.h>
11365 $gt_revision_test_code
11366 extern int _nl_msg_cat_cntr;
11367 extern
11368 #ifdef __cplusplus
11369 "C"
11370 #endif
11371 const char *_nl_expand_alias (const char *);
11372
11373 int
11374 main ()
11375 {
11376
11377 bindtextdomain ("", "");
11378 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11379
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 eval "$gt_func_gnugettext_libintl=yes"
11386 else
11387 eval "$gt_func_gnugettext_libintl=no"
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11392 LIBS="$LIBS $LIBICONV"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395
11396 #include <libintl.h>
11397 $gt_revision_test_code
11398 extern int _nl_msg_cat_cntr;
11399 extern
11400 #ifdef __cplusplus
11401 "C"
11402 #endif
11403 const char *_nl_expand_alias (const char *);
11404
11405 int
11406 main ()
11407 {
11408
11409 bindtextdomain ("", "");
11410 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11411
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 LIBINTL="$LIBINTL $LIBICONV"
11418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11419 eval "$gt_func_gnugettext_libintl=yes"
11420
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 CPPFLAGS="$gt_save_CPPFLAGS"
11426 LIBS="$gt_save_LIBS"
11427 fi
11428 eval ac_res=\$$gt_func_gnugettext_libintl
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11430 $as_echo "$ac_res" >&6; }
11431 fi
11432
11433 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11434 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11435 && test "$PACKAGE" != gettext-runtime \
11436 && test "$PACKAGE" != gettext-tools; }; then
11437 gt_use_preinstalled_gnugettext=yes
11438 else
11439 LIBINTL=
11440 LTLIBINTL=
11441 INCINTL=
11442 fi
11443
11444
11445 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446 nls_cv_use_gnu_gettext=yes
11447 fi
11448 fi
11449
11450 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11451 BUILD_INCLUDED_LIBINTL=yes
11452 USE_INCLUDED_LIBINTL=yes
11453 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11454 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11455 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11456 fi
11457
11458 CATOBJEXT=
11459 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11460 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11461 CATOBJEXT=.gmo
11462 fi
11463
11464
11465 if test -n "$INTL_MACOSX_LIBS"; then
11466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11470 fi
11471 fi
11472
11473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11475
11476 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11477
11478 else
11479 USE_NLS=no
11480 fi
11481 fi
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11484 $as_echo_n "checking whether to use NLS... " >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11486 $as_echo "$USE_NLS" >&6; }
11487 if test "$USE_NLS" = "yes"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11489 $as_echo_n "checking where the gettext function comes from... " >&6; }
11490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11491 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11492 gt_source="external libintl"
11493 else
11494 gt_source="libc"
11495 fi
11496 else
11497 gt_source="included intl directory"
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11500 $as_echo "$gt_source" >&6; }
11501 fi
11502
11503 if test "$USE_NLS" = "yes"; then
11504
11505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11508 $as_echo_n "checking how to link with libintl... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11510 $as_echo "$LIBINTL" >&6; }
11511
11512 for element in $INCINTL; do
11513 haveit=
11514 for x in $CPPFLAGS; do
11515
11516 acl_save_prefix="$prefix"
11517 prefix="$acl_final_prefix"
11518 acl_save_exec_prefix="$exec_prefix"
11519 exec_prefix="$acl_final_exec_prefix"
11520 eval x=\"$x\"
11521 exec_prefix="$acl_save_exec_prefix"
11522 prefix="$acl_save_prefix"
11523
11524 if test "X$x" = "X$element"; then
11525 haveit=yes
11526 break
11527 fi
11528 done
11529 if test -z "$haveit"; then
11530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11531 fi
11532 done
11533
11534 fi
11535
11536
11537 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11538
11539
11540 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11541
11542 fi
11543
11544 POSUB=po
11545 fi
11546
11547
11548 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11549 BUILD_INCLUDED_LIBINTL=yes
11550 fi
11551
11552
11553
11554
11555
11556 nls_cv_header_intl=
11557 nls_cv_header_libgt=
11558
11559 DATADIRNAME=share
11560
11561
11562 INSTOBJEXT=.mo
11563
11564
11565 GENCAT=gencat
11566
11567
11568 INTLOBJS=
11569 if test "$USE_INCLUDED_LIBINTL" = yes; then
11570 INTLOBJS="\$(GETTOBJS)"
11571 fi
11572
11573
11574 INTL_LIBTOOL_SUFFIX_PREFIX=
11575
11576
11577
11578 INTLLIBS="$LIBINTL"
11579
11580
11581
11582
11583
11584
11585
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11587 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11588 set x ${MAKE-make}
11589 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11590 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 cat >conftest.make <<\_ACEOF
11594 SHELL = /bin/sh
11595 all:
11596 @echo '@@@%%%=$(MAKE)=@@@%%%'
11597 _ACEOF
11598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11600 *@@@%%%=?*=@@@%%%*)
11601 eval ac_cv_prog_make_${ac_make}_set=yes;;
11602 *)
11603 eval ac_cv_prog_make_${ac_make}_set=no;;
11604 esac
11605 rm -f conftest.make
11606 fi
11607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11610 SET_MAKE=
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614 SET_MAKE="MAKE=${MAKE-make}"
11615 fi
11616
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11618 $as_echo_n "checking for GNU make... " >&6; }
11619 if ${_cv_gnu_make_command+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 _cv_gnu_make_command='' ;
11623 if test -n "$FORCE_NATIVE_MAKE" ; then
11624 MAKES="make"
11625 else
11626 MAKES="make gmake gnumake"
11627 fi
11628 for a in "$MAKE" $MAKES ; do
11629 if test -z "$a" ; then continue ; fi ;
11630 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11631 _cv_gnu_make_command=$a ;
11632 break;
11633 fi
11634 done ;
11635
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11638 $as_echo "$_cv_gnu_make_command" >&6; } ;
11639 if test "x$_cv_gnu_make_command" != "x" ; then
11640 ifGNUmake='' ;
11641 ifNotGNUmake='#' ;
11642 else
11643 ifGNUmake='#' ;
11644 ifNotGNUmake='' ;
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11646 $as_echo "\"Not found\"" >&6; };
11647 fi
11648
11649
11650
11651 # Extract the first word of "ln", so it can be a program name with args.
11652 set dummy ln; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_path_LN+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 case $LN in
11659 [\\/]* | ?:[\\/]*)
11660 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11661 ;;
11662 *)
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674 done
11675 done
11676 IFS=$as_save_IFS
11677
11678 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11679 ;;
11680 esac
11681 fi
11682 LN=$ac_cv_path_LN
11683 if test -n "$LN"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11685 $as_echo "$LN" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 fi
11690
11691
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11694 $as_echo_n "checking whether ln -s works... " >&6; }
11695 LN_S=$as_ln_s
11696 if test "$LN_S" = "ln -s"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698 $as_echo "yes" >&6; }
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11701 $as_echo "no, using $LN_S" >&6; }
11702 fi
11703
11704 # Extract the first word of "mv", so it can be a program name with args.
11705 set dummy mv; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_path_MV+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 case $MV in
11712 [\\/]* | ?:[\\/]*)
11713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11714 ;;
11715 *)
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11718 do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727 done
11728 done
11729 IFS=$as_save_IFS
11730
11731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11732 ;;
11733 esac
11734 fi
11735 MV=$ac_cv_path_MV
11736 if test -n "$MV"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11738 $as_echo "$MV" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743
11744
11745 # Extract the first word of "cp", so it can be a program name with args.
11746 set dummy cp; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_CP+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 case $CP in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11755 ;;
11756 *)
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768 done
11769 done
11770 IFS=$as_save_IFS
11771
11772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11773 ;;
11774 esac
11775 fi
11776 CP=$ac_cv_path_CP
11777 if test -n "$CP"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11779 $as_echo "$CP" >&6; }
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 fi
11784
11785
11786 # Extract the first word of "rm", so it can be a program name with args.
11787 set dummy rm; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_RM+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 case $RM in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11796 ;;
11797 *)
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11800 do
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11808 fi
11809 done
11810 done
11811 IFS=$as_save_IFS
11812
11813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11814 ;;
11815 esac
11816 fi
11817 RM=$ac_cv_path_RM
11818 if test -n "$RM"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11820 $as_echo "$RM" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 # Extract the first word of "chmod", so it can be a program name with args.
11828 set dummy chmod; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_path_CHMOD+:} false; then :
11832 $as_echo_n "(cached) " >&6
11833 else
11834 case $CHMOD in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11837 ;;
11838 *)
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11841 do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850 done
11851 done
11852 IFS=$as_save_IFS
11853
11854 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11855 ;;
11856 esac
11857 fi
11858 CHMOD=$ac_cv_path_CHMOD
11859 if test -n "$CHMOD"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11861 $as_echo "$CHMOD" >&6; }
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867
11868 for ac_prog in gawk mawk nawk awk
11869 do
11870 # Extract the first word of "$ac_prog", so it can be a program name with args.
11871 set dummy $ac_prog; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_prog_AWK+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 if test -n "$AWK"; then
11878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11879 else
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_prog_AWK="$ac_prog"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11890 fi
11891 done
11892 done
11893 IFS=$as_save_IFS
11894
11895 fi
11896 fi
11897 AWK=$ac_cv_prog_AWK
11898 if test -n "$AWK"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11900 $as_echo "$AWK" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11904 fi
11905
11906
11907 test -n "$AWK" && break
11908 done
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11911 $as_echo_n "checking for egrep... " >&6; }
11912 if ${ac_cv_path_EGREP+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11916 then ac_cv_path_EGREP="$GREP -E"
11917 else
11918 if test -z "$EGREP"; then
11919 ac_path_EGREP_found=false
11920 # Loop through the user's path and test for each of PROGNAME-LIST
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11923 do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_prog in egrep; do
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11929 as_fn_executable_p "$ac_path_EGREP" || continue
11930 # Check for GNU ac_path_EGREP and select it if it is found.
11931 # Check for GNU $ac_path_EGREP
11932 case `"$ac_path_EGREP" --version 2>&1` in
11933 *GNU*)
11934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11935 *)
11936 ac_count=0
11937 $as_echo_n 0123456789 >"conftest.in"
11938 while :
11939 do
11940 cat "conftest.in" "conftest.in" >"conftest.tmp"
11941 mv "conftest.tmp" "conftest.in"
11942 cp "conftest.in" "conftest.nl"
11943 $as_echo 'EGREP' >> "conftest.nl"
11944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11946 as_fn_arith $ac_count + 1 && ac_count=$as_val
11947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11948 # Best one so far, save it but keep looking for a better one
11949 ac_cv_path_EGREP="$ac_path_EGREP"
11950 ac_path_EGREP_max=$ac_count
11951 fi
11952 # 10*(2^10) chars as input seems more than enough
11953 test $ac_count -gt 10 && break
11954 done
11955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11956 esac
11957
11958 $ac_path_EGREP_found && break 3
11959 done
11960 done
11961 done
11962 IFS=$as_save_IFS
11963 if test -z "$ac_cv_path_EGREP"; then
11964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11965 fi
11966 else
11967 ac_cv_path_EGREP=$EGREP
11968 fi
11969
11970 fi
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11973 $as_echo "$ac_cv_path_EGREP" >&6; }
11974 EGREP="$ac_cv_path_EGREP"
11975
11976
11977 # Extract the first word of "sed", so it can be a program name with args.
11978 set dummy sed; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_path_SED+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 case $SED in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11987 ;;
11988 *)
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000 done
12001 done
12002 IFS=$as_save_IFS
12003
12004 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12005 ;;
12006 esac
12007 fi
12008 SED=$ac_cv_path_SED
12009 if test -n "$SED"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12011 $as_echo "$SED" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016
12017
12018 # Extract the first word of "perl", so it can be a program name with args.
12019 set dummy perl; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if ${ac_cv_path_PERL+:} false; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 case $PERL in
12026 [\\/]* | ?:[\\/]*)
12027 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12028 ;;
12029 *)
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
12041 done
12042 done
12043 IFS=$as_save_IFS
12044
12045 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12046 ;;
12047 esac
12048 fi
12049 PERL=$ac_cv_path_PERL
12050 if test -n "$PERL"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12052 $as_echo "$PERL" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 # Extract the first word of "ldconfig", so it can be a program name with args.
12060 set dummy ldconfig; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_LDCONFIG+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 case $LDCONFIG in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12069 ;;
12070 *)
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12081 fi
12082 done
12083 done
12084 IFS=$as_save_IFS
12085
12086 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12087 ;;
12088 esac
12089 fi
12090 LDCONFIG=$ac_cv_path_LDCONFIG
12091 if test -n "$LDCONFIG"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12093 $as_echo "$LDCONFIG" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097 fi
12098
12099
12100 if test -n "$ac_tool_prefix"; then
12101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12102 set dummy ${ac_tool_prefix}ar; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_prog_AR+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 if test -n "$AR"; then
12109 ac_cv_prog_AR="$AR" # Let the user override the test.
12110 else
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12113 do
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118 ac_cv_prog_AR="${ac_tool_prefix}ar"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12121 fi
12122 done
12123 done
12124 IFS=$as_save_IFS
12125
12126 fi
12127 fi
12128 AR=$ac_cv_prog_AR
12129 if test -n "$AR"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12131 $as_echo "$AR" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135 fi
12136
12137
12138 fi
12139 if test -z "$ac_cv_prog_AR"; then
12140 ac_ct_AR=$AR
12141 # Extract the first word of "ar", so it can be a program name with args.
12142 set dummy ar; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$ac_ct_AR"; then
12149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12153 do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_ac_ct_AR="ar"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12161 fi
12162 done
12163 done
12164 IFS=$as_save_IFS
12165
12166 fi
12167 fi
12168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12169 if test -n "$ac_ct_AR"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12171 $as_echo "$ac_ct_AR" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175 fi
12176
12177 if test "x$ac_ct_AR" = x; then
12178 AR="ar"
12179 else
12180 case $cross_compiling:$ac_tool_warned in
12181 yes:)
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12184 ac_tool_warned=yes ;;
12185 esac
12186 AR=$ac_ct_AR
12187 fi
12188 else
12189 AR="$ac_cv_prog_AR"
12190 fi
12191
12192 if test -n "$ac_tool_prefix"; then
12193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_prog_RANLIB+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 if test -n "$RANLIB"; then
12201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12202 else
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12205 do
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12213 fi
12214 done
12215 done
12216 IFS=$as_save_IFS
12217
12218 fi
12219 fi
12220 RANLIB=$ac_cv_prog_RANLIB
12221 if test -n "$RANLIB"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12223 $as_echo "$RANLIB" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12227 fi
12228
12229
12230 fi
12231 if test -z "$ac_cv_prog_RANLIB"; then
12232 ac_ct_RANLIB=$RANLIB
12233 # Extract the first word of "ranlib", so it can be a program name with args.
12234 set dummy ranlib; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$ac_ct_RANLIB"; then
12241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_ac_ct_RANLIB="ranlib"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12261 if test -n "$ac_ct_RANLIB"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12263 $as_echo "$ac_ct_RANLIB" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269 if test "x$ac_ct_RANLIB" = x; then
12270 RANLIB=":"
12271 else
12272 case $cross_compiling:$ac_tool_warned in
12273 yes:)
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12277 esac
12278 RANLIB=$ac_ct_RANLIB
12279 fi
12280 else
12281 RANLIB="$ac_cv_prog_RANLIB"
12282 fi
12283
12284 if test -n "$ac_tool_prefix"; then
12285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12286 set dummy ${ac_tool_prefix}strip; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_STRIP+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 if test -n "$STRIP"; then
12293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306 done
12307 done
12308 IFS=$as_save_IFS
12309
12310 fi
12311 fi
12312 STRIP=$ac_cv_prog_STRIP
12313 if test -n "$STRIP"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12315 $as_echo "$STRIP" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322 fi
12323 if test -z "$ac_cv_prog_STRIP"; then
12324 ac_ct_STRIP=$STRIP
12325 # Extract the first word of "strip", so it can be a program name with args.
12326 set dummy strip; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$ac_ct_STRIP"; then
12333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_ac_ct_STRIP="strip"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350 fi
12351 fi
12352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12353 if test -n "$ac_ct_STRIP"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12355 $as_echo "$ac_ct_STRIP" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361 if test "x$ac_ct_STRIP" = x; then
12362 STRIP=":"
12363 else
12364 case $cross_compiling:$ac_tool_warned in
12365 yes:)
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12368 ac_tool_warned=yes ;;
12369 esac
12370 STRIP=$ac_ct_STRIP
12371 fi
12372 else
12373 STRIP="$ac_cv_prog_STRIP"
12374 fi
12375
12376 # Extract the first word of "makeinfo", so it can be a program name with args.
12377 set dummy makeinfo; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_MAKEINFO+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test -n "$MAKEINFO"; then
12384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_MAKEINFO="makeinfo"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12396 fi
12397 done
12398 done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 MAKEINFO=$ac_cv_prog_MAKEINFO
12404 if test -n "$MAKEINFO"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12406 $as_echo "$MAKEINFO" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413 if test "_$MAKEINFO" = "_"; then
12414 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12415 else
12416 case "$MAKEINFO" in
12417 */missing.*)
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12419 *** Makeinfo is missing. Info documentation will not be built." >&5
12420 $as_echo "$as_me: WARNING:
12421 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12422 ;;
12423 *)
12424 ;;
12425 esac
12426 fi
12427
12428
12429 # See if we need a separate native compiler.
12430 if test $cross_compiling = no; then
12431 BUILD_CC="$CC"
12432
12433 else
12434 for ac_prog in gcc cc
12435 do
12436 # Extract the first word of "$ac_prog", so it can be a program name with args.
12437 set dummy $ac_prog; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_prog_BUILD_CC+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 if test -n "$BUILD_CC"; then
12444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12453 ac_cv_prog_BUILD_CC="$ac_prog"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12455 break 2
12456 fi
12457 done
12458 done
12459 IFS=$as_save_IFS
12460
12461 fi
12462 fi
12463 BUILD_CC=$ac_cv_prog_BUILD_CC
12464 if test -n "$BUILD_CC"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12466 $as_echo "$BUILD_CC" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470 fi
12471
12472
12473 test -n "$BUILD_CC" && break
12474 done
12475
12476 fi
12477 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.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/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12478 do :
12479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12482 cat >>confdefs.h <<_ACEOF
12483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12484 _ACEOF
12485
12486 fi
12487
12488 done
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12491 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12492 DD=
12493 for i in dd gdd ; do
12494 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12495 DD=$i
12496 break
12497 fi
12498 done
12499 if test -n "$DD" ; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12501 $as_echo "$DD" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12504 $as_echo "not found, using dd" >&6; }
12505 DD=dd
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12507 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12508 fi
12509
12510
12511 for ac_header in net/if.h
12512 do :
12513 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12514 #if HAVE_SYS_TYPES_H
12515 #include <sys/types.h>
12516 #endif
12517 #if HAVE_SYS_SOCKET
12518 #include <sys/socket.h>
12519 #endif
12520
12521 "
12522 if test "x$ac_cv_header_net_if_h" = xyes; then :
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_NET_IF_H 1
12525 _ACEOF
12526
12527 fi
12528
12529 done
12530
12531 for ac_func in vprintf
12532 do :
12533 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12534 if test "x$ac_cv_func_vprintf" = xyes; then :
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_VPRINTF 1
12537 _ACEOF
12538
12539 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12540 if test "x$ac_cv_func__doprnt" = xyes; then :
12541
12542 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12543
12544 fi
12545
12546 fi
12547 done
12548
12549
12550 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12551 "
12552 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12553
12554 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12555
12556 fi
12557
12558 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12559 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12560
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_STRUCT_STAT_ST_ATIM 1
12563 _ACEOF
12564
12565
12566 fi
12567
12568 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12569 "
12570 if test "x$ac_cv_type_ssize_t" = xyes; then :
12571
12572 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12573
12574 fi
12575
12576 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12577 "
12578 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12579
12580 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12581
12582 fi
12583
12584 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12585 #define _LARGEFILE64_SOURCE
12586 #include <unistd.h>
12587 "
12588 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12589
12590 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12591
12592 fi
12593
12594 # The cast to long int works around a bug in the HP C Compiler
12595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12597 # This bug is HP SR number 8606223364.
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12599 $as_echo_n "checking size of short... " >&6; }
12600 if ${ac_cv_sizeof_short+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12604
12605 else
12606 if test "$ac_cv_type_short" = yes; then
12607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12609 as_fn_error 77 "cannot compute sizeof (short)
12610 See \`config.log' for more details" "$LINENO" 5; }
12611 else
12612 ac_cv_sizeof_short=0
12613 fi
12614 fi
12615
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12618 $as_echo "$ac_cv_sizeof_short" >&6; }
12619
12620
12621
12622 cat >>confdefs.h <<_ACEOF
12623 #define SIZEOF_SHORT $ac_cv_sizeof_short
12624 _ACEOF
12625
12626
12627 # The cast to long int works around a bug in the HP C Compiler
12628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630 # This bug is HP SR number 8606223364.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12632 $as_echo_n "checking size of int... " >&6; }
12633 if ${ac_cv_sizeof_int+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12637
12638 else
12639 if test "$ac_cv_type_int" = yes; then
12640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12642 as_fn_error 77 "cannot compute sizeof (int)
12643 See \`config.log' for more details" "$LINENO" 5; }
12644 else
12645 ac_cv_sizeof_int=0
12646 fi
12647 fi
12648
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12651 $as_echo "$ac_cv_sizeof_int" >&6; }
12652
12653
12654
12655 cat >>confdefs.h <<_ACEOF
12656 #define SIZEOF_INT $ac_cv_sizeof_int
12657 _ACEOF
12658
12659
12660 # The cast to long int works around a bug in the HP C Compiler
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12665 $as_echo_n "checking size of long... " >&6; }
12666 if ${ac_cv_sizeof_long+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12670
12671 else
12672 if test "$ac_cv_type_long" = yes; then
12673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12675 as_fn_error 77 "cannot compute sizeof (long)
12676 See \`config.log' for more details" "$LINENO" 5; }
12677 else
12678 ac_cv_sizeof_long=0
12679 fi
12680 fi
12681
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12684 $as_echo "$ac_cv_sizeof_long" >&6; }
12685
12686
12687
12688 cat >>confdefs.h <<_ACEOF
12689 #define SIZEOF_LONG $ac_cv_sizeof_long
12690 _ACEOF
12691
12692
12693 # The cast to long int works around a bug in the HP C Compiler
12694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696 # This bug is HP SR number 8606223364.
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12698 $as_echo_n "checking size of long long... " >&6; }
12699 if ${ac_cv_sizeof_long_long+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12703
12704 else
12705 if test "$ac_cv_type_long_long" = yes; then
12706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12708 as_fn_error 77 "cannot compute sizeof (long long)
12709 See \`config.log' for more details" "$LINENO" 5; }
12710 else
12711 ac_cv_sizeof_long_long=0
12712 fi
12713 fi
12714
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12717 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12718
12719
12720
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12723 _ACEOF
12724
12725
12726 # The cast to long int works around a bug in the HP C Compiler
12727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729 # This bug is HP SR number 8606223364.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12731 $as_echo_n "checking size of off_t... " >&6; }
12732 if ${ac_cv_sizeof_off_t+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12736
12737 else
12738 if test "$ac_cv_type_off_t" = yes; then
12739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 as_fn_error 77 "cannot compute sizeof (off_t)
12742 See \`config.log' for more details" "$LINENO" 5; }
12743 else
12744 ac_cv_sizeof_off_t=0
12745 fi
12746 fi
12747
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12750 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12751
12752
12753
12754 cat >>confdefs.h <<_ACEOF
12755 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12756 _ACEOF
12757
12758
12759 # The cast to long int works around a bug in the HP C Compiler
12760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762 # This bug is HP SR number 8606223364.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12764 $as_echo_n "checking size of time_t... " >&6; }
12765 if ${ac_cv_sizeof_time_t+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12769
12770 else
12771 if test "$ac_cv_type_time_t" = yes; then
12772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error 77 "cannot compute sizeof (time_t)
12775 See \`config.log' for more details" "$LINENO" 5; }
12776 else
12777 ac_cv_sizeof_time_t=0
12778 fi
12779 fi
12780
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12783 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12784
12785
12786
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12789 _ACEOF
12790
12791
12792 SIZEOF_SHORT=$ac_cv_sizeof_short
12793 SIZEOF_INT=$ac_cv_sizeof_int
12794 SIZEOF_LONG=$ac_cv_sizeof_long
12795 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12796 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12797 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12798
12799
12800
12801
12802
12803
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12805 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12806 if ${ac_cv_c_bigendian+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 ac_cv_c_bigendian=unknown
12810 # See if we're dealing with a universal compiler.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #ifndef __APPLE_CC__
12814 not a universal capable compiler
12815 #endif
12816 typedef int dummy;
12817
12818 _ACEOF
12819 if ac_fn_c_try_compile "$LINENO"; then :
12820
12821 # Check for potential -arch flags. It is not universal unless
12822 # there are at least two -arch flags with different values.
12823 ac_arch=
12824 ac_prev=
12825 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12826 if test -n "$ac_prev"; then
12827 case $ac_word in
12828 i?86 | x86_64 | ppc | ppc64)
12829 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12830 ac_arch=$ac_word
12831 else
12832 ac_cv_c_bigendian=universal
12833 break
12834 fi
12835 ;;
12836 esac
12837 ac_prev=
12838 elif test "x$ac_word" = "x-arch"; then
12839 ac_prev=arch
12840 fi
12841 done
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 if test $ac_cv_c_bigendian = unknown; then
12845 # See if sys/param.h defines the BYTE_ORDER macro.
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include <sys/types.h>
12849 #include <sys/param.h>
12850
12851 int
12852 main ()
12853 {
12854 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12855 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12856 && LITTLE_ENDIAN)
12857 bogus endian macros
12858 #endif
12859
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 # It does; now see whether it defined to BIG_ENDIAN or not.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <sys/types.h>
12869 #include <sys/param.h>
12870
12871 int
12872 main ()
12873 {
12874 #if BYTE_ORDER != BIG_ENDIAN
12875 not big endian
12876 #endif
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 ac_cv_c_bigendian=yes
12884 else
12885 ac_cv_c_bigendian=no
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 fi
12891 if test $ac_cv_c_bigendian = unknown; then
12892 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 #include <limits.h>
12896
12897 int
12898 main ()
12899 {
12900 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12901 bogus endian macros
12902 #endif
12903
12904 ;
12905 return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909 # It does; now see whether it defined to _BIG_ENDIAN or not.
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <limits.h>
12913
12914 int
12915 main ()
12916 {
12917 #ifndef _BIG_ENDIAN
12918 not big endian
12919 #endif
12920
12921 ;
12922 return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_compile "$LINENO"; then :
12926 ac_cv_c_bigendian=yes
12927 else
12928 ac_cv_c_bigendian=no
12929 fi
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 fi
12934 if test $ac_cv_c_bigendian = unknown; then
12935 # Compile a test program.
12936 if test "$cross_compiling" = yes; then :
12937 # Try to guess by grepping values from an object file.
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 short int ascii_mm[] =
12941 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12942 short int ascii_ii[] =
12943 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12944 int use_ascii (int i) {
12945 return ascii_mm[i] + ascii_ii[i];
12946 }
12947 short int ebcdic_ii[] =
12948 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12949 short int ebcdic_mm[] =
12950 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12951 int use_ebcdic (int i) {
12952 return ebcdic_mm[i] + ebcdic_ii[i];
12953 }
12954 extern int foo;
12955
12956 int
12957 main ()
12958 {
12959 return use_ascii (foo) == use_ebcdic (foo);
12960 ;
12961 return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12966 ac_cv_c_bigendian=yes
12967 fi
12968 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12969 if test "$ac_cv_c_bigendian" = unknown; then
12970 ac_cv_c_bigendian=no
12971 else
12972 # finding both strings is unlikely to happen, but who knows?
12973 ac_cv_c_bigendian=unknown
12974 fi
12975 fi
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 else
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 int
12983 main ()
12984 {
12985
12986 /* Are we little or big endian? From Harbison&Steele. */
12987 union
12988 {
12989 long int l;
12990 char c[sizeof (long int)];
12991 } u;
12992 u.l = 1;
12993 return u.c[sizeof (long int) - 1] == 1;
12994
12995 ;
12996 return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_run "$LINENO"; then :
13000 ac_cv_c_bigendian=no
13001 else
13002 ac_cv_c_bigendian=yes
13003 fi
13004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13005 conftest.$ac_objext conftest.beam conftest.$ac_ext
13006 fi
13007
13008 fi
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13011 $as_echo "$ac_cv_c_bigendian" >&6; }
13012 case $ac_cv_c_bigendian in #(
13013 yes)
13014 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13015 ;; #(
13016 no)
13017 ;; #(
13018 universal)
13019
13020 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13021
13022 ;; #(
13023 *)
13024 as_fn_error $? "unknown endianness
13025 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13026 esac
13027
13028 if test $cross_compiling = no; then
13029 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13030 else
13031 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13032 fi
13033 ASM_TYPES_HEADER=./asm_types.h
13034
13035 echo "/* These defines are needed for the public ext2fs.h header file */" \
13036 > public_config.h
13037 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13038 uniq tmp_config.$$ >> public_config.h
13039 else
13040 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13041 fi
13042 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13043 uniq tmp_config.$$ >> public_config.h
13044 else
13045 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13046 fi
13047 rm -f tmp_config.$$
13048 PUBLIC_CONFIG_HEADER=./public_config.h
13049
13050 for ac_header in inttypes.h
13051 do :
13052 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_INTTYPES_H 1
13056 _ACEOF
13057
13058 fi
13059
13060 done
13061
13062 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13063 if test "x$ac_cv_type_intptr_t" = xyes; then :
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define HAVE_INTPTR_T 1
13067 _ACEOF
13068
13069
13070 fi
13071
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13073 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13074 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <sys/stat.h>
13080 int
13081 main ()
13082 {
13083 struct stat stat; stat.st_flags = 0;
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089 e2fsprogs_cv_struct_st_flags=yes
13090 else
13091 e2fsprogs_cv_struct_st_flags=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 fi
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13097 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13098 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13100 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13101 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <sys/stat.h>
13107 int
13108 main ()
13109 {
13110 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13111 ;
13112 return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_c_try_compile "$LINENO"; then :
13116 e2fsprogs_cv_struct_st_flags_immut=yes
13117 else
13118 e2fsprogs_cv_struct_st_flags_immut=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121 fi
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13124 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13125 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13126
13127 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13128
13129 fi
13130 fi
13131 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13132 #include <sys/socket.h>
13133 "
13134 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13135
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_SA_LEN 1
13138 _ACEOF
13139
13140 fi
13141
13142 if test -n "$BLKID_CMT"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13144 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13145 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lblkid $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char blkid_probe_get_topology ();
13160 int
13161 main ()
13162 {
13163 return blkid_probe_get_topology ();
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13170 else
13171 ac_cv_lib_blkid_blkid_probe_get_topology=no
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13178 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13179 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
13180
13181 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13182
13183 fi
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13186 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13187 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lblkid $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char blkid_probe_enable_partitions ();
13202 int
13203 main ()
13204 {
13205 return blkid_probe_enable_partitions ();
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13212 else
13213 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13220 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13221 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
13222
13223 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13224
13225 fi
13226
13227 fi
13228 if test -n "$DLOPEN_LIB" ; then
13229 ac_cv_func_dlopen=yes
13230 fi
13231 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
13232 do :
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13236 cat >>confdefs.h <<_ACEOF
13237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13238 _ACEOF
13239
13240 fi
13241 done
13242
13243 SOCKET_LIB=''
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13245 $as_echo_n "checking for socket in -lsocket... " >&6; }
13246 if ${ac_cv_lib_socket_socket+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lsocket $LIBS"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char socket ();
13261 int
13262 main ()
13263 {
13264 return socket ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 ac_cv_lib_socket_socket=yes
13271 else
13272 ac_cv_lib_socket_socket=no
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13279 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13280 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13281 SOCKET_LIB=-lsocket
13282 fi
13283
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13286 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13287 if ${ac_cv_lib_magic_magic_file+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-lmagic $LIBS"
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 char magic_file ();
13302 int
13303 main ()
13304 {
13305 return magic_file ();
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_magic_magic_file=yes
13312 else
13313 ac_cv_lib_magic_magic_file=no
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13320 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13321 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13322 MAGIC_LIB=-lmagic
13323 for ac_header in magic.h
13324 do :
13325 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_magic_h" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_MAGIC_H 1
13329 _ACEOF
13330
13331 fi
13332
13333 done
13334
13335 fi
13336
13337 if test "$ac_cv_func_dlopen" = yes ; then
13338 MAGIC_LIB=$DLOPEN_LIB
13339 fi
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13342 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13343 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 ac_check_lib_save_LIBS=$LIBS
13347 LIBS="-lrt $LIBS"
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char clock_gettime ();
13358 int
13359 main ()
13360 {
13361 return clock_gettime ();
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 ac_cv_lib_rt_clock_gettime=yes
13368 else
13369 ac_cv_lib_rt_clock_gettime=no
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LIBS=$ac_check_lib_save_LIBS
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13377 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13378 CLOCK_GETTIME_LIB=-lrt
13379 fi
13380
13381
13382 FUSE_CMT=
13383 FUSE_LIB=
13384 # Check whether --enable-fuse2fs was given.
13385 if test "${enable_fuse2fs+set}" = set; then :
13386 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13387 then
13388 FUSE_CMT="#"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13390 $as_echo "Disabling fuse2fs" >&6; }
13391 else
13392 for ac_header in pthread.h fuse.h
13393 do :
13394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13396 #define FUSE_USE_VERSION 29
13397 "
13398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13401 _ACEOF
13402
13403 else
13404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13406 as_fn_error $? "Cannot find fuse2fs headers.
13407 See \`config.log' for more details" "$LINENO" 5; }
13408 fi
13409
13410 done
13411
13412
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415 #define FUSE_USE_VERSION 29
13416 #ifdef __linux__
13417 #include <linux/fs.h>
13418 #include <linux/falloc.h>
13419 #include <linux/xattr.h>
13420 #endif
13421
13422 int
13423 main ()
13424 {
13425
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_cpp "$LINENO"; then :
13431
13432 else
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 as_fn_error $? "Cannot find fuse2fs Linux headers.
13436 See \`config.log' for more details" "$LINENO" 5; }
13437 fi
13438 rm -f conftest.err conftest.i conftest.$ac_ext
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13441 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13442 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-losxfuse $LIBS"
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13453 #ifdef __cplusplus
13454 extern "C"
13455 #endif
13456 char fuse_main ();
13457 int
13458 main ()
13459 {
13460 return fuse_main ();
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_lib_osxfuse_fuse_main=yes
13467 else
13468 ac_cv_lib_osxfuse_fuse_main=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 LIBS=$ac_check_lib_save_LIBS
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13475 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13476 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13477 FUSE_LIB=-losxfuse
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13480 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13481 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lfuse $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 char fuse_main ();
13496 int
13497 main ()
13498 {
13499 return fuse_main ();
13500 ;
13501 return 0;
13502 }
13503 _ACEOF
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 ac_cv_lib_fuse_fuse_main=yes
13506 else
13507 ac_cv_lib_fuse_fuse_main=no
13508 fi
13509 rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13512 fi
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13514 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13515 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13516 FUSE_LIB=-lfuse
13517 else
13518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13520 as_fn_error $? "Cannot find fuse library.
13521 See \`config.log' for more details" "$LINENO" 5; }
13522 fi
13523
13524 fi
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13527 $as_echo "Enabling fuse2fs" >&6; }
13528 fi
13529
13530 else
13531 for ac_header in pthread.h fuse.h
13532 do :
13533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13535 #define FUSE_USE_VERSION 29
13536 #ifdef __linux__
13537 # include <linux/fs.h>
13538 # include <linux/falloc.h>
13539 # include <linux/xattr.h>
13540 #endif
13541 "
13542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13545 _ACEOF
13546
13547 else
13548 FUSE_CMT="#"
13549 fi
13550
13551 done
13552
13553 if test -z "$FUSE_CMT"
13554 then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13556 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13557 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 ac_check_lib_save_LIBS=$LIBS
13561 LIBS="-losxfuse $LIBS"
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568 #ifdef __cplusplus
13569 extern "C"
13570 #endif
13571 char fuse_main ();
13572 int
13573 main ()
13574 {
13575 return fuse_main ();
13576 ;
13577 return 0;
13578 }
13579 _ACEOF
13580 if ac_fn_c_try_link "$LINENO"; then :
13581 ac_cv_lib_osxfuse_fuse_main=yes
13582 else
13583 ac_cv_lib_osxfuse_fuse_main=no
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13590 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13591 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13592 FUSE_LIB=-losxfuse
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13595 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13596 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-lfuse $LIBS"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13607 #ifdef __cplusplus
13608 extern "C"
13609 #endif
13610 char fuse_main ();
13611 int
13612 main ()
13613 {
13614 return fuse_main ();
13615 ;
13616 return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_lib_fuse_fuse_main=yes
13621 else
13622 ac_cv_lib_fuse_fuse_main=no
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13629 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13630 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13631 FUSE_LIB=-lfuse
13632 else
13633 FUSE_CMT="#"
13634 fi
13635
13636 fi
13637
13638 fi
13639 if test -z "$FUSE_CMT"
13640 then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13642 $as_echo "Enabling fuse2fs by default." >&6; }
13643 fi
13644
13645 fi
13646
13647
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13650 $as_echo_n "checking for optreset... " >&6; }
13651 if ${ac_cv_have_optreset+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 #include <unistd.h>
13657
13658 _ACEOF
13659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 $EGREP "optreset" >/dev/null 2>&1; then :
13661 ac_cv_have_optreset=yes
13662 else
13663 ac_cv_have_optreset=no
13664 fi
13665 rm -f conftest*
13666
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13669 $as_echo "$ac_cv_have_optreset" >&6; }
13670 if test $ac_cv_have_optreset = yes; then
13671
13672 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13673
13674 fi
13675
13676 SEM_INIT_LIB=''
13677 echo GL_THREADS_API: ${gl_threads_api}
13678 if test "${gl_threads_api}" != none
13679 then
13680 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13681 if test "x$ac_cv_func_sem_init" = xyes; then :
13682
13683 else
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13685 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13686 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-lpthread $LIBS"
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693
13694 /* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 char sem_init ();
13701 int
13702 main ()
13703 {
13704 return sem_init ();
13705 ;
13706 return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_link "$LINENO"; then :
13710 ac_cv_lib_pthread_sem_init=yes
13711 else
13712 ac_cv_lib_pthread_sem_init=no
13713 fi
13714 rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13719 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13720 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13721 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13722
13723 SEM_INIT_LIB=-lpthread
13724 else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13726 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13727 if ${ac_cv_lib_rt_sem_init+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lrt $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char sem_init ();
13742 int
13743 main ()
13744 {
13745 return sem_init ();
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_lib_rt_sem_init=yes
13752 else
13753 ac_cv_lib_rt_sem_init=no
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13760 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13761 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13762 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13763
13764 SEM_INIT_LIB=-lrt
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13767 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13768 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 ac_check_lib_save_LIBS=$LIBS
13772 LIBS="-lposix4 $LIBS"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775
13776 /* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13779 #ifdef __cplusplus
13780 extern "C"
13781 #endif
13782 char sem_init ();
13783 int
13784 main ()
13785 {
13786 return sem_init ();
13787 ;
13788 return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_link "$LINENO"; then :
13792 ac_cv_lib_posix4_sem_init=yes
13793 else
13794 ac_cv_lib_posix4_sem_init=no
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13801 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13802 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13803 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13804
13805 SEM_INIT_LIB=-lposix4
13806 fi
13807
13808 fi
13809
13810 fi
13811
13812 fi
13813 fi
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13816 $as_echo_n "checking for unified diff option... " >&6; }
13817 if diff -u $0 $0 > /dev/null 2>&1 ; then
13818 UNI_DIFF_OPTS=-u
13819 else
13820 UNI_DIFF_OPTS=-c
13821 fi
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13823 $as_echo "$UNI_DIFF_OPTS" >&6; }
13824
13825 case "$host_os" in
13826 linux*)
13827
13828 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13829
13830 ;;
13831 esac
13832
13833 $as_echo_n "checking for mount 'nosuid' option... "
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #include <sys/mount.h>
13837 int
13838 main ()
13839 {
13840 void *temp = (void *)(MS_NOSUID); (void) temp;
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_compile "$LINENO"; then :
13846
13847 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13848
13849 ac_cv_mount_nosuid=yes
13850 $as_echo "yes"
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #include <sys/mount.h>
13855 int
13856 main ()
13857 {
13858 void *temp = (void *)(MNT_NOSUID); (void) temp;
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864
13865 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13866
13867 ac_cv_mount_nosuid=yes
13868 $as_echo "yes"
13869 else
13870 ac_cv_mount_nosuid=no
13871 $as_echo "no"
13872
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
13879
13880 $as_echo_n "checking for mount 'nodev' option... "
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 #include <sys/mount.h>
13884 int
13885 main ()
13886 {
13887 void *temp = (void *)(MS_NODEV); (void) temp;
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893
13894 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13895
13896 ac_cv_mount_nodev=yes
13897 $as_echo "yes"
13898 else
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 #include <sys/mount.h>
13902 int
13903 main ()
13904 {
13905 void *temp = (void *)(MNT_NODEV); (void) temp;
13906 ;
13907 return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_compile "$LINENO"; then :
13911
13912 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13913
13914 ac_cv_mount_nodev=yes
13915 $as_echo "yes"
13916 else
13917 ac_cv_mount_nodev=no
13918 $as_echo "no"
13919
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925
13926 # Check whether --enable-lto was given.
13927 if test "${enable_lto+set}" = set; then :
13928 enableval=$enable_lto;
13929 else
13930 enable_lto=no
13931 fi
13932
13933 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13935 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13936 OLD_CFLAGS="$CFLAGS"
13937 OLD_LDFLAGS="$LDFLAGS"
13938 LTO_FLAGS="-g -flto -ffat-lto-objects"
13939 CFLAGS="$CFLAGS $LTO_FLAGS"
13940 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943
13944 int
13945 main ()
13946 {
13947
13948 ;
13949 return 0;
13950 }
13951 _ACEOF
13952 if ac_fn_c_try_link "$LINENO"; then :
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13954 $as_echo "yes" >&6; }
13955 lto_cflags=$LTO_FLAGS
13956 lto_ldflags=$LTO_FLAGS
13957 # Extract the first word of "gcc-ar", so it can be a program name with args.
13958 set dummy gcc-ar; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 $as_echo_n "checking for $ac_word... " >&6; }
13961 if ${ac_cv_path_gcc_ar+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 case $gcc_ar in
13965 [\\/]* | ?:[\\/]*)
13966 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13967 ;;
13968 *)
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13971 do
13972 IFS=$as_save_IFS
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978 break 2
13979 fi
13980 done
13981 done
13982 IFS=$as_save_IFS
13983
13984 ;;
13985 esac
13986 fi
13987 gcc_ar=$ac_cv_path_gcc_ar
13988 if test -n "$gcc_ar"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13990 $as_echo "$gcc_ar" >&6; }
13991 else
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
13994 fi
13995
13996
13997 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13998 set dummy gcc-ranlib; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000 $as_echo_n "checking for $ac_word... " >&6; }
14001 if ${ac_cv_path_gcc_ranlib+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 case $gcc_ranlib in
14005 [\\/]* | ?:[\\/]*)
14006 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14007 ;;
14008 *)
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14011 do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020 done
14021 done
14022 IFS=$as_save_IFS
14023
14024 ;;
14025 esac
14026 fi
14027 gcc_ranlib=$ac_cv_path_gcc_ranlib
14028 if test -n "$gcc_ranlib"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14030 $as_echo "$gcc_ranlib" >&6; }
14031 else
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 fi
14035
14036
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14044 have_lto=yes
14045 AR="${gcc_ar}"
14046 RANLIB="${gcc_ranlib}"
14047 fi
14048 CFLAGS="${OLD_CFLAGS}"
14049 LDFLAGS="${OLD_LDFLAGS}"
14050
14051
14052
14053 fi
14054 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14055 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14056 fi
14057 # Check whether --enable-ubsan was given.
14058 if test "${enable_ubsan+set}" = set; then :
14059 enableval=$enable_ubsan;
14060 else
14061 enable_ubsan=no
14062 fi
14063
14064 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14066 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
14067 OLD_CFLAGS="$CFLAGS"
14068 OLD_LDFLAGS="$LDFLAGS"
14069 UBSAN_FLAGS="-fsanitize=undefined"
14070 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14071 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074
14075 int
14076 main ()
14077 {
14078
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 if ac_fn_c_try_link "$LINENO"; then :
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14085 $as_echo "yes" >&6; }
14086 ubsan_cflags=$UBSAN_FLAGS
14087 ubsan_ldflags=$UBSAN_FLAGS
14088 have_ubsan=yes
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092 fi
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 CFLAGS="${OLD_CFLAGS}"
14096 LDFLAGS="${OLD_LDFLAGS}"
14097
14098
14099
14100 fi
14101 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14102 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14103 fi
14104 # Check whether --enable-addrsan was given.
14105 if test "${enable_addrsan+set}" = set; then :
14106 enableval=$enable_addrsan;
14107 else
14108 enable_addrsan=no
14109 fi
14110
14111 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14113 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
14114 OLD_CFLAGS="$CFLAGS"
14115 OLD_LDFLAGS="$LDFLAGS"
14116 ADDRSAN_FLAGS="-fsanitize=address"
14117 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14118 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121
14122 int
14123 main ()
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132 $as_echo "yes" >&6; }
14133 addrsan_cflags=$ADDRSAN_FLAGS
14134 addrsan_ldflags=$ADDRSAN_FLAGS
14135 have_addrsan=yes
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 CFLAGS="${OLD_CFLAGS}"
14143 LDFLAGS="${OLD_LDFLAGS}"
14144
14145
14146
14147 fi
14148 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14149 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14150 fi
14151 # Check whether --enable-threadsan was given.
14152 if test "${enable_threadsan+set}" = set; then :
14153 enableval=$enable_threadsan;
14154 else
14155 enable_threadsan=no
14156 fi
14157
14158 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14160 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14161 OLD_CFLAGS="$CFLAGS"
14162 OLD_LDFLAGS="$LDFLAGS"
14163 THREADSAN_FLAGS="-fsanitize=thread"
14164 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14165 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168
14169 int
14170 main ()
14171 {
14172
14173 ;
14174 return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14179 $as_echo "yes" >&6; }
14180 threadsan_cflags=$THREADSAN_FLAGS
14181 threadsan_ldflags=$THREADSAN_FLAGS
14182 have_threadsan=yes
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14189 CFLAGS="${OLD_CFLAGS}"
14190 LDFLAGS="${OLD_LDFLAGS}"
14191
14192
14193
14194 fi
14195 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14196 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14197 fi
14198 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14200 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14201 fi
14202 LINUX_CMT="#"
14203 CYGWIN_CMT="#"
14204 UNIX_CMT=
14205 case "$host_os" in
14206 linux*)
14207 LINUX_CMT=
14208 ;;
14209 cygwin)
14210 CYGWIN_CMT=
14211 UNIX_CMT="#"
14212 ;;
14213 esac
14214
14215
14216
14217 E2SCRUB_CMT="$LINUX_CMT"
14218
14219 case "$host_os" in
14220 linux* | gnu* | k*bsd*-gnu)
14221 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14222 root_prefix="";
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14224 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14225 fi
14226 ;;
14227 esac
14228 case "$host_os" in
14229 linux* | gnu* | k*bsd*-gnu)
14230 if test "$prefix" = NONE ; then
14231 prefix="/usr";
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14233 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14234 if test "$mandir" = '${prefix}/man' ; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14236 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14237 mandir=/usr/share/man
14238 fi
14239 fi
14240 ;;
14241 esac
14242 if test "$root_prefix" = NONE ; then
14243 if test "$prefix" = NONE ; then
14244 root_prefix="$ac_default_prefix"
14245 else
14246 root_prefix="$prefix"
14247 fi
14248 root_bindir=$bindir
14249 root_sbindir=$sbindir
14250 root_libdir=$libdir
14251 root_sysconfdir=$sysconfdir
14252 else
14253 root_bindir='${root_prefix}/bin'
14254 root_sbindir='${root_prefix}/sbin'
14255 root_libdir='${root_prefix}/lib'
14256 root_sysconfdir='${root_prefix}/etc'
14257 fi
14258 if test "$bindir" != '${exec_prefix}/bin'; then
14259 root_bindir=$bindir
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14261 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14262 fi
14263 if test "$sbindir" != '${exec_prefix}/sbin'; then
14264 root_sbindir=$sbindir
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14266 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14267 fi
14268 if test "$libdir" != '${exec_prefix}/lib'; then
14269 root_libdir=$libdir
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14271 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14272 fi
14273 if test "$sysconfdir" != '${prefix}/etc'; then
14274 root_sysconfdir=$sysconfdir
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14276 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14277 fi
14278
14279
14280
14281
14282
14283
14284 # Check whether --with-multiarch was given.
14285 if test "${with_multiarch+set}" = set; then :
14286 withval=$with_multiarch; if test "$withval" = "lib64"; then
14287 libdir=/usr/lib64
14288 root_libdir=/lib64
14289 else
14290 libdir=$libdir/$withval
14291 root_libdir=$root_libdir/$withval
14292 fi
14293
14294 fi
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14297 $as_echo_n "checking whether we can link with -static... " >&6; }
14298 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <stdio.h>
14305 int
14306 main ()
14307 {
14308 fflush(stdout);
14309 ;
14310 return 0;
14311 }
14312 _ACEOF
14313 if ac_fn_c_try_link "$LINENO"; then :
14314 ac_cv_e2fsprogs_use_static=yes
14315 else
14316 ac_cv_e2fsprogs_use_static=no
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14320 LDFLAGS=$SAVE_LDFLAGS
14321 fi
14322
14323 case "$host_os" in
14324 solaris2.*)
14325 ac_cv_e2fsprogs_use_static=no
14326 ;;
14327 esac
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14329 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14330 if test $ac_cv_e2fsprogs_use_static = yes; then
14331 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14332 fi
14333
14334 case "$host_os" in
14335 darwin*)
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14337 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14338
14339 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14340
14341 ;;
14342 esac
14343 if test "$cross_compiling" = yes ; then
14344 DO_TEST_SUITE=
14345 else
14346 DO_TEST_SUITE=check
14347 fi
14348
14349 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14350 if test -n "$CPPFLAGS" ; then
14351 INCLUDES="$INCLUDES $CPPFLAGS"
14352 fi
14353 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14354 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14355 fi
14356 if test -n "$WITH_DIET_LIBC" ; then
14357 INCLUDES="$INCLUDES -D_REENTRANT"
14358 fi
14359
14360 if test $cross_compiling = no; then
14361 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14362 BUILD_LDFLAGS="$LDFLAGS"
14363 fi
14364
14365
14366 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14367 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14368 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14369
14370
14371
14372
14373
14374 # Check whether --with-udev_rules_dir was given.
14375 if test "${with_udev_rules_dir+set}" = set; then :
14376 withval=$with_udev_rules_dir;
14377 else
14378 with_udev_rules_dir=yes
14379 fi
14380
14381 if test "x${with_udev_rules_dir}" != "xno"; then :
14382
14383 if test "x${with_udev_rules_dir}" = "xyes"; then :
14384
14385
14386 pkg_failed=no
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14388 $as_echo_n "checking for udev... " >&6; }
14389
14390 if test -n "$udev_CFLAGS"; then
14391 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14392 elif test -n "$PKG_CONFIG"; then
14393 if test -n "$PKG_CONFIG" && \
14394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14395 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14398 test $ac_status = 0; }; then
14399 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14400 test "x$?" != "x0" && pkg_failed=yes
14401 else
14402 pkg_failed=yes
14403 fi
14404 else
14405 pkg_failed=untried
14406 fi
14407 if test -n "$udev_LIBS"; then
14408 pkg_cv_udev_LIBS="$udev_LIBS"
14409 elif test -n "$PKG_CONFIG"; then
14410 if test -n "$PKG_CONFIG" && \
14411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14412 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14413 ac_status=$?
14414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415 test $ac_status = 0; }; then
14416 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14417 test "x$?" != "x0" && pkg_failed=yes
14418 else
14419 pkg_failed=yes
14420 fi
14421 else
14422 pkg_failed=untried
14423 fi
14424
14425
14426
14427 if test $pkg_failed = yes; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430
14431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14432 _pkg_short_errors_supported=yes
14433 else
14434 _pkg_short_errors_supported=no
14435 fi
14436 if test $_pkg_short_errors_supported = yes; then
14437 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14438 else
14439 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14440 fi
14441 # Put the nasty error message in config.log where it belongs
14442 echo "$udev_PKG_ERRORS" >&5
14443
14444
14445 with_udev_rules_dir=""
14446
14447 elif test $pkg_failed = untried; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14450
14451 with_udev_rules_dir=""
14452
14453 else
14454 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14455 udev_LIBS=$pkg_cv_udev_LIBS
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 $as_echo "yes" >&6; }
14458
14459 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14460
14461 fi
14462
14463 fi
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14465 $as_echo_n "checking for udev rules dir... " >&6; }
14466 pkg_udev_rules_dir="${with_udev_rules_dir}"
14467 if test -n "${pkg_udev_rules_dir}"; then :
14468
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14470 $as_echo "${pkg_udev_rules_dir}" >&6; }
14471 have_udev="yes"
14472
14473 else
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477 have_udev="no"
14478
14479 fi
14480
14481 else
14482
14483 have_udev="disabled"
14484
14485 fi
14486
14487
14488
14489
14490 # Check whether --with-crond_dir was given.
14491 if test "${with_crond_dir+set}" = set; then :
14492 withval=$with_crond_dir;
14493 else
14494 with_crond_dir=yes
14495 fi
14496
14497 if test "x${with_crond_dir}" != "xno"; then :
14498
14499 if test "x${with_crond_dir}" = "xyes"; then :
14500
14501 if test -d "/etc/cron.d"; then :
14502 with_crond_dir="/etc/cron.d"
14503 else
14504 have_crond="no"; with_crond_dir=""
14505 fi
14506
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14509 $as_echo_n "checking for system crontab dir... " >&6; }
14510 crond_dir="${with_crond_dir}"
14511 if test -n "${crond_dir}"; then :
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14514 $as_echo "${crond_dir}" >&6; }
14515 have_crond="yes"
14516
14517 else
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14521 have_crond="no"
14522
14523 fi
14524
14525 else
14526
14527 have_crond="disabled"
14528
14529 fi
14530
14531
14532
14533
14534 # Check whether --with-systemd_unit_dir was given.
14535 if test "${with_systemd_unit_dir+set}" = set; then :
14536 withval=$with_systemd_unit_dir;
14537 else
14538 with_systemd_unit_dir=yes
14539 fi
14540
14541 if test "x${with_systemd_unit_dir}" != "xno"; then :
14542
14543 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14544
14545
14546 pkg_failed=no
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14548 $as_echo_n "checking for systemd... " >&6; }
14549
14550 if test -n "$systemd_CFLAGS"; then
14551 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14552 elif test -n "$PKG_CONFIG"; then
14553 if test -n "$PKG_CONFIG" && \
14554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14555 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14556 ac_status=$?
14557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14558 test $ac_status = 0; }; then
14559 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14560 test "x$?" != "x0" && pkg_failed=yes
14561 else
14562 pkg_failed=yes
14563 fi
14564 else
14565 pkg_failed=untried
14566 fi
14567 if test -n "$systemd_LIBS"; then
14568 pkg_cv_systemd_LIBS="$systemd_LIBS"
14569 elif test -n "$PKG_CONFIG"; then
14570 if test -n "$PKG_CONFIG" && \
14571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14572 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14573 ac_status=$?
14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }; then
14576 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14577 test "x$?" != "x0" && pkg_failed=yes
14578 else
14579 pkg_failed=yes
14580 fi
14581 else
14582 pkg_failed=untried
14583 fi
14584
14585
14586
14587 if test $pkg_failed = yes; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14590
14591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14592 _pkg_short_errors_supported=yes
14593 else
14594 _pkg_short_errors_supported=no
14595 fi
14596 if test $_pkg_short_errors_supported = yes; then
14597 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14598 else
14599 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14600 fi
14601 # Put the nasty error message in config.log where it belongs
14602 echo "$systemd_PKG_ERRORS" >&5
14603
14604
14605 with_systemd_unit_dir=""
14606
14607 elif test $pkg_failed = untried; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14609 $as_echo "no" >&6; }
14610
14611 with_systemd_unit_dir=""
14612
14613 else
14614 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14615 systemd_LIBS=$pkg_cv_systemd_LIBS
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617 $as_echo "yes" >&6; }
14618
14619 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14620
14621 fi
14622
14623
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14626 $as_echo_n "checking for systemd system unit dir... " >&6; }
14627 systemd_system_unit_dir="${with_systemd_unit_dir}"
14628 if test -n "${systemd_system_unit_dir}"; then :
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14631 $as_echo "${systemd_system_unit_dir}" >&6; }
14632 have_systemd="yes"
14633
14634 else
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638 have_systemd="no"
14639
14640 fi
14641
14642 else
14643
14644 have_systemd="disabled"
14645
14646 fi
14647
14648
14649
14650 test -d lib || mkdir lib
14651 test -d include || mkdir include
14652 test -d include/linux || mkdir include/linux
14653 test -d include/asm || mkdir include/asm
14654 if test -z "$UUID_CMT" ; then
14655 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14656 lib/uuid/uuid_types.h"
14657 fi
14658 if test -z "$BLKID_CMT" ; then
14659 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14660 lib/blkid/blkid_types.h"
14661 fi
14662 for i in MCONFIG Makefile \
14663 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14664 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14665 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14666 $uuid_out_list $blkid_out_list lib/support/Makefile \
14667 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14668 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14669 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14670 resize/Makefile doc/Makefile intl/Makefile \
14671 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14672 if test -d `dirname ${srcdir}/$i` ; then
14673 outlist="$outlist $i"
14674 fi
14675 done
14676 ac_config_files="$ac_config_files $outlist"
14677
14678 cat >confcache <<\_ACEOF
14679 # This file is a shell script that caches the results of configure
14680 # tests run on this system so they can be shared between configure
14681 # scripts and configure runs, see configure's option --config-cache.
14682 # It is not useful on other systems. If it contains results you don't
14683 # want to keep, you may remove or edit it.
14684 #
14685 # config.status only pays attention to the cache file if you give it
14686 # the --recheck option to rerun configure.
14687 #
14688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14690 # following values.
14691
14692 _ACEOF
14693
14694 # The following way of writing the cache mishandles newlines in values,
14695 # but we know of no workaround that is simple, portable, and efficient.
14696 # So, we kill variables containing newlines.
14697 # Ultrix sh set writes to stderr and can't be redirected directly,
14698 # and sets the high bit in the cache file unless we assign to the vars.
14699 (
14700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14701 eval ac_val=\$$ac_var
14702 case $ac_val in #(
14703 *${as_nl}*)
14704 case $ac_var in #(
14705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14707 esac
14708 case $ac_var in #(
14709 _ | IFS | as_nl) ;; #(
14710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14711 *) { eval $ac_var=; unset $ac_var;} ;;
14712 esac ;;
14713 esac
14714 done
14715
14716 (set) 2>&1 |
14717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14718 *${as_nl}ac_space=\ *)
14719 # `set' does not quote correctly, so add quotes: double-quote
14720 # substitution turns \\\\ into \\, and sed turns \\ into \.
14721 sed -n \
14722 "s/'/'\\\\''/g;
14723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14724 ;; #(
14725 *)
14726 # `set' quotes correctly as required by POSIX, so do not add quotes.
14727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14728 ;;
14729 esac |
14730 sort
14731 ) |
14732 sed '
14733 /^ac_cv_env_/b end
14734 t clear
14735 :clear
14736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14737 t end
14738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14739 :end' >>confcache
14740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14741 if test -w "$cache_file"; then
14742 if test "x$cache_file" != "x/dev/null"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14744 $as_echo "$as_me: updating cache $cache_file" >&6;}
14745 if test ! -f "$cache_file" || test -h "$cache_file"; then
14746 cat confcache >"$cache_file"
14747 else
14748 case $cache_file in #(
14749 */* | ?:*)
14750 mv -f confcache "$cache_file"$$ &&
14751 mv -f "$cache_file"$$ "$cache_file" ;; #(
14752 *)
14753 mv -f confcache "$cache_file" ;;
14754 esac
14755 fi
14756 fi
14757 else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14760 fi
14761 fi
14762 rm -f confcache
14763
14764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14765 # Let make expand exec_prefix.
14766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14767
14768 DEFS=-DHAVE_CONFIG_H
14769
14770 ac_libobjs=
14771 ac_ltlibobjs=
14772 U=
14773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14774 # 1. Remove the extension, and $U if already installed.
14775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14778 # will be set to the directory where LIBOBJS objects are built.
14779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14781 done
14782 LIBOBJS=$ac_libobjs
14783
14784 LTLIBOBJS=$ac_ltlibobjs
14785
14786
14787
14788
14789 : "${CONFIG_STATUS=./config.status}"
14790 ac_write_fail=0
14791 ac_clean_files_save=$ac_clean_files
14792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14795 as_write_fail=0
14796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14797 #! $SHELL
14798 # Generated by $as_me.
14799 # Run this file to recreate the current configuration.
14800 # Compiler output produced by configure, useful for debugging
14801 # configure, is in config.log if it exists.
14802
14803 debug=false
14804 ac_cs_recheck=false
14805 ac_cs_silent=false
14806
14807 SHELL=\${CONFIG_SHELL-$SHELL}
14808 export SHELL
14809 _ASEOF
14810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14811 ## -------------------- ##
14812 ## M4sh Initialization. ##
14813 ## -------------------- ##
14814
14815 # Be more Bourne compatible
14816 DUALCASE=1; export DUALCASE # for MKS sh
14817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14818 emulate sh
14819 NULLCMD=:
14820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14821 # is contrary to our usage. Disable this feature.
14822 alias -g '${1+"$@"}'='"$@"'
14823 setopt NO_GLOB_SUBST
14824 else
14825 case `(set -o) 2>/dev/null` in #(
14826 *posix*) :
14827 set -o posix ;; #(
14828 *) :
14829 ;;
14830 esac
14831 fi
14832
14833
14834 as_nl='
14835 '
14836 export as_nl
14837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14841 # Prefer a ksh shell builtin over an external printf program on Solaris,
14842 # but without wasting forks for bash or zsh.
14843 if test -z "$BASH_VERSION$ZSH_VERSION" \
14844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14845 as_echo='print -r --'
14846 as_echo_n='print -rn --'
14847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14848 as_echo='printf %s\n'
14849 as_echo_n='printf %s'
14850 else
14851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14853 as_echo_n='/usr/ucb/echo -n'
14854 else
14855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14856 as_echo_n_body='eval
14857 arg=$1;
14858 case $arg in #(
14859 *"$as_nl"*)
14860 expr "X$arg" : "X\\(.*\\)$as_nl";
14861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14862 esac;
14863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14864 '
14865 export as_echo_n_body
14866 as_echo_n='sh -c $as_echo_n_body as_echo'
14867 fi
14868 export as_echo_body
14869 as_echo='sh -c $as_echo_body as_echo'
14870 fi
14871
14872 # The user is always right.
14873 if test "${PATH_SEPARATOR+set}" != set; then
14874 PATH_SEPARATOR=:
14875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14877 PATH_SEPARATOR=';'
14878 }
14879 fi
14880
14881
14882 # IFS
14883 # We need space, tab and new line, in precisely that order. Quoting is
14884 # there to prevent editors from complaining about space-tab.
14885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14886 # splitting by setting IFS to empty value.)
14887 IFS=" "" $as_nl"
14888
14889 # Find who we are. Look in the path if we contain no directory separator.
14890 as_myself=
14891 case $0 in #((
14892 *[\\/]* ) as_myself=$0 ;;
14893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14895 do
14896 IFS=$as_save_IFS
14897 test -z "$as_dir" && as_dir=.
14898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14899 done
14900 IFS=$as_save_IFS
14901
14902 ;;
14903 esac
14904 # We did not find ourselves, most probably we were run as `sh COMMAND'
14905 # in which case we are not to be found in the path.
14906 if test "x$as_myself" = x; then
14907 as_myself=$0
14908 fi
14909 if test ! -f "$as_myself"; then
14910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14911 exit 1
14912 fi
14913
14914 # Unset variables that we do not need and which cause bugs (e.g. in
14915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14916 # suppresses any "Segmentation fault" message there. '((' could
14917 # trigger a bug in pdksh 5.2.14.
14918 for as_var in BASH_ENV ENV MAIL MAILPATH
14919 do eval test x\${$as_var+set} = xset \
14920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14921 done
14922 PS1='$ '
14923 PS2='> '
14924 PS4='+ '
14925
14926 # NLS nuisances.
14927 LC_ALL=C
14928 export LC_ALL
14929 LANGUAGE=C
14930 export LANGUAGE
14931
14932 # CDPATH.
14933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14934
14935
14936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14937 # ----------------------------------------
14938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14940 # script with STATUS, using 1 if that was 0.
14941 as_fn_error ()
14942 {
14943 as_status=$1; test $as_status -eq 0 && as_status=1
14944 if test "$4"; then
14945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14947 fi
14948 $as_echo "$as_me: error: $2" >&2
14949 as_fn_exit $as_status
14950 } # as_fn_error
14951
14952
14953 # as_fn_set_status STATUS
14954 # -----------------------
14955 # Set $? to STATUS, without forking.
14956 as_fn_set_status ()
14957 {
14958 return $1
14959 } # as_fn_set_status
14960
14961 # as_fn_exit STATUS
14962 # -----------------
14963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14964 as_fn_exit ()
14965 {
14966 set +e
14967 as_fn_set_status $1
14968 exit $1
14969 } # as_fn_exit
14970
14971 # as_fn_unset VAR
14972 # ---------------
14973 # Portably unset VAR.
14974 as_fn_unset ()
14975 {
14976 { eval $1=; unset $1;}
14977 }
14978 as_unset=as_fn_unset
14979 # as_fn_append VAR VALUE
14980 # ----------------------
14981 # Append the text in VALUE to the end of the definition contained in VAR. Take
14982 # advantage of any shell optimizations that allow amortized linear growth over
14983 # repeated appends, instead of the typical quadratic growth present in naive
14984 # implementations.
14985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14986 eval 'as_fn_append ()
14987 {
14988 eval $1+=\$2
14989 }'
14990 else
14991 as_fn_append ()
14992 {
14993 eval $1=\$$1\$2
14994 }
14995 fi # as_fn_append
14996
14997 # as_fn_arith ARG...
14998 # ------------------
14999 # Perform arithmetic evaluation on the ARGs, and store the result in the
15000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15001 # must be portable across $(()) and expr.
15002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15003 eval 'as_fn_arith ()
15004 {
15005 as_val=$(( $* ))
15006 }'
15007 else
15008 as_fn_arith ()
15009 {
15010 as_val=`expr "$@" || test $? -eq 1`
15011 }
15012 fi # as_fn_arith
15013
15014
15015 if expr a : '\(a\)' >/dev/null 2>&1 &&
15016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15017 as_expr=expr
15018 else
15019 as_expr=false
15020 fi
15021
15022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15023 as_basename=basename
15024 else
15025 as_basename=false
15026 fi
15027
15028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15029 as_dirname=dirname
15030 else
15031 as_dirname=false
15032 fi
15033
15034 as_me=`$as_basename -- "$0" ||
15035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15036 X"$0" : 'X\(//\)$' \| \
15037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15038 $as_echo X/"$0" |
15039 sed '/^.*\/\([^/][^/]*\)\/*$/{
15040 s//\1/
15041 q
15042 }
15043 /^X\/\(\/\/\)$/{
15044 s//\1/
15045 q
15046 }
15047 /^X\/\(\/\).*/{
15048 s//\1/
15049 q
15050 }
15051 s/.*/./; q'`
15052
15053 # Avoid depending upon Character Ranges.
15054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15057 as_cr_digits='0123456789'
15058 as_cr_alnum=$as_cr_Letters$as_cr_digits
15059
15060 ECHO_C= ECHO_N= ECHO_T=
15061 case `echo -n x` in #(((((
15062 -n*)
15063 case `echo 'xy\c'` in
15064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15065 xy) ECHO_C='\c';;
15066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15067 ECHO_T=' ';;
15068 esac;;
15069 *)
15070 ECHO_N='-n';;
15071 esac
15072
15073 rm -f conf$$ conf$$.exe conf$$.file
15074 if test -d conf$$.dir; then
15075 rm -f conf$$.dir/conf$$.file
15076 else
15077 rm -f conf$$.dir
15078 mkdir conf$$.dir 2>/dev/null
15079 fi
15080 if (echo >conf$$.file) 2>/dev/null; then
15081 if ln -s conf$$.file conf$$ 2>/dev/null; then
15082 as_ln_s='ln -s'
15083 # ... but there are two gotchas:
15084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15086 # In both cases, we have to default to `cp -pR'.
15087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15088 as_ln_s='cp -pR'
15089 elif ln conf$$.file conf$$ 2>/dev/null; then
15090 as_ln_s=ln
15091 else
15092 as_ln_s='cp -pR'
15093 fi
15094 else
15095 as_ln_s='cp -pR'
15096 fi
15097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15098 rmdir conf$$.dir 2>/dev/null
15099
15100
15101 # as_fn_mkdir_p
15102 # -------------
15103 # Create "$as_dir" as a directory, including parents if necessary.
15104 as_fn_mkdir_p ()
15105 {
15106
15107 case $as_dir in #(
15108 -*) as_dir=./$as_dir;;
15109 esac
15110 test -d "$as_dir" || eval $as_mkdir_p || {
15111 as_dirs=
15112 while :; do
15113 case $as_dir in #(
15114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15115 *) as_qdir=$as_dir;;
15116 esac
15117 as_dirs="'$as_qdir' $as_dirs"
15118 as_dir=`$as_dirname -- "$as_dir" ||
15119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120 X"$as_dir" : 'X\(//\)[^/]' \| \
15121 X"$as_dir" : 'X\(//\)$' \| \
15122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15123 $as_echo X"$as_dir" |
15124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\(\/\/\)[^/].*/{
15129 s//\1/
15130 q
15131 }
15132 /^X\(\/\/\)$/{
15133 s//\1/
15134 q
15135 }
15136 /^X\(\/\).*/{
15137 s//\1/
15138 q
15139 }
15140 s/.*/./; q'`
15141 test -d "$as_dir" && break
15142 done
15143 test -z "$as_dirs" || eval "mkdir $as_dirs"
15144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15145
15146
15147 } # as_fn_mkdir_p
15148 if mkdir -p . 2>/dev/null; then
15149 as_mkdir_p='mkdir -p "$as_dir"'
15150 else
15151 test -d ./-p && rmdir ./-p
15152 as_mkdir_p=false
15153 fi
15154
15155
15156 # as_fn_executable_p FILE
15157 # -----------------------
15158 # Test if FILE is an executable regular file.
15159 as_fn_executable_p ()
15160 {
15161 test -f "$1" && test -x "$1"
15162 } # as_fn_executable_p
15163 as_test_x='test -x'
15164 as_executable_p=as_fn_executable_p
15165
15166 # Sed expression to map a string onto a valid CPP name.
15167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15168
15169 # Sed expression to map a string onto a valid variable name.
15170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15171
15172
15173 exec 6>&1
15174 ## ----------------------------------- ##
15175 ## Main body of $CONFIG_STATUS script. ##
15176 ## ----------------------------------- ##
15177 _ASEOF
15178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15179
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181 # Save the log message, to keep $0 and so on meaningful, and to
15182 # report actual input values of CONFIG_FILES etc. instead of their
15183 # values after options handling.
15184 ac_log="
15185 This file was extended by $as_me, which was
15186 generated by GNU Autoconf 2.69. Invocation command line was
15187
15188 CONFIG_FILES = $CONFIG_FILES
15189 CONFIG_HEADERS = $CONFIG_HEADERS
15190 CONFIG_LINKS = $CONFIG_LINKS
15191 CONFIG_COMMANDS = $CONFIG_COMMANDS
15192 $ $0 $@
15193
15194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15195 "
15196
15197 _ACEOF
15198
15199 case $ac_config_files in *"
15200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15201 esac
15202
15203 case $ac_config_headers in *"
15204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15205 esac
15206
15207
15208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 # Files that config.status was made for.
15210 config_files="$ac_config_files"
15211 config_headers="$ac_config_headers"
15212 config_commands="$ac_config_commands"
15213
15214 _ACEOF
15215
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 ac_cs_usage="\
15218 \`$as_me' instantiates files and other configuration actions
15219 from templates according to the current configuration. Unless the files
15220 and actions are specified as TAGs, all are instantiated by default.
15221
15222 Usage: $0 [OPTION]... [TAG]...
15223
15224 -h, --help print this help, then exit
15225 -V, --version print version number and configuration settings, then exit
15226 --config print configuration, then exit
15227 -q, --quiet, --silent
15228 do not print progress messages
15229 -d, --debug don't remove temporary files
15230 --recheck update $as_me by reconfiguring in the same conditions
15231 --file=FILE[:TEMPLATE]
15232 instantiate the configuration file FILE
15233 --header=FILE[:TEMPLATE]
15234 instantiate the configuration header FILE
15235
15236 Configuration files:
15237 $config_files
15238
15239 Configuration headers:
15240 $config_headers
15241
15242 Configuration commands:
15243 $config_commands
15244
15245 Report bugs to the package provider."
15246
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15250 ac_cs_version="\\
15251 config.status
15252 configured by $0, generated by GNU Autoconf 2.69,
15253 with options \\"\$ac_cs_config\\"
15254
15255 Copyright (C) 2012 Free Software Foundation, Inc.
15256 This config.status script is free software; the Free Software Foundation
15257 gives unlimited permission to copy, distribute and modify it."
15258
15259 ac_pwd='$ac_pwd'
15260 srcdir='$srcdir'
15261 INSTALL='$INSTALL'
15262 MKDIR_P='$MKDIR_P'
15263 AWK='$AWK'
15264 test -n "\$AWK" || AWK=awk
15265 _ACEOF
15266
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 # The default lists apply if the user does not specify any file.
15269 ac_need_defaults=:
15270 while test $# != 0
15271 do
15272 case $1 in
15273 --*=?*)
15274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15276 ac_shift=:
15277 ;;
15278 --*=)
15279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280 ac_optarg=
15281 ac_shift=:
15282 ;;
15283 *)
15284 ac_option=$1
15285 ac_optarg=$2
15286 ac_shift=shift
15287 ;;
15288 esac
15289
15290 case $ac_option in
15291 # Handling of the options.
15292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15293 ac_cs_recheck=: ;;
15294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15295 $as_echo "$ac_cs_version"; exit ;;
15296 --config | --confi | --conf | --con | --co | --c )
15297 $as_echo "$ac_cs_config"; exit ;;
15298 --debug | --debu | --deb | --de | --d | -d )
15299 debug=: ;;
15300 --file | --fil | --fi | --f )
15301 $ac_shift
15302 case $ac_optarg in
15303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15304 '') as_fn_error $? "missing file argument" ;;
15305 esac
15306 as_fn_append CONFIG_FILES " '$ac_optarg'"
15307 ac_need_defaults=false;;
15308 --header | --heade | --head | --hea )
15309 $ac_shift
15310 case $ac_optarg in
15311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15312 esac
15313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15314 ac_need_defaults=false;;
15315 --he | --h)
15316 # Conflict between --help and --header
15317 as_fn_error $? "ambiguous option: \`$1'
15318 Try \`$0 --help' for more information.";;
15319 --help | --hel | -h )
15320 $as_echo "$ac_cs_usage"; exit ;;
15321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15323 ac_cs_silent=: ;;
15324
15325 # This is an error.
15326 -*) as_fn_error $? "unrecognized option: \`$1'
15327 Try \`$0 --help' for more information." ;;
15328
15329 *) as_fn_append ac_config_targets " $1"
15330 ac_need_defaults=false ;;
15331
15332 esac
15333 shift
15334 done
15335
15336 ac_configure_extra_args=
15337
15338 if $ac_cs_silent; then
15339 exec 6>/dev/null
15340 ac_configure_extra_args="$ac_configure_extra_args --silent"
15341 fi
15342
15343 _ACEOF
15344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345 if \$ac_cs_recheck; then
15346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15347 shift
15348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15349 CONFIG_SHELL='$SHELL'
15350 export CONFIG_SHELL
15351 exec "\$@"
15352 fi
15353
15354 _ACEOF
15355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15356 exec 5>>config.log
15357 {
15358 echo
15359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15360 ## Running $as_me. ##
15361 _ASBOX
15362 $as_echo "$ac_log"
15363 } >&5
15364
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 #
15368 # INIT-COMMANDS
15369 #
15370 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15371 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15372 # from automake < 1.5.
15373 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15374 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15375 LINGUAS="${LINGUAS-%UNSET%}"
15376
15377
15378 _ACEOF
15379
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381
15382 # Handling of arguments.
15383 for ac_config_target in $ac_config_targets
15384 do
15385 case $ac_config_target in
15386 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15387 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15388 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15389
15390 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15391 esac
15392 done
15393
15394
15395 # If the user did not use the arguments to specify the items to instantiate,
15396 # then the envvar interface is used. Set only those that are not.
15397 # We use the long form for the default assignment because of an extremely
15398 # bizarre bug on SunOS 4.1.3.
15399 if $ac_need_defaults; then
15400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15403 fi
15404
15405 # Have a temporary directory for convenience. Make it in the build tree
15406 # simply because there is no reason against having it here, and in addition,
15407 # creating and moving files from /tmp can sometimes cause problems.
15408 # Hook for its removal unless debugging.
15409 # Note that there is a small window in which the directory will not be cleaned:
15410 # after its creation but before its name has been assigned to `$tmp'.
15411 $debug ||
15412 {
15413 tmp= ac_tmp=
15414 trap 'exit_status=$?
15415 : "${ac_tmp:=$tmp}"
15416 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15417 ' 0
15418 trap 'as_fn_exit 1' 1 2 13 15
15419 }
15420 # Create a (secure) tmp directory for tmp files.
15421
15422 {
15423 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15424 test -d "$tmp"
15425 } ||
15426 {
15427 tmp=./conf$$-$RANDOM
15428 (umask 077 && mkdir "$tmp")
15429 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15430 ac_tmp=$tmp
15431
15432 # Set up the scripts for CONFIG_FILES section.
15433 # No need to generate them if there are no CONFIG_FILES.
15434 # This happens for instance with `./config.status config.h'.
15435 if test -n "$CONFIG_FILES"; then
15436
15437 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15438 ac_cs_awk_getline=:
15439 ac_cs_awk_pipe_init=
15440 ac_cs_awk_read_file='
15441 while ((getline aline < (F[key])) > 0)
15442 print(aline)
15443 close(F[key])'
15444 ac_cs_awk_pipe_fini=
15445 else
15446 ac_cs_awk_getline=false
15447 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15448 ac_cs_awk_read_file='
15449 print "|#_!!_#|"
15450 print "cat " F[key] " &&"
15451 '$ac_cs_awk_pipe_init
15452 # The final `:' finishes the AND list.
15453 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15454 fi
15455 ac_cr=`echo X | tr X '\015'`
15456 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15457 # But we know of no other shell where ac_cr would be empty at this
15458 # point, so we can use a bashism as a fallback.
15459 if test "x$ac_cr" = x; then
15460 eval ac_cr=\$\'\\r\'
15461 fi
15462 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15463 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15464 ac_cs_awk_cr='\\r'
15465 else
15466 ac_cs_awk_cr=$ac_cr
15467 fi
15468
15469 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15470 _ACEOF
15471
15472 # Create commands to substitute file output variables.
15473 {
15474 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15475 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15476 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15477 echo "_ACAWK" &&
15478 echo "_ACEOF"
15479 } >conf$$files.sh &&
15480 . ./conf$$files.sh ||
15481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15482 rm -f conf$$files.sh
15483
15484 {
15485 echo "cat >conf$$subs.awk <<_ACEOF" &&
15486 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15487 echo "_ACEOF"
15488 } >conf$$subs.sh ||
15489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15490 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15491 ac_delim='%!_!# '
15492 for ac_last_try in false false false false false :; do
15493 . ./conf$$subs.sh ||
15494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15495
15496 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15497 if test $ac_delim_n = $ac_delim_num; then
15498 break
15499 elif $ac_last_try; then
15500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15501 else
15502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15503 fi
15504 done
15505 rm -f conf$$subs.sh
15506
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15509 _ACEOF
15510 sed -n '
15511 h
15512 s/^/S["/; s/!.*/"]=/
15513 p
15514 g
15515 s/^[^!]*!//
15516 :repl
15517 t repl
15518 s/'"$ac_delim"'$//
15519 t delim
15520 :nl
15521 h
15522 s/\(.\{148\}\)..*/\1/
15523 t more1
15524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15525 p
15526 n
15527 b repl
15528 :more1
15529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15530 p
15531 g
15532 s/.\{148\}//
15533 t nl
15534 :delim
15535 h
15536 s/\(.\{148\}\)..*/\1/
15537 t more2
15538 s/["\\]/\\&/g; s/^/"/; s/$/"/
15539 p
15540 b
15541 :more2
15542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15543 p
15544 g
15545 s/.\{148\}//
15546 t delim
15547 ' <conf$$subs.awk | sed '
15548 /^[^""]/{
15549 N
15550 s/\n//
15551 }
15552 ' >>$CONFIG_STATUS || ac_write_fail=1
15553 rm -f conf$$subs.awk
15554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555 _ACAWK
15556 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15557 for (key in S) S_is_set[key] = 1
15558 FS = "\a"
15559 \$ac_cs_awk_pipe_init
15560 }
15561 {
15562 line = $ 0
15563 nfields = split(line, field, "@")
15564 substed = 0
15565 len = length(field[1])
15566 for (i = 2; i < nfields; i++) {
15567 key = field[i]
15568 keylen = length(key)
15569 if (S_is_set[key]) {
15570 value = S[key]
15571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15572 len += length(value) + length(field[++i])
15573 substed = 1
15574 } else
15575 len += 1 + keylen
15576 }
15577 if (nfields == 3 && !substed) {
15578 key = field[2]
15579 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15580 \$ac_cs_awk_read_file
15581 next
15582 }
15583 }
15584 print line
15585 }
15586 \$ac_cs_awk_pipe_fini
15587 _ACAWK
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15592 else
15593 cat
15594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15596 _ACEOF
15597
15598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15600 # trailing colons and then remove the whole line if VPATH becomes empty
15601 # (actually we leave an empty line to preserve line numbers).
15602 if test "x$srcdir" = x.; then
15603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15604 h
15605 s///
15606 s/^/:/
15607 s/[ ]*$/:/
15608 s/:\$(srcdir):/:/g
15609 s/:\${srcdir}:/:/g
15610 s/:@srcdir@:/:/g
15611 s/^:*//
15612 s/:*$//
15613 x
15614 s/\(=[ ]*\).*/\1/
15615 G
15616 s/\n//
15617 s/^[^=]*=[ ]*$//
15618 }'
15619 fi
15620
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 fi # test -n "$CONFIG_FILES"
15623
15624 # Set up the scripts for CONFIG_HEADERS section.
15625 # No need to generate them if there are no CONFIG_HEADERS.
15626 # This happens for instance with `./config.status Makefile'.
15627 if test -n "$CONFIG_HEADERS"; then
15628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15629 BEGIN {
15630 _ACEOF
15631
15632 # Transform confdefs.h into an awk script `defines.awk', embedded as
15633 # here-document in config.status, that substitutes the proper values into
15634 # config.h.in to produce config.h.
15635
15636 # Create a delimiter string that does not exist in confdefs.h, to ease
15637 # handling of long lines.
15638 ac_delim='%!_!# '
15639 for ac_last_try in false false :; do
15640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15641 if test -z "$ac_tt"; then
15642 break
15643 elif $ac_last_try; then
15644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15645 else
15646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15647 fi
15648 done
15649
15650 # For the awk script, D is an array of macro values keyed by name,
15651 # likewise P contains macro parameters if any. Preserve backslash
15652 # newline sequences.
15653
15654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15655 sed -n '
15656 s/.\{148\}/&'"$ac_delim"'/g
15657 t rset
15658 :rset
15659 s/^[ ]*#[ ]*define[ ][ ]*/ /
15660 t def
15661 d
15662 :def
15663 s/\\$//
15664 t bsnl
15665 s/["\\]/\\&/g
15666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15667 D["\1"]=" \3"/p
15668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15669 d
15670 :bsnl
15671 s/["\\]/\\&/g
15672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15673 D["\1"]=" \3\\\\\\n"\\/p
15674 t cont
15675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15676 t cont
15677 d
15678 :cont
15679 n
15680 s/.\{148\}/&'"$ac_delim"'/g
15681 t clear
15682 :clear
15683 s/\\$//
15684 t bsnlc
15685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15686 d
15687 :bsnlc
15688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15689 b cont
15690 ' <confdefs.h | sed '
15691 s/'"$ac_delim"'/"\\\
15692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15693
15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 for (key in D) D_is_set[key] = 1
15696 FS = "\a"
15697 }
15698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15699 line = \$ 0
15700 split(line, arg, " ")
15701 if (arg[1] == "#") {
15702 defundef = arg[2]
15703 mac1 = arg[3]
15704 } else {
15705 defundef = substr(arg[1], 2)
15706 mac1 = arg[2]
15707 }
15708 split(mac1, mac2, "(") #)
15709 macro = mac2[1]
15710 prefix = substr(line, 1, index(line, defundef) - 1)
15711 if (D_is_set[macro]) {
15712 # Preserve the white space surrounding the "#".
15713 print prefix "define", macro P[macro] D[macro]
15714 next
15715 } else {
15716 # Replace #undef with comments. This is necessary, for example,
15717 # in the case of _POSIX_SOURCE, which is predefined and required
15718 # on some systems where configure will not decide to define it.
15719 if (defundef == "undef") {
15720 print "/*", prefix defundef, macro, "*/"
15721 next
15722 }
15723 }
15724 }
15725 { print }
15726 _ACAWK
15727 _ACEOF
15728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15730 fi # test -n "$CONFIG_HEADERS"
15731
15732
15733 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15734 shift
15735 for ac_tag
15736 do
15737 case $ac_tag in
15738 :[FHLC]) ac_mode=$ac_tag; continue;;
15739 esac
15740 case $ac_mode$ac_tag in
15741 :[FHL]*:*);;
15742 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15743 :[FH]-) ac_tag=-:-;;
15744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15745 esac
15746 ac_save_IFS=$IFS
15747 IFS=:
15748 set x $ac_tag
15749 IFS=$ac_save_IFS
15750 shift
15751 ac_file=$1
15752 shift
15753
15754 case $ac_mode in
15755 :L) ac_source=$1;;
15756 :[FH])
15757 ac_file_inputs=
15758 for ac_f
15759 do
15760 case $ac_f in
15761 -) ac_f="$ac_tmp/stdin";;
15762 *) # Look for the file first in the build tree, then in the source tree
15763 # (if the path is not absolute). The absolute path cannot be DOS-style,
15764 # because $ac_f cannot contain `:'.
15765 test -f "$ac_f" ||
15766 case $ac_f in
15767 [\\/$]*) false;;
15768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15769 esac ||
15770 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15771 esac
15772 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15773 as_fn_append ac_file_inputs " '$ac_f'"
15774 done
15775
15776 # Let's still pretend it is `configure' which instantiates (i.e., don't
15777 # use $as_me), people would be surprised to read:
15778 # /* config.h. Generated by config.status. */
15779 configure_input='Generated from '`
15780 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15781 `' by configure.'
15782 if test x"$ac_file" != x-; then
15783 configure_input="$ac_file. $configure_input"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15785 $as_echo "$as_me: creating $ac_file" >&6;}
15786 fi
15787 # Neutralize special characters interpreted by sed in replacement strings.
15788 case $configure_input in #(
15789 *\&* | *\|* | *\\* )
15790 ac_sed_conf_input=`$as_echo "$configure_input" |
15791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15792 *) ac_sed_conf_input=$configure_input;;
15793 esac
15794
15795 case $ac_tag in
15796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15798 esac
15799 ;;
15800 esac
15801
15802 ac_dir=`$as_dirname -- "$ac_file" ||
15803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15804 X"$ac_file" : 'X\(//\)[^/]' \| \
15805 X"$ac_file" : 'X\(//\)$' \| \
15806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15807 $as_echo X"$ac_file" |
15808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15809 s//\1/
15810 q
15811 }
15812 /^X\(\/\/\)[^/].*/{
15813 s//\1/
15814 q
15815 }
15816 /^X\(\/\/\)$/{
15817 s//\1/
15818 q
15819 }
15820 /^X\(\/\).*/{
15821 s//\1/
15822 q
15823 }
15824 s/.*/./; q'`
15825 as_dir="$ac_dir"; as_fn_mkdir_p
15826 ac_builddir=.
15827
15828 case "$ac_dir" in
15829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15830 *)
15831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15832 # A ".." for each directory in $ac_dir_suffix.
15833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15834 case $ac_top_builddir_sub in
15835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15837 esac ;;
15838 esac
15839 ac_abs_top_builddir=$ac_pwd
15840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15841 # for backward compatibility:
15842 ac_top_builddir=$ac_top_build_prefix
15843
15844 case $srcdir in
15845 .) # We are building in place.
15846 ac_srcdir=.
15847 ac_top_srcdir=$ac_top_builddir_sub
15848 ac_abs_top_srcdir=$ac_pwd ;;
15849 [\\/]* | ?:[\\/]* ) # Absolute name.
15850 ac_srcdir=$srcdir$ac_dir_suffix;
15851 ac_top_srcdir=$srcdir
15852 ac_abs_top_srcdir=$srcdir ;;
15853 *) # Relative name.
15854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15855 ac_top_srcdir=$ac_top_build_prefix$srcdir
15856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15857 esac
15858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15859
15860
15861 case $ac_mode in
15862 :F)
15863 #
15864 # CONFIG_FILE
15865 #
15866
15867 case $INSTALL in
15868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15870 esac
15871 ac_MKDIR_P=$MKDIR_P
15872 case $MKDIR_P in
15873 [\\/$]* | ?:[\\/]* ) ;;
15874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15875 esac
15876 _ACEOF
15877
15878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 # If the template does not know about datarootdir, expand it.
15880 # FIXME: This hack should be removed a few years after 2.60.
15881 ac_datarootdir_hack=; ac_datarootdir_seen=
15882 ac_sed_dataroot='
15883 /datarootdir/ {
15884 p
15885 q
15886 }
15887 /@datadir@/p
15888 /@docdir@/p
15889 /@infodir@/p
15890 /@localedir@/p
15891 /@mandir@/p'
15892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15893 *datarootdir*) ac_datarootdir_seen=yes;;
15894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15897 _ACEOF
15898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15899 ac_datarootdir_hack='
15900 s&@datadir@&$datadir&g
15901 s&@docdir@&$docdir&g
15902 s&@infodir@&$infodir&g
15903 s&@localedir@&$localedir&g
15904 s&@mandir@&$mandir&g
15905 s&\\\${datarootdir}&$datarootdir&g' ;;
15906 esac
15907 _ACEOF
15908
15909 # Neutralize VPATH when `$srcdir' = `.'.
15910 # Shell code in configure.ac might set extrasub.
15911 # FIXME: do we really want to maintain this feature?
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 ac_sed_extra="$ac_vpsub
15914 $extrasub
15915 _ACEOF
15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917 :t
15918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15919 s|@configure_input@|$ac_sed_conf_input|;t t
15920 s&@top_builddir@&$ac_top_builddir_sub&;t t
15921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15922 s&@srcdir@&$ac_srcdir&;t t
15923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15924 s&@top_srcdir@&$ac_top_srcdir&;t t
15925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15926 s&@builddir@&$ac_builddir&;t t
15927 s&@abs_builddir@&$ac_abs_builddir&;t t
15928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15929 s&@INSTALL@&$ac_INSTALL&;t t
15930 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15931 $ac_datarootdir_hack
15932 "
15933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15934 if $ac_cs_awk_getline; then
15935 $AWK -f "$ac_tmp/subs.awk"
15936 else
15937 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15938 fi \
15939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15940
15941 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15944 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15946 which seems to be undefined. Please make sure it is defined" >&5
15947 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15948 which seems to be undefined. Please make sure it is defined" >&2;}
15949
15950 rm -f "$ac_tmp/stdin"
15951 case $ac_file in
15952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15954 esac \
15955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15956 ;;
15957 :H)
15958 #
15959 # CONFIG_HEADER
15960 #
15961 if test x"$ac_file" != x-; then
15962 {
15963 $as_echo "/* $configure_input */" \
15964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15965 } >"$ac_tmp/config.h" \
15966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15969 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15970 else
15971 rm -f "$ac_file"
15972 mv "$ac_tmp/config.h" "$ac_file" \
15973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15974 fi
15975 else
15976 $as_echo "/* $configure_input */" \
15977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15978 || as_fn_error $? "could not create -" "$LINENO" 5
15979 fi
15980 ;;
15981
15982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15983 $as_echo "$as_me: executing $ac_file commands" >&6;}
15984 ;;
15985 esac
15986
15987
15988 case $ac_file$ac_mode in
15989 "po-directories":C)
15990 for ac_file in $CONFIG_FILES; do
15991 # Support "outfile[:infile[:infile...]]"
15992 case "$ac_file" in
15993 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15994 esac
15995 # PO directories have a Makefile.in generated from Makefile.in.in.
15996 case "$ac_file" in */Makefile.in)
15997 # Adjust a relative srcdir.
15998 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15999 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16000 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16001 # In autoconf-2.13 it is called $ac_given_srcdir.
16002 # In autoconf-2.50 it is called $srcdir.
16003 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16004 case "$ac_given_srcdir" in
16005 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16006 /*) top_srcdir="$ac_given_srcdir" ;;
16007 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16008 esac
16009 # Treat a directory as a PO directory if and only if it has a
16010 # POTFILES.in file. This allows packages to have multiple PO
16011 # directories under different names or in different locations.
16012 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16013 rm -f "$ac_dir/POTFILES"
16014 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16015 gt_tab=`printf '\t'`
16016 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"
16017 POMAKEFILEDEPS="POTFILES.in"
16018 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16019 # on $ac_dir but don't depend on user-specified configuration
16020 # parameters.
16021 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16022 # The LINGUAS file contains the set of available languages.
16023 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16024 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16025 fi
16026 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16027 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16028 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16029 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16030 else
16031 # The set of available languages was given in configure.in.
16032 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16033 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16034 fi
16035 # Compute POFILES
16036 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16037 # Compute UPDATEPOFILES
16038 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16039 # Compute DUMMYPOFILES
16040 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16041 # Compute GMOFILES
16042 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16043 case "$ac_given_srcdir" in
16044 .) srcdirpre= ;;
16045 *) srcdirpre='$(srcdir)/' ;;
16046 esac
16047 POFILES=
16048 UPDATEPOFILES=
16049 DUMMYPOFILES=
16050 GMOFILES=
16051 for lang in $ALL_LINGUAS; do
16052 POFILES="$POFILES $srcdirpre$lang.po"
16053 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16054 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16055 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16056 done
16057 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16058 # environment variable.
16059 INST_LINGUAS=
16060 if test -n "$ALL_LINGUAS"; then
16061 for presentlang in $ALL_LINGUAS; do
16062 useit=no
16063 if test "%UNSET%" != "$LINGUAS"; then
16064 desiredlanguages="$LINGUAS"
16065 else
16066 desiredlanguages="$ALL_LINGUAS"
16067 fi
16068 for desiredlang in $desiredlanguages; do
16069 # Use the presentlang catalog if desiredlang is
16070 # a. equal to presentlang, or
16071 # b. a variant of presentlang (because in this case,
16072 # presentlang can be used as a fallback for messages
16073 # which are not translated in the desiredlang catalog).
16074 case "$desiredlang" in
16075 "$presentlang"*) useit=yes;;
16076 esac
16077 done
16078 if test $useit = yes; then
16079 INST_LINGUAS="$INST_LINGUAS $presentlang"
16080 fi
16081 done
16082 fi
16083 CATALOGS=
16084 if test -n "$INST_LINGUAS"; then
16085 for lang in $INST_LINGUAS; do
16086 CATALOGS="$CATALOGS $lang.gmo"
16087 done
16088 fi
16089 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16090 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"
16091 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16092 if test -f "$f"; then
16093 case "$f" in
16094 *.orig | *.bak | *~) ;;
16095 *) cat "$f" >> "$ac_dir/Makefile" ;;
16096 esac
16097 fi
16098 done
16099 fi
16100 ;;
16101 esac
16102 done ;;
16103
16104 esac
16105 done # for ac_tag
16106
16107
16108 as_fn_exit 0
16109 _ACEOF
16110 ac_clean_files=$ac_clean_files_save
16111
16112 test $ac_write_fail = 0 ||
16113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16114
16115
16116 # configure is writing to config.log, and then calls config.status.
16117 # config.status does its own redirection, appending to config.log.
16118 # Unfortunately, on DOS this fails, as config.log is still kept open
16119 # by configure, so config.status won't be able to write to it; its
16120 # output is simply discarded. So we exec the FD to /dev/null,
16121 # effectively closing config.log, so it can be properly (re)opened and
16122 # appended to by config.status. When coming back to configure, we
16123 # need to make the FD available again.
16124 if test "$no_create" != yes; then
16125 ac_cs_success=:
16126 ac_config_status_args=
16127 test "$silent" = yes &&
16128 ac_config_status_args="$ac_config_status_args --quiet"
16129 exec 5>/dev/null
16130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16131 exec 5>>config.log
16132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16133 # would make configure fail if this is the last instruction.
16134 $ac_cs_success || as_fn_exit 1
16135 fi
16136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16139 fi
16140
16141 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi