Whamcloud - gitweb
5522112f1c1f616b482efde9ad5be92d083d28ca
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null
186 then :
187   as_have_required=yes
188 else $as_nop
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   case $as_dir in #(((
201     '') as_dir=./ ;;
202     */) ;;
203     *) as_dir=$as_dir/ ;;
204   esac
205   as_found=:
206   case $as_dir in #(
207          /*)
208            for as_base in sh bash ksh sh5; do
209              # Try only shells that exist, to save several forks.
210              as_shell=$as_dir$as_base
211              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214   CONFIG_SHELL=$as_shell as_have_required=yes
215                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217   break 2
218 fi
219 fi
220            done;;
221        esac
222   as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232   CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237       if test "x$CONFIG_SHELL" != x
238 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno
261 then :
262   printf "%s\n" "$0: This script requires a shell more modern than all"
263   printf "%s\n" "$0: the shells that I found on your system."
264   if test ${ZSH_VERSION+y} ; then
265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301   return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309   set +e
310   as_fn_set_status $1
311   exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318   return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else $as_nop
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else $as_nop
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419   return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430   as_status=$1; test $as_status -eq 0 && as_status=1
431   if test "$4"; then
432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434   fi
435   printf "%s\n" "$as_me: error: $2" >&2
436   as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
441   as_expr=expr
442 else
443   as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447   as_basename=basename
448 else
449   as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453   as_dirname=dirname
454 else
455   as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460          X"$0" : 'X\(//\)$' \| \
461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463     sed '/^.*\/\([^/][^/]*\)\/*$/{
464             s//\1/
465             q
466           }
467           /^X\/\(\/\/\)$/{
468             s//\1/
469             q
470           }
471           /^X\/\(\/\).*/{
472             s//\1/
473             q
474           }
475           s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485   as_lineno_1=$LINENO as_lineno_1a=$LINENO
486   as_lineno_2=$LINENO as_lineno_2a=$LINENO
487   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
490   sed -n '
491     p
492     /[$]LINENO/=
493   ' <$as_myself |
494     sed '
495       s/[$]LINENO.*/&-/
496       t lineno
497       b
498       :lineno
499       N
500       :loop
501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502       t loop
503       s/-\n.*//
504     ' >$as_me.lineno &&
505   chmod +x "$as_me.lineno" ||
506     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509   # already done that, so ensure we don't try to do so again and fall
510   # in an infinite loop.  This has already happened in practice.
511   _as_can_reexec=no; export _as_can_reexec
512   # Don't try to exec as it changes $[0], causing all sort of problems
513   # (the dirname of $[0] is not the place where we might find the
514   # original and so on.  Autoconf is especially sensitive to this).
515   . "./$as_me.lineno"
516   # Exit status is that of the last command.
517   exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527   case `echo 'xy\c'` in
528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
529   xy)  ECHO_C='\c';;
530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531        ECHO_T=' ';;
532   esac;;
533 *)
534   ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n.  New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546   rm -f conf$$.dir/conf$$.file
547 else
548   rm -f conf$$.dir
549   mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552   if ln -s conf$$.file conf$$ 2>/dev/null; then
553     as_ln_s='ln -s'
554     # ... but there are two gotchas:
555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557     # In both cases, we have to default to `cp -pR'.
558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559       as_ln_s='cp -pR'
560   elif ln conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s=ln
562   else
563     as_ln_s='cp -pR'
564   fi
565 else
566   as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572   as_mkdir_p='mkdir -p "$as_dir"'
573 else
574   test -d ./-p && rmdir ./-p
575   as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 gt_needs=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 OS_IO_FILE
654 systemd_system_unit_dir
655 have_systemd
656 systemd_LIBS
657 systemd_CFLAGS
658 crond_dir
659 have_crond
660 pkg_udev_rules_dir
661 have_udev
662 udev_LIBS
663 udev_CFLAGS
664 LDFLAGS_SHLIB
665 CFLAGS_STLIB
666 CFLAGS_SHLIB
667 BUILD_LDFLAGS
668 BUILD_CFLAGS
669 INCLUDES
670 DO_TEST_SUITE
671 LDFLAGS_STATIC
672 root_sysconfdir
673 root_libdir
674 root_sbindir
675 root_bindir
676 root_prefix
677 E2SCRUB_CMT
678 UNIX_CMT
679 CYGWIN_CMT
680 LINUX_CMT
681 FUZZING_CMT
682 fuzzer_ldflags
683 fuzzer_cflags
684 have_fuzzer
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 threadsan_ldflags
689 threadsan_cflags
690 have_threadsan
691 addrsan_ldflags
692 addrsan_cflags
693 have_addrsan
694 ubsan_ldflags
695 ubsan_cflags
696 have_ubsan
697 lto_ldflags
698 lto_cflags
699 have_lto
700 gcc_ranlib
701 gcc_ar
702 UNI_DIFF_OPTS
703 SEM_INIT_LIB
704 FUSE_CMT
705 FUSE_LIB
706 fuse3_LIBS
707 fuse3_CFLAGS
708 CLOCK_GETTIME_LIB
709 MAGIC_LIB
710 SOCKET_LIB
711 SIZEOF_TIME_T
712 SIZEOF_OFF_T
713 SIZEOF_LONG_LONG
714 SIZEOF_LONG
715 SIZEOF_INT
716 SIZEOF_SHORT
717 DD
718 BUILD_CC
719 MAKEINFO
720 STRIP
721 RANLIB
722 AR
723 LDCONFIG
724 PERL
725 AWK
726 CHMOD
727 RM
728 CP
729 MV
730 LN_S
731 mkdir_p
732 LN
733 ifNotGNUmake
734 ifGNUmake
735 BINARY_TYPE
736 POSUB
737 LTLIBINTL
738 LIBINTL
739 INTLLIBS
740 LTLIBICONV
741 LIBICONV
742 INTL_MACOSX_LIBS
743 XGETTEXT_EXTRA_OPTIONS
744 MSGMERGE_FOR_MSGFMT_OPTION
745 MSGMERGE
746 XGETTEXT_015
747 XGETTEXT
748 GMSGFMT_015
749 GMSGFMT
750 MSGFMT
751 GETTEXT_MACRO_VERSION
752 USE_NLS
753 MKDIR_P
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 SET_MAKE
758 VERSION
759 PACKAGE
760 GETTEXT_PACKAGE
761 TDB_MAN_COMMENT
762 TDB_CMT
763 UUIDD_CMT
764 PTHREAD_CFLAGS
765 PTHREAD_LIBS
766 PTHREAD_CXX
767 PTHREAD_CC
768 ax_pthread_config
769 EGREP
770 GREP
771 SED
772 E2INITRD_MAN
773 E2INITRD_PROG
774 FSCK_MAN
775 FSCK_PROG
776 DEFRAG_CMT
777 RESIZER_CMT
778 IMAGER_CMT
779 DEBUGFS_CMT
780 SUBSET_CMT
781 ALL_CMT
782 BLKID_CMT
783 DEPPROFILED_LIBBLKID
784 PROFILED_LIBBLKID
785 DEPSTATIC_LIBBLKID
786 STATIC_LIBBLKID
787 DEPLIBBLKID
788 LIBBLKID
789 UUID_CMT
790 DEPPROFILED_LIBUUID
791 PROFILED_LIBUUID
792 DEPSTATIC_LIBUUID
793 STATIC_LIBUUID
794 DEPLIBUUID
795 LIBUUID
796 PKG_CONFIG_LIBDIR
797 PKG_CONFIG_PATH
798 PKG_CONFIG
799 DEV_FEATURES_CMT
800 TEST_IO_CMT
801 PRIVATE_LIBS_CMT
802 LDFLAG_DYNAMIC
803 PROFILED_LIB_EXT
804 STATIC_LIB_EXT
805 LIB_EXT
806 PROFILE_CMT
807 BSDLIB_CMT
808 ELF_CMT
809 Q
810 ES
811 E
812 LINK_BUILD_FLAGS
813 SYMLINK_RELATIVE
814 LINK_INSTALL_FLAGS
815 MAINTAINER_CMT
816 CPP
817 RDYNAMIC
818 DLOPEN_LIB
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 E2FSPROGS_DATE
828 E2FSPROGS_PKGVER
829 E2FSPROGS_PKGREL
830 E2FSPROGS_VERSION
831 E2FSPROGS_DAY
832 E2FSPROGS_MONTH
833 E2FSPROGS_YEAR
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
840 CC
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 runstatedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files='MCONFIG
881 MAKEFILE_ELF
882 MAKEFILE_BSDLIB
883 MAKEFILE_PROFILE
884 MAKEFILE_LIBRARY
885 ASM_TYPES_HEADER
886 PUBLIC_CONFIG_HEADER'
887 ac_user_opts='
888 enable_option_checking
889 with_diet_libc
890 with_cc
891 with_ccopts
892 with_ldopts
893 with_root_prefix
894 enable_maintainer_mode
895 enable_symlink_install
896 enable_relative_symlinks
897 enable_symlink_relative_symlinks
898 enable_symlink_build
899 enable_verbose_makecmds
900 enable_elf_shlibs
901 enable_bsd_shlibs
902 enable_profile
903 enable_gcov
904 enable_hardening
905 enable_jbd_debug
906 enable_blkid_debug
907 enable_testio_debug
908 enable_developer_features
909 enable_libuuid
910 enable_libblkid
911 enable_subset
912 enable_backtrace
913 enable_debugfs
914 enable_imager
915 enable_resizer
916 enable_defrag
917 enable_fsck
918 enable_e2initrd_helper
919 enable_tls
920 with_pthread
921 enable_uuidd
922 enable_mmp
923 enable_tdb
924 enable_bmap_stats
925 enable_bmap_stats_ops
926 enable_nls
927 with_gnu_ld
928 enable_rpath
929 with_libiconv_prefix
930 with_libintl_prefix
931 enable_fuse2fs
932 enable_lto
933 enable_ubsan
934 enable_addrsan
935 enable_threadsan
936 enable_fuzzing
937 with_multiarch
938 with_udev_rules_dir
939 with_crond_dir
940 with_systemd_unit_dir
941 enable_largefile
942 '
943       ac_precious_vars='build_alias
944 host_alias
945 target_alias
946 CC
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
951 CPP
952 PKG_CONFIG
953 PKG_CONFIG_PATH
954 PKG_CONFIG_LIBDIR
955 fuse3_CFLAGS
956 fuse3_LIBS
957 CXX
958 CXXFLAGS
959 CCC
960 udev_CFLAGS
961 udev_LIBS
962 systemd_CFLAGS
963 systemd_LIBS'
964
965
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 ac_unrecognized_opts=
970 ac_unrecognized_sep=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
987
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 runstatedir='${localstatedir}/run'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1014
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1018 do
1019   # If the previous option needs an argument, assign it.
1020   if test -n "$ac_prev"; then
1021     eval $ac_prev=\$ac_option
1022     ac_prev=
1023     continue
1024   fi
1025
1026   case $ac_option in
1027   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028   *=)   ac_optarg= ;;
1029   *)    ac_optarg=yes ;;
1030   esac
1031
1032   case $ac_dashdash$ac_option in
1033   --)
1034     ac_dashdash=yes ;;
1035
1036   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037     ac_prev=bindir ;;
1038   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039     bindir=$ac_optarg ;;
1040
1041   -build | --build | --buil | --bui | --bu)
1042     ac_prev=build_alias ;;
1043   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044     build_alias=$ac_optarg ;;
1045
1046   -cache-file | --cache-file | --cache-fil | --cache-fi \
1047   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048     ac_prev=cache_file ;;
1049   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051     cache_file=$ac_optarg ;;
1052
1053   --config-cache | -C)
1054     cache_file=config.cache ;;
1055
1056   -datadir | --datadir | --datadi | --datad)
1057     ac_prev=datadir ;;
1058   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059     datadir=$ac_optarg ;;
1060
1061   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062   | --dataroo | --dataro | --datar)
1063     ac_prev=datarootdir ;;
1064   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066     datarootdir=$ac_optarg ;;
1067
1068   -disable-* | --disable-*)
1069     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=no ;;
1083
1084   -docdir | --docdir | --docdi | --doc | --do)
1085     ac_prev=docdir ;;
1086   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087     docdir=$ac_optarg ;;
1088
1089   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090     ac_prev=dvidir ;;
1091   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092     dvidir=$ac_optarg ;;
1093
1094   -enable-* | --enable-*)
1095     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1099     ac_useropt_orig=$ac_useropt
1100     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1101     case $ac_user_opts in
1102       *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106          ac_unrecognized_sep=', ';;
1107     esac
1108     eval enable_$ac_useropt=\$ac_optarg ;;
1109
1110   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112   | --exec | --exe | --ex)
1113     ac_prev=exec_prefix ;;
1114   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116   | --exec=* | --exe=* | --ex=*)
1117     exec_prefix=$ac_optarg ;;
1118
1119   -gas | --gas | --ga | --g)
1120     # Obsolete; use --with-gas.
1121     with_gas=yes ;;
1122
1123   -help | --help | --hel | --he | -h)
1124     ac_init_help=long ;;
1125   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126     ac_init_help=recursive ;;
1127   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128     ac_init_help=short ;;
1129
1130   -host | --host | --hos | --ho)
1131     ac_prev=host_alias ;;
1132   -host=* | --host=* | --hos=* | --ho=*)
1133     host_alias=$ac_optarg ;;
1134
1135   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136     ac_prev=htmldir ;;
1137   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138   | --ht=*)
1139     htmldir=$ac_optarg ;;
1140
1141   -includedir | --includedir | --includedi | --included | --include \
1142   | --includ | --inclu | --incl | --inc)
1143     ac_prev=includedir ;;
1144   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145   | --includ=* | --inclu=* | --incl=* | --inc=*)
1146     includedir=$ac_optarg ;;
1147
1148   -infodir | --infodir | --infodi | --infod | --info | --inf)
1149     ac_prev=infodir ;;
1150   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151     infodir=$ac_optarg ;;
1152
1153   -libdir | --libdir | --libdi | --libd)
1154     ac_prev=libdir ;;
1155   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156     libdir=$ac_optarg ;;
1157
1158   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159   | --libexe | --libex | --libe)
1160     ac_prev=libexecdir ;;
1161   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162   | --libexe=* | --libex=* | --libe=*)
1163     libexecdir=$ac_optarg ;;
1164
1165   -localedir | --localedir | --localedi | --localed | --locale)
1166     ac_prev=localedir ;;
1167   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168     localedir=$ac_optarg ;;
1169
1170   -localstatedir | --localstatedir | --localstatedi | --localstated \
1171   | --localstate | --localstat | --localsta | --localst | --locals)
1172     ac_prev=localstatedir ;;
1173   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175     localstatedir=$ac_optarg ;;
1176
1177   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178     ac_prev=mandir ;;
1179   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180     mandir=$ac_optarg ;;
1181
1182   -nfp | --nfp | --nf)
1183     # Obsolete; use --without-fp.
1184     with_fp=no ;;
1185
1186   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187   | --no-cr | --no-c | -n)
1188     no_create=yes ;;
1189
1190   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192     no_recursion=yes ;;
1193
1194   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196   | --oldin | --oldi | --old | --ol | --o)
1197     ac_prev=oldincludedir ;;
1198   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201     oldincludedir=$ac_optarg ;;
1202
1203   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204     ac_prev=prefix ;;
1205   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206     prefix=$ac_optarg ;;
1207
1208   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209   | --program-pre | --program-pr | --program-p)
1210     ac_prev=program_prefix ;;
1211   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213     program_prefix=$ac_optarg ;;
1214
1215   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216   | --program-suf | --program-su | --program-s)
1217     ac_prev=program_suffix ;;
1218   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220     program_suffix=$ac_optarg ;;
1221
1222   -program-transform-name | --program-transform-name \
1223   | --program-transform-nam | --program-transform-na \
1224   | --program-transform-n | --program-transform- \
1225   | --program-transform | --program-transfor \
1226   | --program-transfo | --program-transf \
1227   | --program-trans | --program-tran \
1228   | --progr-tra | --program-tr | --program-t)
1229     ac_prev=program_transform_name ;;
1230   -program-transform-name=* | --program-transform-name=* \
1231   | --program-transform-nam=* | --program-transform-na=* \
1232   | --program-transform-n=* | --program-transform-=* \
1233   | --program-transform=* | --program-transfor=* \
1234   | --program-transfo=* | --program-transf=* \
1235   | --program-trans=* | --program-tran=* \
1236   | --progr-tra=* | --program-tr=* | --program-t=*)
1237     program_transform_name=$ac_optarg ;;
1238
1239   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240     ac_prev=pdfdir ;;
1241   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242     pdfdir=$ac_optarg ;;
1243
1244   -psdir | --psdir | --psdi | --psd | --ps)
1245     ac_prev=psdir ;;
1246   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247     psdir=$ac_optarg ;;
1248
1249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250   | -silent | --silent | --silen | --sile | --sil)
1251     silent=yes ;;
1252
1253   -runstatedir | --runstatedir | --runstatedi | --runstated \
1254   | --runstate | --runstat | --runsta | --runst | --runs \
1255   | --run | --ru | --r)
1256     ac_prev=runstatedir ;;
1257   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1258   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1259   | --run=* | --ru=* | --r=*)
1260     runstatedir=$ac_optarg ;;
1261
1262   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263     ac_prev=sbindir ;;
1264   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265   | --sbi=* | --sb=*)
1266     sbindir=$ac_optarg ;;
1267
1268   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270   | --sharedst | --shareds | --shared | --share | --shar \
1271   | --sha | --sh)
1272     ac_prev=sharedstatedir ;;
1273   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276   | --sha=* | --sh=*)
1277     sharedstatedir=$ac_optarg ;;
1278
1279   -site | --site | --sit)
1280     ac_prev=site ;;
1281   -site=* | --site=* | --sit=*)
1282     site=$ac_optarg ;;
1283
1284   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285     ac_prev=srcdir ;;
1286   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287     srcdir=$ac_optarg ;;
1288
1289   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290   | --syscon | --sysco | --sysc | --sys | --sy)
1291     ac_prev=sysconfdir ;;
1292   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294     sysconfdir=$ac_optarg ;;
1295
1296   -target | --target | --targe | --targ | --tar | --ta | --t)
1297     ac_prev=target_alias ;;
1298   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299     target_alias=$ac_optarg ;;
1300
1301   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302     verbose=yes ;;
1303
1304   -version | --version | --versio | --versi | --vers | -V)
1305     ac_init_version=: ;;
1306
1307   -with-* | --with-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid package name: \`$ac_useropt'"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval with_$ac_useropt=\$ac_optarg ;;
1322
1323   -without-* | --without-*)
1324     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325     # Reject names that are not valid shell variable names.
1326     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327       as_fn_error $? "invalid package name: \`$ac_useropt'"
1328     ac_useropt_orig=$ac_useropt
1329     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1330     case $ac_user_opts in
1331       *"
1332 "with_$ac_useropt"
1333 "*) ;;
1334       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335          ac_unrecognized_sep=', ';;
1336     esac
1337     eval with_$ac_useropt=no ;;
1338
1339   --x)
1340     # Obsolete; use --with-x.
1341     with_x=yes ;;
1342
1343   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344   | --x-incl | --x-inc | --x-in | --x-i)
1345     ac_prev=x_includes ;;
1346   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348     x_includes=$ac_optarg ;;
1349
1350   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352     ac_prev=x_libraries ;;
1353   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355     x_libraries=$ac_optarg ;;
1356
1357   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1359     ;;
1360
1361   *=*)
1362     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363     # Reject names that are not valid shell variable names.
1364     case $ac_envvar in #(
1365       '' | [0-9]* | *[!_$as_cr_alnum]* )
1366       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367     esac
1368     eval $ac_envvar=\$ac_optarg
1369     export $ac_envvar ;;
1370
1371   *)
1372     # FIXME: should be removed in autoconf 3.0.
1373     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1374     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1376     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377     ;;
1378
1379   esac
1380 done
1381
1382 if test -n "$ac_prev"; then
1383   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384   as_fn_error $? "missing argument to $ac_option"
1385 fi
1386
1387 if test -n "$ac_unrecognized_opts"; then
1388   case $enable_option_checking in
1389     no) ;;
1390     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392   esac
1393 fi
1394
1395 # Check all directory arguments for consistency.
1396 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397                 datadir sysconfdir sharedstatedir localstatedir includedir \
1398                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399                 libdir localedir mandir runstatedir
1400 do
1401   eval ac_val=\$$ac_var
1402   # Remove trailing slashes.
1403   case $ac_val in
1404     */ )
1405       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406       eval $ac_var=\$ac_val;;
1407   esac
1408   # Be sure to have absolute directory names.
1409   case $ac_val in
1410     [\\/$]* | ?:[\\/]* )  continue;;
1411     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412   esac
1413   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414 done
1415
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1419 build=$build_alias
1420 host=$host_alias
1421 target=$target_alias
1422
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425   if test "x$build_alias" = x; then
1426     cross_compiling=maybe
1427   elif test "x$build_alias" != "x$host_alias"; then
1428     cross_compiling=yes
1429   fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441   as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443   as_fn_error $? "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448   ac_srcdir_defaulted=yes
1449   # Try the directory containing this script, then the parent directory.
1450   ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452          X"$as_myself" : 'X\(//\)[^/]' \| \
1453          X"$as_myself" : 'X\(//\)$' \| \
1454          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 printf "%s\n" X"$as_myself" |
1456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)[^/].*/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)$/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\).*/{
1469             s//\1/
1470             q
1471           }
1472           s/.*/./; q'`
1473   srcdir=$ac_confdir
1474   if test ! -r "$srcdir/$ac_unique_file"; then
1475     srcdir=..
1476   fi
1477 else
1478   ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487         pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490   srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_env_${ac_var}_value=\$${ac_var}
1501   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509   # Omit some internal or obsolete options to make the list less imposing.
1510   # This message is too long to be a string in the A/UX 3.1 sh.
1511   cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522   -h, --help              display this help and exit
1523       --help=short        display options specific to this package
1524       --help=recursive    display the short help of all the included packages
1525   -V, --version           display version information and exit
1526   -q, --quiet, --silent   do not print \`checking ...' messages
1527       --cache-file=FILE   cache test results in FILE [disabled]
1528   -C, --config-cache      alias for \`--cache-file=config.cache'
1529   -n, --no-create         do not create output files
1530       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533   --prefix=PREFIX         install architecture-independent files in PREFIX
1534                           [$ac_default_prefix]
1535   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                           [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546   --bindir=DIR            user executables [EPREFIX/bin]
1547   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548   --libexecdir=DIR        program executables [EPREFIX/libexec]
1549   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1553   --libdir=DIR            object code libraries [EPREFIX/lib]
1554   --includedir=DIR        C header files [PREFIX/include]
1555   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1556   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1557   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1558   --infodir=DIR           info documentation [DATAROOTDIR/info]
1559   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1560   --mandir=DIR            man documentation [DATAROOTDIR/man]
1561   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1562   --htmldir=DIR           html documentation [DOCDIR]
1563   --dvidir=DIR            dvi documentation [DOCDIR]
1564   --pdfdir=DIR            pdf documentation [DOCDIR]
1565   --psdir=DIR             ps documentation [DOCDIR]
1566 _ACEOF
1567
1568   cat <<\_ACEOF
1569
1570 System types:
1571   --build=BUILD     configure for building on BUILD [guessed]
1572   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577
1578   cat <<\_ACEOF
1579
1580 Optional Features:
1581   --disable-option-checking  ignore unrecognized --enable/--with options
1582   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1583   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1584   --enable-maintainer-mode
1585                           enable makefile rules useful for maintainers
1586   --enable-symlink-install
1587                           use symlinks when installing instead of hard links
1588   --enable-relative-symlinks
1589                           use relative symlinks when installing
1590
1591   --enable-symlink-build  use symlinks while building instead of hard links
1592   --enable-verbose-makecmds
1593                           enable verbose make command output
1594   --enable-elf-shlibs     select ELF shared libraries
1595   --enable-bsd-shlibs     select BSD shared libraries
1596   --enable-profile        build profiling libraries
1597   --enable-gcov           build for coverage testing using gcov
1598   --enable-hardening      build for coverage testing using gcov
1599   --enable-jbd-debug      enable journal debugging
1600   --enable-blkid-debug    enable blkid debugging
1601   --disable-testio-debug  disable the use of the test I/O manager for
1602                           debugging
1603   --enable-developer-features
1604                           enable features for use by ext4 developers
1605   --enable-libuuid        build and use private uuid library
1606   --enable-libblkid       build and use private blkid library
1607   --enable-subset         enable subset-only build
1608   --disable-backtrace     disable use backtrace
1609   --disable-debugfs       disable support of debugfs program
1610   --disable-imager        disable support of e2image program
1611   --disable-resizer       disable support of e2resize program
1612   --disable-defrag        disable support of e4defrag program
1613   --enable-fsck           build fsck wrapper program
1614   --enable-e2initrd-helper
1615                           build e2initrd-helper program
1616   --disable-tls           disable use of thread local support
1617   --disable-uuidd         disable building the uuid daemon
1618   --disable-mmp           disable support mmp, Multi Mount Protection
1619   --disable-tdb           disable tdb support
1620   --disable-bmap-stats    disable collection of bitmap stats
1621   --enable-bmap-stats-ops enable collection of additional bitmap stats
1622   --disable-nls           do not use Native Language Support
1623   --disable-rpath         do not hardcode runtime library paths
1624   --disable-fuse2fs       do not build fuse2fs
1625   --enable-lto            enable link time optimization
1626   --enable-ubsan          enable undefined behavior sanitizer
1627   --enable-addrsan        enable address sanitizer
1628   --enable-threadsan      enable thread sanitizer
1629   --enable-fuzzing        enable fuzzing sanitizer
1630   --disable-largefile     omit support for large files
1631
1632 Optional Packages:
1633   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1634   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1635   --with-diet-libc        use diet libc
1636   --with-cc               no longer supported, use CC= instead
1637   --with-ccopts           no longer supported, use CFLAGS= instead
1638   --with-ldopts           no longer supported, use LDFLAGS= instead
1639   --with-root-prefix=PREFIX
1640                           override prefix variable for files to be placed in
1641                           the root
1642   --without-pthread       disable use of pthread support
1643   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1644   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1645   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1646   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1647   --without-libintl-prefix     don't search for libintl in includedir and libdir
1648   --with-multiarch=ARCH   specify the multiarch triplet
1649   --with-udev-rules-dir[=DIR]
1650                           Install udev rules into DIR.
1651   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1652   --with-systemd-unit-dir[=DIR]
1653                           Install systemd system units into DIR.
1654
1655 Some influential environment variables:
1656   CC          C compiler command
1657   CFLAGS      C compiler flags
1658   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1659               nonstandard directory <lib dir>
1660   LIBS        libraries to pass to the linker, e.g. -l<library>
1661   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1662               you have headers in a nonstandard directory <include dir>
1663   CPP         C preprocessor
1664   PKG_CONFIG  path to pkg-config utility
1665   PKG_CONFIG_PATH
1666               directories to add to pkg-config's search path
1667   PKG_CONFIG_LIBDIR
1668               path overriding pkg-config's built-in search path
1669   CXX         C++ compiler command
1670   CXXFLAGS    C++ compiler flags
1671   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1672   udev_LIBS   linker flags for udev, overriding pkg-config
1673   systemd_CFLAGS
1674               C compiler flags for systemd, overriding pkg-config
1675   systemd_LIBS
1676               linker flags for systemd, overriding pkg-config
1677
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1680
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1684 fi
1685
1686 if test "$ac_init_help" = "recursive"; then
1687   # If there are subdirs, report their specific --help.
1688   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689     test -d "$ac_dir" ||
1690       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691       continue
1692     ac_builddir=.
1693
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *)
1697   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1698   # A ".." for each directory in $ac_dir_suffix.
1699   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700   case $ac_top_builddir_sub in
1701   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703   esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1709
1710 case $srcdir in
1711   .)  # We are building in place.
1712     ac_srcdir=.
1713     ac_top_srcdir=$ac_top_builddir_sub
1714     ac_abs_top_srcdir=$ac_pwd ;;
1715   [\\/]* | ?:[\\/]* )  # Absolute name.
1716     ac_srcdir=$srcdir$ac_dir_suffix;
1717     ac_top_srcdir=$srcdir
1718     ac_abs_top_srcdir=$srcdir ;;
1719   *) # Relative name.
1720     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721     ac_top_srcdir=$ac_top_build_prefix$srcdir
1722     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725
1726     cd "$ac_dir" || { ac_status=$?; continue; }
1727     # Check for configure.gnu first; this name is used for a wrapper for
1728     # Metaconfig's "Configure" on case-insensitive file systems.
1729     if test -f "$ac_srcdir/configure.gnu"; then
1730       echo &&
1731       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732     elif test -f "$ac_srcdir/configure"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure" --help=recursive
1735     else
1736       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737     fi || ac_status=$?
1738     cd "$ac_pwd" || { ac_status=$?; break; }
1739   done
1740 fi
1741
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744   cat <<\_ACEOF
1745 configure
1746 generated by GNU Autoconf 2.71
1747
1748 Copyright (C) 2021 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1751 _ACEOF
1752   exit
1753 fi
1754
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1758
1759 # ac_fn_c_try_compile LINENO
1760 # --------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_compile ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   rm -f conftest.$ac_objext conftest.beam
1766   if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 printf "%s\n" "$ac_try_echo"; } >&5
1773   (eval "$ac_compile") 2>conftest.err
1774   ac_status=$?
1775   if test -s conftest.err; then
1776     grep -v '^ *+' conftest.err >conftest.er1
1777     cat conftest.er1 >&5
1778     mv -f conftest.er1 conftest.err
1779   fi
1780   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; } && {
1782          test -z "$ac_c_werror_flag" ||
1783          test ! -s conftest.err
1784        } && test -s conftest.$ac_objext
1785 then :
1786   ac_retval=0
1787 else $as_nop
1788   printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_compile
1797
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 printf %s "checking for $2... " >&6; }
1807 if eval test \${$3+y}
1808 then :
1809   printf %s "(cached) " >&6
1810 else $as_nop
1811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 $4
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"
1817 then :
1818   eval "$3=yes"
1819 else $as_nop
1820   eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_header_compile
1830
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_link ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1838   if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 printf "%s\n" "$ac_try_echo"; } >&5
1845   (eval "$ac_link") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && {
1854          test -z "$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        } && test -s conftest$ac_exeext && {
1857          test "$cross_compiling" = yes ||
1858          test -x conftest$ac_exeext
1859        }
1860 then :
1861   ac_retval=0
1862 else $as_nop
1863   printf "%s\n" "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866         ac_retval=1
1867 fi
1868   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870   # interfere with the next link command; also delete a directory that is
1871   # left behind by Apple's compiler.  We do this before executing the actions.
1872   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_link
1877
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887   *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 printf "%s\n" "$ac_try_echo"; } >&5
1891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892   ac_status=$?
1893   if test -s conftest.err; then
1894     grep -v '^ *+' conftest.err >conftest.er1
1895     cat conftest.er1 >&5
1896     mv -f conftest.er1 conftest.err
1897   fi
1898   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } > conftest.i && {
1900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901          test ! -s conftest.err
1902        }
1903 then :
1904   ac_retval=0
1905 else $as_nop
1906   printf "%s\n" "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909     ac_retval=1
1910 fi
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_cpp
1915
1916 # ac_fn_c_try_run LINENO
1917 # ----------------------
1918 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1919 # executables *can* be run.
1920 ac_fn_c_try_run ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926   *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 printf "%s\n" "$ac_try_echo"; } >&5
1930   (eval "$ac_link") 2>&5
1931   ac_status=$?
1932   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1934   { { case "(($ac_try" in
1935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936   *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 printf "%s\n" "$ac_try_echo"; } >&5
1940   (eval "$ac_try") 2>&5
1941   ac_status=$?
1942   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943   test $ac_status = 0; }; }
1944 then :
1945   ac_retval=0
1946 else $as_nop
1947   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1948        printf "%s\n" "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951        ac_retval=$ac_status
1952 fi
1953   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955   as_fn_set_status $ac_retval
1956
1957 } # ac_fn_c_try_run
1958
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 printf %s "checking for $2... " >&6; }
1967 if eval test \${$3+y}
1968 then :
1969   printf %s "(cached) " >&6
1970 else $as_nop
1971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975 #define $2 innocuous_$2
1976
1977 /* System header to define __stub macros and hopefully few prototypes,
1978    which can conflict with char $2 (); below.  */
1979
1980 #include <limits.h>
1981 #undef $2
1982
1983 /* Override any GCC internal prototype to avoid an error.
1984    Use char because int might match the return type of a GCC
1985    builtin and then its argument prototype would still apply.  */
1986 #ifdef __cplusplus
1987 extern "C"
1988 #endif
1989 char $2 ();
1990 /* The GNU C library defines this for functions which it implements
1991     to always fail with ENOSYS.  Some functions are actually named
1992     something starting with __ and the normal name is an alias.  */
1993 #if defined __stub_$2 || defined __stub___$2
1994 choke me
1995 #endif
1996
1997 int
1998 main (void)
1999 {
2000 return $2 ();
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_link "$LINENO"
2006 then :
2007   eval "$3=yes"
2008 else $as_nop
2009   eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2012     conftest$ac_exeext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$3
2015                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 printf "%s\n" "$ac_res" >&6; }
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_func
2020
2021 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2022 # ----------------------------------------------------
2023 # Tries to find if the field MEMBER exists in type AGGR, after including
2024 # INCLUDES, setting cache variable VAR accordingly.
2025 ac_fn_c_check_member ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2029 printf %s "checking for $2.$3... " >&6; }
2030 if eval test \${$4+y}
2031 then :
2032   printf %s "(cached) " >&6
2033 else $as_nop
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $5
2037 int
2038 main (void)
2039 {
2040 static $2 ac_aggr;
2041 if (ac_aggr.$3)
2042 return 0;
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"
2048 then :
2049   eval "$4=yes"
2050 else $as_nop
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $5
2054 int
2055 main (void)
2056 {
2057 static $2 ac_aggr;
2058 if (sizeof ac_aggr.$3)
2059 return 0;
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"
2065 then :
2066   eval "$4=yes"
2067 else $as_nop
2068   eval "$4=no"
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$4
2075                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 printf "%s\n" "$ac_res" >&6; }
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_member
2080
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 printf %s "checking for $2... " >&6; }
2090 if eval test \${$3+y}
2091 then :
2092   printf %s "(cached) " >&6
2093 else $as_nop
2094   eval "$3=no"
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 int
2099 main (void)
2100 {
2101 if (sizeof ($2))
2102          return 0;
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"
2108 then :
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main (void)
2114 {
2115 if (sizeof (($2)))
2116             return 0;
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"
2122 then :
2123
2124 else $as_nop
2125   eval "$3=yes"
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 fi
2131 eval ac_res=\$$3
2132                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 printf "%s\n" "$ac_res" >&6; }
2134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135
2136 } # ac_fn_c_check_type
2137
2138 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2139 # ------------------------------------------------------------------
2140 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2141 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2142 ac_fn_check_decl ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   as_decl_name=`echo $2|sed 's/ *(.*//'`
2146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2147 printf %s "checking whether $as_decl_name is declared... " >&6; }
2148 if eval test \${$3+y}
2149 then :
2150   printf %s "(cached) " >&6
2151 else $as_nop
2152   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153   eval ac_save_FLAGS=\$$6
2154   as_fn_append $6 " $5"
2155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main (void)
2160 {
2161 #ifndef $as_decl_name
2162 #ifdef __cplusplus
2163   (void) $as_decl_use;
2164 #else
2165   (void) $as_decl_name;
2166 #endif
2167 #endif
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"
2174 then :
2175   eval "$3=yes"
2176 else $as_nop
2177   eval "$3=no"
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2180   eval $6=\$ac_save_FLAGS
2181
2182 fi
2183 eval ac_res=\$$3
2184                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 printf "%s\n" "$ac_res" >&6; }
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_check_decl
2189
2190 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2191 # --------------------------------------------
2192 # Tries to find the compile-time value of EXPR in a program that includes
2193 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 # computed
2195 ac_fn_c_compute_int ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   if test "$cross_compiling" = yes; then
2199     # Depending upon the size, compute the lo and hi bounds.
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $4
2203 int
2204 main (void)
2205 {
2206 static int test_array [1 - 2 * !(($2) >= 0)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"
2215 then :
2216   ac_lo=0 ac_mid=0
2217   while :; do
2218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main (void)
2223 {
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2225 test_array [0] = 0;
2226 return test_array [0];
2227
2228   ;
2229   return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"
2233 then :
2234   ac_hi=$ac_mid; break
2235 else $as_nop
2236   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2237                         if test $ac_lo -le $ac_mid; then
2238                           ac_lo= ac_hi=
2239                           break
2240                         fi
2241                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2244   done
2245 else $as_nop
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main (void)
2251 {
2252 static int test_array [1 - 2 * !(($2) < 0)];
2253 test_array [0] = 0;
2254 return test_array [0];
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"
2261 then :
2262   ac_hi=-1 ac_mid=-1
2263   while :; do
2264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main (void)
2269 {
2270 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"
2279 then :
2280   ac_lo=$ac_mid; break
2281 else $as_nop
2282   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2283                         if test $ac_mid -le $ac_hi; then
2284                           ac_lo= ac_hi=
2285                           break
2286                         fi
2287                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2290   done
2291 else $as_nop
2292   ac_lo= ac_hi=
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 # Binary search between lo and hi bounds.
2298 while test "x$ac_lo" != "x$ac_hi"; do
2299   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 int
2304 main (void)
2305 {
2306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307 test_array [0] = 0;
2308 return test_array [0];
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"
2315 then :
2316   ac_hi=$ac_mid
2317 else $as_nop
2318   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2321 done
2322 case $ac_lo in #((
2323 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2324 '') ac_retval=1 ;;
2325 esac
2326   else
2327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 static long int longval (void) { return $2; }
2331 static unsigned long int ulongval (void) { return $2; }
2332 #include <stdio.h>
2333 #include <stdlib.h>
2334 int
2335 main (void)
2336 {
2337
2338   FILE *f = fopen ("conftest.val", "w");
2339   if (! f)
2340     return 1;
2341   if (($2) < 0)
2342     {
2343       long int i = longval ();
2344       if (i != ($2))
2345         return 1;
2346       fprintf (f, "%ld", i);
2347     }
2348   else
2349     {
2350       unsigned long int i = ulongval ();
2351       if (i != ($2))
2352         return 1;
2353       fprintf (f, "%lu", i);
2354     }
2355   /* Do not output a trailing newline, as this causes \r\n confusion
2356      on some platforms.  */
2357   return ferror (f) || fclose (f) != 0;
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_run "$LINENO"
2364 then :
2365   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2366 else $as_nop
2367   ac_retval=1
2368 fi
2369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2370   conftest.$ac_objext conftest.beam conftest.$ac_ext
2371 rm -f conftest.val
2372
2373   fi
2374   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375   as_fn_set_status $ac_retval
2376
2377 } # ac_fn_c_compute_int
2378
2379 # ac_fn_cxx_try_compile LINENO
2380 # ----------------------------
2381 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2382 ac_fn_cxx_try_compile ()
2383 {
2384   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385   rm -f conftest.$ac_objext conftest.beam
2386   if { { ac_try="$ac_compile"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 printf "%s\n" "$ac_try_echo"; } >&5
2393   (eval "$ac_compile") 2>conftest.err
2394   ac_status=$?
2395   if test -s conftest.err; then
2396     grep -v '^ *+' conftest.err >conftest.er1
2397     cat conftest.er1 >&5
2398     mv -f conftest.er1 conftest.err
2399   fi
2400   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401   test $ac_status = 0; } && {
2402          test -z "$ac_cxx_werror_flag" ||
2403          test ! -s conftest.err
2404        } && test -s conftest.$ac_objext
2405 then :
2406   ac_retval=0
2407 else $as_nop
2408   printf "%s\n" "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411         ac_retval=1
2412 fi
2413   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414   as_fn_set_status $ac_retval
2415
2416 } # ac_fn_cxx_try_compile
2417 ac_configure_args_raw=
2418 for ac_arg
2419 do
2420   case $ac_arg in
2421   *\'*)
2422     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423   esac
2424   as_fn_append ac_configure_args_raw " '$ac_arg'"
2425 done
2426
2427 case $ac_configure_args_raw in
2428   *$as_nl*)
2429     ac_safe_unquote= ;;
2430   *)
2431     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2432     ac_unsafe_a="$ac_unsafe_z#~"
2433     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2434     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2435 esac
2436
2437 cat >config.log <<_ACEOF
2438 This file contains any messages produced by compilers while
2439 running configure, to aid debugging if configure makes a mistake.
2440
2441 It was created by $as_me, which was
2442 generated by GNU Autoconf 2.71.  Invocation command line was
2443
2444   $ $0$ac_configure_args_raw
2445
2446 _ACEOF
2447 exec 5>>config.log
2448 {
2449 cat <<_ASUNAME
2450 ## --------- ##
2451 ## Platform. ##
2452 ## --------- ##
2453
2454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2459
2460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2461 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2462
2463 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2464 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2466 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2467 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2468 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2469 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2470
2471 _ASUNAME
2472
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   case $as_dir in #(((
2478     '') as_dir=./ ;;
2479     */) ;;
2480     *) as_dir=$as_dir/ ;;
2481   esac
2482     printf "%s\n" "PATH: $as_dir"
2483   done
2484 IFS=$as_save_IFS
2485
2486 } >&5
2487
2488 cat >&5 <<_ACEOF
2489
2490
2491 ## ----------- ##
2492 ## Core tests. ##
2493 ## ----------- ##
2494
2495 _ACEOF
2496
2497
2498 # Keep a trace of the command line.
2499 # Strip out --no-create and --no-recursion so they do not pile up.
2500 # Strip out --silent because we don't want to record it for future runs.
2501 # Also quote any args containing shell meta-characters.
2502 # Make two passes to allow for proper duplicate-argument suppression.
2503 ac_configure_args=
2504 ac_configure_args0=
2505 ac_configure_args1=
2506 ac_must_keep_next=false
2507 for ac_pass in 1 2
2508 do
2509   for ac_arg
2510   do
2511     case $ac_arg in
2512     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2513     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2514     | -silent | --silent | --silen | --sile | --sil)
2515       continue ;;
2516     *\'*)
2517       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2518     esac
2519     case $ac_pass in
2520     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2521     2)
2522       as_fn_append ac_configure_args1 " '$ac_arg'"
2523       if test $ac_must_keep_next = true; then
2524         ac_must_keep_next=false # Got value, back to normal.
2525       else
2526         case $ac_arg in
2527           *=* | --config-cache | -C | -disable-* | --disable-* \
2528           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2529           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2530           | -with-* | --with-* | -without-* | --without-* | --x)
2531             case "$ac_configure_args0 " in
2532               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2533             esac
2534             ;;
2535           -* ) ac_must_keep_next=true ;;
2536         esac
2537       fi
2538       as_fn_append ac_configure_args " '$ac_arg'"
2539       ;;
2540     esac
2541   done
2542 done
2543 { ac_configure_args0=; unset ac_configure_args0;}
2544 { ac_configure_args1=; unset ac_configure_args1;}
2545
2546 # When interrupted or exit'd, cleanup temporary files, and complete
2547 # config.log.  We remove comments because anyway the quotes in there
2548 # would cause problems or look ugly.
2549 # WARNING: Use '\'' to represent an apostrophe within the trap.
2550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2551 trap 'exit_status=$?
2552   # Sanitize IFS.
2553   IFS=" ""      $as_nl"
2554   # Save into config.log some information that might help in debugging.
2555   {
2556     echo
2557
2558     printf "%s\n" "## ---------------- ##
2559 ## Cache variables. ##
2560 ## ---------------- ##"
2561     echo
2562     # The following way of writing the cache mishandles newlines in values,
2563 (
2564   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2565     eval ac_val=\$$ac_var
2566     case $ac_val in #(
2567     *${as_nl}*)
2568       case $ac_var in #(
2569       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2570 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2571       esac
2572       case $ac_var in #(
2573       _ | IFS | as_nl) ;; #(
2574       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2575       *) { eval $ac_var=; unset $ac_var;} ;;
2576       esac ;;
2577     esac
2578   done
2579   (set) 2>&1 |
2580     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2581     *${as_nl}ac_space=\ *)
2582       sed -n \
2583         "s/'\''/'\''\\\\'\'''\''/g;
2584           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2585       ;; #(
2586     *)
2587       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2588       ;;
2589     esac |
2590     sort
2591 )
2592     echo
2593
2594     printf "%s\n" "## ----------------- ##
2595 ## Output variables. ##
2596 ## ----------------- ##"
2597     echo
2598     for ac_var in $ac_subst_vars
2599     do
2600       eval ac_val=\$$ac_var
2601       case $ac_val in
2602       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2603       esac
2604       printf "%s\n" "$ac_var='\''$ac_val'\''"
2605     done | sort
2606     echo
2607
2608     if test -n "$ac_subst_files"; then
2609       printf "%s\n" "## ------------------- ##
2610 ## File substitutions. ##
2611 ## ------------------- ##"
2612       echo
2613       for ac_var in $ac_subst_files
2614       do
2615         eval ac_val=\$$ac_var
2616         case $ac_val in
2617         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2618         esac
2619         printf "%s\n" "$ac_var='\''$ac_val'\''"
2620       done | sort
2621       echo
2622     fi
2623
2624     if test -s confdefs.h; then
2625       printf "%s\n" "## ----------- ##
2626 ## confdefs.h. ##
2627 ## ----------- ##"
2628       echo
2629       cat confdefs.h
2630       echo
2631     fi
2632     test "$ac_signal" != 0 &&
2633       printf "%s\n" "$as_me: caught signal $ac_signal"
2634     printf "%s\n" "$as_me: exit $exit_status"
2635   } >&5
2636   rm -f core *.core core.conftest.* &&
2637     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2638     exit $exit_status
2639 ' 0
2640 for ac_signal in 1 2 13 15; do
2641   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2642 done
2643 ac_signal=0
2644
2645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2646 rm -f -r conftest* confdefs.h
2647
2648 printf "%s\n" "/* confdefs.h */" > confdefs.h
2649
2650 # Predefined preprocessor variables.
2651
2652 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2653
2654 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2655
2656 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2657
2658 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2659
2660 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2661
2662 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2663
2664
2665 # Let the site file select an alternate cache file if it wants to.
2666 # Prefer an explicitly selected file to automatically selected ones.
2667 if test -n "$CONFIG_SITE"; then
2668   ac_site_files="$CONFIG_SITE"
2669 elif test "x$prefix" != xNONE; then
2670   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2671 else
2672   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2673 fi
2674
2675 for ac_site_file in $ac_site_files
2676 do
2677   case $ac_site_file in #(
2678   */*) :
2679      ;; #(
2680   *) :
2681     ac_site_file=./$ac_site_file ;;
2682 esac
2683   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2685 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2686     sed 's/^/| /' "$ac_site_file" >&5
2687     . "$ac_site_file" \
2688       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2690 as_fn_error $? "failed to load site script $ac_site_file
2691 See \`config.log' for more details" "$LINENO" 5; }
2692   fi
2693 done
2694
2695 if test -r "$cache_file"; then
2696   # Some versions of bash will fail to source /dev/null (special files
2697   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2698   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2699     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2700 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2701     case $cache_file in
2702       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2703       *)                      . "./$cache_file";;
2704     esac
2705   fi
2706 else
2707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2708 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2709   >$cache_file
2710 fi
2711
2712 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2713 # Test code for whether the C compiler supports C89 (global declarations)
2714 ac_c_conftest_c89_globals='
2715 /* Does the compiler advertise C89 conformance?
2716    Do not test the value of __STDC__, because some compilers set it to 0
2717    while being otherwise adequately conformant. */
2718 #if !defined __STDC__
2719 # error "Compiler does not advertise C89 conformance"
2720 #endif
2721
2722 #include <stddef.h>
2723 #include <stdarg.h>
2724 struct stat;
2725 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2726 struct buf { int x; };
2727 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2728 static char *e (p, i)
2729      char **p;
2730      int i;
2731 {
2732   return p[i];
2733 }
2734 static char *f (char * (*g) (char **, int), char **p, ...)
2735 {
2736   char *s;
2737   va_list v;
2738   va_start (v,p);
2739   s = g (p, va_arg (v,int));
2740   va_end (v);
2741   return s;
2742 }
2743
2744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2745    function prototypes and stuff, but not \xHH hex character constants.
2746    These do not provoke an error unfortunately, instead are silently treated
2747    as an "x".  The following induces an error, until -std is added to get
2748    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2749    array size at least.  It is necessary to write \x00 == 0 to get something
2750    that is true only with -std.  */
2751 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2752
2753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2754    inside strings and character constants.  */
2755 #define FOO(x) '\''x'\''
2756 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2757
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2762                int, int);'
2763
2764 # Test code for whether the C compiler supports C89 (body of main).
2765 ac_c_conftest_c89_main='
2766 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2767 '
2768
2769 # Test code for whether the C compiler supports C99 (global declarations)
2770 ac_c_conftest_c99_globals='
2771 // Does the compiler advertise C99 conformance?
2772 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2773 # error "Compiler does not advertise C99 conformance"
2774 #endif
2775
2776 #include <stdbool.h>
2777 extern int puts (const char *);
2778 extern int printf (const char *, ...);
2779 extern int dprintf (int, const char *, ...);
2780 extern void *malloc (size_t);
2781
2782 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2783 // dprintf is used instead of fprintf to avoid needing to declare
2784 // FILE and stderr.
2785 #define debug(...) dprintf (2, __VA_ARGS__)
2786 #define showlist(...) puts (#__VA_ARGS__)
2787 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2788 static void
2789 test_varargs_macros (void)
2790 {
2791   int x = 1234;
2792   int y = 5678;
2793   debug ("Flag");
2794   debug ("X = %d\n", x);
2795   showlist (The first, second, and third items.);
2796   report (x>y, "x is %d but y is %d", x, y);
2797 }
2798
2799 // Check long long types.
2800 #define BIG64 18446744073709551615ull
2801 #define BIG32 4294967295ul
2802 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2803 #if !BIG_OK
2804   #error "your preprocessor is broken"
2805 #endif
2806 #if BIG_OK
2807 #else
2808   #error "your preprocessor is broken"
2809 #endif
2810 static long long int bignum = -9223372036854775807LL;
2811 static unsigned long long int ubignum = BIG64;
2812
2813 struct incomplete_array
2814 {
2815   int datasize;
2816   double data[];
2817 };
2818
2819 struct named_init {
2820   int number;
2821   const wchar_t *name;
2822   double average;
2823 };
2824
2825 typedef const char *ccp;
2826
2827 static inline int
2828 test_restrict (ccp restrict text)
2829 {
2830   // See if C++-style comments work.
2831   // Iterate through items via the restricted pointer.
2832   // Also check for declarations in for loops.
2833   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2834     continue;
2835   return 0;
2836 }
2837
2838 // Check varargs and va_copy.
2839 static bool
2840 test_varargs (const char *format, ...)
2841 {
2842   va_list args;
2843   va_start (args, format);
2844   va_list args_copy;
2845   va_copy (args_copy, args);
2846
2847   const char *str = "";
2848   int number = 0;
2849   float fnumber = 0;
2850
2851   while (*format)
2852     {
2853       switch (*format++)
2854         {
2855         case '\''s'\'': // string
2856           str = va_arg (args_copy, const char *);
2857           break;
2858         case '\''d'\'': // int
2859           number = va_arg (args_copy, int);
2860           break;
2861         case '\''f'\'': // float
2862           fnumber = va_arg (args_copy, double);
2863           break;
2864         default:
2865           break;
2866         }
2867     }
2868   va_end (args_copy);
2869   va_end (args);
2870
2871   return *str && number && fnumber;
2872 }
2873 '
2874
2875 # Test code for whether the C compiler supports C99 (body of main).
2876 ac_c_conftest_c99_main='
2877   // Check bool.
2878   _Bool success = false;
2879   success |= (argc != 0);
2880
2881   // Check restrict.
2882   if (test_restrict ("String literal") == 0)
2883     success = true;
2884   char *restrict newvar = "Another string";
2885
2886   // Check varargs.
2887   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2888   test_varargs_macros ();
2889
2890   // Check flexible array members.
2891   struct incomplete_array *ia =
2892     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2893   ia->datasize = 10;
2894   for (int i = 0; i < ia->datasize; ++i)
2895     ia->data[i] = i * 1.234;
2896
2897   // Check named initializers.
2898   struct named_init ni = {
2899     .number = 34,
2900     .name = L"Test wide string",
2901     .average = 543.34343,
2902   };
2903
2904   ni.number = 58;
2905
2906   int dynamic_array[ni.number];
2907   dynamic_array[0] = argv[0][0];
2908   dynamic_array[ni.number - 1] = 543;
2909
2910   // work around unused variable warnings
2911   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2912          || dynamic_array[ni.number - 1] != 543);
2913 '
2914
2915 # Test code for whether the C compiler supports C11 (global declarations)
2916 ac_c_conftest_c11_globals='
2917 // Does the compiler advertise C11 conformance?
2918 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2919 # error "Compiler does not advertise C11 conformance"
2920 #endif
2921
2922 // Check _Alignas.
2923 char _Alignas (double) aligned_as_double;
2924 char _Alignas (0) no_special_alignment;
2925 extern char aligned_as_int;
2926 char _Alignas (0) _Alignas (int) aligned_as_int;
2927
2928 // Check _Alignof.
2929 enum
2930 {
2931   int_alignment = _Alignof (int),
2932   int_array_alignment = _Alignof (int[100]),
2933   char_alignment = _Alignof (char)
2934 };
2935 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2936
2937 // Check _Noreturn.
2938 int _Noreturn does_not_return (void) { for (;;) continue; }
2939
2940 // Check _Static_assert.
2941 struct test_static_assert
2942 {
2943   int x;
2944   _Static_assert (sizeof (int) <= sizeof (long int),
2945                   "_Static_assert does not work in struct");
2946   long int y;
2947 };
2948
2949 // Check UTF-8 literals.
2950 #define u8 syntax error!
2951 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2952
2953 // Check duplicate typedefs.
2954 typedef long *long_ptr;
2955 typedef long int *long_ptr;
2956 typedef long_ptr long_ptr;
2957
2958 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2959 struct anonymous
2960 {
2961   union {
2962     struct { int i; int j; };
2963     struct { int k; long int l; } w;
2964   };
2965   int m;
2966 } v1;
2967 '
2968
2969 # Test code for whether the C compiler supports C11 (body of main).
2970 ac_c_conftest_c11_main='
2971   _Static_assert ((offsetof (struct anonymous, i)
2972                    == offsetof (struct anonymous, w.k)),
2973                   "Anonymous union alignment botch");
2974   v1.i = 2;
2975   v1.w.k = 5;
2976   ok |= v1.i != 5;
2977 '
2978
2979 # Test code for whether the C compiler supports C11 (complete).
2980 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2981 ${ac_c_conftest_c99_globals}
2982 ${ac_c_conftest_c11_globals}
2983
2984 int
2985 main (int argc, char **argv)
2986 {
2987   int ok = 0;
2988   ${ac_c_conftest_c89_main}
2989   ${ac_c_conftest_c99_main}
2990   ${ac_c_conftest_c11_main}
2991   return ok;
2992 }
2993 "
2994
2995 # Test code for whether the C compiler supports C99 (complete).
2996 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2997 ${ac_c_conftest_c99_globals}
2998
2999 int
3000 main (int argc, char **argv)
3001 {
3002   int ok = 0;
3003   ${ac_c_conftest_c89_main}
3004   ${ac_c_conftest_c99_main}
3005   return ok;
3006 }
3007 "
3008
3009 # Test code for whether the C compiler supports C89 (complete).
3010 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3011
3012 int
3013 main (int argc, char **argv)
3014 {
3015   int ok = 0;
3016   ${ac_c_conftest_c89_main}
3017   return ok;
3018 }
3019 "
3020
3021 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3022 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3023 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3024 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3025 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3026 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3027 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3028 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3029 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3030 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3031 gt_needs="$gt_needs "
3032 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3033 # Test code for whether the C++ compiler supports C++98 (global declarations)
3034 ac_cxx_conftest_cxx98_globals='
3035 // Does the compiler advertise C++98 conformance?
3036 #if !defined __cplusplus || __cplusplus < 199711L
3037 # error "Compiler does not advertise C++98 conformance"
3038 #endif
3039
3040 // These inclusions are to reject old compilers that
3041 // lack the unsuffixed header files.
3042 #include <cstdlib>
3043 #include <exception>
3044
3045 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3046 extern void assert (int);
3047 namespace std {
3048   extern int strcmp (const char *, const char *);
3049 }
3050
3051 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3052 using std::exception;
3053 using std::strcmp;
3054
3055 namespace {
3056
3057 void test_exception_syntax()
3058 {
3059   try {
3060     throw "test";
3061   } catch (const char *s) {
3062     // Extra parentheses suppress a warning when building autoconf itself,
3063     // due to lint rules shared with more typical C programs.
3064     assert (!(strcmp) (s, "test"));
3065   }
3066 }
3067
3068 template <typename T> struct test_template
3069 {
3070   T const val;
3071   explicit test_template(T t) : val(t) {}
3072   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3073 };
3074
3075 } // anonymous namespace
3076 '
3077
3078 # Test code for whether the C++ compiler supports C++98 (body of main)
3079 ac_cxx_conftest_cxx98_main='
3080   assert (argc);
3081   assert (! argv[0]);
3082 {
3083   test_exception_syntax ();
3084   test_template<double> tt (2.0);
3085   assert (tt.add (4) == 6.0);
3086   assert (true && !false);
3087 }
3088 '
3089
3090 # Test code for whether the C++ compiler supports C++11 (global declarations)
3091 ac_cxx_conftest_cxx11_globals='
3092 // Does the compiler advertise C++ 2011 conformance?
3093 #if !defined __cplusplus || __cplusplus < 201103L
3094 # error "Compiler does not advertise C++11 conformance"
3095 #endif
3096
3097 namespace cxx11test
3098 {
3099   constexpr int get_val() { return 20; }
3100
3101   struct testinit
3102   {
3103     int i;
3104     double d;
3105   };
3106
3107   class delegate
3108   {
3109   public:
3110     delegate(int n) : n(n) {}
3111     delegate(): delegate(2354) {}
3112
3113     virtual int getval() { return this->n; };
3114   protected:
3115     int n;
3116   };
3117
3118   class overridden : public delegate
3119   {
3120   public:
3121     overridden(int n): delegate(n) {}
3122     virtual int getval() override final { return this->n * 2; }
3123   };
3124
3125   class nocopy
3126   {
3127   public:
3128     nocopy(int i): i(i) {}
3129     nocopy() = default;
3130     nocopy(const nocopy&) = delete;
3131     nocopy & operator=(const nocopy&) = delete;
3132   private:
3133     int i;
3134   };
3135
3136   // for testing lambda expressions
3137   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3138   {
3139     return f(v);
3140   }
3141
3142   // for testing variadic templates and trailing return types
3143   template <typename V> auto sum(V first) -> V
3144   {
3145     return first;
3146   }
3147   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3148   {
3149     return first + sum(rest...);
3150   }
3151 }
3152 '
3153
3154 # Test code for whether the C++ compiler supports C++11 (body of main)
3155 ac_cxx_conftest_cxx11_main='
3156 {
3157   // Test auto and decltype
3158   auto a1 = 6538;
3159   auto a2 = 48573953.4;
3160   auto a3 = "String literal";
3161
3162   int total = 0;
3163   for (auto i = a3; *i; ++i) { total += *i; }
3164
3165   decltype(a2) a4 = 34895.034;
3166 }
3167 {
3168   // Test constexpr
3169   short sa[cxx11test::get_val()] = { 0 };
3170 }
3171 {
3172   // Test initializer lists
3173   cxx11test::testinit il = { 4323, 435234.23544 };
3174 }
3175 {
3176   // Test range-based for
3177   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3178                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3179   for (auto &x : array) { x += 23; }
3180 }
3181 {
3182   // Test lambda expressions
3183   using cxx11test::eval;
3184   assert (eval ([](int x) { return x*2; }, 21) == 42);
3185   double d = 2.0;
3186   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3187   assert (d == 5.0);
3188   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3189   assert (d == 5.0);
3190 }
3191 {
3192   // Test use of variadic templates
3193   using cxx11test::sum;
3194   auto a = sum(1);
3195   auto b = sum(1, 2);
3196   auto c = sum(1.0, 2.0, 3.0);
3197 }
3198 {
3199   // Test constructor delegation
3200   cxx11test::delegate d1;
3201   cxx11test::delegate d2();
3202   cxx11test::delegate d3(45);
3203 }
3204 {
3205   // Test override and final
3206   cxx11test::overridden o1(55464);
3207 }
3208 {
3209   // Test nullptr
3210   char *c = nullptr;
3211 }
3212 {
3213   // Test template brackets
3214   test_template<::test_template<int>> v(test_template<int>(12));
3215 }
3216 {
3217   // Unicode literals
3218   char const *utf8 = u8"UTF-8 string \u2500";
3219   char16_t const *utf16 = u"UTF-8 string \u2500";
3220   char32_t const *utf32 = U"UTF-32 string \u2500";
3221 }
3222 '
3223
3224 # Test code for whether the C compiler supports C++11 (complete).
3225 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3226 ${ac_cxx_conftest_cxx11_globals}
3227
3228 int
3229 main (int argc, char **argv)
3230 {
3231   int ok = 0;
3232   ${ac_cxx_conftest_cxx98_main}
3233   ${ac_cxx_conftest_cxx11_main}
3234   return ok;
3235 }
3236 "
3237
3238 # Test code for whether the C compiler supports C++98 (complete).
3239 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3240 int
3241 main (int argc, char **argv)
3242 {
3243   int ok = 0;
3244   ${ac_cxx_conftest_cxx98_main}
3245   return ok;
3246 }
3247 "
3248
3249
3250 # Auxiliary files required by this configure script.
3251 ac_aux_files="config.rpath install-sh config.guess config.sub"
3252
3253 # Locations in which to look for auxiliary files.
3254 ac_aux_dir_candidates="${srcdir}/config"
3255
3256 # Search for a directory containing all of the required auxiliary files,
3257 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3258 # If we don't find one directory that contains all the files we need,
3259 # we report the set of missing files from the *first* directory in
3260 # $ac_aux_dir_candidates and give up.
3261 ac_missing_aux_files=""
3262 ac_first_candidate=:
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 as_found=false
3266 for as_dir in $ac_aux_dir_candidates
3267 do
3268   IFS=$as_save_IFS
3269   case $as_dir in #(((
3270     '') as_dir=./ ;;
3271     */) ;;
3272     *) as_dir=$as_dir/ ;;
3273   esac
3274   as_found=:
3275
3276   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3277   ac_aux_dir_found=yes
3278   ac_install_sh=
3279   for ac_aux in $ac_aux_files
3280   do
3281     # As a special case, if "install-sh" is required, that requirement
3282     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3283     # and $ac_install_sh is set appropriately for whichever one is found.
3284     if test x"$ac_aux" = x"install-sh"
3285     then
3286       if test -f "${as_dir}install-sh"; then
3287         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3288         ac_install_sh="${as_dir}install-sh -c"
3289       elif test -f "${as_dir}install.sh"; then
3290         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3291         ac_install_sh="${as_dir}install.sh -c"
3292       elif test -f "${as_dir}shtool"; then
3293         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3294         ac_install_sh="${as_dir}shtool install -c"
3295       else
3296         ac_aux_dir_found=no
3297         if $ac_first_candidate; then
3298           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3299         else
3300           break
3301         fi
3302       fi
3303     else
3304       if test -f "${as_dir}${ac_aux}"; then
3305         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3306       else
3307         ac_aux_dir_found=no
3308         if $ac_first_candidate; then
3309           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3310         else
3311           break
3312         fi
3313       fi
3314     fi
3315   done
3316   if test "$ac_aux_dir_found" = yes; then
3317     ac_aux_dir="$as_dir"
3318     break
3319   fi
3320   ac_first_candidate=false
3321
3322   as_found=false
3323 done
3324 IFS=$as_save_IFS
3325 if $as_found
3326 then :
3327
3328 else $as_nop
3329   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3330 fi
3331
3332
3333 # These three variables are undocumented and unsupported,
3334 # and are intended to be withdrawn in a future Autoconf release.
3335 # They can cause serious problems if a builder's source tree is in a directory
3336 # whose full name contains unusual characters.
3337 if test -f "${ac_aux_dir}config.guess"; then
3338   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3339 fi
3340 if test -f "${ac_aux_dir}config.sub"; then
3341   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3342 fi
3343 if test -f "$ac_aux_dir/configure"; then
3344   ac_configure="$SHELL ${ac_aux_dir}configure"
3345 fi
3346
3347 # Check that the precious variables saved in the cache have kept the same
3348 # value.
3349 ac_cache_corrupted=false
3350 for ac_var in $ac_precious_vars; do
3351   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352   eval ac_new_set=\$ac_env_${ac_var}_set
3353   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354   eval ac_new_val=\$ac_env_${ac_var}_value
3355   case $ac_old_set,$ac_new_set in
3356     set,)
3357       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3358 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359       ac_cache_corrupted=: ;;
3360     ,set)
3361       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3362 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363       ac_cache_corrupted=: ;;
3364     ,);;
3365     *)
3366       if test "x$ac_old_val" != "x$ac_new_val"; then
3367         # differences in whitespace do not lead to failure.
3368         ac_old_val_w=`echo x $ac_old_val`
3369         ac_new_val_w=`echo x $ac_new_val`
3370         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3371           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3372 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373           ac_cache_corrupted=:
3374         else
3375           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3376 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377           eval $ac_var=\$ac_old_val
3378         fi
3379         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3380 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3381         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3382 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3383       fi;;
3384   esac
3385   # Pass precious variables to config.status.
3386   if test "$ac_new_set" = set; then
3387     case $ac_new_val in
3388     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389     *) ac_arg=$ac_var=$ac_new_val ;;
3390     esac
3391     case " $ac_configure_args " in
3392       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3393       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3394     esac
3395   fi
3396 done
3397 if $ac_cache_corrupted; then
3398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3401 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3402   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3403             and start over" "$LINENO" 5
3404 fi
3405 ## -------------------- ##
3406 ## Main body of script. ##
3407 ## -------------------- ##
3408
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415
3416
3417
3418
3419 ac_config_headers="$ac_config_headers lib/config.h"
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 if test -n "$ac_tool_prefix"; then
3437   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 printf %s "checking for $ac_word... " >&6; }
3441 if test ${ac_cv_prog_CC+y}
3442 then :
3443   printf %s "(cached) " >&6
3444 else $as_nop
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   case $as_dir in #(((
3453     '') as_dir=./ ;;
3454     */) ;;
3455     *) as_dir=$as_dir/ ;;
3456   esac
3457     for ac_exec_ext in '' $ac_executable_extensions; do
3458   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 printf "%s\n" "$CC" >&6; }
3473 else
3474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 printf "%s\n" "no" >&6; }
3476 fi
3477
3478
3479 fi
3480 if test -z "$ac_cv_prog_CC"; then
3481   ac_ct_CC=$CC
3482   # Extract the first word of "gcc", so it can be a program name with args.
3483 set dummy gcc; ac_word=$2
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 printf %s "checking for $ac_word... " >&6; }
3486 if test ${ac_cv_prog_ac_ct_CC+y}
3487 then :
3488   printf %s "(cached) " >&6
3489 else $as_nop
3490   if test -n "$ac_ct_CC"; then
3491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   case $as_dir in #(((
3498     '') as_dir=./ ;;
3499     */) ;;
3500     *) as_dir=$as_dir/ ;;
3501   esac
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3504     ac_cv_prog_ac_ct_CC="gcc"
3505     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 printf "%s\n" "$ac_ct_CC" >&6; }
3518 else
3519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3521 fi
3522
3523   if test "x$ac_ct_CC" = x; then
3524     CC=""
3525   else
3526     case $cross_compiling:$ac_tool_warned in
3527 yes:)
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3530 ac_tool_warned=yes ;;
3531 esac
3532     CC=$ac_ct_CC
3533   fi
3534 else
3535   CC="$ac_cv_prog_CC"
3536 fi
3537
3538 if test -z "$CC"; then
3539           if test -n "$ac_tool_prefix"; then
3540     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}cc; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_CC+y}
3545 then :
3546   printf %s "(cached) " >&6
3547 else $as_nop
3548   if test -n "$CC"; then
3549   ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   case $as_dir in #(((
3556     '') as_dir=./ ;;
3557     */) ;;
3558     *) as_dir=$as_dir/ ;;
3559   esac
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562     ac_cv_prog_CC="${ac_tool_prefix}cc"
3563     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567   done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 printf "%s\n" "$CC" >&6; }
3576 else
3577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582   fi
3583 fi
3584 if test -z "$CC"; then
3585   # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_CC+y}
3590 then :
3591   printf %s "(cached) " >&6
3592 else $as_nop
3593   if test -n "$CC"; then
3594   ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596   ac_prog_rejected=no
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   case $as_dir in #(((
3602     '') as_dir=./ ;;
3603     */) ;;
3604     *) as_dir=$as_dir/ ;;
3605   esac
3606     for ac_exec_ext in '' $ac_executable_extensions; do
3607   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3609        ac_prog_rejected=yes
3610        continue
3611      fi
3612     ac_cv_prog_CC="cc"
3613     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614     break 2
3615   fi
3616 done
3617   done
3618 IFS=$as_save_IFS
3619
3620 if test $ac_prog_rejected = yes; then
3621   # We found a bogon in the path, so make sure we never use it.
3622   set dummy $ac_cv_prog_CC
3623   shift
3624   if test $# != 0; then
3625     # We chose a different compiler from the bogus one.
3626     # However, it has the same basename, so the bogon will be chosen
3627     # first if we set CC to just the basename; use the full file name.
3628     shift
3629     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3630   fi
3631 fi
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 printf "%s\n" "$CC" >&6; }
3638 else
3639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 printf "%s\n" "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 if test -z "$CC"; then
3646   if test -n "$ac_tool_prefix"; then
3647   for ac_prog in cl.exe
3648   do
3649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 printf %s "checking for $ac_word... " >&6; }
3653 if test ${ac_cv_prog_CC+y}
3654 then :
3655   printf %s "(cached) " >&6
3656 else $as_nop
3657   if test -n "$CC"; then
3658   ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   case $as_dir in #(((
3665     '') as_dir=./ ;;
3666     */) ;;
3667     *) as_dir=$as_dir/ ;;
3668   esac
3669     for ac_exec_ext in '' $ac_executable_extensions; do
3670   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3672     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673     break 2
3674   fi
3675 done
3676   done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 printf "%s\n" "$CC" >&6; }
3685 else
3686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3688 fi
3689
3690
3691     test -n "$CC" && break
3692   done
3693 fi
3694 if test -z "$CC"; then
3695   ac_ct_CC=$CC
3696   for ac_prog in cl.exe
3697 do
3698   # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 printf %s "checking for $ac_word... " >&6; }
3702 if test ${ac_cv_prog_ac_ct_CC+y}
3703 then :
3704   printf %s "(cached) " >&6
3705 else $as_nop
3706   if test -n "$ac_ct_CC"; then
3707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   case $as_dir in #(((
3714     '') as_dir=./ ;;
3715     */) ;;
3716     *) as_dir=$as_dir/ ;;
3717   esac
3718     for ac_exec_ext in '' $ac_executable_extensions; do
3719   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3720     ac_cv_prog_ac_ct_CC="$ac_prog"
3721     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722     break 2
3723   fi
3724 done
3725   done
3726 IFS=$as_save_IFS
3727
3728 fi
3729 fi
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 printf "%s\n" "$ac_ct_CC" >&6; }
3734 else
3735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 printf "%s\n" "no" >&6; }
3737 fi
3738
3739
3740   test -n "$ac_ct_CC" && break
3741 done
3742
3743   if test "x$ac_ct_CC" = x; then
3744     CC=""
3745   else
3746     case $cross_compiling:$ac_tool_warned in
3747 yes:)
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3751 esac
3752     CC=$ac_ct_CC
3753   fi
3754 fi
3755
3756 fi
3757 if test -z "$CC"; then
3758   if test -n "$ac_tool_prefix"; then
3759   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}clang; ac_word=$2
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 printf %s "checking for $ac_word... " >&6; }
3763 if test ${ac_cv_prog_CC+y}
3764 then :
3765   printf %s "(cached) " >&6
3766 else $as_nop
3767   if test -n "$CC"; then
3768   ac_cv_prog_CC="$CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   case $as_dir in #(((
3775     '') as_dir=./ ;;
3776     */) ;;
3777     *) as_dir=$as_dir/ ;;
3778   esac
3779     for ac_exec_ext in '' $ac_executable_extensions; do
3780   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3781     ac_cv_prog_CC="${ac_tool_prefix}clang"
3782     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3783     break 2
3784   fi
3785 done
3786   done
3787 IFS=$as_save_IFS
3788
3789 fi
3790 fi
3791 CC=$ac_cv_prog_CC
3792 if test -n "$CC"; then
3793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794 printf "%s\n" "$CC" >&6; }
3795 else
3796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 printf "%s\n" "no" >&6; }
3798 fi
3799
3800
3801 fi
3802 if test -z "$ac_cv_prog_CC"; then
3803   ac_ct_CC=$CC
3804   # Extract the first word of "clang", so it can be a program name with args.
3805 set dummy clang; ac_word=$2
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 printf %s "checking for $ac_word... " >&6; }
3808 if test ${ac_cv_prog_ac_ct_CC+y}
3809 then :
3810   printf %s "(cached) " >&6
3811 else $as_nop
3812   if test -n "$ac_ct_CC"; then
3813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   case $as_dir in #(((
3820     '') as_dir=./ ;;
3821     */) ;;
3822     *) as_dir=$as_dir/ ;;
3823   esac
3824     for ac_exec_ext in '' $ac_executable_extensions; do
3825   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_ac_ct_CC="clang"
3827     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831   done
3832 IFS=$as_save_IFS
3833
3834 fi
3835 fi
3836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3837 if test -n "$ac_ct_CC"; then
3838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3839 printf "%s\n" "$ac_ct_CC" >&6; }
3840 else
3841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 printf "%s\n" "no" >&6; }
3843 fi
3844
3845   if test "x$ac_ct_CC" = x; then
3846     CC=""
3847   else
3848     case $cross_compiling:$ac_tool_warned in
3849 yes:)
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3852 ac_tool_warned=yes ;;
3853 esac
3854     CC=$ac_ct_CC
3855   fi
3856 else
3857   CC="$ac_cv_prog_CC"
3858 fi
3859
3860 fi
3861
3862
3863 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "no acceptable C compiler found in \$PATH
3866 See \`config.log' for more details" "$LINENO" 5; }
3867
3868 # Provide some information about the compiler.
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3870 set X $ac_compile
3871 ac_compiler=$2
3872 for ac_option in --version -v -V -qversion -version; do
3873   { { ac_try="$ac_compiler $ac_option >&5"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 printf "%s\n" "$ac_try_echo"; } >&5
3880   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3881   ac_status=$?
3882   if test -s conftest.err; then
3883     sed '10a\
3884 ... rest of stderr output deleted ...
3885          10q' conftest.err >conftest.er1
3886     cat conftest.er1 >&5
3887   fi
3888   rm -f conftest.er1 conftest.err
3889   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890   test $ac_status = 0; }
3891 done
3892
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895
3896 int
3897 main (void)
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 ac_clean_files_save=$ac_clean_files
3905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3906 # Try to create an executable without -o first, disregard a.out.
3907 # It will help us diagnose broken compilers, and finding out an intuition
3908 # of exeext.
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910 printf %s "checking whether the C compiler works... " >&6; }
3911 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3912
3913 # The possible output files:
3914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3915
3916 ac_rmfiles=
3917 for ac_file in $ac_files
3918 do
3919   case $ac_file in
3920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3922   esac
3923 done
3924 rm -f $ac_rmfiles
3925
3926 if { { ac_try="$ac_link_default"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 printf "%s\n" "$ac_try_echo"; } >&5
3933   (eval "$ac_link_default") 2>&5
3934   ac_status=$?
3935   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936   test $ac_status = 0; }
3937 then :
3938   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3939 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3940 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3941 # so that the user can short-circuit this test for compilers unknown to
3942 # Autoconf.
3943 for ac_file in $ac_files ''
3944 do
3945   test -f "$ac_file" || continue
3946   case $ac_file in
3947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3948         ;;
3949     [ab].out )
3950         # We found the default executable, but exeext='' is most
3951         # certainly right.
3952         break;;
3953     *.* )
3954         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3955         then :; else
3956            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957         fi
3958         # We set ac_cv_exeext here because the later test for it is not
3959         # safe: cross compilers may not add the suffix if given an `-o'
3960         # argument, so we may need to know it at that point already.
3961         # Even if this section looks crufty: it has the advantage of
3962         # actually working.
3963         break;;
3964     * )
3965         break;;
3966   esac
3967 done
3968 test "$ac_cv_exeext" = no && ac_cv_exeext=
3969
3970 else $as_nop
3971   ac_file=''
3972 fi
3973 if test -z "$ac_file"
3974 then :
3975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 printf "%s\n" "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error 77 "C compiler cannot create executables
3983 See \`config.log' for more details" "$LINENO" 5; }
3984 else $as_nop
3985   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 printf "%s\n" "yes" >&6; }
3987 fi
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3989 printf %s "checking for C compiler default output file name... " >&6; }
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3991 printf "%s\n" "$ac_file" >&6; }
3992 ac_exeext=$ac_cv_exeext
3993
3994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3995 ac_clean_files=$ac_clean_files_save
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3997 printf %s "checking for suffix of executables... " >&6; }
3998 if { { ac_try="$ac_link"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005   (eval "$ac_link") 2>&5
4006   ac_status=$?
4007   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008   test $ac_status = 0; }
4009 then :
4010   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015   test -f "$ac_file" || continue
4016   case $ac_file in
4017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019           break;;
4020     * ) break;;
4021   esac
4022 done
4023 else $as_nop
4024   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 fi
4029 rm -f conftest conftest$ac_cv_exeext
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 printf "%s\n" "$ac_cv_exeext" >&6; }
4032
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038 #include <stdio.h>
4039 int
4040 main (void)
4041 {
4042 FILE *f = fopen ("conftest.out", "w");
4043  return ferror (f) || fclose (f) != 0;
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run.  If not, either
4051 # the compiler is broken, or we cross compile.
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 printf %s "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055   { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 printf "%s\n" "$ac_try_echo"; } >&5
4062   (eval "$ac_link") 2>&5
4063   ac_status=$?
4064   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065   test $ac_status = 0; }
4066   if { ac_try='./conftest$ac_cv_exeext'
4067   { { case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 printf "%s\n" "$ac_try_echo"; } >&5
4073   (eval "$ac_try") 2>&5
4074   ac_status=$?
4075   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076   test $ac_status = 0; }; }; then
4077     cross_compiling=no
4078   else
4079     if test "$cross_compiling" = maybe; then
4080         cross_compiling=yes
4081     else
4082         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error 77 "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4087     fi
4088   fi
4089 fi
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 printf "%s\n" "$cross_compiling" >&6; }
4092
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 printf %s "checking for suffix of object files... " >&6; }
4097 if test ${ac_cv_objext+y}
4098 then :
4099   printf %s "(cached) " >&6
4100 else $as_nop
4101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h.  */
4103
4104 int
4105 main (void)
4106 {
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try="$ac_compile"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 printf "%s\n" "$ac_try_echo"; } >&5
4120   (eval "$ac_compile") 2>&5
4121   ac_status=$?
4122   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123   test $ac_status = 0; }
4124 then :
4125   for ac_file in conftest.o conftest.obj conftest.*; do
4126   test -f "$ac_file" || continue;
4127   case $ac_file in
4128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4129     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4130        break;;
4131   esac
4132 done
4133 else $as_nop
4134   printf "%s\n" "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4139 as_fn_error $? "cannot compute suffix of object files: cannot compile
4140 See \`config.log' for more details" "$LINENO" 5; }
4141 fi
4142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4143 fi
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4145 printf "%s\n" "$ac_cv_objext" >&6; }
4146 OBJEXT=$ac_cv_objext
4147 ac_objext=$OBJEXT
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4149 printf %s "checking whether the compiler supports GNU C... " >&6; }
4150 if test ${ac_cv_c_compiler_gnu+y}
4151 then :
4152   printf %s "(cached) " >&6
4153 else $as_nop
4154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156
4157 int
4158 main (void)
4159 {
4160 #ifndef __GNUC__
4161        choke me
4162 #endif
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"
4169 then :
4170   ac_compiler_gnu=yes
4171 else $as_nop
4172   ac_compiler_gnu=no
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4176
4177 fi
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4179 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182 if test $ac_compiler_gnu = yes; then
4183   GCC=yes
4184 else
4185   GCC=
4186 fi
4187 ac_test_CFLAGS=${CFLAGS+y}
4188 ac_save_CFLAGS=$CFLAGS
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4190 printf %s "checking whether $CC accepts -g... " >&6; }
4191 if test ${ac_cv_prog_cc_g+y}
4192 then :
4193   printf %s "(cached) " >&6
4194 else $as_nop
4195   ac_save_c_werror_flag=$ac_c_werror_flag
4196    ac_c_werror_flag=yes
4197    ac_cv_prog_cc_g=no
4198    CFLAGS="-g"
4199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h.  */
4201
4202 int
4203 main (void)
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212   ac_cv_prog_cc_g=yes
4213 else $as_nop
4214   CFLAGS=""
4215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h.  */
4217
4218 int
4219 main (void)
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"
4227 then :
4228
4229 else $as_nop
4230   ac_c_werror_flag=$ac_save_c_werror_flag
4231          CFLAGS="-g"
4232          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234
4235 int
4236 main (void)
4237 {
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"
4244 then :
4245   ac_cv_prog_cc_g=yes
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4252    ac_c_werror_flag=$ac_save_c_werror_flag
4253 fi
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4255 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4256 if test $ac_test_CFLAGS; then
4257   CFLAGS=$ac_save_CFLAGS
4258 elif test $ac_cv_prog_cc_g = yes; then
4259   if test "$GCC" = yes; then
4260     CFLAGS="-g -O2"
4261   else
4262     CFLAGS="-g"
4263   fi
4264 else
4265   if test "$GCC" = yes; then
4266     CFLAGS="-O2"
4267   else
4268     CFLAGS=
4269   fi
4270 fi
4271 ac_prog_cc_stdc=no
4272 if test x$ac_prog_cc_stdc = xno
4273 then :
4274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4275 printf %s "checking for $CC option to enable C11 features... " >&6; }
4276 if test ${ac_cv_prog_cc_c11+y}
4277 then :
4278   printf %s "(cached) " >&6
4279 else $as_nop
4280   ac_cv_prog_cc_c11=no
4281 ac_save_CC=$CC
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284 $ac_c_conftest_c11_program
4285 _ACEOF
4286 for ac_arg in '' -std=gnu11
4287 do
4288   CC="$ac_save_CC $ac_arg"
4289   if ac_fn_c_try_compile "$LINENO"
4290 then :
4291   ac_cv_prog_cc_c11=$ac_arg
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam
4294   test "x$ac_cv_prog_cc_c11" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4298 fi
4299
4300 if test "x$ac_cv_prog_cc_c11" = xno
4301 then :
4302   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 printf "%s\n" "unsupported" >&6; }
4304 else $as_nop
4305   if test "x$ac_cv_prog_cc_c11" = x
4306 then :
4307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 printf "%s\n" "none needed" >&6; }
4309 else $as_nop
4310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4311 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4312      CC="$CC $ac_cv_prog_cc_c11"
4313 fi
4314   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4315   ac_prog_cc_stdc=c11
4316 fi
4317 fi
4318 if test x$ac_prog_cc_stdc = xno
4319 then :
4320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4321 printf %s "checking for $CC option to enable C99 features... " >&6; }
4322 if test ${ac_cv_prog_cc_c99+y}
4323 then :
4324   printf %s "(cached) " >&6
4325 else $as_nop
4326   ac_cv_prog_cc_c99=no
4327 ac_save_CC=$CC
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330 $ac_c_conftest_c99_program
4331 _ACEOF
4332 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4333 do
4334   CC="$ac_save_CC $ac_arg"
4335   if ac_fn_c_try_compile "$LINENO"
4336 then :
4337   ac_cv_prog_cc_c99=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340   test "x$ac_cv_prog_cc_c99" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CC=$ac_save_CC
4344 fi
4345
4346 if test "x$ac_cv_prog_cc_c99" = xno
4347 then :
4348   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else $as_nop
4351   if test "x$ac_cv_prog_cc_c99" = x
4352 then :
4353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else $as_nop
4356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4358      CC="$CC $ac_cv_prog_cc_c99"
4359 fi
4360   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4361   ac_prog_cc_stdc=c99
4362 fi
4363 fi
4364 if test x$ac_prog_cc_stdc = xno
4365 then :
4366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4367 printf %s "checking for $CC option to enable C89 features... " >&6; }
4368 if test ${ac_cv_prog_cc_c89+y}
4369 then :
4370   printf %s "(cached) " >&6
4371 else $as_nop
4372   ac_cv_prog_cc_c89=no
4373 ac_save_CC=$CC
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376 $ac_c_conftest_c89_program
4377 _ACEOF
4378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4379 do
4380   CC="$ac_save_CC $ac_arg"
4381   if ac_fn_c_try_compile "$LINENO"
4382 then :
4383   ac_cv_prog_cc_c89=$ac_arg
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam
4386   test "x$ac_cv_prog_cc_c89" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CC=$ac_save_CC
4390 fi
4391
4392 if test "x$ac_cv_prog_cc_c89" = xno
4393 then :
4394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 printf "%s\n" "unsupported" >&6; }
4396 else $as_nop
4397   if test "x$ac_cv_prog_cc_c89" = x
4398 then :
4399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400 printf "%s\n" "none needed" >&6; }
4401 else $as_nop
4402   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4404      CC="$CC $ac_cv_prog_cc_c89"
4405 fi
4406   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4407   ac_prog_cc_stdc=c89
4408 fi
4409 fi
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417
4418 ac_header= ac_cache=
4419 for ac_item in $ac_header_c_list
4420 do
4421   if test $ac_cache; then
4422     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4423     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4424       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4425     fi
4426     ac_header= ac_cache=
4427   elif test $ac_header; then
4428     ac_cache=$ac_item
4429   else
4430     ac_header=$ac_item
4431   fi
4432 done
4433
4434
4435
4436
4437
4438
4439
4440
4441 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4442 then :
4443
4444 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4445
4446 fi
4447
4448
4449
4450
4451
4452
4453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4454 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4455 if test ${ac_cv_safe_to_define___extensions__+y}
4456 then :
4457   printf %s "(cached) " >&6
4458 else $as_nop
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h.  */
4461
4462 #         define __EXTENSIONS__ 1
4463           $ac_includes_default
4464 int
4465 main (void)
4466 {
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"
4473 then :
4474   ac_cv_safe_to_define___extensions__=yes
4475 else $as_nop
4476   ac_cv_safe_to_define___extensions__=no
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4479 fi
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4481 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4482
4483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4484 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4485 if test ${ac_cv_should_define__xopen_source+y}
4486 then :
4487   printf %s "(cached) " >&6
4488 else $as_nop
4489   ac_cv_should_define__xopen_source=no
4490     if test $ac_cv_header_wchar_h = yes
4491 then :
4492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494
4495           #include <wchar.h>
4496           mbstate_t x;
4497 int
4498 main (void)
4499 {
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"
4506 then :
4507
4508 else $as_nop
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511
4512             #define _XOPEN_SOURCE 500
4513             #include <wchar.h>
4514             mbstate_t x;
4515 int
4516 main (void)
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"
4524 then :
4525   ac_cv_should_define__xopen_source=yes
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4530 fi
4531 fi
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4533 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4534
4535   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4536
4537   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4538
4539   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4540
4541   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4542
4543   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4544
4545   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4546
4547   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4548
4549   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4550
4551   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4552
4553   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4554
4555   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4556
4557   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4558
4559   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4560
4561   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4562
4563   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4564
4565   if test $ac_cv_header_minix_config_h = yes
4566 then :
4567   MINIX=yes
4568     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4569
4570     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4571
4572     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4573
4574 else $as_nop
4575   MINIX=
4576 fi
4577   if test $ac_cv_safe_to_define___extensions__ = yes
4578 then :
4579   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4580
4581 fi
4582   if test $ac_cv_should_define__xopen_source = yes
4583 then :
4584   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4585
4586 fi
4587
4588 MCONFIG=./MCONFIG
4589
4590 BINARY_TYPE=bin
4591 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4592 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4593 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4594 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4595 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4596
4597 if expr $YEAR ">" 1900 > /dev/null ; then
4598         E2FSPROGS_YEAR=$YEAR
4599 elif expr $YEAR ">" 90 >/dev/null ; then
4600         E2FSPROGS_YEAR=19$YEAR
4601 else
4602         E2FSPROGS_YEAR=20$YEAR
4603 fi
4604
4605 case $MONTH in
4606 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4607 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4608 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4609 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4610 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4611 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4612 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4613 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4614 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4615 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4616 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4617 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4618 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4619 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4620 esac
4621
4622 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4623 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4624
4625 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4626
4627 case $E2FSPROGS_VERSION in
4628 *-WIP|pre-*)
4629         E2FSPROGS_PKGVER="$base_ver"
4630         E2FSPROGS_PKGREL="WIP.$date_spec"
4631         ;;
4632 *)
4633         E2FSPROGS_PKGVER="$base_ver"
4634         E2FSPROGS_PKGREL="$base_rel"
4635         ;;
4636 esac
4637
4638 unset DATE MONTH YEAR base_ver pre_vers date_spec
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4640 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4642 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4644 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4645
4646
4647
4648
4649
4650
4651
4652 WITH_DIET_LIBC=
4653
4654 # Check whether --with-diet-libc was given.
4655 if test ${with_diet_libc+y}
4656 then :
4657   withval=$with_diet_libc; CC="diet cc -nostdinc"
4658 WITH_DIET_LIBC=yes
4659 if test -z "$LIBS"
4660 then
4661         LIBS="-lcompat"
4662 else
4663         LIBS="$LIBS -lcompat"
4664 fi
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4666 printf "%s\n" "CC=$CC" >&6; }
4667 fi
4668
4669
4670
4671   # Make sure we can run config.sub.
4672 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4673   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4674
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4676 printf %s "checking build system type... " >&6; }
4677 if test ${ac_cv_build+y}
4678 then :
4679   printf %s "(cached) " >&6
4680 else $as_nop
4681   ac_build_alias=$build_alias
4682 test "x$ac_build_alias" = x &&
4683   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4684 test "x$ac_build_alias" = x &&
4685   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4686 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4687   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4688
4689 fi
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4691 printf "%s\n" "$ac_cv_build" >&6; }
4692 case $ac_cv_build in
4693 *-*-*) ;;
4694 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4695 esac
4696 build=$ac_cv_build
4697 ac_save_IFS=$IFS; IFS='-'
4698 set x $ac_cv_build
4699 shift
4700 build_cpu=$1
4701 build_vendor=$2
4702 shift; shift
4703 # Remember, the first character of IFS is used to create $*,
4704 # except with old shells:
4705 build_os=$*
4706 IFS=$ac_save_IFS
4707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4708
4709
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4711 printf %s "checking host system type... " >&6; }
4712 if test ${ac_cv_host+y}
4713 then :
4714   printf %s "(cached) " >&6
4715 else $as_nop
4716   if test "x$host_alias" = x; then
4717   ac_cv_host=$ac_cv_build
4718 else
4719   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4720     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4721 fi
4722
4723 fi
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4725 printf "%s\n" "$ac_cv_host" >&6; }
4726 case $ac_cv_host in
4727 *-*-*) ;;
4728 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4729 esac
4730 host=$ac_cv_host
4731 ac_save_IFS=$IFS; IFS='-'
4732 set x $ac_cv_host
4733 shift
4734 host_cpu=$1
4735 host_vendor=$2
4736 shift; shift
4737 # Remember, the first character of IFS is used to create $*,
4738 # except with old shells:
4739 host_os=$*
4740 IFS=$ac_save_IFS
4741 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4742
4743
4744 DLOPEN_LIB=''
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4746 printf %s "checking for dlopen in -ldl... " >&6; }
4747 if test ${ac_cv_lib_dl_dlopen+y}
4748 then :
4749   printf %s "(cached) " >&6
4750 else $as_nop
4751   ac_check_lib_save_LIBS=$LIBS
4752 LIBS="-ldl  $LIBS"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h.  */
4755
4756 /* Override any GCC internal prototype to avoid an error.
4757    Use char because int might match the return type of a GCC
4758    builtin and then its argument prototype would still apply.  */
4759 char dlopen ();
4760 int
4761 main (void)
4762 {
4763 return dlopen ();
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_link "$LINENO"
4769 then :
4770   ac_cv_lib_dl_dlopen=yes
4771 else $as_nop
4772   ac_cv_lib_dl_dlopen=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4775     conftest$ac_exeext conftest.$ac_ext
4776 LIBS=$ac_check_lib_save_LIBS
4777 fi
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4779 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4780 if test "x$ac_cv_lib_dl_dlopen" = xyes
4781 then :
4782   DLOPEN_LIB=-ldl
4783 fi
4784
4785
4786
4787 # Check whether --with-cc was given.
4788 if test ${with_cc+y}
4789 then :
4790   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4791 fi
4792
4793
4794 # Check whether --with-ccopts was given.
4795 if test ${with_ccopts+y}
4796 then :
4797   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4798 fi
4799
4800
4801 # Check whether --with-ldopts was given.
4802 if test ${with_ldopts+y}
4803 then :
4804   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4805 fi
4806
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_CC+y}
4818 then :
4819   printf %s "(cached) " >&6
4820 else $as_nop
4821   if test -n "$CC"; then
4822   ac_cv_prog_CC="$CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   case $as_dir in #(((
4829     '') as_dir=./ ;;
4830     */) ;;
4831     *) as_dir=$as_dir/ ;;
4832   esac
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848 printf "%s\n" "$CC" >&6; }
4849 else
4850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_CC"; then
4857   ac_ct_CC=$CC
4858   # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 printf %s "checking for $ac_word... " >&6; }
4862 if test ${ac_cv_prog_ac_ct_CC+y}
4863 then :
4864   printf %s "(cached) " >&6
4865 else $as_nop
4866   if test -n "$ac_ct_CC"; then
4867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   case $as_dir in #(((
4874     '') as_dir=./ ;;
4875     */) ;;
4876     *) as_dir=$as_dir/ ;;
4877   esac
4878     for ac_exec_ext in '' $ac_executable_extensions; do
4879   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880     ac_cv_prog_ac_ct_CC="gcc"
4881     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885   done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 printf "%s\n" "$ac_ct_CC" >&6; }
4894 else
4895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 printf "%s\n" "no" >&6; }
4897 fi
4898
4899   if test "x$ac_ct_CC" = x; then
4900     CC=""
4901   else
4902     case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908     CC=$ac_ct_CC
4909   fi
4910 else
4911   CC="$ac_cv_prog_CC"
4912 fi
4913
4914 if test -z "$CC"; then
4915           if test -n "$ac_tool_prefix"; then
4916     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}cc; ac_word=$2
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 printf %s "checking for $ac_word... " >&6; }
4920 if test ${ac_cv_prog_CC+y}
4921 then :
4922   printf %s "(cached) " >&6
4923 else $as_nop
4924   if test -n "$CC"; then
4925   ac_cv_prog_CC="$CC" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   case $as_dir in #(((
4932     '') as_dir=./ ;;
4933     */) ;;
4934     *) as_dir=$as_dir/ ;;
4935   esac
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4938     ac_cv_prog_CC="${ac_tool_prefix}cc"
4939     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 CC=$ac_cv_prog_CC
4949 if test -n "$CC"; then
4950   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4951 printf "%s\n" "$CC" >&6; }
4952 else
4953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 printf "%s\n" "no" >&6; }
4955 fi
4956
4957
4958   fi
4959 fi
4960 if test -z "$CC"; then
4961   # Extract the first word of "cc", so it can be a program name with args.
4962 set dummy cc; ac_word=$2
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 printf %s "checking for $ac_word... " >&6; }
4965 if test ${ac_cv_prog_CC+y}
4966 then :
4967   printf %s "(cached) " >&6
4968 else $as_nop
4969   if test -n "$CC"; then
4970   ac_cv_prog_CC="$CC" # Let the user override the test.
4971 else
4972   ac_prog_rejected=no
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   case $as_dir in #(((
4978     '') as_dir=./ ;;
4979     */) ;;
4980     *) as_dir=$as_dir/ ;;
4981   esac
4982     for ac_exec_ext in '' $ac_executable_extensions; do
4983   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4984     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4985        ac_prog_rejected=yes
4986        continue
4987      fi
4988     ac_cv_prog_CC="cc"
4989     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993   done
4994 IFS=$as_save_IFS
4995
4996 if test $ac_prog_rejected = yes; then
4997   # We found a bogon in the path, so make sure we never use it.
4998   set dummy $ac_cv_prog_CC
4999   shift
5000   if test $# != 0; then
5001     # We chose a different compiler from the bogus one.
5002     # However, it has the same basename, so the bogon will be chosen
5003     # first if we set CC to just the basename; use the full file name.
5004     shift
5005     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5006   fi
5007 fi
5008 fi
5009 fi
5010 CC=$ac_cv_prog_CC
5011 if test -n "$CC"; then
5012   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5013 printf "%s\n" "$CC" >&6; }
5014 else
5015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 printf "%s\n" "no" >&6; }
5017 fi
5018
5019
5020 fi
5021 if test -z "$CC"; then
5022   if test -n "$ac_tool_prefix"; then
5023   for ac_prog in cl.exe
5024   do
5025     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 printf %s "checking for $ac_word... " >&6; }
5029 if test ${ac_cv_prog_CC+y}
5030 then :
5031   printf %s "(cached) " >&6
5032 else $as_nop
5033   if test -n "$CC"; then
5034   ac_cv_prog_CC="$CC" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   case $as_dir in #(((
5041     '') as_dir=./ ;;
5042     */) ;;
5043     *) as_dir=$as_dir/ ;;
5044   esac
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5047     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5048     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 CC=$ac_cv_prog_CC
5058 if test -n "$CC"; then
5059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5060 printf "%s\n" "$CC" >&6; }
5061 else
5062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 printf "%s\n" "no" >&6; }
5064 fi
5065
5066
5067     test -n "$CC" && break
5068   done
5069 fi
5070 if test -z "$CC"; then
5071   ac_ct_CC=$CC
5072   for ac_prog in cl.exe
5073 do
5074   # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 printf %s "checking for $ac_word... " >&6; }
5078 if test ${ac_cv_prog_ac_ct_CC+y}
5079 then :
5080   printf %s "(cached) " >&6
5081 else $as_nop
5082   if test -n "$ac_ct_CC"; then
5083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   case $as_dir in #(((
5090     '') as_dir=./ ;;
5091     */) ;;
5092     *) as_dir=$as_dir/ ;;
5093   esac
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5096     ac_cv_prog_ac_ct_CC="$ac_prog"
5097     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101   done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5107 if test -n "$ac_ct_CC"; then
5108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5109 printf "%s\n" "$ac_ct_CC" >&6; }
5110 else
5111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 printf "%s\n" "no" >&6; }
5113 fi
5114
5115
5116   test -n "$ac_ct_CC" && break
5117 done
5118
5119   if test "x$ac_ct_CC" = x; then
5120     CC=""
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128     CC=$ac_ct_CC
5129   fi
5130 fi
5131
5132 fi
5133 if test -z "$CC"; then
5134   if test -n "$ac_tool_prefix"; then
5135   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}clang; ac_word=$2
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 printf %s "checking for $ac_word... " >&6; }
5139 if test ${ac_cv_prog_CC+y}
5140 then :
5141   printf %s "(cached) " >&6
5142 else $as_nop
5143   if test -n "$CC"; then
5144   ac_cv_prog_CC="$CC" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   case $as_dir in #(((
5151     '') as_dir=./ ;;
5152     */) ;;
5153     *) as_dir=$as_dir/ ;;
5154   esac
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5157     ac_cv_prog_CC="${ac_tool_prefix}clang"
5158     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 CC=$ac_cv_prog_CC
5168 if test -n "$CC"; then
5169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5170 printf "%s\n" "$CC" >&6; }
5171 else
5172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 printf "%s\n" "no" >&6; }
5174 fi
5175
5176
5177 fi
5178 if test -z "$ac_cv_prog_CC"; then
5179   ac_ct_CC=$CC
5180   # Extract the first word of "clang", so it can be a program name with args.
5181 set dummy clang; ac_word=$2
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 printf %s "checking for $ac_word... " >&6; }
5184 if test ${ac_cv_prog_ac_ct_CC+y}
5185 then :
5186   printf %s "(cached) " >&6
5187 else $as_nop
5188   if test -n "$ac_ct_CC"; then
5189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   case $as_dir in #(((
5196     '') as_dir=./ ;;
5197     */) ;;
5198     *) as_dir=$as_dir/ ;;
5199   esac
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_ac_ct_CC="clang"
5203     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207   done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5213 if test -n "$ac_ct_CC"; then
5214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5215 printf "%s\n" "$ac_ct_CC" >&6; }
5216 else
5217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 printf "%s\n" "no" >&6; }
5219 fi
5220
5221   if test "x$ac_ct_CC" = x; then
5222     CC=""
5223   else
5224     case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230     CC=$ac_ct_CC
5231   fi
5232 else
5233   CC="$ac_cv_prog_CC"
5234 fi
5235
5236 fi
5237
5238
5239 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error $? "no acceptable C compiler found in \$PATH
5242 See \`config.log' for more details" "$LINENO" 5; }
5243
5244 # Provide some information about the compiler.
5245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5246 set X $ac_compile
5247 ac_compiler=$2
5248 for ac_option in --version -v -V -qversion -version; do
5249   { { ac_try="$ac_compiler $ac_option >&5"
5250 case "(($ac_try" in
5251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252   *) ac_try_echo=$ac_try;;
5253 esac
5254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255 printf "%s\n" "$ac_try_echo"; } >&5
5256   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5257   ac_status=$?
5258   if test -s conftest.err; then
5259     sed '10a\
5260 ... rest of stderr output deleted ...
5261          10q' conftest.err >conftest.er1
5262     cat conftest.er1 >&5
5263   fi
5264   rm -f conftest.er1 conftest.err
5265   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266   test $ac_status = 0; }
5267 done
5268
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5270 printf %s "checking whether the compiler supports GNU C... " >&6; }
5271 if test ${ac_cv_c_compiler_gnu+y}
5272 then :
5273   printf %s "(cached) " >&6
5274 else $as_nop
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277
5278 int
5279 main (void)
5280 {
5281 #ifndef __GNUC__
5282        choke me
5283 #endif
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"
5290 then :
5291   ac_compiler_gnu=yes
5292 else $as_nop
5293   ac_compiler_gnu=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5297
5298 fi
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5300 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302
5303 if test $ac_compiler_gnu = yes; then
5304   GCC=yes
5305 else
5306   GCC=
5307 fi
5308 ac_test_CFLAGS=${CFLAGS+y}
5309 ac_save_CFLAGS=$CFLAGS
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5311 printf %s "checking whether $CC accepts -g... " >&6; }
5312 if test ${ac_cv_prog_cc_g+y}
5313 then :
5314   printf %s "(cached) " >&6
5315 else $as_nop
5316   ac_save_c_werror_flag=$ac_c_werror_flag
5317    ac_c_werror_flag=yes
5318    ac_cv_prog_cc_g=no
5319    CFLAGS="-g"
5320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322
5323 int
5324 main (void)
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"
5332 then :
5333   ac_cv_prog_cc_g=yes
5334 else $as_nop
5335   CFLAGS=""
5336       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h.  */
5338
5339 int
5340 main (void)
5341 {
5342
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"
5348 then :
5349
5350 else $as_nop
5351   ac_c_werror_flag=$ac_save_c_werror_flag
5352          CFLAGS="-g"
5353          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h.  */
5355
5356 int
5357 main (void)
5358 {
5359
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"
5365 then :
5366   ac_cv_prog_cc_g=yes
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373    ac_c_werror_flag=$ac_save_c_werror_flag
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5376 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5377 if test $ac_test_CFLAGS; then
5378   CFLAGS=$ac_save_CFLAGS
5379 elif test $ac_cv_prog_cc_g = yes; then
5380   if test "$GCC" = yes; then
5381     CFLAGS="-g -O2"
5382   else
5383     CFLAGS="-g"
5384   fi
5385 else
5386   if test "$GCC" = yes; then
5387     CFLAGS="-O2"
5388   else
5389     CFLAGS=
5390   fi
5391 fi
5392 ac_prog_cc_stdc=no
5393 if test x$ac_prog_cc_stdc = xno
5394 then :
5395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5396 printf %s "checking for $CC option to enable C11 features... " >&6; }
5397 if test ${ac_cv_prog_cc_c11+y}
5398 then :
5399   printf %s "(cached) " >&6
5400 else $as_nop
5401   ac_cv_prog_cc_c11=no
5402 ac_save_CC=$CC
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h.  */
5405 $ac_c_conftest_c11_program
5406 _ACEOF
5407 for ac_arg in '' -std=gnu11
5408 do
5409   CC="$ac_save_CC $ac_arg"
5410   if ac_fn_c_try_compile "$LINENO"
5411 then :
5412   ac_cv_prog_cc_c11=$ac_arg
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.beam
5415   test "x$ac_cv_prog_cc_c11" != "xno" && break
5416 done
5417 rm -f conftest.$ac_ext
5418 CC=$ac_save_CC
5419 fi
5420
5421 if test "x$ac_cv_prog_cc_c11" = xno
5422 then :
5423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5424 printf "%s\n" "unsupported" >&6; }
5425 else $as_nop
5426   if test "x$ac_cv_prog_cc_c11" = x
5427 then :
5428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5429 printf "%s\n" "none needed" >&6; }
5430 else $as_nop
5431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5432 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5433      CC="$CC $ac_cv_prog_cc_c11"
5434 fi
5435   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5436   ac_prog_cc_stdc=c11
5437 fi
5438 fi
5439 if test x$ac_prog_cc_stdc = xno
5440 then :
5441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5442 printf %s "checking for $CC option to enable C99 features... " >&6; }
5443 if test ${ac_cv_prog_cc_c99+y}
5444 then :
5445   printf %s "(cached) " >&6
5446 else $as_nop
5447   ac_cv_prog_cc_c99=no
5448 ac_save_CC=$CC
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 $ac_c_conftest_c99_program
5452 _ACEOF
5453 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5454 do
5455   CC="$ac_save_CC $ac_arg"
5456   if ac_fn_c_try_compile "$LINENO"
5457 then :
5458   ac_cv_prog_cc_c99=$ac_arg
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam
5461   test "x$ac_cv_prog_cc_c99" != "xno" && break
5462 done
5463 rm -f conftest.$ac_ext
5464 CC=$ac_save_CC
5465 fi
5466
5467 if test "x$ac_cv_prog_cc_c99" = xno
5468 then :
5469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470 printf "%s\n" "unsupported" >&6; }
5471 else $as_nop
5472   if test "x$ac_cv_prog_cc_c99" = x
5473 then :
5474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5475 printf "%s\n" "none needed" >&6; }
5476 else $as_nop
5477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5478 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5479      CC="$CC $ac_cv_prog_cc_c99"
5480 fi
5481   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5482   ac_prog_cc_stdc=c99
5483 fi
5484 fi
5485 if test x$ac_prog_cc_stdc = xno
5486 then :
5487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5488 printf %s "checking for $CC option to enable C89 features... " >&6; }
5489 if test ${ac_cv_prog_cc_c89+y}
5490 then :
5491   printf %s "(cached) " >&6
5492 else $as_nop
5493   ac_cv_prog_cc_c89=no
5494 ac_save_CC=$CC
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h.  */
5497 $ac_c_conftest_c89_program
5498 _ACEOF
5499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5500 do
5501   CC="$ac_save_CC $ac_arg"
5502   if ac_fn_c_try_compile "$LINENO"
5503 then :
5504   ac_cv_prog_cc_c89=$ac_arg
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam
5507   test "x$ac_cv_prog_cc_c89" != "xno" && break
5508 done
5509 rm -f conftest.$ac_ext
5510 CC=$ac_save_CC
5511 fi
5512
5513 if test "x$ac_cv_prog_cc_c89" = xno
5514 then :
5515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5516 printf "%s\n" "unsupported" >&6; }
5517 else $as_nop
5518   if test "x$ac_cv_prog_cc_c89" = x
5519 then :
5520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5521 printf "%s\n" "none needed" >&6; }
5522 else $as_nop
5523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5524 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5525      CC="$CC $ac_cv_prog_cc_c89"
5526 fi
5527   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5528   ac_prog_cc_stdc=c89
5529 fi
5530 fi
5531
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538 if test "$GCC" = yes; then
5539    RDYNAMIC="-rdynamic"
5540
5541 fi
5542 ac_ext=c
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5548 printf %s "checking how to run the C preprocessor... " >&6; }
5549 # On Suns, sometimes $CPP names a directory.
5550 if test -n "$CPP" && test -d "$CPP"; then
5551   CPP=
5552 fi
5553 if test -z "$CPP"; then
5554   if test ${ac_cv_prog_CPP+y}
5555 then :
5556   printf %s "(cached) " >&6
5557 else $as_nop
5558       # Double quotes because $CC needs to be expanded
5559     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5560     do
5561       ac_preproc_ok=false
5562 for ac_c_preproc_warn_flag in '' yes
5563 do
5564   # Use a header file that comes with gcc, so configuring glibc
5565   # with a fresh cross-compiler works.
5566   # On the NeXT, cc -E runs the code through the compiler's parser,
5567   # not just through cpp. "Syntax error" is here to catch this case.
5568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h.  */
5570 #include <limits.h>
5571                      Syntax error
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"
5574 then :
5575
5576 else $as_nop
5577   # Broken: fails on valid input.
5578 continue
5579 fi
5580 rm -f conftest.err conftest.i conftest.$ac_ext
5581
5582   # OK, works on sane cases.  Now check whether nonexistent headers
5583   # can be detected and how.
5584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"
5589 then :
5590   # Broken: success on invalid input.
5591 continue
5592 else $as_nop
5593   # Passes both tests.
5594 ac_preproc_ok=:
5595 break
5596 fi
5597 rm -f conftest.err conftest.i conftest.$ac_ext
5598
5599 done
5600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601 rm -f conftest.i conftest.err conftest.$ac_ext
5602 if $ac_preproc_ok
5603 then :
5604   break
5605 fi
5606
5607     done
5608     ac_cv_prog_CPP=$CPP
5609
5610 fi
5611   CPP=$ac_cv_prog_CPP
5612 else
5613   ac_cv_prog_CPP=$CPP
5614 fi
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5616 printf "%s\n" "$CPP" >&6; }
5617 ac_preproc_ok=false
5618 for ac_c_preproc_warn_flag in '' yes
5619 do
5620   # Use a header file that comes with gcc, so configuring glibc
5621   # with a fresh cross-compiler works.
5622   # On the NeXT, cc -E runs the code through the compiler's parser,
5623   # not just through cpp. "Syntax error" is here to catch this case.
5624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626 #include <limits.h>
5627                      Syntax error
5628 _ACEOF
5629 if ac_fn_c_try_cpp "$LINENO"
5630 then :
5631
5632 else $as_nop
5633   # Broken: fails on valid input.
5634 continue
5635 fi
5636 rm -f conftest.err conftest.i conftest.$ac_ext
5637
5638   # OK, works on sane cases.  Now check whether nonexistent headers
5639   # can be detected and how.
5640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h.  */
5642 #include <ac_nonexistent.h>
5643 _ACEOF
5644 if ac_fn_c_try_cpp "$LINENO"
5645 then :
5646   # Broken: success on invalid input.
5647 continue
5648 else $as_nop
5649   # Passes both tests.
5650 ac_preproc_ok=:
5651 break
5652 fi
5653 rm -f conftest.err conftest.i conftest.$ac_ext
5654
5655 done
5656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5657 rm -f conftest.i conftest.err conftest.$ac_ext
5658 if $ac_preproc_ok
5659 then :
5660
5661 else $as_nop
5662   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5664 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5665 See \`config.log' for more details" "$LINENO" 5; }
5666 fi
5667
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5675 printf %s "checking for additional special compiler flags... " >&6; }
5676 if test "$GCC" = yes
5677 then
5678     case "$host_cpu" in
5679         alpha)          addcflags="-mieee" ;;
5680     esac
5681 fi
5682 if test "x$addcflags" != x
5683 then
5684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5685 printf "%s\n" "$addcflags" >&6; }
5686     CFLAGS="$addcflags $CFLAGS"
5687 else
5688     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5689 printf "%s\n" "(none)" >&6; }
5690 fi
5691 LIB_EXT=.a
5692 STATIC_LIB_EXT=.a
5693 PROFILED_LIB_EXT=.a
5694
5695 # Check whether --with-root-prefix was given.
5696 if test ${with_root_prefix+y}
5697 then :
5698   withval=$with_root_prefix; root_prefix=$withval
5699 else $as_nop
5700   root_prefix=NONE
5701 fi
5702 # Check whether --enable-maintainer-mode was given.
5703 if test ${enable_maintainer_mode+y}
5704 then :
5705   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5706 then
5707         MAINTAINER_CMT=#
5708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5709 printf "%s\n" "Disabling maintainer mode" >&6; }
5710 else
5711         MAINTAINER_CMT=
5712         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5713 printf "%s\n" "Enabling maintainer mode" >&6; }
5714 fi
5715
5716 else $as_nop
5717   MAINTAINER_CMT=#
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5719 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5720
5721 fi
5722
5723
5724 # Check whether --enable-symlink-install was given.
5725 if test ${enable_symlink_install+y}
5726 then :
5727   enableval=$enable_symlink_install; if test "$enableval" = "no"
5728 then
5729         LINK_INSTALL_FLAGS=-f
5730         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5731 printf "%s\n" "Disabling symlinks for install" >&6; }
5732 else
5733         LINK_INSTALL_FLAGS=-sf
5734         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5735 printf "%s\n" "Enabling symlinks for install" >&6; }
5736 fi
5737
5738 else $as_nop
5739   LINK_INSTALL_FLAGS=-f
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5741 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5742
5743 fi
5744
5745
5746 relative_symlink_defined=
5747 # Check whether --enable-relative-symlinks was given.
5748 if test ${enable_relative_symlinks+y}
5749 then :
5750   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5751 then
5752         SYMLINK_RELATIVE=
5753         relative_symlink_defined=yes
5754         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5755 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5756 else
5757         SYMLINK_RELATIVE=--relative
5758         relative_symlink_defined=yes
5759         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5760 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5761 fi
5762 fi
5763
5764 # Check whether --enable-symlink-relative-symlinks was given.
5765 if test ${enable_symlink_relative_symlinks+y}
5766 then :
5767   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5768 then
5769         SYMLINK_RELATIVE=yes
5770         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5771 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5772 else
5773         SYMLINK_RELATIVE=--relative
5774         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5775 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5776 fi
5777
5778 else $as_nop
5779   if test -z "$relative_symlink_defined"
5780 then
5781         SYMLINK_RELATIVE=
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5783 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5784 fi
5785
5786 fi
5787
5788
5789 # Check whether --enable-symlink-build was given.
5790 if test ${enable_symlink_build+y}
5791 then :
5792   enableval=$enable_symlink_build; if test "$enableval" = "no"
5793 then
5794         LINK_BUILD_FLAGS=
5795         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5796 printf "%s\n" "Disabling symlinks for build" >&6; }
5797 else
5798         LINK_BUILD_FLAGS=-s
5799         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5800 printf "%s\n" "Enabling symlinks for build" >&6; }
5801 fi
5802
5803 else $as_nop
5804   LINK_BUILD_FLAGS=
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5806 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5807
5808 fi
5809
5810
5811 # Check whether --enable-verbose-makecmds was given.
5812 if test ${enable_verbose_makecmds+y}
5813 then :
5814   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5815 then
5816         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5817 printf "%s\n" "Disabling verbose make commands" >&6; }
5818         E=@echo
5819         ES=echo
5820         Q=@
5821 else
5822         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5823 printf "%s\n" "Enabling verbose make commands" >&6; }
5824         E=@\\#
5825         ES=\\#
5826         Q=
5827 fi
5828
5829 else $as_nop
5830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5831 printf "%s\n" "Disabling verbose make commands" >&6; }
5832 E=@echo
5833 ES=echo
5834 Q=@
5835
5836 fi
5837
5838
5839
5840
5841 E2_PKG_CONFIG_STATIC=--static
5842 LDFLAG_DYNAMIC=
5843 PRIVATE_LIBS_CMT=
5844 # Check whether --enable-elf-shlibs was given.
5845 if test ${enable_elf_shlibs+y}
5846 then :
5847   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5848 then
5849         ELF_CMT=#
5850         MAKEFILE_ELF=/dev/null
5851         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5852 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5853 else
5854         E2_PKG_CONFIG_STATIC=
5855         ELF_CMT=
5856         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5857         case "$host_os" in
5858         solaris2.*)
5859                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5860         ;;
5861         esac
5862         BINARY_TYPE=elfbin
5863         LIB_EXT=.so
5864         PRIVATE_LIBS_CMT=#
5865         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5866         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5867 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5868 fi
5869
5870 else $as_nop
5871   MAKEFILE_ELF=/dev/null
5872 ELF_CMT=#
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5874 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5875
5876 fi
5877
5878
5879
5880 # Check whether --enable-bsd-shlibs was given.
5881 if test ${enable_bsd_shlibs+y}
5882 then :
5883   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5884 then
5885         BSDLIB_CMT=#
5886         MAKEFILE_BSDLIB=/dev/null
5887         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5888 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5889 else
5890         E2_PKG_CONFIG_STATIC=
5891         BSDLIB_CMT=
5892         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5893         LIB_EXT=.so
5894         case "$host_os" in
5895         darwin*)
5896                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5897                 LIB_EXT=.dylib
5898         ;;
5899         esac
5900         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5901 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5902 fi
5903
5904 else $as_nop
5905   MAKEFILE_BSDLIB=/dev/null
5906 BSDLIB_CMT=#
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5908 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5909
5910 fi
5911
5912
5913
5914 # Check whether --enable-profile was given.
5915 if test ${enable_profile+y}
5916 then :
5917   enableval=$enable_profile; if test "$enableval" = "no"
5918 then
5919         PROFILE_CMT=#
5920         MAKEFILE_PROFILE=/dev/null
5921         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5922 printf "%s\n" "Disabling profiling libraries" >&6; }
5923 else
5924         PROFILE_CMT=
5925         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5926         PROFILED_LIB_EXT=_p.a
5927         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5928 printf "%s\n" "Building profiling libraries" >&6; }
5929 fi
5930
5931 else $as_nop
5932   PROFILE_CMT=#
5933 MAKEFILE_PROFILE=/dev/null
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5935 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5936
5937 fi
5938
5939
5940
5941 # Check whether --enable-gcov was given.
5942 if test ${enable_gcov+y}
5943 then :
5944   enableval=$enable_gcov; if test "$enableval" = "yes"
5945 then
5946         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5947         LDFLAGS="-fprofile-arcs -ftest-coverage"
5948         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5949 printf "%s\n" "Enabling gcov support" >&6; }
5950 fi
5951
5952 fi
5953
5954 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5955 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5956 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5957 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5958 # Check whether --enable-hardening was given.
5959 if test ${enable_hardening+y}
5960 then :
5961   enableval=$enable_hardening; if test "$enableval" = "yes"
5962 then
5963         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5964         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5965         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5966         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5967         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5968         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5969         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5970         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5971         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5972 printf "%s\n" "Enabling hardening support" >&6; }
5973 fi
5974
5975 fi
5976
5977
5978
5979
5980
5981
5982 # Check whether --enable-jbd-debug was given.
5983 if test ${enable_jbd_debug+y}
5984 then :
5985   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5986 then
5987         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5988 printf "%s\n" "Disabling journal debugging" >&6; }
5989 else
5990
5991 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5992
5993         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5994 printf "%s\n" "Enabling journal debugging" >&6; }
5995 fi
5996
5997 else $as_nop
5998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5999 printf "%s\n" "Disabling journal debugging by default" >&6; }
6000
6001 fi
6002
6003 # Check whether --enable-blkid-debug was given.
6004 if test ${enable_blkid_debug+y}
6005 then :
6006   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6007 then
6008         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6009 printf "%s\n" "Disabling blkid debugging" >&6; }
6010 else
6011
6012 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6013
6014         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6015 printf "%s\n" "Enabling blkid debugging" >&6; }
6016 fi
6017
6018 else $as_nop
6019   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6020 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6021
6022 fi
6023
6024 # Check whether --enable-testio-debug was given.
6025 if test ${enable_testio_debug+y}
6026 then :
6027   enableval=$enable_testio_debug;
6028 if test "$enableval" = "no"
6029 then
6030         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6031 printf "%s\n" "Disabling testio debugging" >&6; }
6032         TEST_IO_CMT="#"
6033 else
6034         TEST_IO_CMT=
6035         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6036
6037         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6038 printf "%s\n" "Enabling testio debugging" >&6; }
6039 fi
6040
6041 else $as_nop
6042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6043 printf "%s\n" "Enabling testio debugging by default" >&6; }
6044 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6045
6046 TEST_IO_CMT=
6047
6048 fi
6049
6050
6051 # Check whether --enable-developer-features was given.
6052 if test ${enable_developer_features+y}
6053 then :
6054   enableval=$enable_developer_features;
6055 if test "$enableval" = "yes"
6056 then
6057         DEV_FEATURES_CMT=
6058         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6059
6060         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6061 printf "%s\n" "Enabling ext4 developer features" >&6; }
6062 else
6063         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6064 printf "%s\n" "Disabling ext4 developer features" >&6; }
6065         DEV_FEATURES_CMT="#"
6066 fi
6067
6068 else $as_nop
6069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6070 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6071 DEV_FEATURES_CMT=
6072
6073 fi
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6084         if test -n "$ac_tool_prefix"; then
6085   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 printf %s "checking for $ac_word... " >&6; }
6089 if test ${ac_cv_path_PKG_CONFIG+y}
6090 then :
6091   printf %s "(cached) " >&6
6092 else $as_nop
6093   case $PKG_CONFIG in
6094   [\\/]* | ?:[\\/]*)
6095   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6096   ;;
6097   *)
6098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   case $as_dir in #(((
6103     '') as_dir=./ ;;
6104     */) ;;
6105     *) as_dir=$as_dir/ ;;
6106   esac
6107     for ac_exec_ext in '' $ac_executable_extensions; do
6108   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6109     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6110     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114   done
6115 IFS=$as_save_IFS
6116
6117   ;;
6118 esac
6119 fi
6120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6121 if test -n "$PKG_CONFIG"; then
6122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6123 printf "%s\n" "$PKG_CONFIG" >&6; }
6124 else
6125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 printf "%s\n" "no" >&6; }
6127 fi
6128
6129
6130 fi
6131 if test -z "$ac_cv_path_PKG_CONFIG"; then
6132   ac_pt_PKG_CONFIG=$PKG_CONFIG
6133   # Extract the first word of "pkg-config", so it can be a program name with args.
6134 set dummy pkg-config; ac_word=$2
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 printf %s "checking for $ac_word... " >&6; }
6137 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6138 then :
6139   printf %s "(cached) " >&6
6140 else $as_nop
6141   case $ac_pt_PKG_CONFIG in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   case $as_dir in #(((
6151     '') as_dir=./ ;;
6152     */) ;;
6153     *) as_dir=$as_dir/ ;;
6154   esac
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6157     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6158     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162   done
6163 IFS=$as_save_IFS
6164
6165   ;;
6166 esac
6167 fi
6168 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6169 if test -n "$ac_pt_PKG_CONFIG"; then
6170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6171 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6172 else
6173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 printf "%s\n" "no" >&6; }
6175 fi
6176
6177   if test "x$ac_pt_PKG_CONFIG" = x; then
6178     PKG_CONFIG=""
6179   else
6180     case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186     PKG_CONFIG=$ac_pt_PKG_CONFIG
6187   fi
6188 else
6189   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6190 fi
6191
6192 fi
6193 if test -n "$PKG_CONFIG"; then
6194         _pkg_min_version=0.9.0
6195         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6196 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6197         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6198                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199 printf "%s\n" "yes" >&6; }
6200         else
6201                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 printf "%s\n" "no" >&6; }
6203                 PKG_CONFIG=""
6204         fi
6205 fi
6206 LIBUUID=
6207 DEPLIBUUID=
6208 STATIC_LIBUUID=
6209 DEPSTATIC_LIBUUID=
6210 PROFILED_LIBUUID=
6211 DEPPROFILED_LIBUUID=
6212 UUID_CMT=
6213 # Check whether --enable-libuuid was given.
6214 if test ${enable_libuuid+y}
6215 then :
6216   enableval=$enable_libuuid; if test "$enableval" = "no"
6217 then
6218         if test -z "$PKG_CONFIG"; then
6219                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6220         fi
6221
6222         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6223 printf %s "checking for uuid_generate in -luuid... " >&6; }
6224 if test ${ac_cv_lib_uuid_uuid_generate+y}
6225 then :
6226   printf %s "(cached) " >&6
6227 else $as_nop
6228   ac_check_lib_save_LIBS=$LIBS
6229 LIBS="-luuid  $LIBS"
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h.  */
6232
6233 /* Override any GCC internal prototype to avoid an error.
6234    Use char because int might match the return type of a GCC
6235    builtin and then its argument prototype would still apply.  */
6236 char uuid_generate ();
6237 int
6238 main (void)
6239 {
6240 return uuid_generate ();
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_link "$LINENO"
6246 then :
6247   ac_cv_lib_uuid_uuid_generate=yes
6248 else $as_nop
6249   ac_cv_lib_uuid_uuid_generate=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6252     conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6256 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6257 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6258 then :
6259   LIBUUID=`$PKG_CONFIG --libs uuid`;
6260                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6261 else $as_nop
6262   as_fn_error $? "external uuid library not found" "$LINENO" 5
6263 fi
6264
6265         PROFILED_LIBUUID=$LIBUUID
6266         UUID_CMT=#
6267         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6268 printf "%s\n" "Disabling private uuid library" >&6; }
6269 else
6270         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6271         DEPLIBUUID=$LIBUUID
6272         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6273         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6274         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6275         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6276         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6277 printf "%s\n" "Enabling private uuid library" >&6; }
6278 fi
6279
6280 else $as_nop
6281   if test -n "$PKG_CONFIG"; then
6282         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6283 printf %s "checking for uuid_generate in -luuid... " >&6; }
6284 if test ${ac_cv_lib_uuid_uuid_generate+y}
6285 then :
6286   printf %s "(cached) " >&6
6287 else $as_nop
6288   ac_check_lib_save_LIBS=$LIBS
6289 LIBS="-luuid  $LIBS"
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h.  */
6292
6293 /* Override any GCC internal prototype to avoid an error.
6294    Use char because int might match the return type of a GCC
6295    builtin and then its argument prototype would still apply.  */
6296 char uuid_generate ();
6297 int
6298 main (void)
6299 {
6300 return uuid_generate ();
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 if ac_fn_c_try_link "$LINENO"
6306 then :
6307   ac_cv_lib_uuid_uuid_generate=yes
6308 else $as_nop
6309   ac_cv_lib_uuid_uuid_generate=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6312     conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6314 fi
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6316 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6317 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6318 then :
6319   LIBUUID=`$PKG_CONFIG --libs uuid`;
6320                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6321 fi
6322
6323 fi
6324 if test -n "$LIBUUID"; then
6325         PROFILED_LIBUUID=$LIBUUID
6326         UUID_CMT=#
6327         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6328 printf "%s\n" "Using system uuid by default" >&6; }
6329 else
6330         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6331         DEPLIBUUID=$LIBUUID
6332         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6333         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6334         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6335         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6336         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6337 printf "%s\n" "Enabling private uuid library by default" >&6; }
6338 fi
6339
6340 fi
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6357         if test -n "$ac_tool_prefix"; then
6358   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 printf %s "checking for $ac_word... " >&6; }
6362 if test ${ac_cv_path_PKG_CONFIG+y}
6363 then :
6364   printf %s "(cached) " >&6
6365 else $as_nop
6366   case $PKG_CONFIG in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6369   ;;
6370   *)
6371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   case $as_dir in #(((
6376     '') as_dir=./ ;;
6377     */) ;;
6378     *) as_dir=$as_dir/ ;;
6379   esac
6380     for ac_exec_ext in '' $ac_executable_extensions; do
6381   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6382     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6383     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387   done
6388 IFS=$as_save_IFS
6389
6390   ;;
6391 esac
6392 fi
6393 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6394 if test -n "$PKG_CONFIG"; then
6395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6396 printf "%s\n" "$PKG_CONFIG" >&6; }
6397 else
6398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 printf "%s\n" "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_path_PKG_CONFIG"; then
6405   ac_pt_PKG_CONFIG=$PKG_CONFIG
6406   # Extract the first word of "pkg-config", so it can be a program name with args.
6407 set dummy pkg-config; ac_word=$2
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 printf %s "checking for $ac_word... " >&6; }
6410 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6411 then :
6412   printf %s "(cached) " >&6
6413 else $as_nop
6414   case $ac_pt_PKG_CONFIG in
6415   [\\/]* | ?:[\\/]*)
6416   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6417   ;;
6418   *)
6419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   case $as_dir in #(((
6424     '') as_dir=./ ;;
6425     */) ;;
6426     *) as_dir=$as_dir/ ;;
6427   esac
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6430     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6431     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438   ;;
6439 esac
6440 fi
6441 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6442 if test -n "$ac_pt_PKG_CONFIG"; then
6443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6444 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6445 else
6446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
6448 fi
6449
6450   if test "x$ac_pt_PKG_CONFIG" = x; then
6451     PKG_CONFIG=""
6452   else
6453     case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459     PKG_CONFIG=$ac_pt_PKG_CONFIG
6460   fi
6461 else
6462   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6463 fi
6464
6465 fi
6466 if test -n "$PKG_CONFIG"; then
6467         _pkg_min_version=0.9.0
6468         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6469 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6470         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6471                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6472 printf "%s\n" "yes" >&6; }
6473         else
6474                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 printf "%s\n" "no" >&6; }
6476                 PKG_CONFIG=""
6477         fi
6478 fi
6479 LIBBLKID=
6480 DEPLIBBLKID=
6481 STATIC_LIBBLKID=
6482 DEPSTATIC_LIBBLKID=
6483 PROFILED_LIBBLKID=
6484 DEPPROFILED_LIBBLKID=
6485 BLKID_CMT=
6486
6487 # Check whether --enable-libblkid was given.
6488 if test ${enable_libblkid+y}
6489 then :
6490   enableval=$enable_libblkid; if test "$enableval" = "no"
6491 then
6492         if test -z "$PKG_CONFIG"; then
6493                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6494         fi
6495
6496         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6497 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6498 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6499 then :
6500   printf %s "(cached) " >&6
6501 else $as_nop
6502   ac_check_lib_save_LIBS=$LIBS
6503 LIBS="-lblkid -luuid $LIBS"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506
6507 /* Override any GCC internal prototype to avoid an error.
6508    Use char because int might match the return type of a GCC
6509    builtin and then its argument prototype would still apply.  */
6510 char blkid_get_cache ();
6511 int
6512 main (void)
6513 {
6514 return blkid_get_cache ();
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"
6520 then :
6521   ac_cv_lib_blkid_blkid_get_cache=yes
6522 else $as_nop
6523   ac_cv_lib_blkid_blkid_get_cache=no
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6526     conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_check_lib_save_LIBS
6528 fi
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6530 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6531 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6532 then :
6533   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6534                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6535 else $as_nop
6536   as_fn_error $? "external blkid library not found" "$LINENO" 5
6537 fi
6538
6539         BLKID_CMT=#
6540         PROFILED_LIBBLKID=$LIBBLKID
6541         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6542 printf "%s\n" "Disabling private blkid library" >&6; }
6543 else
6544         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6545         DEPLIBBLKID=$LIBBLKID
6546         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6547         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6548         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6549         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6550         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6551
6552         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6553 printf "%s\n" "Enabling private blkid library" >&6; }
6554 fi
6555
6556 else $as_nop
6557   if test -n "$PKG_CONFIG"; then
6558         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6559 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6560 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6561 then :
6562   printf %s "(cached) " >&6
6563 else $as_nop
6564   ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-lblkid  $LIBS"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h.  */
6568
6569 /* Override any GCC internal prototype to avoid an error.
6570    Use char because int might match the return type of a GCC
6571    builtin and then its argument prototype would still apply.  */
6572 char blkid_get_cache ();
6573 int
6574 main (void)
6575 {
6576 return blkid_get_cache ();
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"
6582 then :
6583   ac_cv_lib_blkid_blkid_get_cache=yes
6584 else $as_nop
6585   ac_cv_lib_blkid_blkid_get_cache=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6588     conftest$ac_exeext conftest.$ac_ext
6589 LIBS=$ac_check_lib_save_LIBS
6590 fi
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6592 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6593 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6594 then :
6595   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6596                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6597 fi
6598
6599 fi
6600 if test -n "$LIBBLKID"; then
6601         BLKID_CMT=#
6602         PROFILED_LIBBLKID=$LIBBLKID
6603         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6604 printf "%s\n" "Using system blkid library by default" >&6; }
6605 else
6606         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6607         DEPLIBBLKID=$LIBBLKID
6608         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6609         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6610         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6611         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6612         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6613
6614         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6615 printf "%s\n" "Enabling private blkid library by default" >&6; }
6616 fi
6617
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626
6627 ALL_CMT=
6628 SUBSET_CMT=
6629 # Check whether --enable-subset was given.
6630 if test ${enable_subset+y}
6631 then :
6632   enableval=$enable_subset; if test "$enableval" = "no"
6633 then
6634         SUBSET_CMT=#
6635         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6636 printf "%s\n" "Disabling subset-only build" >&6; }
6637 else
6638         ALL_CMT=#
6639         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6640 printf "%s\n" "Enabling subset-only-build" >&6; }
6641 fi
6642
6643 fi
6644
6645
6646
6647
6648 # Check whether --enable-backtrace was given.
6649 if test ${enable_backtrace+y}
6650 then :
6651   enableval=$enable_backtrace; if test "$enableval" = "no"
6652 then
6653         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6654 printf "%s\n" "Disabling use of backtrace" >&6; }
6655         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6656
6657 else
6658         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6659 printf "%s\n" "Enabling use of backtrace" >&6; }
6660 fi
6661
6662 else $as_nop
6663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6664 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6665
6666 fi
6667
6668 # Check whether --enable-debugfs was given.
6669 if test ${enable_debugfs+y}
6670 then :
6671   enableval=$enable_debugfs; if test "$enableval" = "no"
6672 then
6673         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6674 printf "%s\n" "Disabling debugfs support" >&6; }
6675         DEBUGFS_CMT="#"
6676 else
6677         DEBUGFS_CMT=
6678         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6679 printf "%s\n" "Enabling debugfs support" >&6; }
6680 fi
6681
6682 else $as_nop
6683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6684 printf "%s\n" "Enabling debugfs support by default" >&6; }
6685 DEBUGFS_CMT=
6686
6687 fi
6688
6689
6690 # Check whether --enable-imager was given.
6691 if test ${enable_imager+y}
6692 then :
6693   enableval=$enable_imager; if test "$enableval" = "no"
6694 then
6695         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6696 printf "%s\n" "Disabling e2image support" >&6; }
6697         IMAGER_CMT="#"
6698 else
6699         IMAGER_CMT=
6700         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6701 printf "%s\n" "Enabling e2image support" >&6; }
6702 fi
6703
6704 else $as_nop
6705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6706 printf "%s\n" "Enabling e2image support by default" >&6; }
6707 IMAGER_CMT=
6708
6709 fi
6710
6711
6712 # Check whether --enable-resizer was given.
6713 if test ${enable_resizer+y}
6714 then :
6715   enableval=$enable_resizer; if test "$enableval" = "no"
6716 then
6717         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6718 printf "%s\n" "Disabling e2resize support" >&6; }
6719         RESIZER_CMT="#"
6720 else
6721         RESIZER_CMT=
6722         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6723 printf "%s\n" "Enabling e2resize support" >&6; }
6724 fi
6725
6726 else $as_nop
6727   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6728 printf "%s\n" "Enabling e2resize support by default" >&6; }
6729 RESIZER_CMT=
6730
6731 fi
6732
6733
6734 # Check whether --enable-defrag was given.
6735 if test ${enable_defrag+y}
6736 then :
6737   enableval=$enable_defrag; if test "$enableval" = "no"
6738 then
6739         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6740 printf "%s\n" "Disabling e4defrag support" >&6; }
6741         DEFRAG_CMT="#"
6742 else
6743         DEFRAG_CMT=
6744         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6745 printf "%s\n" "Enabling e4defrag support" >&6; }
6746 fi
6747
6748 else $as_nop
6749   if test -z "$WITH_DIET_LIBC"
6750 then
6751         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6752 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6753         DEFRAG_CMT=
6754 else
6755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6756 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6757         DEFRAG_CMT="#"
6758 fi
6759
6760 fi
6761
6762
6763 # Check whether --enable-fsck was given.
6764 if test ${enable_fsck+y}
6765 then :
6766   enableval=$enable_fsck; if test "$enableval" = "no"
6767 then
6768         FSCK_PROG='' FSCK_MAN=''
6769         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6770 printf "%s\n" "Not building fsck wrapper" >&6; }
6771 else
6772         FSCK_PROG=fsck FSCK_MAN=fsck.8
6773         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6774 printf "%s\n" "Building fsck wrapper" >&6; }
6775 fi
6776
6777 else $as_nop
6778   case "$host_os" in
6779   gnu*)
6780     FSCK_PROG='' FSCK_MAN=''
6781     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6782 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6783     ;;
6784   *)
6785     FSCK_PROG=fsck FSCK_MAN=fsck.8
6786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6787 printf "%s\n" "Building fsck wrapper by default" >&6; }
6788 esac
6789
6790 fi
6791
6792
6793
6794 # Check whether --enable-e2initrd-helper was given.
6795 if test ${enable_e2initrd_helper+y}
6796 then :
6797   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6798 then
6799         E2INITRD_PROG='' E2INITRD_MAN=''
6800         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6801 printf "%s\n" "Not building e2initrd helper" >&6; }
6802 else
6803         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6804         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6805 printf "%s\n" "Building e2initrd helper" >&6; }
6806 fi
6807
6808 else $as_nop
6809   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6811 printf "%s\n" "Building e2initrd helper by default" >&6; }
6812
6813 fi
6814
6815
6816
6817 # Check whether --enable-tls was given.
6818 if test ${enable_tls+y}
6819 then :
6820   enableval=$enable_tls; if test "$enableval" = "no"
6821 then
6822         try_tls=""
6823         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6824 printf "%s\n" "Disabling thread local support" >&6; }
6825 else
6826         try_tls="yes"
6827         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6828 printf "%s\n" "Enabling thread local support" >&6; }
6829 fi
6830
6831 else $as_nop
6832   if test -n "$WITH_DIET_LIBC"
6833 then
6834         try_tls=""
6835         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6836 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6837 else
6838         try_tls="yes"
6839         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6840 printf "%s\n" "Try using thread local support by default" >&6; }
6841 fi
6842
6843 fi
6844
6845 if test "$try_tls" = "yes"
6846 then
6847
6848   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6849 printf %s "checking for thread local storage (TLS) class... " >&6; }
6850   if test ${ac_cv_tls+y}
6851 then :
6852   printf %s "(cached) " >&6
6853 else $as_nop
6854
6855     ax_tls_keywords="__thread __declspec(thread) none"
6856     for ax_tls_keyword in $ax_tls_keywords; do
6857        case $ax_tls_keyword in
6858           none) ac_cv_tls=none ; break ;;
6859           *)
6860              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862 #include <stdlib.h>
6863                  static void
6864                  foo(void) {
6865                  static  $ax_tls_keyword  int bar;
6866                  exit(1);
6867                  }
6868 int
6869 main (void)
6870 {
6871
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_compile "$LINENO"
6877 then :
6878   ac_cv_tls=$ax_tls_keyword ; break
6879 else $as_nop
6880   ac_cv_tls=none
6881
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6884           esac
6885     done
6886
6887 fi
6888
6889
6890   if test "$ac_cv_tls" != "none"; then
6891
6892 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6893
6894   fi
6895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6896 printf "%s\n" "$ac_cv_tls" >&6; }
6897
6898 fi
6899
6900 # Check whether --with-pthread was given.
6901 if test ${with_pthread+y}
6902 then :
6903   withval=$with_pthread; if test "$withval" = "no"
6904 then
6905         try_pthread=""
6906         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6907 printf "%s\n" "Disabling pthread support" >&6; }
6908 else
6909         try_pthread="yes"
6910         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6911 printf "%s\n" "Testing for pthread support" >&6; }
6912 fi
6913
6914 else $as_nop
6915   try_pthread="yes"
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6917 printf "%s\n" "Try testing for pthread support by default" >&6; }
6918
6919 fi
6920
6921 if test "$try_pthread" = "yes"
6922 then
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6924 printf %s "checking for a sed that does not truncate output... " >&6; }
6925 if test ${ac_cv_path_SED+y}
6926 then :
6927   printf %s "(cached) " >&6
6928 else $as_nop
6929             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6930      for ac_i in 1 2 3 4 5 6 7; do
6931        ac_script="$ac_script$as_nl$ac_script"
6932      done
6933      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6934      { ac_script=; unset ac_script;}
6935      if test -z "$SED"; then
6936   ac_path_SED_found=false
6937   # Loop through the user's path and test for each of PROGNAME-LIST
6938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   case $as_dir in #(((
6943     '') as_dir=./ ;;
6944     */) ;;
6945     *) as_dir=$as_dir/ ;;
6946   esac
6947     for ac_prog in sed gsed
6948    do
6949     for ac_exec_ext in '' $ac_executable_extensions; do
6950       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6951       as_fn_executable_p "$ac_path_SED" || continue
6952 # Check for GNU ac_path_SED and select it if it is found.
6953   # Check for GNU $ac_path_SED
6954 case `"$ac_path_SED" --version 2>&1` in
6955 *GNU*)
6956   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6957 *)
6958   ac_count=0
6959   printf %s 0123456789 >"conftest.in"
6960   while :
6961   do
6962     cat "conftest.in" "conftest.in" >"conftest.tmp"
6963     mv "conftest.tmp" "conftest.in"
6964     cp "conftest.in" "conftest.nl"
6965     printf "%s\n" '' >> "conftest.nl"
6966     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6967     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6968     as_fn_arith $ac_count + 1 && ac_count=$as_val
6969     if test $ac_count -gt ${ac_path_SED_max-0}; then
6970       # Best one so far, save it but keep looking for a better one
6971       ac_cv_path_SED="$ac_path_SED"
6972       ac_path_SED_max=$ac_count
6973     fi
6974     # 10*(2^10) chars as input seems more than enough
6975     test $ac_count -gt 10 && break
6976   done
6977   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6978 esac
6979
6980       $ac_path_SED_found && break 3
6981     done
6982   done
6983   done
6984 IFS=$as_save_IFS
6985   if test -z "$ac_cv_path_SED"; then
6986     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6987   fi
6988 else
6989   ac_cv_path_SED=$SED
6990 fi
6991
6992 fi
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6994 printf "%s\n" "$ac_cv_path_SED" >&6; }
6995  SED="$ac_cv_path_SED"
6996   rm -f conftest.sed
6997
6998
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7000 printf %s "checking for grep that handles long lines and -e... " >&6; }
7001 if test ${ac_cv_path_GREP+y}
7002 then :
7003   printf %s "(cached) " >&6
7004 else $as_nop
7005   if test -z "$GREP"; then
7006   ac_path_GREP_found=false
7007   # Loop through the user's path and test for each of PROGNAME-LIST
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7010 do
7011   IFS=$as_save_IFS
7012   case $as_dir in #(((
7013     '') as_dir=./ ;;
7014     */) ;;
7015     *) as_dir=$as_dir/ ;;
7016   esac
7017     for ac_prog in grep ggrep
7018    do
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7021       as_fn_executable_p "$ac_path_GREP" || continue
7022 # Check for GNU ac_path_GREP and select it if it is found.
7023   # Check for GNU $ac_path_GREP
7024 case `"$ac_path_GREP" --version 2>&1` in
7025 *GNU*)
7026   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7027 *)
7028   ac_count=0
7029   printf %s 0123456789 >"conftest.in"
7030   while :
7031   do
7032     cat "conftest.in" "conftest.in" >"conftest.tmp"
7033     mv "conftest.tmp" "conftest.in"
7034     cp "conftest.in" "conftest.nl"
7035     printf "%s\n" 'GREP' >> "conftest.nl"
7036     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7038     as_fn_arith $ac_count + 1 && ac_count=$as_val
7039     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7040       # Best one so far, save it but keep looking for a better one
7041       ac_cv_path_GREP="$ac_path_GREP"
7042       ac_path_GREP_max=$ac_count
7043     fi
7044     # 10*(2^10) chars as input seems more than enough
7045     test $ac_count -gt 10 && break
7046   done
7047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7048 esac
7049
7050       $ac_path_GREP_found && break 3
7051     done
7052   done
7053   done
7054 IFS=$as_save_IFS
7055   if test -z "$ac_cv_path_GREP"; then
7056     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7057   fi
7058 else
7059   ac_cv_path_GREP=$GREP
7060 fi
7061
7062 fi
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7064 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7065  GREP="$ac_cv_path_GREP"
7066
7067
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7069 printf %s "checking for egrep... " >&6; }
7070 if test ${ac_cv_path_EGREP+y}
7071 then :
7072   printf %s "(cached) " >&6
7073 else $as_nop
7074   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7075    then ac_cv_path_EGREP="$GREP -E"
7076    else
7077      if test -z "$EGREP"; then
7078   ac_path_EGREP_found=false
7079   # Loop through the user's path and test for each of PROGNAME-LIST
7080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7082 do
7083   IFS=$as_save_IFS
7084   case $as_dir in #(((
7085     '') as_dir=./ ;;
7086     */) ;;
7087     *) as_dir=$as_dir/ ;;
7088   esac
7089     for ac_prog in egrep
7090    do
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7093       as_fn_executable_p "$ac_path_EGREP" || continue
7094 # Check for GNU ac_path_EGREP and select it if it is found.
7095   # Check for GNU $ac_path_EGREP
7096 case `"$ac_path_EGREP" --version 2>&1` in
7097 *GNU*)
7098   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7099 *)
7100   ac_count=0
7101   printf %s 0123456789 >"conftest.in"
7102   while :
7103   do
7104     cat "conftest.in" "conftest.in" >"conftest.tmp"
7105     mv "conftest.tmp" "conftest.in"
7106     cp "conftest.in" "conftest.nl"
7107     printf "%s\n" 'EGREP' >> "conftest.nl"
7108     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7110     as_fn_arith $ac_count + 1 && ac_count=$as_val
7111     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7112       # Best one so far, save it but keep looking for a better one
7113       ac_cv_path_EGREP="$ac_path_EGREP"
7114       ac_path_EGREP_max=$ac_count
7115     fi
7116     # 10*(2^10) chars as input seems more than enough
7117     test $ac_count -gt 10 && break
7118   done
7119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7120 esac
7121
7122       $ac_path_EGREP_found && break 3
7123     done
7124   done
7125   done
7126 IFS=$as_save_IFS
7127   if test -z "$ac_cv_path_EGREP"; then
7128     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7129   fi
7130 else
7131   ac_cv_path_EGREP=$EGREP
7132 fi
7133
7134    fi
7135 fi
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7137 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7138  EGREP="$ac_cv_path_EGREP"
7139
7140
7141
7142
7143
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151 ax_pthread_ok=no
7152
7153 # We used to check for pthread.h first, but this fails if pthread.h
7154 # requires special compiler flags (e.g. on Tru64 or Sequent).
7155 # It gets checked for in the link test anyway.
7156
7157 # First of all, check if the user has set any of the PTHREAD_LIBS,
7158 # etcetera environment variables, and if threads linking works using
7159 # them:
7160 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7161         ax_pthread_save_CC="$CC"
7162         ax_pthread_save_CFLAGS="$CFLAGS"
7163         ax_pthread_save_LIBS="$LIBS"
7164         if test "x$PTHREAD_CC" != "x"
7165 then :
7166   CC="$PTHREAD_CC"
7167 fi
7168         if test "x$PTHREAD_CXX" != "x"
7169 then :
7170   CXX="$PTHREAD_CXX"
7171 fi
7172         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7173         LIBS="$PTHREAD_LIBS $LIBS"
7174         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7175 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h.  */
7178
7179 /* Override any GCC internal prototype to avoid an error.
7180    Use char because int might match the return type of a GCC
7181    builtin and then its argument prototype would still apply.  */
7182 char pthread_join ();
7183 int
7184 main (void)
7185 {
7186 return pthread_join ();
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"
7192 then :
7193   ax_pthread_ok=yes
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7196     conftest$ac_exeext conftest.$ac_ext
7197         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7198 printf "%s\n" "$ax_pthread_ok" >&6; }
7199         if test "x$ax_pthread_ok" = "xno"; then
7200                 PTHREAD_LIBS=""
7201                 PTHREAD_CFLAGS=""
7202         fi
7203         CC="$ax_pthread_save_CC"
7204         CFLAGS="$ax_pthread_save_CFLAGS"
7205         LIBS="$ax_pthread_save_LIBS"
7206 fi
7207
7208 # We must check for the threads library under a number of different
7209 # names; the ordering is very important because some systems
7210 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7211 # libraries is broken (non-POSIX).
7212
7213 # Create a list of thread flags to try. Items with a "," contain both
7214 # C compiler flags (before ",") and linker flags (after ","). Other items
7215 # starting with a "-" are C compiler flags, and remaining items are
7216 # library names, except for "none" which indicates that we try without
7217 # any flags at all, and "pthread-config" which is a program returning
7218 # the flags for the Pth emulation library.
7219
7220 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7221
7222 # The ordering *is* (sometimes) important.  Some notes on the
7223 # individual items follow:
7224
7225 # pthreads: AIX (must check this before -lpthread)
7226 # none: in case threads are in libc; should be tried before -Kthread and
7227 #       other compiler flags to prevent continual compiler warnings
7228 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7229 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7230 #           (Note: HP C rejects this with "bad form for `-t' option")
7231 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7232 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7233 #      doesn't hurt to check since this sometimes defines pthreads and
7234 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7235 #      is present but should not be used directly; and before -mthreads,
7236 #      because the compiler interprets this as "-mt" + "-hreads")
7237 # -mthreads: Mingw32/gcc, Lynx/gcc
7238 # pthread: Linux, etcetera
7239 # --thread-safe: KAI C++
7240 # pthread-config: use pthread-config program (for GNU Pth library)
7241
7242 case $host_os in
7243
7244         freebsd*)
7245
7246         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7247         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7248
7249         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7250         ;;
7251
7252         hpux*)
7253
7254         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7255         # multi-threading and also sets -lpthread."
7256
7257         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7258         ;;
7259
7260         openedition*)
7261
7262         # IBM z/OS requires a feature-test macro to be defined in order to
7263         # enable POSIX threads at all, so give the user a hint if this is
7264         # not set. (We don't define these ourselves, as they can affect
7265         # other portions of the system API in unpredictable ways.)
7266
7267         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269
7270 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7271              AX_PTHREAD_ZOS_MISSING
7272 #            endif
7273
7274 _ACEOF
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7277 then :
7278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7279 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7280 fi
7281 rm -rf conftest*
7282
7283         ;;
7284
7285         solaris*)
7286
7287         # On Solaris (at least, for some versions), libc contains stubbed
7288         # (non-functional) versions of the pthreads routines, so link-based
7289         # tests will erroneously succeed. (N.B.: The stubs are missing
7290         # pthread_cleanup_push, or rather a function called by this macro,
7291         # so we could check for that, but who knows whether they'll stub
7292         # that too in a future libc.)  So we'll check first for the
7293         # standard Solaris way of linking pthreads (-mt -lpthread).
7294
7295         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7296         ;;
7297 esac
7298
7299 # Are we compiling with Clang?
7300
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7302 printf %s "checking whether $CC is Clang... " >&6; }
7303 if test ${ax_cv_PTHREAD_CLANG+y}
7304 then :
7305   printf %s "(cached) " >&6
7306 else $as_nop
7307   ax_cv_PTHREAD_CLANG=no
7308      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7309      if test "x$GCC" = "xyes"; then
7310         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h.  */
7312 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7313 #            if defined(__clang__) && defined(__llvm__)
7314              AX_PTHREAD_CC_IS_CLANG
7315 #            endif
7316
7317 _ACEOF
7318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7319   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7320 then :
7321   ax_cv_PTHREAD_CLANG=yes
7322 fi
7323 rm -rf conftest*
7324
7325      fi
7326
7327 fi
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7329 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7330 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7331
7332
7333 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7334
7335 # Note that for GCC and Clang -pthread generally implies -lpthread,
7336 # except when -nostdlib is passed.
7337 # This is problematic using libtool to build C++ shared libraries with pthread:
7338 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7339 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7340 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7341 # To solve this, first try -pthread together with -lpthread for GCC
7342
7343 if test "x$GCC" = "xyes"
7344 then :
7345   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7346 fi
7347
7348 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7349
7350 if test "x$ax_pthread_clang" = "xyes"
7351 then :
7352   ax_pthread_flags="-pthread,-lpthread -pthread"
7353 fi
7354
7355
7356 # The presence of a feature test macro requesting re-entrant function
7357 # definitions is, on some systems, a strong hint that pthreads support is
7358 # correctly enabled
7359
7360 case $host_os in
7361         darwin* | hpux* | linux* | osf* | solaris*)
7362         ax_pthread_check_macro="_REENTRANT"
7363         ;;
7364
7365         aix*)
7366         ax_pthread_check_macro="_THREAD_SAFE"
7367         ;;
7368
7369         *)
7370         ax_pthread_check_macro="--"
7371         ;;
7372 esac
7373 if test "x$ax_pthread_check_macro" = "x--"
7374 then :
7375   ax_pthread_check_cond=0
7376 else $as_nop
7377   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7378 fi
7379
7380
7381 if test "x$ax_pthread_ok" = "xno"; then
7382 for ax_pthread_try_flag in $ax_pthread_flags; do
7383
7384         case $ax_pthread_try_flag in
7385                 none)
7386                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7387 printf %s "checking whether pthreads work without any flags... " >&6; }
7388                 ;;
7389
7390                 *,*)
7391                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7392                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7393                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7394 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7395                 ;;
7396
7397                 -*)
7398                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7399 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7400                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7401                 ;;
7402
7403                 pthread-config)
7404                 # Extract the first word of "pthread-config", so it can be a program name with args.
7405 set dummy pthread-config; ac_word=$2
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 printf %s "checking for $ac_word... " >&6; }
7408 if test ${ac_cv_prog_ax_pthread_config+y}
7409 then :
7410   printf %s "(cached) " >&6
7411 else $as_nop
7412   if test -n "$ax_pthread_config"; then
7413   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   case $as_dir in #(((
7420     '') as_dir=./ ;;
7421     */) ;;
7422     *) as_dir=$as_dir/ ;;
7423   esac
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_ax_pthread_config="yes"
7427     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7435 fi
7436 fi
7437 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7438 if test -n "$ax_pthread_config"; then
7439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7440 printf "%s\n" "$ax_pthread_config" >&6; }
7441 else
7442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 printf "%s\n" "no" >&6; }
7444 fi
7445
7446
7447                 if test "x$ax_pthread_config" = "xno"
7448 then :
7449   continue
7450 fi
7451                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7452                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7453                 ;;
7454
7455                 *)
7456                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7457 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7458                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7459                 ;;
7460         esac
7461
7462         ax_pthread_save_CFLAGS="$CFLAGS"
7463         ax_pthread_save_LIBS="$LIBS"
7464         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7465         LIBS="$PTHREAD_LIBS $LIBS"
7466
7467         # Check for various functions.  We must include pthread.h,
7468         # since some functions may be macros.  (On the Sequent, we
7469         # need a special flag -Kthread to make this header compile.)
7470         # We check for pthread_join because it is in -lpthread on IRIX
7471         # while pthread_create is in libc.  We check for pthread_attr_init
7472         # due to DEC craziness with -lpthreads.  We check for
7473         # pthread_cleanup_push because it is one of the few pthread
7474         # functions on Solaris that doesn't have a non-functional libc stub.
7475         # We try pthread_create on general principles.
7476
7477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h.  */
7479 #include <pthread.h>
7480 #                       if $ax_pthread_check_cond
7481 #                        error "$ax_pthread_check_macro must be defined"
7482 #                       endif
7483                         static void *some_global = NULL;
7484                         static void routine(void *a)
7485                           {
7486                              /* To avoid any unused-parameter or
7487                                 unused-but-set-parameter warning.  */
7488                              some_global = a;
7489                           }
7490                         static void *start_routine(void *a) { return a; }
7491 int
7492 main (void)
7493 {
7494 pthread_t th; pthread_attr_t attr;
7495                         pthread_create(&th, 0, start_routine, 0);
7496                         pthread_join(th, 0);
7497                         pthread_attr_init(&attr);
7498                         pthread_cleanup_push(routine, 0);
7499                         pthread_cleanup_pop(0) /* ; */
7500   ;
7501   return 0;
7502 }
7503 _ACEOF
7504 if ac_fn_c_try_link "$LINENO"
7505 then :
7506   ax_pthread_ok=yes
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7509     conftest$ac_exeext conftest.$ac_ext
7510
7511         CFLAGS="$ax_pthread_save_CFLAGS"
7512         LIBS="$ax_pthread_save_LIBS"
7513
7514         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7515 printf "%s\n" "$ax_pthread_ok" >&6; }
7516         if test "x$ax_pthread_ok" = "xyes"
7517 then :
7518   break
7519 fi
7520
7521         PTHREAD_LIBS=""
7522         PTHREAD_CFLAGS=""
7523 done
7524 fi
7525
7526
7527 # Clang needs special handling, because older versions handle the -pthread
7528 # option in a rather... idiosyncratic way
7529
7530 if test "x$ax_pthread_clang" = "xyes"; then
7531
7532         # Clang takes -pthread; it has never supported any other flag
7533
7534         # (Note 1: This will need to be revisited if a system that Clang
7535         # supports has POSIX threads in a separate library.  This tends not
7536         # to be the way of modern systems, but it's conceivable.)
7537
7538         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7539         # to get POSIX threads support; the API is always present and
7540         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7541         # -pthread does define _REENTRANT, and while the Darwin headers
7542         # ignore this macro, third-party headers might not.)
7543
7544         # However, older versions of Clang make a point of warning the user
7545         # that, in an invocation where only linking and no compilation is
7546         # taking place, the -pthread option has no effect ("argument unused
7547         # during compilation").  They expect -pthread to be passed in only
7548         # when source code is being compiled.
7549         #
7550         # Problem is, this is at odds with the way Automake and most other
7551         # C build frameworks function, which is that the same flags used in
7552         # compilation (CFLAGS) are also used in linking.  Many systems
7553         # supported by AX_PTHREAD require exactly this for POSIX threads
7554         # support, and in fact it is often not straightforward to specify a
7555         # flag that is used only in the compilation phase and not in
7556         # linking.  Such a scenario is extremely rare in practice.
7557         #
7558         # Even though use of the -pthread flag in linking would only print
7559         # a warning, this can be a nuisance for well-run software projects
7560         # that build with -Werror.  So if the active version of Clang has
7561         # this misfeature, we search for an option to squash it.
7562
7563         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7564 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7565 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7566 then :
7567   printf %s "(cached) " >&6
7568 else $as_nop
7569   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7570              # Create an alternate version of $ac_link that compiles and
7571              # links in two steps (.c -> .o, .o -> exe) instead of one
7572              # (.c -> exe), because the warning occurs only in the second
7573              # step
7574              ax_pthread_save_ac_link="$ac_link"
7575              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7576              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7577              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7578              ax_pthread_save_CFLAGS="$CFLAGS"
7579              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7580                 if test "x$ax_pthread_try" = "xunknown"
7581 then :
7582   break
7583 fi
7584                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7585                 ac_link="$ax_pthread_save_ac_link"
7586                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h.  */
7588 int main(void){return 0;}
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"
7591 then :
7592   ac_link="$ax_pthread_2step_ac_link"
7593                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h.  */
7595 int main(void){return 0;}
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"
7598 then :
7599   break
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7602     conftest$ac_exeext conftest.$ac_ext
7603
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606     conftest$ac_exeext conftest.$ac_ext
7607              done
7608              ac_link="$ax_pthread_save_ac_link"
7609              CFLAGS="$ax_pthread_save_CFLAGS"
7610              if test "x$ax_pthread_try" = "x"
7611 then :
7612   ax_pthread_try=no
7613 fi
7614              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7615
7616 fi
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7618 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7619
7620         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7621                 no | unknown) ;;
7622                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7623         esac
7624
7625 fi # $ax_pthread_clang = yes
7626
7627
7628
7629 # Various other checks:
7630 if test "x$ax_pthread_ok" = "xyes"; then
7631         ax_pthread_save_CFLAGS="$CFLAGS"
7632         ax_pthread_save_LIBS="$LIBS"
7633         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7634         LIBS="$PTHREAD_LIBS $LIBS"
7635
7636         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7637         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7638 printf %s "checking for joinable pthread attribute... " >&6; }
7639 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7640 then :
7641   printf %s "(cached) " >&6
7642 else $as_nop
7643   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7644              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7645                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h.  */
7647 #include <pthread.h>
7648 int
7649 main (void)
7650 {
7651 int attr = $ax_pthread_attr; return attr /* ; */
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_link "$LINENO"
7657 then :
7658   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7661     conftest$ac_exeext conftest.$ac_ext
7662              done
7663
7664 fi
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7666 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7667         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7668                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7669                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7670 then :
7671
7672 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7673
7674                ax_pthread_joinable_attr_defined=yes
7675
7676 fi
7677
7678         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7679 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7680 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7681 then :
7682   printf %s "(cached) " >&6
7683 else $as_nop
7684   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7685              case $host_os in
7686              solaris*)
7687              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7688              ;;
7689              esac
7690
7691 fi
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7693 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7694         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7695                test "x$ax_pthread_special_flags_added" != "xyes"
7696 then :
7697   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7698                ax_pthread_special_flags_added=yes
7699 fi
7700
7701         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7702 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7703 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7704 then :
7705   printf %s "(cached) " >&6
7706 else $as_nop
7707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h.  */
7709 #include <pthread.h>
7710 int
7711 main (void)
7712 {
7713 int i = PTHREAD_PRIO_INHERIT;
7714                                                return i;
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"
7720 then :
7721   ax_cv_PTHREAD_PRIO_INHERIT=yes
7722 else $as_nop
7723   ax_cv_PTHREAD_PRIO_INHERIT=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7726     conftest$ac_exeext conftest.$ac_ext
7727
7728 fi
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7730 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7731         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7732                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7733 then :
7734
7735 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7736
7737                ax_pthread_prio_inherit_defined=yes
7738
7739 fi
7740
7741         CFLAGS="$ax_pthread_save_CFLAGS"
7742         LIBS="$ax_pthread_save_LIBS"
7743
7744         # More AIX lossage: compile with *_r variant
7745         if test "x$GCC" != "xyes"; then
7746             case $host_os in
7747                 aix*)
7748                 case "x/$CC" in #(
7749   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7750     #handle absolute path differently from PATH based program lookup
7751                      case "x$CC" in #(
7752   x/*) :
7753
7754                            if as_fn_executable_p ${CC}_r
7755 then :
7756   PTHREAD_CC="${CC}_r"
7757 fi
7758                            if test "x${CXX}" != "x"
7759 then :
7760   if as_fn_executable_p ${CXX}_r
7761 then :
7762   PTHREAD_CXX="${CXX}_r"
7763 fi
7764 fi
7765                           ;; #(
7766   *) :
7767
7768                            for ac_prog in ${CC}_r
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_PTHREAD_CC+y}
7775 then :
7776   printf %s "(cached) " >&6
7777 else $as_nop
7778   if test -n "$PTHREAD_CC"; then
7779   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   case $as_dir in #(((
7786     '') as_dir=./ ;;
7787     */) ;;
7788     *) as_dir=$as_dir/ ;;
7789   esac
7790     for ac_exec_ext in '' $ac_executable_extensions; do
7791   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792     ac_cv_prog_PTHREAD_CC="$ac_prog"
7793     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797   done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7803 if test -n "$PTHREAD_CC"; then
7804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7805 printf "%s\n" "$PTHREAD_CC" >&6; }
7806 else
7807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 printf "%s\n" "no" >&6; }
7809 fi
7810
7811
7812   test -n "$PTHREAD_CC" && break
7813 done
7814 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7815
7816                            if test "x${CXX}" != "x"
7817 then :
7818   for ac_prog in ${CXX}_r
7819 do
7820   # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 printf %s "checking for $ac_word... " >&6; }
7824 if test ${ac_cv_prog_PTHREAD_CXX+y}
7825 then :
7826   printf %s "(cached) " >&6
7827 else $as_nop
7828   if test -n "$PTHREAD_CXX"; then
7829   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   case $as_dir in #(((
7836     '') as_dir=./ ;;
7837     */) ;;
7838     *) as_dir=$as_dir/ ;;
7839   esac
7840     for ac_exec_ext in '' $ac_executable_extensions; do
7841   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7842     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7843     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847   done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7853 if test -n "$PTHREAD_CXX"; then
7854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7855 printf "%s\n" "$PTHREAD_CXX" >&6; }
7856 else
7857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 printf "%s\n" "no" >&6; }
7859 fi
7860
7861
7862   test -n "$PTHREAD_CXX" && break
7863 done
7864 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7865
7866 fi
7867
7868                       ;;
7869 esac
7870                      ;; #(
7871   *) :
7872      ;;
7873 esac
7874                 ;;
7875             esac
7876         fi
7877 fi
7878
7879 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7880 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7881
7882
7883
7884
7885
7886
7887 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7888 if test "x$ax_pthread_ok" = "xyes"; then
7889
7890 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7891
7892         :
7893 else
7894         ax_pthread_ok=no
7895
7896 fi
7897 ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904 else
7905 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7906
7907 fi
7908
7909 # Check whether --enable-uuidd was given.
7910 if test ${enable_uuidd+y}
7911 then :
7912   enableval=$enable_uuidd; if test "$enableval" = "no"
7913 then
7914         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7915 printf "%s\n" "Not building uuidd" >&6; }
7916         UUIDD_CMT="#"
7917 else
7918         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7919
7920         UUIDD_CMT=""
7921         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7922 printf "%s\n" "Building uuidd" >&6; }
7923 fi
7924
7925 else $as_nop
7926   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7927
7928 if test -z "$UUID_CMT"
7929 then
7930         UUIDD_CMT=""
7931         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7932 printf "%s\n" "Building uuidd by default" >&6; }
7933 else
7934         UUIDD_CMT="#"
7935         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7936 printf "%s\n" "Disabling uuidd by default" >&6; }
7937 fi
7938
7939 fi
7940
7941
7942
7943 # Check whether --enable-mmp was given.
7944 if test ${enable_mmp+y}
7945 then :
7946   enableval=$enable_mmp; if test "$enableval" = "no"
7947 then
7948         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7949 printf "%s\n" "Disabling mmp support" >&6; }
7950 else
7951         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7952 printf "%s\n" "Enabling mmp support" >&6; }
7953         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7954
7955 fi
7956
7957 else $as_nop
7958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7959 printf "%s\n" "Enabling mmp support by default" >&6; }
7960 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7961
7962
7963 fi
7964
7965
7966 # Check whether --enable-tdb was given.
7967 if test ${enable_tdb+y}
7968 then :
7969   enableval=$enable_tdb;
7970 if test "$enableval" = "no"
7971 then
7972         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7973 printf "%s\n" "Disabling tdb support" >&6; }
7974         CONFIG_TDB=0
7975 else
7976         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7977 printf "%s\n" "Enabling tdb support" >&6; }
7978         CONFIG_TDB=1
7979 fi
7980
7981
7982 else $as_nop
7983
7984 case "$host_os" in
7985 mingw*)
7986         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7987 printf "%s\n" "Disabling tdb support by default" >&6; }
7988         CONFIG_TDB=0
7989         ;;
7990 *)
7991         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7992 printf "%s\n" "Enabling tdb support by default" >&6; }
7993         CONFIG_TDB=1
7994         ;;
7995 esac
7996
7997
7998 fi
7999
8000 if test "$CONFIG_TDB" = "1"
8001 then
8002         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8003
8004         TDB_CMT=""
8005         TDB_MAN_COMMENT=""
8006 else
8007         TDB_CMT="#"
8008         TDB_MAN_COMMENT='.\"'
8009 fi
8010
8011
8012
8013 # Check whether --enable-bmap-stats was given.
8014 if test ${enable_bmap_stats+y}
8015 then :
8016   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8017 then
8018         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8019 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8020 else
8021         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8022 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8023         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8024
8025 fi
8026
8027 else $as_nop
8028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8029 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8030 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8031
8032
8033 fi
8034
8035
8036 # Check whether --enable-bmap-stats-ops was given.
8037 if test ${enable_bmap_stats_ops+y}
8038 then :
8039   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8040 then
8041         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8042 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8043 else
8044                 if test "x${enable_bmap_stats}" = "xno"
8045 then :
8046   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8048 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8049 See \`config.log' for more details" "$LINENO" 5; }
8050 fi
8051
8052         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8053 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8054         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8055
8056 fi
8057
8058 else $as_nop
8059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8060 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8061
8062 fi
8063
8064 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8065
8066 GETTEXT_PACKAGE=e2fsprogs
8067 PACKAGE=e2fsprogs
8068 VERSION="$E2FSPROGS_VERSION"
8069 VERSION=0.14.1
8070
8071 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8072
8073
8074 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8075
8076
8077
8078
8079
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8081 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8082 set x ${MAKE-make}
8083 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8084 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8085 then :
8086   printf %s "(cached) " >&6
8087 else $as_nop
8088   cat >conftest.make <<\_ACEOF
8089 SHELL = /bin/sh
8090 all:
8091         @echo '@@@%%%=$(MAKE)=@@@%%%'
8092 _ACEOF
8093 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8095   *@@@%%%=?*=@@@%%%*)
8096     eval ac_cv_prog_make_${ac_make}_set=yes;;
8097   *)
8098     eval ac_cv_prog_make_${ac_make}_set=no;;
8099 esac
8100 rm -f conftest.make
8101 fi
8102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8104 printf "%s\n" "yes" >&6; }
8105   SET_MAKE=
8106 else
8107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 printf "%s\n" "no" >&6; }
8109   SET_MAKE="MAKE=${MAKE-make}"
8110 fi
8111
8112
8113   # Find a good install program.  We prefer a C program (faster),
8114 # so one script is as good as another.  But avoid the broken or
8115 # incompatible versions:
8116 # SysV /etc/install, /usr/sbin/install
8117 # SunOS /usr/etc/install
8118 # IRIX /sbin/install
8119 # AIX /bin/install
8120 # AmigaOS /C/install, which installs bootblocks on floppy discs
8121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8124 # OS/2's system install, which has a completely different semantic
8125 # ./install, which can be erroneously created by make from ./install.sh.
8126 # Reject install programs that cannot install multiple files.
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8128 printf %s "checking for a BSD-compatible install... " >&6; }
8129 if test -z "$INSTALL"; then
8130 if test ${ac_cv_path_install+y}
8131 then :
8132   printf %s "(cached) " >&6
8133 else $as_nop
8134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   case $as_dir in #(((
8139     '') as_dir=./ ;;
8140     */) ;;
8141     *) as_dir=$as_dir/ ;;
8142   esac
8143     # Account for fact that we put trailing slashes in our PATH walk.
8144 case $as_dir in #((
8145   ./ | /[cC]/* | \
8146   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8147   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8148   /usr/ucb/* ) ;;
8149   *)
8150     # OSF1 and SCO ODT 3.0 have their own names for install.
8151     # Don't use installbsd from OSF since it installs stuff as root
8152     # by default.
8153     for ac_prog in ginstall scoinst install; do
8154       for ac_exec_ext in '' $ac_executable_extensions; do
8155         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8156           if test $ac_prog = install &&
8157             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8158             # AIX install.  It has an incompatible calling convention.
8159             :
8160           elif test $ac_prog = install &&
8161             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8162             # program-specific install script used by HP pwplus--don't use.
8163             :
8164           else
8165             rm -rf conftest.one conftest.two conftest.dir
8166             echo one > conftest.one
8167             echo two > conftest.two
8168             mkdir conftest.dir
8169             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8170               test -s conftest.one && test -s conftest.two &&
8171               test -s conftest.dir/conftest.one &&
8172               test -s conftest.dir/conftest.two
8173             then
8174               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8175               break 3
8176             fi
8177           fi
8178         fi
8179       done
8180     done
8181     ;;
8182 esac
8183
8184   done
8185 IFS=$as_save_IFS
8186
8187 rm -rf conftest.one conftest.two conftest.dir
8188
8189 fi
8190   if test ${ac_cv_path_install+y}; then
8191     INSTALL=$ac_cv_path_install
8192   else
8193     # As a last resort, use the slow shell script.  Don't cache a
8194     # value for INSTALL within a source directory, because that will
8195     # break other packages using the cache if that directory is
8196     # removed, or if the value is a relative name.
8197     INSTALL=$ac_install_sh
8198   fi
8199 fi
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8201 printf "%s\n" "$INSTALL" >&6; }
8202
8203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8204 # It thinks the first close brace ends the variable substitution.
8205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8206
8207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8208
8209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8210
8211
8212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8213 printf %s "checking for a race-free mkdir -p... " >&6; }
8214 if test -z "$MKDIR_P"; then
8215   if test ${ac_cv_path_mkdir+y}
8216 then :
8217   printf %s "(cached) " >&6
8218 else $as_nop
8219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8221 do
8222   IFS=$as_save_IFS
8223   case $as_dir in #(((
8224     '') as_dir=./ ;;
8225     */) ;;
8226     *) as_dir=$as_dir/ ;;
8227   esac
8228     for ac_prog in mkdir gmkdir; do
8229          for ac_exec_ext in '' $ac_executable_extensions; do
8230            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8231            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8232              'mkdir ('*'coreutils) '* | \
8233              'BusyBox '* | \
8234              'mkdir (fileutils) '4.1*)
8235                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8236                break 3;;
8237            esac
8238          done
8239        done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244
8245   test -d ./--version && rmdir ./--version
8246   if test ${ac_cv_path_mkdir+y}; then
8247     MKDIR_P="$ac_cv_path_mkdir -p"
8248   else
8249     # As a last resort, use the slow shell script.  Don't cache a
8250     # value for MKDIR_P within a source directory, because that will
8251     # break other packages using the cache if that directory is
8252     # removed, or if the value is a relative name.
8253     MKDIR_P="$ac_install_sh -d"
8254   fi
8255 fi
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8257 printf "%s\n" "$MKDIR_P" >&6; }
8258
8259
8260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8261 printf %s "checking whether NLS is requested... " >&6; }
8262     # Check whether --enable-nls was given.
8263 if test ${enable_nls+y}
8264 then :
8265   enableval=$enable_nls; USE_NLS=$enableval
8266 else $as_nop
8267   USE_NLS=yes
8268 fi
8269
8270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8271 printf "%s\n" "$USE_NLS" >&6; }
8272
8273
8274
8275
8276       GETTEXT_MACRO_VERSION=0.20
8277
8278
8279
8280
8281 # Prepare PATH_SEPARATOR.
8282 # The user is always right.
8283 if test "${PATH_SEPARATOR+set}" != set; then
8284   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8285   # contains only /bin. Note that ksh looks also at the FPATH variable,
8286   # so we have to set that as well for the test.
8287   PATH_SEPARATOR=:
8288   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8289     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8290            || PATH_SEPARATOR=';'
8291        }
8292 fi
8293
8294 # Find out how to test for executable files. Don't use a zero-byte file,
8295 # as systems may use methods other than mode bits to determine executability.
8296 cat >conf$$.file <<_ASEOF
8297 #! /bin/sh
8298 exit 0
8299 _ASEOF
8300 chmod +x conf$$.file
8301 if test -x conf$$.file >/dev/null 2>&1; then
8302   ac_executable_p="test -x"
8303 else
8304   ac_executable_p="test -f"
8305 fi
8306 rm -f conf$$.file
8307
8308 # Extract the first word of "msgfmt", so it can be a program name with args.
8309 set dummy msgfmt; ac_word=$2
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 printf %s "checking for $ac_word... " >&6; }
8312 if test ${ac_cv_path_MSGFMT+y}
8313 then :
8314   printf %s "(cached) " >&6
8315 else $as_nop
8316   case "$MSGFMT" in
8317   [\\/]* | ?:[\\/]*)
8318     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8319     ;;
8320   *)
8321     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8322     for ac_dir in $PATH; do
8323       IFS="$ac_save_IFS"
8324       test -z "$ac_dir" && ac_dir=.
8325       for ac_exec_ext in '' $ac_executable_extensions; do
8326         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8327           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8328           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8329      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8330             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8331             break 2
8332           fi
8333         fi
8334       done
8335     done
8336     IFS="$ac_save_IFS"
8337   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8338     ;;
8339 esac
8340 fi
8341 MSGFMT="$ac_cv_path_MSGFMT"
8342 if test "$MSGFMT" != ":"; then
8343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8344 printf "%s\n" "$MSGFMT" >&6; }
8345 else
8346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 printf "%s\n" "no" >&6; }
8348 fi
8349
8350   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8351 set dummy gmsgfmt; ac_word=$2
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 printf %s "checking for $ac_word... " >&6; }
8354 if test ${ac_cv_path_GMSGFMT+y}
8355 then :
8356   printf %s "(cached) " >&6
8357 else $as_nop
8358   case $GMSGFMT in
8359   [\\/]* | ?:[\\/]*)
8360   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8361   ;;
8362   *)
8363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   case $as_dir in #(((
8368     '') as_dir=./ ;;
8369     */) ;;
8370     *) as_dir=$as_dir/ ;;
8371   esac
8372     for ac_exec_ext in '' $ac_executable_extensions; do
8373   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8374     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8375     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379   done
8380 IFS=$as_save_IFS
8381
8382   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8383   ;;
8384 esac
8385 fi
8386 GMSGFMT=$ac_cv_path_GMSGFMT
8387 if test -n "$GMSGFMT"; then
8388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8389 printf "%s\n" "$GMSGFMT" >&6; }
8390 else
8391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 printf "%s\n" "no" >&6; }
8393 fi
8394
8395
8396
8397     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8398     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8399     *) GMSGFMT_015=$GMSGFMT ;;
8400   esac
8401
8402
8403
8404 # Prepare PATH_SEPARATOR.
8405 # The user is always right.
8406 if test "${PATH_SEPARATOR+set}" != set; then
8407   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8408   # contains only /bin. Note that ksh looks also at the FPATH variable,
8409   # so we have to set that as well for the test.
8410   PATH_SEPARATOR=:
8411   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8412     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8413            || PATH_SEPARATOR=';'
8414        }
8415 fi
8416
8417 # Find out how to test for executable files. Don't use a zero-byte file,
8418 # as systems may use methods other than mode bits to determine executability.
8419 cat >conf$$.file <<_ASEOF
8420 #! /bin/sh
8421 exit 0
8422 _ASEOF
8423 chmod +x conf$$.file
8424 if test -x conf$$.file >/dev/null 2>&1; then
8425   ac_executable_p="test -x"
8426 else
8427   ac_executable_p="test -f"
8428 fi
8429 rm -f conf$$.file
8430
8431 # Extract the first word of "xgettext", so it can be a program name with args.
8432 set dummy xgettext; ac_word=$2
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 printf %s "checking for $ac_word... " >&6; }
8435 if test ${ac_cv_path_XGETTEXT+y}
8436 then :
8437   printf %s "(cached) " >&6
8438 else $as_nop
8439   case "$XGETTEXT" in
8440   [\\/]* | ?:[\\/]*)
8441     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8442     ;;
8443   *)
8444     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8445     for ac_dir in $PATH; do
8446       IFS="$ac_save_IFS"
8447       test -z "$ac_dir" && ac_dir=.
8448       for ac_exec_ext in '' $ac_executable_extensions; do
8449         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8450           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8451           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8452      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8453             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8454             break 2
8455           fi
8456         fi
8457       done
8458     done
8459     IFS="$ac_save_IFS"
8460   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8461     ;;
8462 esac
8463 fi
8464 XGETTEXT="$ac_cv_path_XGETTEXT"
8465 if test "$XGETTEXT" != ":"; then
8466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8467 printf "%s\n" "$XGETTEXT" >&6; }
8468 else
8469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 printf "%s\n" "no" >&6; }
8471 fi
8472
8473     rm -f messages.po
8474
8475     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8476     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8477     *) XGETTEXT_015=$XGETTEXT ;;
8478   esac
8479
8480
8481
8482 # Prepare PATH_SEPARATOR.
8483 # The user is always right.
8484 if test "${PATH_SEPARATOR+set}" != set; then
8485   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8486   # contains only /bin. Note that ksh looks also at the FPATH variable,
8487   # so we have to set that as well for the test.
8488   PATH_SEPARATOR=:
8489   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8490     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8491            || PATH_SEPARATOR=';'
8492        }
8493 fi
8494
8495 # Find out how to test for executable files. Don't use a zero-byte file,
8496 # as systems may use methods other than mode bits to determine executability.
8497 cat >conf$$.file <<_ASEOF
8498 #! /bin/sh
8499 exit 0
8500 _ASEOF
8501 chmod +x conf$$.file
8502 if test -x conf$$.file >/dev/null 2>&1; then
8503   ac_executable_p="test -x"
8504 else
8505   ac_executable_p="test -f"
8506 fi
8507 rm -f conf$$.file
8508
8509 # Extract the first word of "msgmerge", so it can be a program name with args.
8510 set dummy msgmerge; ac_word=$2
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 printf %s "checking for $ac_word... " >&6; }
8513 if test ${ac_cv_path_MSGMERGE+y}
8514 then :
8515   printf %s "(cached) " >&6
8516 else $as_nop
8517   case "$MSGMERGE" in
8518   [\\/]* | ?:[\\/]*)
8519     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8520     ;;
8521   *)
8522     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8523     for ac_dir in $PATH; do
8524       IFS="$ac_save_IFS"
8525       test -z "$ac_dir" && ac_dir=.
8526       for ac_exec_ext in '' $ac_executable_extensions; do
8527         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8528           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8529           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8530             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8531             break 2
8532           fi
8533         fi
8534       done
8535     done
8536     IFS="$ac_save_IFS"
8537   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8538     ;;
8539 esac
8540 fi
8541 MSGMERGE="$ac_cv_path_MSGMERGE"
8542 if test "$MSGMERGE" != ":"; then
8543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8544 printf "%s\n" "$MSGMERGE" >&6; }
8545 else
8546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 printf "%s\n" "no" >&6; }
8548 fi
8549
8550
8551     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8552     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8553   else
8554         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8555       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8556     else
8557                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8558     fi
8559   fi
8560
8561
8562     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8563
8564
8565   ac_config_commands="$ac_config_commands po-directories"
8566
8567
8568
8569       if test "X$prefix" = "XNONE"; then
8570     acl_final_prefix="$ac_default_prefix"
8571   else
8572     acl_final_prefix="$prefix"
8573   fi
8574   if test "X$exec_prefix" = "XNONE"; then
8575     acl_final_exec_prefix='${prefix}'
8576   else
8577     acl_final_exec_prefix="$exec_prefix"
8578   fi
8579   acl_save_prefix="$prefix"
8580   prefix="$acl_final_prefix"
8581   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8582   prefix="$acl_save_prefix"
8583
8584
8585
8586 # Check whether --with-gnu-ld was given.
8587 if test ${with_gnu_ld+y}
8588 then :
8589   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8590 else $as_nop
8591   with_gnu_ld=no
8592 fi
8593
8594 # Prepare PATH_SEPARATOR.
8595 # The user is always right.
8596 if test "${PATH_SEPARATOR+set}" != set; then
8597   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8598   # contains only /bin. Note that ksh looks also at the FPATH variable,
8599   # so we have to set that as well for the test.
8600   PATH_SEPARATOR=:
8601   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8602     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8603            || PATH_SEPARATOR=';'
8604        }
8605 fi
8606
8607 if test -n "$LD"; then
8608   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8609 printf %s "checking for ld... " >&6; }
8610 elif test "$GCC" = yes; then
8611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8612 printf %s "checking for ld used by $CC... " >&6; }
8613 elif test "$with_gnu_ld" = yes; then
8614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8615 printf %s "checking for GNU ld... " >&6; }
8616 else
8617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8618 printf %s "checking for non-GNU ld... " >&6; }
8619 fi
8620 if test -n "$LD"; then
8621   # Let the user override the test with a path.
8622   :
8623 else
8624   if test ${acl_cv_path_LD+y}
8625 then :
8626   printf %s "(cached) " >&6
8627 else $as_nop
8628
8629     acl_cv_path_LD= # Final result of this test
8630     ac_prog=ld # Program to search in $PATH
8631     if test "$GCC" = yes; then
8632       # Check if gcc -print-prog-name=ld gives a path.
8633       case $host in
8634         *-*-mingw*)
8635           # gcc leaves a trailing carriage return which upsets mingw
8636           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8637         *)
8638           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8639       esac
8640       case $acl_output in
8641         # Accept absolute paths.
8642         [\\/]* | ?:[\\/]*)
8643           re_direlt='/[^/][^/]*/\.\./'
8644           # Canonicalize the pathname of ld
8645           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8646           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8647             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8648           done
8649           # Got the pathname. No search in PATH is needed.
8650           acl_cv_path_LD="$acl_output"
8651           ac_prog=
8652           ;;
8653         "")
8654           # If it fails, then pretend we aren't using GCC.
8655           ;;
8656         *)
8657           # If it is relative, then search for the first ld in PATH.
8658           with_gnu_ld=unknown
8659           ;;
8660       esac
8661     fi
8662     if test -n "$ac_prog"; then
8663       # Search for $ac_prog in $PATH.
8664       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8665       for ac_dir in $PATH; do
8666         IFS="$acl_save_ifs"
8667         test -z "$ac_dir" && ac_dir=.
8668         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8669           acl_cv_path_LD="$ac_dir/$ac_prog"
8670           # Check to see if the program is GNU ld.  I'd rather use --version,
8671           # but apparently some variants of GNU ld only accept -v.
8672           # Break only if it was the GNU/non-GNU ld that we prefer.
8673           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8674             *GNU* | *'with BFD'*)
8675               test "$with_gnu_ld" != no && break
8676               ;;
8677             *)
8678               test "$with_gnu_ld" != yes && break
8679               ;;
8680           esac
8681         fi
8682       done
8683       IFS="$acl_save_ifs"
8684     fi
8685     case $host in
8686       *-*-aix*)
8687         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h.  */
8689 #if defined __powerpc64__ || defined _ARCH_PPC64
8690                 int ok;
8691                #else
8692                 error fail
8693                #endif
8694
8695 _ACEOF
8696 if ac_fn_c_try_compile "$LINENO"
8697 then :
8698   # The compiler produces 64-bit code. Add option '-b64' so that the
8699            # linker groks 64-bit object files.
8700            case "$acl_cv_path_LD " in
8701              *" -b64 "*) ;;
8702              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8703            esac
8704
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8707         ;;
8708       sparc64-*-netbsd*)
8709         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h.  */
8711 #if defined __sparcv9 || defined __arch64__
8712                 int ok;
8713                #else
8714                 error fail
8715                #endif
8716
8717 _ACEOF
8718 if ac_fn_c_try_compile "$LINENO"
8719 then :
8720
8721 else $as_nop
8722   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8723            # so that the linker groks 32-bit object files.
8724            case "$acl_cv_path_LD " in
8725              *" -m elf32_sparc "*) ;;
8726              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8727            esac
8728
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8731         ;;
8732     esac
8733
8734 fi
8735
8736   LD="$acl_cv_path_LD"
8737 fi
8738 if test -n "$LD"; then
8739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8740 printf "%s\n" "$LD" >&6; }
8741 else
8742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 printf "%s\n" "no" >&6; }
8744   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8745 fi
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8747 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8748 if test ${acl_cv_prog_gnu_ld+y}
8749 then :
8750   printf %s "(cached) " >&6
8751 else $as_nop
8752   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8753 case `$LD -v 2>&1 </dev/null` in
8754 *GNU* | *'with BFD'*)
8755   acl_cv_prog_gnu_ld=yes
8756   ;;
8757 *)
8758   acl_cv_prog_gnu_ld=no
8759   ;;
8760 esac
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8763 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8764 with_gnu_ld=$acl_cv_prog_gnu_ld
8765
8766
8767
8768
8769
8770
8771                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8772 printf %s "checking for shared library run path origin... " >&6; }
8773 if test ${acl_cv_rpath+y}
8774 then :
8775   printf %s "(cached) " >&6
8776 else $as_nop
8777
8778     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8779     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8780     . ./conftest.sh
8781     rm -f ./conftest.sh
8782     acl_cv_rpath=done
8783
8784 fi
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8786 printf "%s\n" "$acl_cv_rpath" >&6; }
8787   wl="$acl_cv_wl"
8788   acl_libext="$acl_cv_libext"
8789   acl_shlibext="$acl_cv_shlibext"
8790   acl_libname_spec="$acl_cv_libname_spec"
8791   acl_library_names_spec="$acl_cv_library_names_spec"
8792   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8793   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8794   acl_hardcode_direct="$acl_cv_hardcode_direct"
8795   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8796     # Check whether --enable-rpath was given.
8797 if test ${enable_rpath+y}
8798 then :
8799   enableval=$enable_rpath; :
8800 else $as_nop
8801   enable_rpath=yes
8802 fi
8803
8804
8805
8806
8807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8808 printf %s "checking 32-bit host C ABI... " >&6; }
8809 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8810 then :
8811   printf %s "(cached) " >&6
8812 else $as_nop
8813   if test -n "$gl_cv_host_cpu_c_abi"; then
8814        case "$gl_cv_host_cpu_c_abi" in
8815          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8816            gl_cv_host_cpu_c_abi_32bit=yes ;;
8817          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8818            gl_cv_host_cpu_c_abi_32bit=no ;;
8819          *)
8820            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8821        esac
8822      else
8823        case "$host_cpu" in
8824
8825          # CPUs that only support a 32-bit ABI.
8826          arc \
8827          | bfin \
8828          | cris* \
8829          | csky \
8830          | epiphany \
8831          | ft32 \
8832          | h8300 \
8833          | m68k \
8834          | microblaze | microblazeel \
8835          | nds32 | nds32le | nds32be \
8836          | nios2 | nios2eb | nios2el \
8837          | or1k* \
8838          | or32 \
8839          | sh | sh1234 | sh1234elb \
8840          | tic6x \
8841          | xtensa* )
8842            gl_cv_host_cpu_c_abi_32bit=yes
8843            ;;
8844
8845          # CPUs that only support a 64-bit ABI.
8846          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8847          | mmix )
8848            gl_cv_host_cpu_c_abi_32bit=no
8849            ;;
8850
8851          i[34567]86 )
8852            gl_cv_host_cpu_c_abi_32bit=yes
8853            ;;
8854
8855          x86_64 )
8856            # On x86_64 systems, the C compiler may be generating code in one of
8857            # these ABIs:
8858            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8859            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8860            #   with native Windows (mingw, MSVC).
8861            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8862            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8863            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h.  */
8865 #if (defined __x86_64__ || defined __amd64__ \
8866                        || defined _M_X64 || defined _M_AMD64) \
8867                       && !(defined __ILP32__ || defined _ILP32)
8868                    int ok;
8869                   #else
8870                    error fail
8871                   #endif
8872
8873 _ACEOF
8874 if ac_fn_c_try_compile "$LINENO"
8875 then :
8876   gl_cv_host_cpu_c_abi_32bit=no
8877 else $as_nop
8878   gl_cv_host_cpu_c_abi_32bit=yes
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8881            ;;
8882
8883          arm* | aarch64 )
8884            # Assume arm with EABI.
8885            # On arm64 systems, the C compiler may be generating code in one of
8886            # these ABIs:
8887            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8888            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8889            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8890            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h.  */
8892 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8893                    int ok;
8894                   #else
8895                    error fail
8896                   #endif
8897
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"
8900 then :
8901   gl_cv_host_cpu_c_abi_32bit=no
8902 else $as_nop
8903   gl_cv_host_cpu_c_abi_32bit=yes
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8906            ;;
8907
8908          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8909            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8910            # code. In the latter case, it defines _LP64 and __LP64__.
8911            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913 #ifdef __LP64__
8914                    int ok;
8915                   #else
8916                    error fail
8917                   #endif
8918
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"
8921 then :
8922   gl_cv_host_cpu_c_abi_32bit=no
8923 else $as_nop
8924   gl_cv_host_cpu_c_abi_32bit=yes
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8927            ;;
8928
8929          ia64* )
8930            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8931            # 32-bit code. In the latter case, it defines _ILP32.
8932            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h.  */
8934 #ifdef _ILP32
8935                    int ok;
8936                   #else
8937                    error fail
8938                   #endif
8939
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"
8942 then :
8943   gl_cv_host_cpu_c_abi_32bit=yes
8944 else $as_nop
8945   gl_cv_host_cpu_c_abi_32bit=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948            ;;
8949
8950          mips* )
8951            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8952            # at 32.
8953            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h.  */
8955 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8956                    int ok;
8957                   #else
8958                    error fail
8959                   #endif
8960
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"
8963 then :
8964   gl_cv_host_cpu_c_abi_32bit=no
8965 else $as_nop
8966   gl_cv_host_cpu_c_abi_32bit=yes
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8969            ;;
8970
8971          powerpc* )
8972            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8973            # No need to distinguish them here; the caller may distinguish
8974            # them based on the OS.
8975            # On powerpc64 systems, the C compiler may still be generating
8976            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8977            # be generating 64-bit code.
8978            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980 #if defined __powerpc64__ || defined _ARCH_PPC64
8981                    int ok;
8982                   #else
8983                    error fail
8984                   #endif
8985
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"
8988 then :
8989   gl_cv_host_cpu_c_abi_32bit=no
8990 else $as_nop
8991   gl_cv_host_cpu_c_abi_32bit=yes
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8994            ;;
8995
8996          rs6000 )
8997            gl_cv_host_cpu_c_abi_32bit=yes
8998            ;;
8999
9000          riscv32 | riscv64 )
9001            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9002            # Size of 'long' and 'void *':
9003            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h.  */
9005 #if defined __LP64__
9006                     int ok;
9007                   #else
9008                     error fail
9009                   #endif
9010
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"
9013 then :
9014   gl_cv_host_cpu_c_abi_32bit=no
9015 else $as_nop
9016   gl_cv_host_cpu_c_abi_32bit=yes
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9019            ;;
9020
9021          s390* )
9022            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9023            # or 31-bit (= s390) code.
9024            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h.  */
9026 #if defined __LP64__ || defined __s390x__
9027                     int ok;
9028                   #else
9029                     error fail
9030                   #endif
9031
9032 _ACEOF
9033 if ac_fn_c_try_compile "$LINENO"
9034 then :
9035   gl_cv_host_cpu_c_abi_32bit=no
9036 else $as_nop
9037   gl_cv_host_cpu_c_abi_32bit=yes
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040            ;;
9041
9042          sparc | sparc64 )
9043            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9044            # C compiler still generates 32-bit code.
9045            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047 #if defined __sparcv9 || defined __arch64__
9048                    int ok;
9049                   #else
9050                    error fail
9051                   #endif
9052
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"
9055 then :
9056   gl_cv_host_cpu_c_abi_32bit=no
9057 else $as_nop
9058   gl_cv_host_cpu_c_abi_32bit=yes
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9061            ;;
9062
9063          *)
9064            gl_cv_host_cpu_c_abi_32bit=unknown
9065            ;;
9066        esac
9067      fi
9068
9069 fi
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9071 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9072
9073   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9074
9075
9076
9077
9078
9079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9080 printf %s "checking for ELF binary format... " >&6; }
9081 if test ${gl_cv_elf+y}
9082 then :
9083   printf %s "(cached) " >&6
9084 else $as_nop
9085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h.  */
9087 #ifdef __ELF__
9088         Extensible Linking Format
9089         #endif
9090
9091 _ACEOF
9092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9093   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9094 then :
9095   gl_cv_elf=yes
9096 else $as_nop
9097   gl_cv_elf=no
9098 fi
9099 rm -rf conftest*
9100
9101
9102 fi
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9104 printf "%s\n" "$gl_cv_elf" >&6; }
9105   if test $gl_cv_elf; then
9106     # Extract the ELF class of a file (5th byte) in decimal.
9107     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9108     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9109       # Use POSIX od.
9110       func_elfclass ()
9111       {
9112         od -A n -t d1 -j 4 -N 1
9113       }
9114     else
9115       # Use BSD hexdump.
9116       func_elfclass ()
9117       {
9118         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9119         echo
9120       }
9121     fi
9122     case $HOST_CPU_C_ABI_32BIT in
9123       yes)
9124         # 32-bit ABI.
9125         acl_is_expected_elfclass ()
9126         {
9127           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9128         }
9129         ;;
9130       no)
9131         # 64-bit ABI.
9132         acl_is_expected_elfclass ()
9133         {
9134           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9135         }
9136         ;;
9137       *)
9138         # Unknown.
9139         acl_is_expected_elfclass ()
9140         {
9141           :
9142         }
9143         ;;
9144     esac
9145   else
9146     acl_is_expected_elfclass ()
9147     {
9148       :
9149     }
9150   fi
9151
9152     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9153 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9154 if test ${acl_cv_libdirstems+y}
9155 then :
9156   printf %s "(cached) " >&6
9157 else $as_nop
9158             acl_libdirstem=lib
9159      acl_libdirstem2=
9160      acl_libdirstem3=
9161      case "$host_os" in
9162        solaris*)
9163                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9164            acl_libdirstem2=lib/64
9165            case "$host_cpu" in
9166              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9167              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9168            esac
9169          fi
9170          ;;
9171        *)
9172                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9173                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9174          if test $HOST_CPU_C_ABI_32BIT != no; then
9175            # 32-bit or unknown ABI.
9176            if test -d /usr/lib32; then
9177              acl_libdirstem2=lib32
9178            fi
9179          fi
9180          if test $HOST_CPU_C_ABI_32BIT != yes; then
9181            # 64-bit or unknown ABI.
9182            if test -d /usr/lib64; then
9183              acl_libdirstem3=lib64
9184            fi
9185          fi
9186          if test -n "$searchpath"; then
9187            acl_save_IFS="${IFS=         }"; IFS=":"
9188            for searchdir in $searchpath; do
9189              if test -d "$searchdir"; then
9190                case "$searchdir" in
9191                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9192                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9193                  */../ | */.. )
9194                    # Better ignore directories of this form. They are misleading.
9195                    ;;
9196                  *) searchdir=`cd "$searchdir" && pwd`
9197                     case "$searchdir" in
9198                       */lib32 ) acl_libdirstem2=lib32 ;;
9199                       */lib64 ) acl_libdirstem3=lib64 ;;
9200                     esac ;;
9201                esac
9202              fi
9203            done
9204            IFS="$acl_save_IFS"
9205            if test $HOST_CPU_C_ABI_32BIT = yes; then
9206              # 32-bit ABI.
9207              acl_libdirstem3=
9208            fi
9209            if test $HOST_CPU_C_ABI_32BIT = no; then
9210              # 64-bit ABI.
9211              acl_libdirstem2=
9212            fi
9213          fi
9214          ;;
9215      esac
9216      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9217      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9218      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9219
9220 fi
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9222 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9223       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9224   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9225   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237     use_additional=yes
9238
9239   acl_save_prefix="$prefix"
9240   prefix="$acl_final_prefix"
9241   acl_save_exec_prefix="$exec_prefix"
9242   exec_prefix="$acl_final_exec_prefix"
9243
9244     eval additional_includedir=\"$includedir\"
9245     eval additional_libdir=\"$libdir\"
9246     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9247     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9248
9249   exec_prefix="$acl_save_exec_prefix"
9250   prefix="$acl_save_prefix"
9251
9252
9253 # Check whether --with-libiconv-prefix was given.
9254 if test ${with_libiconv_prefix+y}
9255 then :
9256   withval=$with_libiconv_prefix;
9257     if test "X$withval" = "Xno"; then
9258       use_additional=no
9259     else
9260       if test "X$withval" = "X"; then
9261
9262   acl_save_prefix="$prefix"
9263   prefix="$acl_final_prefix"
9264   acl_save_exec_prefix="$exec_prefix"
9265   exec_prefix="$acl_final_exec_prefix"
9266
9267           eval additional_includedir=\"$includedir\"
9268           eval additional_libdir=\"$libdir\"
9269           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9270           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9271
9272   exec_prefix="$acl_save_exec_prefix"
9273   prefix="$acl_save_prefix"
9274
9275       else
9276         additional_includedir="$withval/include"
9277         additional_libdir="$withval/$acl_libdirstem"
9278         additional_libdir2="$withval/$acl_libdirstem2"
9279         additional_libdir3="$withval/$acl_libdirstem3"
9280       fi
9281     fi
9282
9283 fi
9284
9285   if test "X$additional_libdir2" = "X$additional_libdir"; then
9286     additional_libdir2=
9287   fi
9288   if test "X$additional_libdir3" = "X$additional_libdir"; then
9289     additional_libdir3=
9290   fi
9291       LIBICONV=
9292   LTLIBICONV=
9293   INCICONV=
9294   LIBICONV_PREFIX=
9295       HAVE_LIBICONV=
9296   rpathdirs=
9297   ltrpathdirs=
9298   names_already_handled=
9299   names_next_round='iconv '
9300   while test -n "$names_next_round"; do
9301     names_this_round="$names_next_round"
9302     names_next_round=
9303     for name in $names_this_round; do
9304       already_handled=
9305       for n in $names_already_handled; do
9306         if test "$n" = "$name"; then
9307           already_handled=yes
9308           break
9309         fi
9310       done
9311       if test -z "$already_handled"; then
9312         names_already_handled="$names_already_handled $name"
9313                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9314         eval value=\"\$HAVE_LIB$uppername\"
9315         if test -n "$value"; then
9316           if test "$value" = yes; then
9317             eval value=\"\$LIB$uppername\"
9318             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9319             eval value=\"\$LTLIB$uppername\"
9320             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9321           else
9322                                     :
9323           fi
9324         else
9325                               found_dir=
9326           found_la=
9327           found_so=
9328           found_a=
9329           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9330           if test -n "$acl_shlibext"; then
9331             shrext=".$acl_shlibext"             # typically: shrext=.so
9332           else
9333             shrext=
9334           fi
9335           if test $use_additional = yes; then
9336             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9337               if test "X$found_dir" = "X"; then
9338                 eval dir=\$$additional_libdir_variable
9339                 if test -n "$dir"; then
9340                                                       if test -n "$acl_shlibext"; then
9341                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9342                       found_dir="$dir"
9343                       found_so="$dir/$libname$shrext"
9344                     else
9345                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9346                         ver=`(cd "$dir" && \
9347                               for f in "$libname$shrext".*; do echo "$f"; done \
9348                               | sed -e "s,^$libname$shrext\\\\.,," \
9349                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9350                               | sed 1q ) 2>/dev/null`
9351                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9352                           found_dir="$dir"
9353                           found_so="$dir/$libname$shrext.$ver"
9354                         fi
9355                       else
9356                         eval library_names=\"$acl_library_names_spec\"
9357                         for f in $library_names; do
9358                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9359                             found_dir="$dir"
9360                             found_so="$dir/$f"
9361                             break
9362                           fi
9363                         done
9364                       fi
9365                     fi
9366                   fi
9367                                     if test "X$found_dir" = "X"; then
9368                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9369                       found_dir="$dir"
9370                       found_a="$dir/$libname.$acl_libext"
9371                     fi
9372                   fi
9373                   if test "X$found_dir" != "X"; then
9374                     if test -f "$dir/$libname.la"; then
9375                       found_la="$dir/$libname.la"
9376                     fi
9377                   fi
9378                 fi
9379               fi
9380             done
9381           fi
9382           if test "X$found_dir" = "X"; then
9383             for x in $LDFLAGS $LTLIBICONV; do
9384
9385   acl_save_prefix="$prefix"
9386   prefix="$acl_final_prefix"
9387   acl_save_exec_prefix="$exec_prefix"
9388   exec_prefix="$acl_final_exec_prefix"
9389   eval x=\"$x\"
9390   exec_prefix="$acl_save_exec_prefix"
9391   prefix="$acl_save_prefix"
9392
9393               case "$x" in
9394                 -L*)
9395                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9396                                     if test -n "$acl_shlibext"; then
9397                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9398                       found_dir="$dir"
9399                       found_so="$dir/$libname$shrext"
9400                     else
9401                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9402                         ver=`(cd "$dir" && \
9403                               for f in "$libname$shrext".*; do echo "$f"; done \
9404                               | sed -e "s,^$libname$shrext\\\\.,," \
9405                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9406                               | sed 1q ) 2>/dev/null`
9407                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9408                           found_dir="$dir"
9409                           found_so="$dir/$libname$shrext.$ver"
9410                         fi
9411                       else
9412                         eval library_names=\"$acl_library_names_spec\"
9413                         for f in $library_names; do
9414                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9415                             found_dir="$dir"
9416                             found_so="$dir/$f"
9417                             break
9418                           fi
9419                         done
9420                       fi
9421                     fi
9422                   fi
9423                                     if test "X$found_dir" = "X"; then
9424                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9425                       found_dir="$dir"
9426                       found_a="$dir/$libname.$acl_libext"
9427                     fi
9428                   fi
9429                   if test "X$found_dir" != "X"; then
9430                     if test -f "$dir/$libname.la"; then
9431                       found_la="$dir/$libname.la"
9432                     fi
9433                   fi
9434                   ;;
9435               esac
9436               if test "X$found_dir" != "X"; then
9437                 break
9438               fi
9439             done
9440           fi
9441           if test "X$found_dir" != "X"; then
9442                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9443             if test "X$found_so" != "X"; then
9444                                                         if test "$enable_rpath" = no \
9445                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9446                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9447                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9448                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9449               else
9450                                                                                 haveit=
9451                 for x in $ltrpathdirs; do
9452                   if test "X$x" = "X$found_dir"; then
9453                     haveit=yes
9454                     break
9455                   fi
9456                 done
9457                 if test -z "$haveit"; then
9458                   ltrpathdirs="$ltrpathdirs $found_dir"
9459                 fi
9460                                 if test "$acl_hardcode_direct" = yes; then
9461                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9462                 else
9463                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9464                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9465                                                             haveit=
9466                     for x in $rpathdirs; do
9467                       if test "X$x" = "X$found_dir"; then
9468                         haveit=yes
9469                         break
9470                       fi
9471                     done
9472                     if test -z "$haveit"; then
9473                       rpathdirs="$rpathdirs $found_dir"
9474                     fi
9475                   else
9476                                                                                 haveit=
9477                     for x in $LDFLAGS $LIBICONV; do
9478
9479   acl_save_prefix="$prefix"
9480   prefix="$acl_final_prefix"
9481   acl_save_exec_prefix="$exec_prefix"
9482   exec_prefix="$acl_final_exec_prefix"
9483   eval x=\"$x\"
9484   exec_prefix="$acl_save_exec_prefix"
9485   prefix="$acl_save_prefix"
9486
9487                       if test "X$x" = "X-L$found_dir"; then
9488                         haveit=yes
9489                         break
9490                       fi
9491                     done
9492                     if test -z "$haveit"; then
9493                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9494                     fi
9495                     if test "$acl_hardcode_minus_L" != no; then
9496                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9497                     else
9498                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9499                     fi
9500                   fi
9501                 fi
9502               fi
9503             else
9504               if test "X$found_a" != "X"; then
9505                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9506               else
9507                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9508               fi
9509             fi
9510                         additional_includedir=
9511             case "$found_dir" in
9512               */$acl_libdirstem | */$acl_libdirstem/)
9513                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9514                 if test "$name" = 'iconv'; then
9515                   LIBICONV_PREFIX="$basedir"
9516                 fi
9517                 additional_includedir="$basedir/include"
9518                 ;;
9519               */$acl_libdirstem2 | */$acl_libdirstem2/)
9520                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9521                 if test "$name" = 'iconv'; then
9522                   LIBICONV_PREFIX="$basedir"
9523                 fi
9524                 additional_includedir="$basedir/include"
9525                 ;;
9526               */$acl_libdirstem3 | */$acl_libdirstem3/)
9527                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9528                 if test "$name" = 'iconv'; then
9529                   LIBICONV_PREFIX="$basedir"
9530                 fi
9531                 additional_includedir="$basedir/include"
9532                 ;;
9533             esac
9534             if test "X$additional_includedir" != "X"; then
9535                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9536                 haveit=
9537                 if test "X$additional_includedir" = "X/usr/local/include"; then
9538                   if test -n "$GCC"; then
9539                     case $host_os in
9540                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9541                     esac
9542                   fi
9543                 fi
9544                 if test -z "$haveit"; then
9545                   for x in $CPPFLAGS $INCICONV; do
9546
9547   acl_save_prefix="$prefix"
9548   prefix="$acl_final_prefix"
9549   acl_save_exec_prefix="$exec_prefix"
9550   exec_prefix="$acl_final_exec_prefix"
9551   eval x=\"$x\"
9552   exec_prefix="$acl_save_exec_prefix"
9553   prefix="$acl_save_prefix"
9554
9555                     if test "X$x" = "X-I$additional_includedir"; then
9556                       haveit=yes
9557                       break
9558                     fi
9559                   done
9560                   if test -z "$haveit"; then
9561                     if test -d "$additional_includedir"; then
9562                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9563                     fi
9564                   fi
9565                 fi
9566               fi
9567             fi
9568                         if test -n "$found_la"; then
9569                                                         save_libdir="$libdir"
9570               case "$found_la" in
9571                 */* | *\\*) . "$found_la" ;;
9572                 *) . "./$found_la" ;;
9573               esac
9574               libdir="$save_libdir"
9575                             for dep in $dependency_libs; do
9576                 case "$dep" in
9577                   -L*)
9578                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9579                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9580                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9581                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9582                       haveit=
9583                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9584                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9585                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9586                         if test -n "$GCC"; then
9587                           case $host_os in
9588                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9589                           esac
9590                         fi
9591                       fi
9592                       if test -z "$haveit"; then
9593                         haveit=
9594                         for x in $LDFLAGS $LIBICONV; do
9595
9596   acl_save_prefix="$prefix"
9597   prefix="$acl_final_prefix"
9598   acl_save_exec_prefix="$exec_prefix"
9599   exec_prefix="$acl_final_exec_prefix"
9600   eval x=\"$x\"
9601   exec_prefix="$acl_save_exec_prefix"
9602   prefix="$acl_save_prefix"
9603
9604                           if test "X$x" = "X-L$dependency_libdir"; then
9605                             haveit=yes
9606                             break
9607                           fi
9608                         done
9609                         if test -z "$haveit"; then
9610                           if test -d "$dependency_libdir"; then
9611                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9612                           fi
9613                         fi
9614                         haveit=
9615                         for x in $LDFLAGS $LTLIBICONV; do
9616
9617   acl_save_prefix="$prefix"
9618   prefix="$acl_final_prefix"
9619   acl_save_exec_prefix="$exec_prefix"
9620   exec_prefix="$acl_final_exec_prefix"
9621   eval x=\"$x\"
9622   exec_prefix="$acl_save_exec_prefix"
9623   prefix="$acl_save_prefix"
9624
9625                           if test "X$x" = "X-L$dependency_libdir"; then
9626                             haveit=yes
9627                             break
9628                           fi
9629                         done
9630                         if test -z "$haveit"; then
9631                           if test -d "$dependency_libdir"; then
9632                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9633                           fi
9634                         fi
9635                       fi
9636                     fi
9637                     ;;
9638                   -R*)
9639                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9640                     if test "$enable_rpath" != no; then
9641                                                                   haveit=
9642                       for x in $rpathdirs; do
9643                         if test "X$x" = "X$dir"; then
9644                           haveit=yes
9645                           break
9646                         fi
9647                       done
9648                       if test -z "$haveit"; then
9649                         rpathdirs="$rpathdirs $dir"
9650                       fi
9651                                                                   haveit=
9652                       for x in $ltrpathdirs; do
9653                         if test "X$x" = "X$dir"; then
9654                           haveit=yes
9655                           break
9656                         fi
9657                       done
9658                       if test -z "$haveit"; then
9659                         ltrpathdirs="$ltrpathdirs $dir"
9660                       fi
9661                     fi
9662                     ;;
9663                   -l*)
9664                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9665                     ;;
9666                   *.la)
9667                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9668                     ;;
9669                   *)
9670                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9671                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9672                     ;;
9673                 esac
9674               done
9675             fi
9676           else
9677                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9678             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9679           fi
9680         fi
9681       fi
9682     done
9683   done
9684   if test "X$rpathdirs" != "X"; then
9685     if test -n "$acl_hardcode_libdir_separator"; then
9686                         alldirs=
9687       for found_dir in $rpathdirs; do
9688         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9689       done
9690             acl_save_libdir="$libdir"
9691       libdir="$alldirs"
9692       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9693       libdir="$acl_save_libdir"
9694       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9695     else
9696             for found_dir in $rpathdirs; do
9697         acl_save_libdir="$libdir"
9698         libdir="$found_dir"
9699         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9700         libdir="$acl_save_libdir"
9701         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9702       done
9703     fi
9704   fi
9705   if test "X$ltrpathdirs" != "X"; then
9706             for found_dir in $ltrpathdirs; do
9707       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9708     done
9709   fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9740 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9741 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9742 then :
9743   printf %s "(cached) " >&6
9744 else $as_nop
9745   gt_save_LIBS="$LIBS"
9746      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9747      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749 #include <CoreFoundation/CFPreferences.h>
9750 int
9751 main (void)
9752 {
9753 CFPreferencesCopyAppValue(NULL, NULL)
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"
9759 then :
9760   gt_cv_func_CFPreferencesCopyAppValue=yes
9761 else $as_nop
9762   gt_cv_func_CFPreferencesCopyAppValue=no
9763 fi
9764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9765     conftest$ac_exeext conftest.$ac_ext
9766      LIBS="$gt_save_LIBS"
9767 fi
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9769 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9770   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9771
9772 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9773
9774   fi
9775                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9776 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9777 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9778 then :
9779   printf %s "(cached) " >&6
9780 else $as_nop
9781   gt_save_LIBS="$LIBS"
9782      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9783      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h.  */
9785 #include <CoreFoundation/CFLocale.h>
9786 int
9787 main (void)
9788 {
9789 CFLocaleCopyPreferredLanguages();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"
9795 then :
9796   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9797 else $as_nop
9798   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9801     conftest$ac_exeext conftest.$ac_ext
9802      LIBS="$gt_save_LIBS"
9803 fi
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9805 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9806   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9807
9808 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9809
9810   fi
9811   INTL_MACOSX_LIBS=
9812   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9813      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9814     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9815   fi
9816
9817
9818
9819
9820
9821
9822   LIBINTL=
9823   LTLIBINTL=
9824   POSUB=
9825
9826     case " $gt_needs " in
9827     *" need-formatstring-macros "*) gt_api_version=3 ;;
9828     *" need-ngettext "*) gt_api_version=2 ;;
9829     *) gt_api_version=1 ;;
9830   esac
9831   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9832   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9833
9834     if test "$USE_NLS" = "yes"; then
9835     gt_use_preinstalled_gnugettext=no
9836
9837
9838         if test $gt_api_version -ge 3; then
9839           gt_revision_test_code='
9840 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9841 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9842 #endif
9843 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9844 '
9845         else
9846           gt_revision_test_code=
9847         fi
9848         if test $gt_api_version -ge 2; then
9849           gt_expression_test_code=' + * ngettext ("", "", 0)'
9850         else
9851           gt_expression_test_code=
9852         fi
9853
9854         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9855 printf %s "checking for GNU gettext in libc... " >&6; }
9856 if eval test \${$gt_func_gnugettext_libc+y}
9857 then :
9858   printf %s "(cached) " >&6
9859 else $as_nop
9860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h.  */
9862
9863 #include <libintl.h>
9864 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9865 extern int _nl_msg_cat_cntr;
9866 extern int *_nl_domain_bindings;
9867 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9868 #else
9869 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9870 #endif
9871 $gt_revision_test_code
9872
9873 int
9874 main (void)
9875 {
9876
9877 bindtextdomain ("", "");
9878 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9879
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"
9885 then :
9886   eval "$gt_func_gnugettext_libc=yes"
9887 else $as_nop
9888   eval "$gt_func_gnugettext_libc=no"
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9891     conftest$ac_exeext conftest.$ac_ext
9892 fi
9893 eval ac_res=\$$gt_func_gnugettext_libc
9894                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9895 printf "%s\n" "$ac_res" >&6; }
9896
9897         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9898
9899
9900
9901
9902
9903           am_save_CPPFLAGS="$CPPFLAGS"
9904
9905   for element in $INCICONV; do
9906     haveit=
9907     for x in $CPPFLAGS; do
9908
9909   acl_save_prefix="$prefix"
9910   prefix="$acl_final_prefix"
9911   acl_save_exec_prefix="$exec_prefix"
9912   exec_prefix="$acl_final_exec_prefix"
9913   eval x=\"$x\"
9914   exec_prefix="$acl_save_exec_prefix"
9915   prefix="$acl_save_prefix"
9916
9917       if test "X$x" = "X$element"; then
9918         haveit=yes
9919         break
9920       fi
9921     done
9922     if test -z "$haveit"; then
9923       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9924     fi
9925   done
9926
9927
9928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9929 printf %s "checking for iconv... " >&6; }
9930 if test ${am_cv_func_iconv+y}
9931 then :
9932   printf %s "(cached) " >&6
9933 else $as_nop
9934
9935     am_cv_func_iconv="no, consider installing GNU libiconv"
9936     am_cv_lib_iconv=no
9937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h.  */
9939
9940 #include <stdlib.h>
9941 #include <iconv.h>
9942
9943 int
9944 main (void)
9945 {
9946 iconv_t cd = iconv_open("","");
9947            iconv(cd,NULL,NULL,NULL,NULL);
9948            iconv_close(cd);
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"
9954 then :
9955   am_cv_func_iconv=yes
9956 fi
9957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9958     conftest$ac_exeext conftest.$ac_ext
9959     if test "$am_cv_func_iconv" != yes; then
9960       am_save_LIBS="$LIBS"
9961       LIBS="$LIBS $LIBICONV"
9962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h.  */
9964
9965 #include <stdlib.h>
9966 #include <iconv.h>
9967
9968 int
9969 main (void)
9970 {
9971 iconv_t cd = iconv_open("","");
9972              iconv(cd,NULL,NULL,NULL,NULL);
9973              iconv_close(cd);
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 if ac_fn_c_try_link "$LINENO"
9979 then :
9980   am_cv_lib_iconv=yes
9981         am_cv_func_iconv=yes
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9984     conftest$ac_exeext conftest.$ac_ext
9985       LIBS="$am_save_LIBS"
9986     fi
9987
9988 fi
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9990 printf "%s\n" "$am_cv_func_iconv" >&6; }
9991   if test "$am_cv_func_iconv" = yes; then
9992     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9993 printf %s "checking for working iconv... " >&6; }
9994 if test ${am_cv_func_iconv_works+y}
9995 then :
9996   printf %s "(cached) " >&6
9997 else $as_nop
9998
9999                   am_save_LIBS="$LIBS"
10000       if test $am_cv_lib_iconv = yes; then
10001         LIBS="$LIBS $LIBICONV"
10002       fi
10003       am_cv_func_iconv_works=no
10004       for ac_iconv_const in '' 'const'; do
10005         if test "$cross_compiling" = yes
10006 then :
10007   case "$host_os" in
10008              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10009              *)            am_cv_func_iconv_works="guessing yes" ;;
10010            esac
10011 else $as_nop
10012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h.  */
10014
10015 #include <iconv.h>
10016 #include <string.h>
10017
10018 #ifndef ICONV_CONST
10019 # define ICONV_CONST $ac_iconv_const
10020 #endif
10021
10022 int
10023 main (void)
10024 {
10025 int result = 0;
10026   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10027      returns.  */
10028   {
10029     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10030     if (cd_utf8_to_88591 != (iconv_t)(-1))
10031       {
10032         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10033         char buf[10];
10034         ICONV_CONST char *inptr = input;
10035         size_t inbytesleft = strlen (input);
10036         char *outptr = buf;
10037         size_t outbytesleft = sizeof (buf);
10038         size_t res = iconv (cd_utf8_to_88591,
10039                             &inptr, &inbytesleft,
10040                             &outptr, &outbytesleft);
10041         if (res == 0)
10042           result |= 1;
10043         iconv_close (cd_utf8_to_88591);
10044       }
10045   }
10046   /* Test against Solaris 10 bug: Failures are not distinguishable from
10047      successful returns.  */
10048   {
10049     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10050     if (cd_ascii_to_88591 != (iconv_t)(-1))
10051       {
10052         static ICONV_CONST char input[] = "\263";
10053         char buf[10];
10054         ICONV_CONST char *inptr = input;
10055         size_t inbytesleft = strlen (input);
10056         char *outptr = buf;
10057         size_t outbytesleft = sizeof (buf);
10058         size_t res = iconv (cd_ascii_to_88591,
10059                             &inptr, &inbytesleft,
10060                             &outptr, &outbytesleft);
10061         if (res == 0)
10062           result |= 2;
10063         iconv_close (cd_ascii_to_88591);
10064       }
10065   }
10066   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10067   {
10068     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10069     if (cd_88591_to_utf8 != (iconv_t)(-1))
10070       {
10071         static ICONV_CONST char input[] = "\304";
10072         static char buf[2] = { (char)0xDE, (char)0xAD };
10073         ICONV_CONST char *inptr = input;
10074         size_t inbytesleft = 1;
10075         char *outptr = buf;
10076         size_t outbytesleft = 1;
10077         size_t res = iconv (cd_88591_to_utf8,
10078                             &inptr, &inbytesleft,
10079                             &outptr, &outbytesleft);
10080         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10081           result |= 4;
10082         iconv_close (cd_88591_to_utf8);
10083       }
10084   }
10085 #if 0 /* This bug could be worked around by the caller.  */
10086   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10087   {
10088     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10089     if (cd_88591_to_utf8 != (iconv_t)(-1))
10090       {
10091         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10092         char buf[50];
10093         ICONV_CONST char *inptr = input;
10094         size_t inbytesleft = strlen (input);
10095         char *outptr = buf;
10096         size_t outbytesleft = sizeof (buf);
10097         size_t res = iconv (cd_88591_to_utf8,
10098                             &inptr, &inbytesleft,
10099                             &outptr, &outbytesleft);
10100         if ((int)res > 0)
10101           result |= 8;
10102         iconv_close (cd_88591_to_utf8);
10103       }
10104   }
10105 #endif
10106   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10107      provided.  */
10108   {
10109     /* Try standardized names.  */
10110     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10111     /* Try IRIX, OSF/1 names.  */
10112     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10113     /* Try AIX names.  */
10114     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10115     /* Try HP-UX names.  */
10116     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10117     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10118         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10119       result |= 16;
10120     if (cd1 != (iconv_t)(-1))
10121       iconv_close (cd1);
10122     if (cd2 != (iconv_t)(-1))
10123       iconv_close (cd2);
10124     if (cd3 != (iconv_t)(-1))
10125       iconv_close (cd3);
10126     if (cd4 != (iconv_t)(-1))
10127       iconv_close (cd4);
10128   }
10129   return result;
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 if ac_fn_c_try_run "$LINENO"
10136 then :
10137   am_cv_func_iconv_works=yes
10138 fi
10139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10140   conftest.$ac_objext conftest.beam conftest.$ac_ext
10141 fi
10142
10143         test "$am_cv_func_iconv_works" = no || break
10144       done
10145       LIBS="$am_save_LIBS"
10146
10147 fi
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10149 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10150     case "$am_cv_func_iconv_works" in
10151       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10152       *)   am_func_iconv=yes ;;
10153     esac
10154   else
10155     am_func_iconv=no am_cv_lib_iconv=no
10156   fi
10157   if test "$am_func_iconv" = yes; then
10158
10159 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10160
10161   fi
10162   if test "$am_cv_lib_iconv" = yes; then
10163     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10164 printf %s "checking how to link with libiconv... " >&6; }
10165     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10166 printf "%s\n" "$LIBICONV" >&6; }
10167   else
10168             CPPFLAGS="$am_save_CPPFLAGS"
10169     LIBICONV=
10170     LTLIBICONV=
10171   fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182     use_additional=yes
10183
10184   acl_save_prefix="$prefix"
10185   prefix="$acl_final_prefix"
10186   acl_save_exec_prefix="$exec_prefix"
10187   exec_prefix="$acl_final_exec_prefix"
10188
10189     eval additional_includedir=\"$includedir\"
10190     eval additional_libdir=\"$libdir\"
10191     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10192     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10193
10194   exec_prefix="$acl_save_exec_prefix"
10195   prefix="$acl_save_prefix"
10196
10197
10198 # Check whether --with-libintl-prefix was given.
10199 if test ${with_libintl_prefix+y}
10200 then :
10201   withval=$with_libintl_prefix;
10202     if test "X$withval" = "Xno"; then
10203       use_additional=no
10204     else
10205       if test "X$withval" = "X"; then
10206
10207   acl_save_prefix="$prefix"
10208   prefix="$acl_final_prefix"
10209   acl_save_exec_prefix="$exec_prefix"
10210   exec_prefix="$acl_final_exec_prefix"
10211
10212           eval additional_includedir=\"$includedir\"
10213           eval additional_libdir=\"$libdir\"
10214           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10215           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10216
10217   exec_prefix="$acl_save_exec_prefix"
10218   prefix="$acl_save_prefix"
10219
10220       else
10221         additional_includedir="$withval/include"
10222         additional_libdir="$withval/$acl_libdirstem"
10223         additional_libdir2="$withval/$acl_libdirstem2"
10224         additional_libdir3="$withval/$acl_libdirstem3"
10225       fi
10226     fi
10227
10228 fi
10229
10230   if test "X$additional_libdir2" = "X$additional_libdir"; then
10231     additional_libdir2=
10232   fi
10233   if test "X$additional_libdir3" = "X$additional_libdir"; then
10234     additional_libdir3=
10235   fi
10236       LIBINTL=
10237   LTLIBINTL=
10238   INCINTL=
10239   LIBINTL_PREFIX=
10240       HAVE_LIBINTL=
10241   rpathdirs=
10242   ltrpathdirs=
10243   names_already_handled=
10244   names_next_round='intl '
10245   while test -n "$names_next_round"; do
10246     names_this_round="$names_next_round"
10247     names_next_round=
10248     for name in $names_this_round; do
10249       already_handled=
10250       for n in $names_already_handled; do
10251         if test "$n" = "$name"; then
10252           already_handled=yes
10253           break
10254         fi
10255       done
10256       if test -z "$already_handled"; then
10257         names_already_handled="$names_already_handled $name"
10258                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10259         eval value=\"\$HAVE_LIB$uppername\"
10260         if test -n "$value"; then
10261           if test "$value" = yes; then
10262             eval value=\"\$LIB$uppername\"
10263             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10264             eval value=\"\$LTLIB$uppername\"
10265             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10266           else
10267                                     :
10268           fi
10269         else
10270                               found_dir=
10271           found_la=
10272           found_so=
10273           found_a=
10274           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10275           if test -n "$acl_shlibext"; then
10276             shrext=".$acl_shlibext"             # typically: shrext=.so
10277           else
10278             shrext=
10279           fi
10280           if test $use_additional = yes; then
10281             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10282               if test "X$found_dir" = "X"; then
10283                 eval dir=\$$additional_libdir_variable
10284                 if test -n "$dir"; then
10285                                                       if test -n "$acl_shlibext"; then
10286                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10287                       found_dir="$dir"
10288                       found_so="$dir/$libname$shrext"
10289                     else
10290                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10291                         ver=`(cd "$dir" && \
10292                               for f in "$libname$shrext".*; do echo "$f"; done \
10293                               | sed -e "s,^$libname$shrext\\\\.,," \
10294                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10295                               | sed 1q ) 2>/dev/null`
10296                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10297                           found_dir="$dir"
10298                           found_so="$dir/$libname$shrext.$ver"
10299                         fi
10300                       else
10301                         eval library_names=\"$acl_library_names_spec\"
10302                         for f in $library_names; do
10303                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10304                             found_dir="$dir"
10305                             found_so="$dir/$f"
10306                             break
10307                           fi
10308                         done
10309                       fi
10310                     fi
10311                   fi
10312                                     if test "X$found_dir" = "X"; then
10313                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10314                       found_dir="$dir"
10315                       found_a="$dir/$libname.$acl_libext"
10316                     fi
10317                   fi
10318                   if test "X$found_dir" != "X"; then
10319                     if test -f "$dir/$libname.la"; then
10320                       found_la="$dir/$libname.la"
10321                     fi
10322                   fi
10323                 fi
10324               fi
10325             done
10326           fi
10327           if test "X$found_dir" = "X"; then
10328             for x in $LDFLAGS $LTLIBINTL; do
10329
10330   acl_save_prefix="$prefix"
10331   prefix="$acl_final_prefix"
10332   acl_save_exec_prefix="$exec_prefix"
10333   exec_prefix="$acl_final_exec_prefix"
10334   eval x=\"$x\"
10335   exec_prefix="$acl_save_exec_prefix"
10336   prefix="$acl_save_prefix"
10337
10338               case "$x" in
10339                 -L*)
10340                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10341                                     if test -n "$acl_shlibext"; then
10342                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10343                       found_dir="$dir"
10344                       found_so="$dir/$libname$shrext"
10345                     else
10346                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10347                         ver=`(cd "$dir" && \
10348                               for f in "$libname$shrext".*; do echo "$f"; done \
10349                               | sed -e "s,^$libname$shrext\\\\.,," \
10350                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10351                               | sed 1q ) 2>/dev/null`
10352                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10353                           found_dir="$dir"
10354                           found_so="$dir/$libname$shrext.$ver"
10355                         fi
10356                       else
10357                         eval library_names=\"$acl_library_names_spec\"
10358                         for f in $library_names; do
10359                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10360                             found_dir="$dir"
10361                             found_so="$dir/$f"
10362                             break
10363                           fi
10364                         done
10365                       fi
10366                     fi
10367                   fi
10368                                     if test "X$found_dir" = "X"; then
10369                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10370                       found_dir="$dir"
10371                       found_a="$dir/$libname.$acl_libext"
10372                     fi
10373                   fi
10374                   if test "X$found_dir" != "X"; then
10375                     if test -f "$dir/$libname.la"; then
10376                       found_la="$dir/$libname.la"
10377                     fi
10378                   fi
10379                   ;;
10380               esac
10381               if test "X$found_dir" != "X"; then
10382                 break
10383               fi
10384             done
10385           fi
10386           if test "X$found_dir" != "X"; then
10387                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10388             if test "X$found_so" != "X"; then
10389                                                         if test "$enable_rpath" = no \
10390                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10391                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10392                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10393                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10394               else
10395                                                                                 haveit=
10396                 for x in $ltrpathdirs; do
10397                   if test "X$x" = "X$found_dir"; then
10398                     haveit=yes
10399                     break
10400                   fi
10401                 done
10402                 if test -z "$haveit"; then
10403                   ltrpathdirs="$ltrpathdirs $found_dir"
10404                 fi
10405                                 if test "$acl_hardcode_direct" = yes; then
10406                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10407                 else
10408                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10409                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10410                                                             haveit=
10411                     for x in $rpathdirs; do
10412                       if test "X$x" = "X$found_dir"; then
10413                         haveit=yes
10414                         break
10415                       fi
10416                     done
10417                     if test -z "$haveit"; then
10418                       rpathdirs="$rpathdirs $found_dir"
10419                     fi
10420                   else
10421                                                                                 haveit=
10422                     for x in $LDFLAGS $LIBINTL; do
10423
10424   acl_save_prefix="$prefix"
10425   prefix="$acl_final_prefix"
10426   acl_save_exec_prefix="$exec_prefix"
10427   exec_prefix="$acl_final_exec_prefix"
10428   eval x=\"$x\"
10429   exec_prefix="$acl_save_exec_prefix"
10430   prefix="$acl_save_prefix"
10431
10432                       if test "X$x" = "X-L$found_dir"; then
10433                         haveit=yes
10434                         break
10435                       fi
10436                     done
10437                     if test -z "$haveit"; then
10438                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10439                     fi
10440                     if test "$acl_hardcode_minus_L" != no; then
10441                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10442                     else
10443                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10444                     fi
10445                   fi
10446                 fi
10447               fi
10448             else
10449               if test "X$found_a" != "X"; then
10450                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10451               else
10452                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10453               fi
10454             fi
10455                         additional_includedir=
10456             case "$found_dir" in
10457               */$acl_libdirstem | */$acl_libdirstem/)
10458                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10459                 if test "$name" = 'intl'; then
10460                   LIBINTL_PREFIX="$basedir"
10461                 fi
10462                 additional_includedir="$basedir/include"
10463                 ;;
10464               */$acl_libdirstem2 | */$acl_libdirstem2/)
10465                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10466                 if test "$name" = 'intl'; then
10467                   LIBINTL_PREFIX="$basedir"
10468                 fi
10469                 additional_includedir="$basedir/include"
10470                 ;;
10471               */$acl_libdirstem3 | */$acl_libdirstem3/)
10472                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10473                 if test "$name" = 'intl'; then
10474                   LIBINTL_PREFIX="$basedir"
10475                 fi
10476                 additional_includedir="$basedir/include"
10477                 ;;
10478             esac
10479             if test "X$additional_includedir" != "X"; then
10480                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10481                 haveit=
10482                 if test "X$additional_includedir" = "X/usr/local/include"; then
10483                   if test -n "$GCC"; then
10484                     case $host_os in
10485                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10486                     esac
10487                   fi
10488                 fi
10489                 if test -z "$haveit"; then
10490                   for x in $CPPFLAGS $INCINTL; do
10491
10492   acl_save_prefix="$prefix"
10493   prefix="$acl_final_prefix"
10494   acl_save_exec_prefix="$exec_prefix"
10495   exec_prefix="$acl_final_exec_prefix"
10496   eval x=\"$x\"
10497   exec_prefix="$acl_save_exec_prefix"
10498   prefix="$acl_save_prefix"
10499
10500                     if test "X$x" = "X-I$additional_includedir"; then
10501                       haveit=yes
10502                       break
10503                     fi
10504                   done
10505                   if test -z "$haveit"; then
10506                     if test -d "$additional_includedir"; then
10507                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10508                     fi
10509                   fi
10510                 fi
10511               fi
10512             fi
10513                         if test -n "$found_la"; then
10514                                                         save_libdir="$libdir"
10515               case "$found_la" in
10516                 */* | *\\*) . "$found_la" ;;
10517                 *) . "./$found_la" ;;
10518               esac
10519               libdir="$save_libdir"
10520                             for dep in $dependency_libs; do
10521                 case "$dep" in
10522                   -L*)
10523                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10524                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10525                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10526                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10527                       haveit=
10528                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10529                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10530                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10531                         if test -n "$GCC"; then
10532                           case $host_os in
10533                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10534                           esac
10535                         fi
10536                       fi
10537                       if test -z "$haveit"; then
10538                         haveit=
10539                         for x in $LDFLAGS $LIBINTL; do
10540
10541   acl_save_prefix="$prefix"
10542   prefix="$acl_final_prefix"
10543   acl_save_exec_prefix="$exec_prefix"
10544   exec_prefix="$acl_final_exec_prefix"
10545   eval x=\"$x\"
10546   exec_prefix="$acl_save_exec_prefix"
10547   prefix="$acl_save_prefix"
10548
10549                           if test "X$x" = "X-L$dependency_libdir"; then
10550                             haveit=yes
10551                             break
10552                           fi
10553                         done
10554                         if test -z "$haveit"; then
10555                           if test -d "$dependency_libdir"; then
10556                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10557                           fi
10558                         fi
10559                         haveit=
10560                         for x in $LDFLAGS $LTLIBINTL; do
10561
10562   acl_save_prefix="$prefix"
10563   prefix="$acl_final_prefix"
10564   acl_save_exec_prefix="$exec_prefix"
10565   exec_prefix="$acl_final_exec_prefix"
10566   eval x=\"$x\"
10567   exec_prefix="$acl_save_exec_prefix"
10568   prefix="$acl_save_prefix"
10569
10570                           if test "X$x" = "X-L$dependency_libdir"; then
10571                             haveit=yes
10572                             break
10573                           fi
10574                         done
10575                         if test -z "$haveit"; then
10576                           if test -d "$dependency_libdir"; then
10577                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10578                           fi
10579                         fi
10580                       fi
10581                     fi
10582                     ;;
10583                   -R*)
10584                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10585                     if test "$enable_rpath" != no; then
10586                                                                   haveit=
10587                       for x in $rpathdirs; do
10588                         if test "X$x" = "X$dir"; then
10589                           haveit=yes
10590                           break
10591                         fi
10592                       done
10593                       if test -z "$haveit"; then
10594                         rpathdirs="$rpathdirs $dir"
10595                       fi
10596                                                                   haveit=
10597                       for x in $ltrpathdirs; do
10598                         if test "X$x" = "X$dir"; then
10599                           haveit=yes
10600                           break
10601                         fi
10602                       done
10603                       if test -z "$haveit"; then
10604                         ltrpathdirs="$ltrpathdirs $dir"
10605                       fi
10606                     fi
10607                     ;;
10608                   -l*)
10609                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10610                     ;;
10611                   *.la)
10612                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10613                     ;;
10614                   *)
10615                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10616                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10617                     ;;
10618                 esac
10619               done
10620             fi
10621           else
10622                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10623             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10624           fi
10625         fi
10626       fi
10627     done
10628   done
10629   if test "X$rpathdirs" != "X"; then
10630     if test -n "$acl_hardcode_libdir_separator"; then
10631                         alldirs=
10632       for found_dir in $rpathdirs; do
10633         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10634       done
10635             acl_save_libdir="$libdir"
10636       libdir="$alldirs"
10637       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10638       libdir="$acl_save_libdir"
10639       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10640     else
10641             for found_dir in $rpathdirs; do
10642         acl_save_libdir="$libdir"
10643         libdir="$found_dir"
10644         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10645         libdir="$acl_save_libdir"
10646         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10647       done
10648     fi
10649   fi
10650   if test "X$ltrpathdirs" != "X"; then
10651             for found_dir in $ltrpathdirs; do
10652       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10653     done
10654   fi
10655
10656
10657
10658
10659
10660           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10661 printf %s "checking for GNU gettext in libintl... " >&6; }
10662 if eval test \${$gt_func_gnugettext_libintl+y}
10663 then :
10664   printf %s "(cached) " >&6
10665 else $as_nop
10666   gt_save_CPPFLAGS="$CPPFLAGS"
10667             CPPFLAGS="$CPPFLAGS $INCINTL"
10668             gt_save_LIBS="$LIBS"
10669             LIBS="$LIBS $LIBINTL"
10670                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h.  */
10672
10673 #include <libintl.h>
10674 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10675 extern int _nl_msg_cat_cntr;
10676 extern
10677 #ifdef __cplusplus
10678 "C"
10679 #endif
10680 const char *_nl_expand_alias (const char *);
10681 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10682 #else
10683 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10684 #endif
10685 $gt_revision_test_code
10686
10687 int
10688 main (void)
10689 {
10690
10691 bindtextdomain ("", "");
10692 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10693
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"
10699 then :
10700   eval "$gt_func_gnugettext_libintl=yes"
10701 else $as_nop
10702   eval "$gt_func_gnugettext_libintl=no"
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705     conftest$ac_exeext conftest.$ac_ext
10706                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10707               LIBS="$LIBS $LIBICONV"
10708               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710
10711 #include <libintl.h>
10712 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10713 extern int _nl_msg_cat_cntr;
10714 extern
10715 #ifdef __cplusplus
10716 "C"
10717 #endif
10718 const char *_nl_expand_alias (const char *);
10719 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10720 #else
10721 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10722 #endif
10723 $gt_revision_test_code
10724
10725 int
10726 main (void)
10727 {
10728
10729 bindtextdomain ("", "");
10730 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10731
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"
10737 then :
10738   LIBINTL="$LIBINTL $LIBICONV"
10739                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10740                  eval "$gt_func_gnugettext_libintl=yes"
10741
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10744     conftest$ac_exeext conftest.$ac_ext
10745             fi
10746             CPPFLAGS="$gt_save_CPPFLAGS"
10747             LIBS="$gt_save_LIBS"
10748 fi
10749 eval ac_res=\$$gt_func_gnugettext_libintl
10750                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10751 printf "%s\n" "$ac_res" >&6; }
10752         fi
10753
10754                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10755            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10756                 && test "$PACKAGE" != gettext-runtime \
10757                 && test "$PACKAGE" != gettext-tools; }; then
10758           gt_use_preinstalled_gnugettext=yes
10759         else
10760                     LIBINTL=
10761           LTLIBINTL=
10762           INCINTL=
10763         fi
10764
10765
10766
10767     if test -n "$INTL_MACOSX_LIBS"; then
10768       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10769          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10771         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10772       fi
10773     fi
10774
10775     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10776        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10777
10778 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10779
10780     else
10781       USE_NLS=no
10782     fi
10783   fi
10784
10785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10786 printf %s "checking whether to use NLS... " >&6; }
10787   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10788 printf "%s\n" "$USE_NLS" >&6; }
10789   if test "$USE_NLS" = "yes"; then
10790     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10791 printf %s "checking where the gettext function comes from... " >&6; }
10792     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10793       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10794         gt_source="external libintl"
10795       else
10796         gt_source="libc"
10797       fi
10798     else
10799       gt_source="included intl directory"
10800     fi
10801     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10802 printf "%s\n" "$gt_source" >&6; }
10803   fi
10804
10805   if test "$USE_NLS" = "yes"; then
10806
10807     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10808       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10809         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10810 printf %s "checking how to link with libintl... " >&6; }
10811         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10812 printf "%s\n" "$LIBINTL" >&6; }
10813
10814   for element in $INCINTL; do
10815     haveit=
10816     for x in $CPPFLAGS; do
10817
10818   acl_save_prefix="$prefix"
10819   prefix="$acl_final_prefix"
10820   acl_save_exec_prefix="$exec_prefix"
10821   exec_prefix="$acl_final_exec_prefix"
10822   eval x=\"$x\"
10823   exec_prefix="$acl_save_exec_prefix"
10824   prefix="$acl_save_prefix"
10825
10826       if test "X$x" = "X$element"; then
10827         haveit=yes
10828         break
10829       fi
10830     done
10831     if test -z "$haveit"; then
10832       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10833     fi
10834   done
10835
10836       fi
10837
10838
10839 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10840
10841
10842 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10843
10844     fi
10845
10846         POSUB=po
10847   fi
10848
10849
10850
10851     INTLLIBS="$LIBINTL"
10852
10853
10854
10855
10856
10857
10858
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10860 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10861 set x ${MAKE-make}
10862 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10863 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10864 then :
10865   printf %s "(cached) " >&6
10866 else $as_nop
10867   cat >conftest.make <<\_ACEOF
10868 SHELL = /bin/sh
10869 all:
10870         @echo '@@@%%%=$(MAKE)=@@@%%%'
10871 _ACEOF
10872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10874   *@@@%%%=?*=@@@%%%*)
10875     eval ac_cv_prog_make_${ac_make}_set=yes;;
10876   *)
10877     eval ac_cv_prog_make_${ac_make}_set=no;;
10878 esac
10879 rm -f conftest.make
10880 fi
10881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10883 printf "%s\n" "yes" >&6; }
10884   SET_MAKE=
10885 else
10886   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 printf "%s\n" "no" >&6; }
10888   SET_MAKE="MAKE=${MAKE-make}"
10889 fi
10890
10891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10892 printf %s "checking for GNU make... " >&6; }
10893 if test ${_cv_gnu_make_command+y}
10894 then :
10895   printf %s "(cached) " >&6
10896 else $as_nop
10897   _cv_gnu_make_command='' ;
10898                 if test -n "$FORCE_NATIVE_MAKE" ; then
10899                    MAKES="make"
10900                 else
10901                    MAKES="make gmake gnumake"
10902                 fi
10903                 for a in "$MAKE" $MAKES ; do
10904                         if test -z "$a" ; then continue ; fi ;
10905                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10906                                 _cv_gnu_make_command=$a ;
10907                                 break;
10908                         fi
10909                 done ;
10910
10911 fi
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10913 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10914         if test  "x$_cv_gnu_make_command" != "x"  ; then
10915                 ifGNUmake='' ;
10916                 ifNotGNUmake='#' ;
10917         else
10918                 ifGNUmake='#' ;
10919                 ifNotGNUmake='' ;
10920                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10921 printf "%s\n" "\"Not found\"" >&6; };
10922         fi
10923
10924
10925
10926 # Extract the first word of "ln", so it can be a program name with args.
10927 set dummy ln; ac_word=$2
10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 printf %s "checking for $ac_word... " >&6; }
10930 if test ${ac_cv_path_LN+y}
10931 then :
10932   printf %s "(cached) " >&6
10933 else $as_nop
10934   case $LN in
10935   [\\/]* | ?:[\\/]*)
10936   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10937   ;;
10938   *)
10939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10941 do
10942   IFS=$as_save_IFS
10943   case $as_dir in #(((
10944     '') as_dir=./ ;;
10945     */) ;;
10946     *) as_dir=$as_dir/ ;;
10947   esac
10948     for ac_exec_ext in '' $ac_executable_extensions; do
10949   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10950     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10951     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10952     break 2
10953   fi
10954 done
10955   done
10956 IFS=$as_save_IFS
10957
10958   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10959   ;;
10960 esac
10961 fi
10962 LN=$ac_cv_path_LN
10963 if test -n "$LN"; then
10964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10965 printf "%s\n" "$LN" >&6; }
10966 else
10967   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 printf "%s\n" "no" >&6; }
10969 fi
10970
10971
10972
10973 mkdir_p=$MKDIR_P
10974
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10976 printf %s "checking whether ln -s works... " >&6; }
10977 LN_S=$as_ln_s
10978 if test "$LN_S" = "ln -s"; then
10979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 printf "%s\n" "yes" >&6; }
10981 else
10982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10983 printf "%s\n" "no, using $LN_S" >&6; }
10984 fi
10985
10986 # Extract the first word of "mv", so it can be a program name with args.
10987 set dummy mv; ac_word=$2
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 printf %s "checking for $ac_word... " >&6; }
10990 if test ${ac_cv_path_MV+y}
10991 then :
10992   printf %s "(cached) " >&6
10993 else $as_nop
10994   case $MV in
10995   [\\/]* | ?:[\\/]*)
10996   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10997   ;;
10998   *)
10999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11001 do
11002   IFS=$as_save_IFS
11003   case $as_dir in #(((
11004     '') as_dir=./ ;;
11005     */) ;;
11006     *) as_dir=$as_dir/ ;;
11007   esac
11008     for ac_exec_ext in '' $ac_executable_extensions; do
11009   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11010     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11011     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11012     break 2
11013   fi
11014 done
11015   done
11016 IFS=$as_save_IFS
11017
11018   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11019   ;;
11020 esac
11021 fi
11022 MV=$ac_cv_path_MV
11023 if test -n "$MV"; then
11024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11025 printf "%s\n" "$MV" >&6; }
11026 else
11027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 printf "%s\n" "no" >&6; }
11029 fi
11030
11031
11032 # Extract the first word of "cp", so it can be a program name with args.
11033 set dummy cp; ac_word=$2
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035 printf %s "checking for $ac_word... " >&6; }
11036 if test ${ac_cv_path_CP+y}
11037 then :
11038   printf %s "(cached) " >&6
11039 else $as_nop
11040   case $CP in
11041   [\\/]* | ?:[\\/]*)
11042   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11043   ;;
11044   *)
11045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048   IFS=$as_save_IFS
11049   case $as_dir in #(((
11050     '') as_dir=./ ;;
11051     */) ;;
11052     *) as_dir=$as_dir/ ;;
11053   esac
11054     for ac_exec_ext in '' $ac_executable_extensions; do
11055   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11056     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11057     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11058     break 2
11059   fi
11060 done
11061   done
11062 IFS=$as_save_IFS
11063
11064   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11065   ;;
11066 esac
11067 fi
11068 CP=$ac_cv_path_CP
11069 if test -n "$CP"; then
11070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11071 printf "%s\n" "$CP" >&6; }
11072 else
11073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 printf "%s\n" "no" >&6; }
11075 fi
11076
11077
11078 # Extract the first word of "rm", so it can be a program name with args.
11079 set dummy rm; ac_word=$2
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 printf %s "checking for $ac_word... " >&6; }
11082 if test ${ac_cv_path_RM+y}
11083 then :
11084   printf %s "(cached) " >&6
11085 else $as_nop
11086   case $RM in
11087   [\\/]* | ?:[\\/]*)
11088   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11089   ;;
11090   *)
11091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094   IFS=$as_save_IFS
11095   case $as_dir in #(((
11096     '') as_dir=./ ;;
11097     */) ;;
11098     *) as_dir=$as_dir/ ;;
11099   esac
11100     for ac_exec_ext in '' $ac_executable_extensions; do
11101   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11102     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11103     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11104     break 2
11105   fi
11106 done
11107   done
11108 IFS=$as_save_IFS
11109
11110   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11111   ;;
11112 esac
11113 fi
11114 RM=$ac_cv_path_RM
11115 if test -n "$RM"; then
11116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11117 printf "%s\n" "$RM" >&6; }
11118 else
11119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 printf "%s\n" "no" >&6; }
11121 fi
11122
11123
11124 # Extract the first word of "chmod", so it can be a program name with args.
11125 set dummy chmod; ac_word=$2
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 printf %s "checking for $ac_word... " >&6; }
11128 if test ${ac_cv_path_CHMOD+y}
11129 then :
11130   printf %s "(cached) " >&6
11131 else $as_nop
11132   case $CHMOD in
11133   [\\/]* | ?:[\\/]*)
11134   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11135   ;;
11136   *)
11137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140   IFS=$as_save_IFS
11141   case $as_dir in #(((
11142     '') as_dir=./ ;;
11143     */) ;;
11144     *) as_dir=$as_dir/ ;;
11145   esac
11146     for ac_exec_ext in '' $ac_executable_extensions; do
11147   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11148     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11149     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11150     break 2
11151   fi
11152 done
11153   done
11154 IFS=$as_save_IFS
11155
11156   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11157   ;;
11158 esac
11159 fi
11160 CHMOD=$ac_cv_path_CHMOD
11161 if test -n "$CHMOD"; then
11162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11163 printf "%s\n" "$CHMOD" >&6; }
11164 else
11165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 printf "%s\n" "no" >&6; }
11167 fi
11168
11169
11170 for ac_prog in gawk mawk nawk awk
11171 do
11172   # Extract the first word of "$ac_prog", so it can be a program name with args.
11173 set dummy $ac_prog; ac_word=$2
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 printf %s "checking for $ac_word... " >&6; }
11176 if test ${ac_cv_prog_AWK+y}
11177 then :
11178   printf %s "(cached) " >&6
11179 else $as_nop
11180   if test -n "$AWK"; then
11181   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11182 else
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186   IFS=$as_save_IFS
11187   case $as_dir in #(((
11188     '') as_dir=./ ;;
11189     */) ;;
11190     *) as_dir=$as_dir/ ;;
11191   esac
11192     for ac_exec_ext in '' $ac_executable_extensions; do
11193   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11194     ac_cv_prog_AWK="$ac_prog"
11195     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11196     break 2
11197   fi
11198 done
11199   done
11200 IFS=$as_save_IFS
11201
11202 fi
11203 fi
11204 AWK=$ac_cv_prog_AWK
11205 if test -n "$AWK"; then
11206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11207 printf "%s\n" "$AWK" >&6; }
11208 else
11209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 printf "%s\n" "no" >&6; }
11211 fi
11212
11213
11214   test -n "$AWK" && break
11215 done
11216
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11218 printf %s "checking for egrep... " >&6; }
11219 if test ${ac_cv_path_EGREP+y}
11220 then :
11221   printf %s "(cached) " >&6
11222 else $as_nop
11223   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11224    then ac_cv_path_EGREP="$GREP -E"
11225    else
11226      if test -z "$EGREP"; then
11227   ac_path_EGREP_found=false
11228   # Loop through the user's path and test for each of PROGNAME-LIST
11229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11231 do
11232   IFS=$as_save_IFS
11233   case $as_dir in #(((
11234     '') as_dir=./ ;;
11235     */) ;;
11236     *) as_dir=$as_dir/ ;;
11237   esac
11238     for ac_prog in egrep
11239    do
11240     for ac_exec_ext in '' $ac_executable_extensions; do
11241       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11242       as_fn_executable_p "$ac_path_EGREP" || continue
11243 # Check for GNU ac_path_EGREP and select it if it is found.
11244   # Check for GNU $ac_path_EGREP
11245 case `"$ac_path_EGREP" --version 2>&1` in
11246 *GNU*)
11247   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11248 *)
11249   ac_count=0
11250   printf %s 0123456789 >"conftest.in"
11251   while :
11252   do
11253     cat "conftest.in" "conftest.in" >"conftest.tmp"
11254     mv "conftest.tmp" "conftest.in"
11255     cp "conftest.in" "conftest.nl"
11256     printf "%s\n" 'EGREP' >> "conftest.nl"
11257     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11258     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11259     as_fn_arith $ac_count + 1 && ac_count=$as_val
11260     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11261       # Best one so far, save it but keep looking for a better one
11262       ac_cv_path_EGREP="$ac_path_EGREP"
11263       ac_path_EGREP_max=$ac_count
11264     fi
11265     # 10*(2^10) chars as input seems more than enough
11266     test $ac_count -gt 10 && break
11267   done
11268   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11269 esac
11270
11271       $ac_path_EGREP_found && break 3
11272     done
11273   done
11274   done
11275 IFS=$as_save_IFS
11276   if test -z "$ac_cv_path_EGREP"; then
11277     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11278   fi
11279 else
11280   ac_cv_path_EGREP=$EGREP
11281 fi
11282
11283    fi
11284 fi
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11286 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11287  EGREP="$ac_cv_path_EGREP"
11288
11289
11290 # Extract the first word of "sed", so it can be a program name with args.
11291 set dummy sed; ac_word=$2
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 printf %s "checking for $ac_word... " >&6; }
11294 if test ${ac_cv_path_SED+y}
11295 then :
11296   printf %s "(cached) " >&6
11297 else $as_nop
11298   case $SED in
11299   [\\/]* | ?:[\\/]*)
11300   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11301   ;;
11302   *)
11303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306   IFS=$as_save_IFS
11307   case $as_dir in #(((
11308     '') as_dir=./ ;;
11309     */) ;;
11310     *) as_dir=$as_dir/ ;;
11311   esac
11312     for ac_exec_ext in '' $ac_executable_extensions; do
11313   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11314     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11315     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319   done
11320 IFS=$as_save_IFS
11321
11322   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11323   ;;
11324 esac
11325 fi
11326 SED=$ac_cv_path_SED
11327 if test -n "$SED"; then
11328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11329 printf "%s\n" "$SED" >&6; }
11330 else
11331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 printf "%s\n" "no" >&6; }
11333 fi
11334
11335
11336 # Extract the first word of "perl", so it can be a program name with args.
11337 set dummy perl; ac_word=$2
11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339 printf %s "checking for $ac_word... " >&6; }
11340 if test ${ac_cv_path_PERL+y}
11341 then :
11342   printf %s "(cached) " >&6
11343 else $as_nop
11344   case $PERL in
11345   [\\/]* | ?:[\\/]*)
11346   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11347   ;;
11348   *)
11349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   case $as_dir in #(((
11354     '') as_dir=./ ;;
11355     */) ;;
11356     *) as_dir=$as_dir/ ;;
11357   esac
11358     for ac_exec_ext in '' $ac_executable_extensions; do
11359   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11360     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11361     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11362     break 2
11363   fi
11364 done
11365   done
11366 IFS=$as_save_IFS
11367
11368   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11369   ;;
11370 esac
11371 fi
11372 PERL=$ac_cv_path_PERL
11373 if test -n "$PERL"; then
11374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11375 printf "%s\n" "$PERL" >&6; }
11376 else
11377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 printf "%s\n" "no" >&6; }
11379 fi
11380
11381
11382 # Extract the first word of "ldconfig", so it can be a program name with args.
11383 set dummy ldconfig; ac_word=$2
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 printf %s "checking for $ac_word... " >&6; }
11386 if test ${ac_cv_path_LDCONFIG+y}
11387 then :
11388   printf %s "(cached) " >&6
11389 else $as_nop
11390   case $LDCONFIG in
11391   [\\/]* | ?:[\\/]*)
11392   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11393   ;;
11394   *)
11395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11397 do
11398   IFS=$as_save_IFS
11399   case $as_dir in #(((
11400     '') as_dir=./ ;;
11401     */) ;;
11402     *) as_dir=$as_dir/ ;;
11403   esac
11404     for ac_exec_ext in '' $ac_executable_extensions; do
11405   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11406     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11407     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11408     break 2
11409   fi
11410 done
11411   done
11412 IFS=$as_save_IFS
11413
11414   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11415   ;;
11416 esac
11417 fi
11418 LDCONFIG=$ac_cv_path_LDCONFIG
11419 if test -n "$LDCONFIG"; then
11420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11421 printf "%s\n" "$LDCONFIG" >&6; }
11422 else
11423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 printf "%s\n" "no" >&6; }
11425 fi
11426
11427
11428 if test -n "$ac_tool_prefix"; then
11429   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}ar; ac_word=$2
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 printf %s "checking for $ac_word... " >&6; }
11433 if test ${ac_cv_prog_AR+y}
11434 then :
11435   printf %s "(cached) " >&6
11436 else $as_nop
11437   if test -n "$AR"; then
11438   ac_cv_prog_AR="$AR" # Let the user override the test.
11439 else
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11442 do
11443   IFS=$as_save_IFS
11444   case $as_dir in #(((
11445     '') as_dir=./ ;;
11446     */) ;;
11447     *) as_dir=$as_dir/ ;;
11448   esac
11449     for ac_exec_ext in '' $ac_executable_extensions; do
11450   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11451     ac_cv_prog_AR="${ac_tool_prefix}ar"
11452     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11453     break 2
11454   fi
11455 done
11456   done
11457 IFS=$as_save_IFS
11458
11459 fi
11460 fi
11461 AR=$ac_cv_prog_AR
11462 if test -n "$AR"; then
11463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11464 printf "%s\n" "$AR" >&6; }
11465 else
11466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 printf "%s\n" "no" >&6; }
11468 fi
11469
11470
11471 fi
11472 if test -z "$ac_cv_prog_AR"; then
11473   ac_ct_AR=$AR
11474   # Extract the first word of "ar", so it can be a program name with args.
11475 set dummy ar; ac_word=$2
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 printf %s "checking for $ac_word... " >&6; }
11478 if test ${ac_cv_prog_ac_ct_AR+y}
11479 then :
11480   printf %s "(cached) " >&6
11481 else $as_nop
11482   if test -n "$ac_ct_AR"; then
11483   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488   IFS=$as_save_IFS
11489   case $as_dir in #(((
11490     '') as_dir=./ ;;
11491     */) ;;
11492     *) as_dir=$as_dir/ ;;
11493   esac
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11496     ac_cv_prog_ac_ct_AR="ar"
11497     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11507 if test -n "$ac_ct_AR"; then
11508   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11509 printf "%s\n" "$ac_ct_AR" >&6; }
11510 else
11511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 printf "%s\n" "no" >&6; }
11513 fi
11514
11515   if test "x$ac_ct_AR" = x; then
11516     AR="ar"
11517   else
11518     case $cross_compiling:$ac_tool_warned in
11519 yes:)
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11523 esac
11524     AR=$ac_ct_AR
11525   fi
11526 else
11527   AR="$ac_cv_prog_AR"
11528 fi
11529
11530 if test -n "$ac_tool_prefix"; then
11531   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 printf %s "checking for $ac_word... " >&6; }
11535 if test ${ac_cv_prog_RANLIB+y}
11536 then :
11537   printf %s "(cached) " >&6
11538 else $as_nop
11539   if test -n "$RANLIB"; then
11540   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545   IFS=$as_save_IFS
11546   case $as_dir in #(((
11547     '') as_dir=./ ;;
11548     */) ;;
11549     *) as_dir=$as_dir/ ;;
11550   esac
11551     for ac_exec_ext in '' $ac_executable_extensions; do
11552   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11553     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11554     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11555     break 2
11556   fi
11557 done
11558   done
11559 IFS=$as_save_IFS
11560
11561 fi
11562 fi
11563 RANLIB=$ac_cv_prog_RANLIB
11564 if test -n "$RANLIB"; then
11565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11566 printf "%s\n" "$RANLIB" >&6; }
11567 else
11568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 printf "%s\n" "no" >&6; }
11570 fi
11571
11572
11573 fi
11574 if test -z "$ac_cv_prog_RANLIB"; then
11575   ac_ct_RANLIB=$RANLIB
11576   # Extract the first word of "ranlib", so it can be a program name with args.
11577 set dummy ranlib; ac_word=$2
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 printf %s "checking for $ac_word... " >&6; }
11580 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11581 then :
11582   printf %s "(cached) " >&6
11583 else $as_nop
11584   if test -n "$ac_ct_RANLIB"; then
11585   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11589 do
11590   IFS=$as_save_IFS
11591   case $as_dir in #(((
11592     '') as_dir=./ ;;
11593     */) ;;
11594     *) as_dir=$as_dir/ ;;
11595   esac
11596     for ac_exec_ext in '' $ac_executable_extensions; do
11597   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11598     ac_cv_prog_ac_ct_RANLIB="ranlib"
11599     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603   done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11609 if test -n "$ac_ct_RANLIB"; then
11610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11611 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11612 else
11613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 printf "%s\n" "no" >&6; }
11615 fi
11616
11617   if test "x$ac_ct_RANLIB" = x; then
11618     RANLIB=":"
11619   else
11620     case $cross_compiling:$ac_tool_warned in
11621 yes:)
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11624 ac_tool_warned=yes ;;
11625 esac
11626     RANLIB=$ac_ct_RANLIB
11627   fi
11628 else
11629   RANLIB="$ac_cv_prog_RANLIB"
11630 fi
11631
11632 if test -n "$ac_tool_prefix"; then
11633   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11634 set dummy ${ac_tool_prefix}strip; ac_word=$2
11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 printf %s "checking for $ac_word... " >&6; }
11637 if test ${ac_cv_prog_STRIP+y}
11638 then :
11639   printf %s "(cached) " >&6
11640 else $as_nop
11641   if test -n "$STRIP"; then
11642   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647   IFS=$as_save_IFS
11648   case $as_dir in #(((
11649     '') as_dir=./ ;;
11650     */) ;;
11651     *) as_dir=$as_dir/ ;;
11652   esac
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11655     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11656     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663 fi
11664 fi
11665 STRIP=$ac_cv_prog_STRIP
11666 if test -n "$STRIP"; then
11667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11668 printf "%s\n" "$STRIP" >&6; }
11669 else
11670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 printf "%s\n" "no" >&6; }
11672 fi
11673
11674
11675 fi
11676 if test -z "$ac_cv_prog_STRIP"; then
11677   ac_ct_STRIP=$STRIP
11678   # Extract the first word of "strip", so it can be a program name with args.
11679 set dummy strip; ac_word=$2
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 printf %s "checking for $ac_word... " >&6; }
11682 if test ${ac_cv_prog_ac_ct_STRIP+y}
11683 then :
11684   printf %s "(cached) " >&6
11685 else $as_nop
11686   if test -n "$ac_ct_STRIP"; then
11687   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   case $as_dir in #(((
11694     '') as_dir=./ ;;
11695     */) ;;
11696     *) as_dir=$as_dir/ ;;
11697   esac
11698     for ac_exec_ext in '' $ac_executable_extensions; do
11699   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11700     ac_cv_prog_ac_ct_STRIP="strip"
11701     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11702     break 2
11703   fi
11704 done
11705   done
11706 IFS=$as_save_IFS
11707
11708 fi
11709 fi
11710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11711 if test -n "$ac_ct_STRIP"; then
11712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11713 printf "%s\n" "$ac_ct_STRIP" >&6; }
11714 else
11715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 printf "%s\n" "no" >&6; }
11717 fi
11718
11719   if test "x$ac_ct_STRIP" = x; then
11720     STRIP=":"
11721   else
11722     case $cross_compiling:$ac_tool_warned in
11723 yes:)
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11725 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11726 ac_tool_warned=yes ;;
11727 esac
11728     STRIP=$ac_ct_STRIP
11729   fi
11730 else
11731   STRIP="$ac_cv_prog_STRIP"
11732 fi
11733
11734 # Extract the first word of "makeinfo", so it can be a program name with args.
11735 set dummy makeinfo; ac_word=$2
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 printf %s "checking for $ac_word... " >&6; }
11738 if test ${ac_cv_prog_MAKEINFO+y}
11739 then :
11740   printf %s "(cached) " >&6
11741 else $as_nop
11742   if test -n "$MAKEINFO"; then
11743   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   case $as_dir in #(((
11750     '') as_dir=./ ;;
11751     */) ;;
11752     *) as_dir=$as_dir/ ;;
11753   esac
11754     for ac_exec_ext in '' $ac_executable_extensions; do
11755   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11756     ac_cv_prog_MAKEINFO="makeinfo"
11757     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761   done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 MAKEINFO=$ac_cv_prog_MAKEINFO
11767 if test -n "$MAKEINFO"; then
11768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11769 printf "%s\n" "$MAKEINFO" >&6; }
11770 else
11771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 printf "%s\n" "no" >&6; }
11773 fi
11774
11775
11776 if test "_$MAKEINFO" = "_"; then
11777     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11778 else
11779     case "$MAKEINFO" in
11780       */missing.*)
11781         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11782 *** Makeinfo is missing. Info documentation will not be built." >&5
11783 printf "%s\n" "$as_me: WARNING:
11784 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11785         ;;
11786       *)
11787         ;;
11788     esac
11789 fi
11790
11791
11792 # See if we need a separate native compiler.
11793 if test $cross_compiling = no; then
11794   BUILD_CC="$CC"
11795
11796 else
11797   for ac_prog in gcc cc
11798 do
11799   # Extract the first word of "$ac_prog", so it can be a program name with args.
11800 set dummy $ac_prog; ac_word=$2
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 printf %s "checking for $ac_word... " >&6; }
11803 if test ${ac_cv_prog_BUILD_CC+y}
11804 then :
11805   printf %s "(cached) " >&6
11806 else $as_nop
11807   if test -n "$BUILD_CC"; then
11808   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11809 else
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11812 do
11813   IFS=$as_save_IFS
11814   case $as_dir in #(((
11815     '') as_dir=./ ;;
11816     */) ;;
11817     *) as_dir=$as_dir/ ;;
11818   esac
11819     for ac_exec_ext in '' $ac_executable_extensions; do
11820   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11821     ac_cv_prog_BUILD_CC="$ac_prog"
11822     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826   done
11827 IFS=$as_save_IFS
11828
11829 fi
11830 fi
11831 BUILD_CC=$ac_cv_prog_BUILD_CC
11832 if test -n "$BUILD_CC"; then
11833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11834 printf "%s\n" "$BUILD_CC" >&6; }
11835 else
11836   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 printf "%s\n" "no" >&6; }
11838 fi
11839
11840
11841   test -n "$BUILD_CC" && break
11842 done
11843
11844 fi
11845 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11846 if test "x$ac_cv_header_dirent_h" = xyes
11847 then :
11848   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11849
11850 fi
11851 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11852 if test "x$ac_cv_header_errno_h" = xyes
11853 then :
11854   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11855
11856 fi
11857 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11858 if test "x$ac_cv_header_execinfo_h" = xyes
11859 then :
11860   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11861
11862 fi
11863 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11864 if test "x$ac_cv_header_getopt_h" = xyes
11865 then :
11866   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11867
11868 fi
11869 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11870 if test "x$ac_cv_header_malloc_h" = xyes
11871 then :
11872   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11873
11874 fi
11875 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11876 if test "x$ac_cv_header_mntent_h" = xyes
11877 then :
11878   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11879
11880 fi
11881 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11882 if test "x$ac_cv_header_paths_h" = xyes
11883 then :
11884   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11885
11886 fi
11887 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11888 if test "x$ac_cv_header_pthread_h" = xyes
11889 then :
11890   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11891
11892 fi
11893 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11894 if test "x$ac_cv_header_semaphore_h" = xyes
11895 then :
11896   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11897
11898 fi
11899 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11900 if test "x$ac_cv_header_setjmp_h" = xyes
11901 then :
11902   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11903
11904 fi
11905 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11906 if test "x$ac_cv_header_signal_h" = xyes
11907 then :
11908   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11909
11910 fi
11911 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11912 if test "x$ac_cv_header_stdarg_h" = xyes
11913 then :
11914   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11915
11916 fi
11917 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11918 if test "x$ac_cv_header_stdint_h" = xyes
11919 then :
11920   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11921
11922 fi
11923 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11924 if test "x$ac_cv_header_stdlib_h" = xyes
11925 then :
11926   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11927
11928 fi
11929 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_termios_h" = xyes
11931 then :
11932   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11933
11934 fi
11935 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11936 if test "x$ac_cv_header_termio_h" = xyes
11937 then :
11938   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11939
11940 fi
11941 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11942 if test "x$ac_cv_header_unistd_h" = xyes
11943 then :
11944   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11945
11946 fi
11947 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11948 if test "x$ac_cv_header_utime_h" = xyes
11949 then :
11950   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11951
11952 fi
11953 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11954 if test "x$ac_cv_header_attr_xattr_h" = xyes
11955 then :
11956   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11957
11958 fi
11959 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11960 if test "x$ac_cv_header_linux_falloc_h" = xyes
11961 then :
11962   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11963
11964 fi
11965 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11966 if test "x$ac_cv_header_linux_fd_h" = xyes
11967 then :
11968   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11969
11970 fi
11971 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11972 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11973 then :
11974   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11975
11976 fi
11977 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11978 if test "x$ac_cv_header_linux_major_h" = xyes
11979 then :
11980   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11981
11982 fi
11983 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11984 if test "x$ac_cv_header_linux_loop_h" = xyes
11985 then :
11986   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11987
11988 fi
11989 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11990 if test "x$ac_cv_header_linux_types_h" = xyes
11991 then :
11992   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11993
11994 fi
11995 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11996 if test "x$ac_cv_header_net_if_dl_h" = xyes
11997 then :
11998   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11999
12000 fi
12001 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12002 if test "x$ac_cv_header_netinet_in_h" = xyes
12003 then :
12004   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12005
12006 fi
12007 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12008 if test "x$ac_cv_header_sys_acl_h" = xyes
12009 then :
12010   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12011
12012 fi
12013 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12014 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12015 then :
12016   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12017
12018 fi
12019 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12020 if test "x$ac_cv_header_sys_disk_h" = xyes
12021 then :
12022   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12023
12024 fi
12025 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12026 if test "x$ac_cv_header_sys_file_h" = xyes
12027 then :
12028   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12029
12030 fi
12031 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12032 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12033 then :
12034   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12035
12036 fi
12037 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12038 if test "x$ac_cv_header_sys_key_h" = xyes
12039 then :
12040   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12041
12042 fi
12043 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12044 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12045 then :
12046   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12047
12048 fi
12049 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12050 if test "x$ac_cv_header_sys_mman_h" = xyes
12051 then :
12052   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12053
12054 fi
12055 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12056 if test "x$ac_cv_header_sys_mount_h" = xyes
12057 then :
12058   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12059
12060 fi
12061 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12062 if test "x$ac_cv_header_sys_prctl_h" = xyes
12063 then :
12064   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12065
12066 fi
12067 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12068 if test "x$ac_cv_header_sys_random_h" = xyes
12069 then :
12070   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12071
12072 fi
12073 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12074 if test "x$ac_cv_header_sys_resource_h" = xyes
12075 then :
12076   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12077
12078 fi
12079 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_sys_select_h" = xyes
12081 then :
12082   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12083
12084 fi
12085 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12086 if test "x$ac_cv_header_sys_socket_h" = xyes
12087 then :
12088   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12089
12090 fi
12091 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12092 if test "x$ac_cv_header_sys_sockio_h" = xyes
12093 then :
12094   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12095
12096 fi
12097 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12098 if test "x$ac_cv_header_sys_stat_h" = xyes
12099 then :
12100   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12101
12102 fi
12103 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12104 if test "x$ac_cv_header_sys_syscall_h" = xyes
12105 then :
12106   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12107
12108 fi
12109 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12110 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12111 then :
12112   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12113
12114 fi
12115 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12116 if test "x$ac_cv_header_sys_time_h" = xyes
12117 then :
12118   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12119
12120 fi
12121 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12122 if test "x$ac_cv_header_sys_types_h" = xyes
12123 then :
12124   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12125
12126 fi
12127 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12128 if test "x$ac_cv_header_sys_un_h" = xyes
12129 then :
12130   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12131
12132 fi
12133 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12134 if test "x$ac_cv_header_sys_wait_h" = xyes
12135 then :
12136   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12137
12138 fi
12139 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12140 if test "x$ac_cv_header_sys_xattr_h" = xyes
12141 then :
12142   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12143
12144 fi
12145
12146 case "$host_os" in
12147 mingw*)
12148         # The above checks only detect system headers, not the headers in
12149         # ./include/mingw/, so explicitly define them to be available.
12150         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12151
12152         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12153
12154         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12155
12156         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12157
12158         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12159
12160         ;;
12161 esac
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12163 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12164 DD=
12165 for i in dd gdd ; do
12166         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12167                 DD=$i
12168                 break
12169         fi
12170 done
12171 if test -n "$DD" ; then
12172         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12173 printf "%s\n" "$DD" >&6; }
12174 else
12175         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12176 printf "%s\n" "not found, using dd" >&6; }
12177         DD=dd
12178         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12179 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12180 fi
12181
12182
12183 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12184 #if HAVE_SYS_TYPES_H
12185 #include <sys/types.h>
12186 #endif
12187 #if HAVE_SYS_SOCKET
12188 #include <sys/socket.h>
12189 #endif
12190
12191 "
12192 if test "x$ac_cv_header_net_if_h" = xyes
12193 then :
12194   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12195
12196 fi
12197
12198 ac_func=
12199 for ac_item in $ac_func_c_list
12200 do
12201   if test $ac_func; then
12202     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12203     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12204       echo "#define $ac_item 1" >> confdefs.h
12205     fi
12206     ac_func=
12207   else
12208     ac_func=$ac_item
12209   fi
12210 done
12211
12212 if test "x$ac_cv_func_vprintf" = xno
12213 then :
12214   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12215 if test "x$ac_cv_func__doprnt" = xyes
12216 then :
12217
12218 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12219
12220 fi
12221
12222 fi
12223 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12224 "
12225 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12226 then :
12227
12228 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12229
12230 fi
12231
12232 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12233 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12234 then :
12235
12236 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12237
12238
12239 fi
12240
12241 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12242 "
12243 if test "x$ac_cv_type_ssize_t" = xyes
12244 then :
12245
12246 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12247
12248 fi
12249
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12251 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12252 if test ${ac_cv_c_undeclared_builtin_options+y}
12253 then :
12254   printf %s "(cached) " >&6
12255 else $as_nop
12256   ac_save_CFLAGS=$CFLAGS
12257    ac_cv_c_undeclared_builtin_options='cannot detect'
12258    for ac_arg in '' -fno-builtin; do
12259      CFLAGS="$ac_save_CFLAGS $ac_arg"
12260      # This test program should *not* compile successfully.
12261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h.  */
12263
12264 int
12265 main (void)
12266 {
12267 (void) strchr;
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"
12273 then :
12274
12275 else $as_nop
12276   # This test program should compile successfully.
12277         # No library function is consistently available on
12278         # freestanding implementations, so test against a dummy
12279         # declaration.  Include always-available headers on the
12280         # off chance that they somehow elicit warnings.
12281         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283 #include <float.h>
12284 #include <limits.h>
12285 #include <stdarg.h>
12286 #include <stddef.h>
12287 extern void ac_decl (int, char *);
12288
12289 int
12290 main (void)
12291 {
12292 (void) ac_decl (0, (char *) 0);
12293   (void) ac_decl;
12294
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_compile "$LINENO"
12300 then :
12301   if test x"$ac_arg" = x
12302 then :
12303   ac_cv_c_undeclared_builtin_options='none needed'
12304 else $as_nop
12305   ac_cv_c_undeclared_builtin_options=$ac_arg
12306 fi
12307           break
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12312     done
12313     CFLAGS=$ac_save_CFLAGS
12314
12315 fi
12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12317 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12318   case $ac_cv_c_undeclared_builtin_options in #(
12319   'cannot detect') :
12320     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12321 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12322 as_fn_error $? "cannot make $CC report undeclared builtins
12323 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12324   'none needed') :
12325     ac_c_undeclared_builtin_options='' ;; #(
12326   *) :
12327     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12328 esac
12329
12330 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12331 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12332 if test "x$ac_cv_have_decl_llseek" = xyes
12333 then :
12334
12335 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12336
12337 fi
12338 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12339                  #define _LARGEFILE64_SOURCE
12340                  #include <unistd.h>
12341 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12342 if test "x$ac_cv_have_decl_lseek64" = xyes
12343 then :
12344
12345 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12346
12347 fi
12348
12349 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12350 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12351 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12352 then :
12353
12354 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12355
12356 fi
12357 # The cast to long int works around a bug in the HP C Compiler
12358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12360 # This bug is HP SR number 8606223364.
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12362 printf %s "checking size of short... " >&6; }
12363 if test ${ac_cv_sizeof_short+y}
12364 then :
12365   printf %s "(cached) " >&6
12366 else $as_nop
12367   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12368 then :
12369
12370 else $as_nop
12371   if test "$ac_cv_type_short" = yes; then
12372      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12374 as_fn_error 77 "cannot compute sizeof (short)
12375 See \`config.log' for more details" "$LINENO" 5; }
12376    else
12377      ac_cv_sizeof_short=0
12378    fi
12379 fi
12380
12381 fi
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12383 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12384
12385
12386
12387 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12388
12389
12390 # The cast to long int works around a bug in the HP C Compiler
12391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12393 # This bug is HP SR number 8606223364.
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12395 printf %s "checking size of int... " >&6; }
12396 if test ${ac_cv_sizeof_int+y}
12397 then :
12398   printf %s "(cached) " >&6
12399 else $as_nop
12400   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12401 then :
12402
12403 else $as_nop
12404   if test "$ac_cv_type_int" = yes; then
12405      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12407 as_fn_error 77 "cannot compute sizeof (int)
12408 See \`config.log' for more details" "$LINENO" 5; }
12409    else
12410      ac_cv_sizeof_int=0
12411    fi
12412 fi
12413
12414 fi
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12416 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12417
12418
12419
12420 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12421
12422
12423 # The cast to long int works around a bug in the HP C Compiler
12424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12426 # This bug is HP SR number 8606223364.
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12428 printf %s "checking size of long... " >&6; }
12429 if test ${ac_cv_sizeof_long+y}
12430 then :
12431   printf %s "(cached) " >&6
12432 else $as_nop
12433   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12434 then :
12435
12436 else $as_nop
12437   if test "$ac_cv_type_long" = yes; then
12438      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12440 as_fn_error 77 "cannot compute sizeof (long)
12441 See \`config.log' for more details" "$LINENO" 5; }
12442    else
12443      ac_cv_sizeof_long=0
12444    fi
12445 fi
12446
12447 fi
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12449 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12450
12451
12452
12453 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12454
12455
12456 # The cast to long int works around a bug in the HP C Compiler
12457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12459 # This bug is HP SR number 8606223364.
12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12461 printf %s "checking size of long long... " >&6; }
12462 if test ${ac_cv_sizeof_long_long+y}
12463 then :
12464   printf %s "(cached) " >&6
12465 else $as_nop
12466   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12467 then :
12468
12469 else $as_nop
12470   if test "$ac_cv_type_long_long" = yes; then
12471      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12473 as_fn_error 77 "cannot compute sizeof (long long)
12474 See \`config.log' for more details" "$LINENO" 5; }
12475    else
12476      ac_cv_sizeof_long_long=0
12477    fi
12478 fi
12479
12480 fi
12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12482 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12483
12484
12485
12486 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12487
12488
12489 # The cast to long int works around a bug in the HP C Compiler
12490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12492 # This bug is HP SR number 8606223364.
12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12494 printf %s "checking size of off_t... " >&6; }
12495 if test ${ac_cv_sizeof_off_t+y}
12496 then :
12497   printf %s "(cached) " >&6
12498 else $as_nop
12499   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12500 then :
12501
12502 else $as_nop
12503   if test "$ac_cv_type_off_t" = yes; then
12504      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error 77 "cannot compute sizeof (off_t)
12507 See \`config.log' for more details" "$LINENO" 5; }
12508    else
12509      ac_cv_sizeof_off_t=0
12510    fi
12511 fi
12512
12513 fi
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12515 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12516
12517
12518
12519 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12520
12521
12522 # The cast to long int works around a bug in the HP C Compiler
12523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525 # This bug is HP SR number 8606223364.
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12527 printf %s "checking size of time_t... " >&6; }
12528 if test ${ac_cv_sizeof_time_t+y}
12529 then :
12530   printf %s "(cached) " >&6
12531 else $as_nop
12532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12533 then :
12534
12535 else $as_nop
12536   if test "$ac_cv_type_time_t" = yes; then
12537      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12539 as_fn_error 77 "cannot compute sizeof (time_t)
12540 See \`config.log' for more details" "$LINENO" 5; }
12541    else
12542      ac_cv_sizeof_time_t=0
12543    fi
12544 fi
12545
12546 fi
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12548 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12549
12550
12551
12552 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12553
12554
12555 SIZEOF_SHORT=$ac_cv_sizeof_short
12556 SIZEOF_INT=$ac_cv_sizeof_int
12557 SIZEOF_LONG=$ac_cv_sizeof_long
12558 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12559 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12560 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12561
12562
12563
12564
12565
12566
12567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12568 printf %s "checking whether byte ordering is bigendian... " >&6; }
12569 if test ${ac_cv_c_bigendian+y}
12570 then :
12571   printf %s "(cached) " >&6
12572 else $as_nop
12573   ac_cv_c_bigendian=unknown
12574     # See if we're dealing with a universal compiler.
12575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h.  */
12577 #ifndef __APPLE_CC__
12578                not a universal capable compiler
12579              #endif
12580              typedef int dummy;
12581
12582 _ACEOF
12583 if ac_fn_c_try_compile "$LINENO"
12584 then :
12585
12586         # Check for potential -arch flags.  It is not universal unless
12587         # there are at least two -arch flags with different values.
12588         ac_arch=
12589         ac_prev=
12590         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12591          if test -n "$ac_prev"; then
12592            case $ac_word in
12593              i?86 | x86_64 | ppc | ppc64)
12594                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12595                  ac_arch=$ac_word
12596                else
12597                  ac_cv_c_bigendian=universal
12598                  break
12599                fi
12600                ;;
12601            esac
12602            ac_prev=
12603          elif test "x$ac_word" = "x-arch"; then
12604            ac_prev=arch
12605          fi
12606        done
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12609     if test $ac_cv_c_bigendian = unknown; then
12610       # See if sys/param.h defines the BYTE_ORDER macro.
12611       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h.  */
12613 #include <sys/types.h>
12614              #include <sys/param.h>
12615
12616 int
12617 main (void)
12618 {
12619 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12620                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12621                      && LITTLE_ENDIAN)
12622               bogus endian macros
12623              #endif
12624
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_compile "$LINENO"
12630 then :
12631   # It does; now see whether it defined to BIG_ENDIAN or not.
12632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h.  */
12634 #include <sys/types.h>
12635                 #include <sys/param.h>
12636
12637 int
12638 main (void)
12639 {
12640 #if BYTE_ORDER != BIG_ENDIAN
12641                  not big endian
12642                 #endif
12643
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 if ac_fn_c_try_compile "$LINENO"
12649 then :
12650   ac_cv_c_bigendian=yes
12651 else $as_nop
12652   ac_cv_c_bigendian=no
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12657     fi
12658     if test $ac_cv_c_bigendian = unknown; then
12659       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h.  */
12662 #include <limits.h>
12663
12664 int
12665 main (void)
12666 {
12667 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12668               bogus endian macros
12669              #endif
12670
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 if ac_fn_c_try_compile "$LINENO"
12676 then :
12677   # It does; now see whether it defined to _BIG_ENDIAN or not.
12678          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680 #include <limits.h>
12681
12682 int
12683 main (void)
12684 {
12685 #ifndef _BIG_ENDIAN
12686                  not big endian
12687                 #endif
12688
12689   ;
12690   return 0;
12691 }
12692 _ACEOF
12693 if ac_fn_c_try_compile "$LINENO"
12694 then :
12695   ac_cv_c_bigendian=yes
12696 else $as_nop
12697   ac_cv_c_bigendian=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12702     fi
12703     if test $ac_cv_c_bigendian = unknown; then
12704       # Compile a test program.
12705       if test "$cross_compiling" = yes
12706 then :
12707   # Try to guess by grepping values from an object file.
12708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h.  */
12710 unsigned short int ascii_mm[] =
12711                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12712                 unsigned short int ascii_ii[] =
12713                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12714                 int use_ascii (int i) {
12715                   return ascii_mm[i] + ascii_ii[i];
12716                 }
12717                 unsigned short int ebcdic_ii[] =
12718                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12719                 unsigned short int ebcdic_mm[] =
12720                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12721                 int use_ebcdic (int i) {
12722                   return ebcdic_mm[i] + ebcdic_ii[i];
12723                 }
12724                 extern int foo;
12725
12726 int
12727 main (void)
12728 {
12729 return use_ascii (foo) == use_ebcdic (foo);
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_compile "$LINENO"
12735 then :
12736   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12737               ac_cv_c_bigendian=yes
12738             fi
12739             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12740               if test "$ac_cv_c_bigendian" = unknown; then
12741                 ac_cv_c_bigendian=no
12742               else
12743                 # finding both strings is unlikely to happen, but who knows?
12744                 ac_cv_c_bigendian=unknown
12745               fi
12746             fi
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12749 else $as_nop
12750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752 $ac_includes_default
12753 int
12754 main (void)
12755 {
12756
12757              /* Are we little or big endian?  From Harbison&Steele.  */
12758              union
12759              {
12760                long int l;
12761                char c[sizeof (long int)];
12762              } u;
12763              u.l = 1;
12764              return u.c[sizeof (long int) - 1] == 1;
12765
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_run "$LINENO"
12771 then :
12772   ac_cv_c_bigendian=no
12773 else $as_nop
12774   ac_cv_c_bigendian=yes
12775 fi
12776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12777   conftest.$ac_objext conftest.beam conftest.$ac_ext
12778 fi
12779
12780     fi
12781 fi
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12783 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12784  case $ac_cv_c_bigendian in #(
12785    yes)
12786      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12787 ;; #(
12788    no)
12789       ;; #(
12790    universal)
12791
12792 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12793
12794      ;; #(
12795    *)
12796      as_fn_error $? "unknown endianness
12797  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12798  esac
12799
12800 if test $cross_compiling = no; then
12801   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12802 else
12803   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12804 fi
12805 ASM_TYPES_HEADER=./asm_types.h
12806
12807 echo "/* These defines are needed for the public ext2fs.h header file */" \
12808      > public_config.h
12809 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12810   uniq tmp_config.$$ >> public_config.h
12811 else
12812   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12813 fi
12814 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12815   uniq tmp_config.$$ >> public_config.h
12816 else
12817   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12818 fi
12819 rm -f tmp_config.$$
12820 PUBLIC_CONFIG_HEADER=./public_config.h
12821
12822 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_inttypes_h" = xyes
12824 then :
12825   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12826
12827 fi
12828
12829 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12830 if test "x$ac_cv_type_intptr_t" = xyes
12831 then :
12832
12833 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12834
12835
12836 fi
12837
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12839 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12840 if test ${e2fsprogs_cv_struct_st_flags+y}
12841 then :
12842   printf %s "(cached) " >&6
12843 else $as_nop
12844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 #include <sys/stat.h>
12847 int
12848 main (void)
12849 {
12850 struct stat stat; stat.st_flags = 0;
12851   ;
12852   return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"
12856 then :
12857   e2fsprogs_cv_struct_st_flags=yes
12858 else $as_nop
12859   e2fsprogs_cv_struct_st_flags=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 fi
12863
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12865 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12866 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12868 printf %s "checking whether st_flags field is useful... " >&6; }
12869   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12870 then :
12871   printf %s "(cached) " >&6
12872 else $as_nop
12873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h.  */
12875 #include <sys/stat.h>
12876 int
12877 main (void)
12878 {
12879 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"
12885 then :
12886   e2fsprogs_cv_struct_st_flags_immut=yes
12887 else $as_nop
12888   e2fsprogs_cv_struct_st_flags_immut=no
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12891 fi
12892
12893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12894 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12895   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12896
12897 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12898
12899   fi
12900 fi
12901 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12902          #include <sys/socket.h>
12903 "
12904 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12905 then :
12906
12907 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12908
12909 fi
12910
12911 if test -n "$BLKID_CMT"; then
12912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12913 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12914 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12915 then :
12916   printf %s "(cached) " >&6
12917 else $as_nop
12918   ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lblkid  $LIBS"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h.  */
12922
12923 /* Override any GCC internal prototype to avoid an error.
12924    Use char because int might match the return type of a GCC
12925    builtin and then its argument prototype would still apply.  */
12926 char blkid_probe_get_topology ();
12927 int
12928 main (void)
12929 {
12930 return blkid_probe_get_topology ();
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"
12936 then :
12937   ac_cv_lib_blkid_blkid_probe_get_topology=yes
12938 else $as_nop
12939   ac_cv_lib_blkid_blkid_probe_get_topology=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12942     conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12946 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12947 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12948 then :
12949
12950 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12951
12952 fi
12953
12954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12955 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12956 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12957 then :
12958   printf %s "(cached) " >&6
12959 else $as_nop
12960   ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-lblkid  $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h.  */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966    Use char because int might match the return type of a GCC
12967    builtin and then its argument prototype would still apply.  */
12968 char blkid_topology_get_dax ();
12969 int
12970 main (void)
12971 {
12972 return blkid_topology_get_dax ();
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 if ac_fn_c_try_link "$LINENO"
12978 then :
12979   ac_cv_lib_blkid_blkid_topology_get_dax=yes
12980 else $as_nop
12981   ac_cv_lib_blkid_blkid_topology_get_dax=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12984     conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12986 fi
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12988 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12989 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12990 then :
12991
12992 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12993
12994 fi
12995
12996   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12997 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12998 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
12999 then :
13000   printf %s "(cached) " >&6
13001 else $as_nop
13002   ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lblkid  $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h.  */
13006
13007 /* Override any GCC internal prototype to avoid an error.
13008    Use char because int might match the return type of a GCC
13009    builtin and then its argument prototype would still apply.  */
13010 char blkid_probe_enable_partitions ();
13011 int
13012 main (void)
13013 {
13014 return blkid_probe_enable_partitions ();
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"
13020 then :
13021   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13022 else $as_nop
13023   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13026     conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13028 fi
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13030 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13031 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13032 then :
13033
13034 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13035
13036 fi
13037
13038 fi
13039 if test -n "$DLOPEN_LIB" ; then
13040    ac_cv_func_dlopen=yes
13041 fi
13042 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13043 if test "x$ac_cv_func___secure_getenv" = xyes
13044 then :
13045   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13046
13047 fi
13048 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13049 if test "x$ac_cv_func_add_key" = xyes
13050 then :
13051   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13052
13053 fi
13054 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13055 if test "x$ac_cv_func_backtrace" = xyes
13056 then :
13057   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13058
13059 fi
13060 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13061 if test "x$ac_cv_func_chflags" = xyes
13062 then :
13063   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13064
13065 fi
13066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13067 if test "x$ac_cv_func_dlopen" = xyes
13068 then :
13069   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13070
13071 fi
13072 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13073 if test "x$ac_cv_func_fadvise64" = xyes
13074 then :
13075   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13076
13077 fi
13078 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13079 if test "x$ac_cv_func_fallocate" = xyes
13080 then :
13081   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13082
13083 fi
13084 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13085 if test "x$ac_cv_func_fallocate64" = xyes
13086 then :
13087   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13088
13089 fi
13090 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13091 if test "x$ac_cv_func_fchown" = xyes
13092 then :
13093   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13094
13095 fi
13096 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13097 if test "x$ac_cv_func_fcntl" = xyes
13098 then :
13099   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13100
13101 fi
13102 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13103 if test "x$ac_cv_func_fdatasync" = xyes
13104 then :
13105   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13106
13107 fi
13108 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13109 if test "x$ac_cv_func_fstat64" = xyes
13110 then :
13111   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13112
13113 fi
13114 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13115 if test "x$ac_cv_func_fsync" = xyes
13116 then :
13117   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13118
13119 fi
13120 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13121 if test "x$ac_cv_func_ftruncate64" = xyes
13122 then :
13123   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13124
13125 fi
13126 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13127 if test "x$ac_cv_func_futimes" = xyes
13128 then :
13129   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13130
13131 fi
13132 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13133 if test "x$ac_cv_func_getcwd" = xyes
13134 then :
13135   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13136
13137 fi
13138 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13139 if test "x$ac_cv_func_getdtablesize" = xyes
13140 then :
13141   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13142
13143 fi
13144 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13145 if test "x$ac_cv_func_getentropy" = xyes
13146 then :
13147   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13148
13149 fi
13150 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13151 if test "x$ac_cv_func_gethostname" = xyes
13152 then :
13153   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13154
13155 fi
13156 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13157 if test "x$ac_cv_func_getmntinfo" = xyes
13158 then :
13159   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13160
13161 fi
13162 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13163 if test "x$ac_cv_func_getpwuid_r" = xyes
13164 then :
13165   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13166
13167 fi
13168 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13169 if test "x$ac_cv_func_getrandom" = xyes
13170 then :
13171   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13172
13173 fi
13174 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13175 if test "x$ac_cv_func_getrlimit" = xyes
13176 then :
13177   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13178
13179 fi
13180 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13181 if test "x$ac_cv_func_getrusage" = xyes
13182 then :
13183   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13184
13185 fi
13186 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13187 if test "x$ac_cv_func_jrand48" = xyes
13188 then :
13189   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13190
13191 fi
13192 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13193 if test "x$ac_cv_func_keyctl" = xyes
13194 then :
13195   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13196
13197 fi
13198 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13199 if test "x$ac_cv_func_llistxattr" = xyes
13200 then :
13201   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13202
13203 fi
13204 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13205 if test "x$ac_cv_func_llseek" = xyes
13206 then :
13207   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13208
13209 fi
13210 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13211 if test "x$ac_cv_func_lseek64" = xyes
13212 then :
13213   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13214
13215 fi
13216 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13217 if test "x$ac_cv_func_mallinfo" = xyes
13218 then :
13219   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13220
13221 fi
13222 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13223 if test "x$ac_cv_func_mallinfo2" = xyes
13224 then :
13225   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13226
13227 fi
13228 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13229 if test "x$ac_cv_func_mbstowcs" = xyes
13230 then :
13231   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13232
13233 fi
13234 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13235 if test "x$ac_cv_func_memalign" = xyes
13236 then :
13237   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13238
13239 fi
13240 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13241 if test "x$ac_cv_func_mempcpy" = xyes
13242 then :
13243   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13244
13245 fi
13246 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13247 if test "x$ac_cv_func_mmap" = xyes
13248 then :
13249   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13250
13251 fi
13252 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13253 if test "x$ac_cv_func_msync" = xyes
13254 then :
13255   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13256
13257 fi
13258 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13259 if test "x$ac_cv_func_nanosleep" = xyes
13260 then :
13261   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13262
13263 fi
13264 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13265 if test "x$ac_cv_func_open64" = xyes
13266 then :
13267   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13268
13269 fi
13270 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13271 if test "x$ac_cv_func_pathconf" = xyes
13272 then :
13273   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13274
13275 fi
13276 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13277 if test "x$ac_cv_func_posix_fadvise" = xyes
13278 then :
13279   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13280
13281 fi
13282 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13283 if test "x$ac_cv_func_posix_fadvise64" = xyes
13284 then :
13285   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13286
13287 fi
13288 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13289 if test "x$ac_cv_func_posix_memalign" = xyes
13290 then :
13291   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13292
13293 fi
13294 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13295 if test "x$ac_cv_func_prctl" = xyes
13296 then :
13297   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13298
13299 fi
13300 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13301 if test "x$ac_cv_func_pread" = xyes
13302 then :
13303   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13304
13305 fi
13306 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13307 if test "x$ac_cv_func_pwrite" = xyes
13308 then :
13309   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13310
13311 fi
13312 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13313 if test "x$ac_cv_func_pread64" = xyes
13314 then :
13315   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13316
13317 fi
13318 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13319 if test "x$ac_cv_func_pwrite64" = xyes
13320 then :
13321   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13322
13323 fi
13324 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13325 if test "x$ac_cv_func_qsort_r" = xyes
13326 then :
13327   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13328
13329 fi
13330 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13331 if test "x$ac_cv_func_secure_getenv" = xyes
13332 then :
13333   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13334
13335 fi
13336 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13337 if test "x$ac_cv_func_setmntent" = xyes
13338 then :
13339   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13340
13341 fi
13342 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13343 if test "x$ac_cv_func_setresgid" = xyes
13344 then :
13345   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13346
13347 fi
13348 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13349 if test "x$ac_cv_func_setresuid" = xyes
13350 then :
13351   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13352
13353 fi
13354 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13355 if test "x$ac_cv_func_snprintf" = xyes
13356 then :
13357   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13358
13359 fi
13360 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13361 if test "x$ac_cv_func_srandom" = xyes
13362 then :
13363   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13364
13365 fi
13366 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13367 if test "x$ac_cv_func_stpcpy" = xyes
13368 then :
13369   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13370
13371 fi
13372 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13373 if test "x$ac_cv_func_strcasecmp" = xyes
13374 then :
13375   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13376
13377 fi
13378 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13379 if test "x$ac_cv_func_strdup" = xyes
13380 then :
13381   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13382
13383 fi
13384 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13385 if test "x$ac_cv_func_strnlen" = xyes
13386 then :
13387   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13388
13389 fi
13390 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13391 if test "x$ac_cv_func_strptime" = xyes
13392 then :
13393   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13394
13395 fi
13396 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13397 if test "x$ac_cv_func_strtoull" = xyes
13398 then :
13399   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13400
13401 fi
13402 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13403 if test "x$ac_cv_func_sync_file_range" = xyes
13404 then :
13405   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13406
13407 fi
13408 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13409 if test "x$ac_cv_func_sysconf" = xyes
13410 then :
13411   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13412
13413 fi
13414 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13415 if test "x$ac_cv_func_usleep" = xyes
13416 then :
13417   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13418
13419 fi
13420 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13421 if test "x$ac_cv_func_utime" = xyes
13422 then :
13423   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13424
13425 fi
13426 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13427 if test "x$ac_cv_func_utimes" = xyes
13428 then :
13429   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13430
13431 fi
13432 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13433 if test "x$ac_cv_func_valloc" = xyes
13434 then :
13435   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13436
13437 fi
13438
13439 SOCKET_LIB=''
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13441 printf %s "checking for socket in -lsocket... " >&6; }
13442 if test ${ac_cv_lib_socket_socket+y}
13443 then :
13444   printf %s "(cached) " >&6
13445 else $as_nop
13446   ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lsocket  $LIBS"
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h.  */
13450
13451 /* Override any GCC internal prototype to avoid an error.
13452    Use char because int might match the return type of a GCC
13453    builtin and then its argument prototype would still apply.  */
13454 char socket ();
13455 int
13456 main (void)
13457 {
13458 return socket ();
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_link "$LINENO"
13464 then :
13465   ac_cv_lib_socket_socket=yes
13466 else $as_nop
13467   ac_cv_lib_socket_socket=no
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13470     conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13472 fi
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13474 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13475 if test "x$ac_cv_lib_socket_socket" = xyes
13476 then :
13477   SOCKET_LIB=-lsocket
13478 fi
13479
13480
13481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13482 printf %s "checking for magic_file in -lmagic... " >&6; }
13483 if test ${ac_cv_lib_magic_magic_file+y}
13484 then :
13485   printf %s "(cached) " >&6
13486 else $as_nop
13487   ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lmagic  $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491
13492 /* Override any GCC internal prototype to avoid an error.
13493    Use char because int might match the return type of a GCC
13494    builtin and then its argument prototype would still apply.  */
13495 char magic_file ();
13496 int
13497 main (void)
13498 {
13499 return magic_file ();
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 if ac_fn_c_try_link "$LINENO"
13505 then :
13506   ac_cv_lib_magic_magic_file=yes
13507 else $as_nop
13508   ac_cv_lib_magic_magic_file=no
13509 fi
13510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13511     conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13513 fi
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13515 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13516 if test "x$ac_cv_lib_magic_magic_file" = xyes
13517 then :
13518   MAGIC_LIB=-lmagic
13519 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13520 if test "x$ac_cv_header_magic_h" = xyes
13521 then :
13522   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13523
13524 fi
13525
13526 fi
13527
13528 if test "$ac_cv_func_dlopen" = yes ; then
13529    MAGIC_LIB=$DLOPEN_LIB
13530 fi
13531
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13533 printf %s "checking for clock_gettime in -lrt... " >&6; }
13534 if test ${ac_cv_lib_rt_clock_gettime+y}
13535 then :
13536   printf %s "(cached) " >&6
13537 else $as_nop
13538   ac_check_lib_save_LIBS=$LIBS
13539 LIBS="-lrt  $LIBS"
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542
13543 /* Override any GCC internal prototype to avoid an error.
13544    Use char because int might match the return type of a GCC
13545    builtin and then its argument prototype would still apply.  */
13546 char clock_gettime ();
13547 int
13548 main (void)
13549 {
13550 return clock_gettime ();
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"
13556 then :
13557   ac_cv_lib_rt_clock_gettime=yes
13558 else $as_nop
13559   ac_cv_lib_rt_clock_gettime=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13562     conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13566 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13567 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13568 then :
13569   CLOCK_GETTIME_LIB=-lrt
13570 fi
13571
13572
13573 FUSE_CMT=
13574 FUSE_LIB=
13575 # Check whether --enable-fuse2fs was given.
13576 if test ${enable_fuse2fs+y}
13577 then :
13578   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13579 then
13580         FUSE_CMT="#"
13581         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13582 printf "%s\n" "Disabling fuse2fs" >&6; }
13583 else
13584         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586 #ifdef __linux__
13587 #include <linux/fs.h>
13588 #include <linux/falloc.h>
13589 #include <linux/xattr.h>
13590 #endif
13591
13592 int
13593 main (void)
13594 {
13595
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_cpp "$LINENO"
13601 then :
13602
13603 else $as_nop
13604   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13606 as_fn_error $? "Cannot find fuse2fs Linux headers.
13607 See \`config.log' for more details" "$LINENO" 5; }
13608 fi
13609 rm -f conftest.err conftest.i conftest.$ac_ext
13610
13611           fuse3_CFLAGS
13612               C compiler flags for fuse3, overriding pkg-config
13613   fuse3_LIBS  linker flags for fuse3, overriding pkg-config
13614
13615 pkg_failed=no
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13617 printf %s "checking for fuse3... " >&6; }
13618
13619 if test -n "$fuse3_CFLAGS"; then
13620     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13621  elif test -n "$PKG_CONFIG"; then
13622     if test -n "$PKG_CONFIG" && \
13623     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13624   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13625   ac_status=$?
13626   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627   test $ac_status = 0; }; then
13628   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13629                       test "x$?" != "x0" && pkg_failed=yes
13630 else
13631   pkg_failed=yes
13632 fi
13633  else
13634     pkg_failed=untried
13635 fi
13636 if test -n "$fuse3_LIBS"; then
13637     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13638  elif test -n "$PKG_CONFIG"; then
13639     if test -n "$PKG_CONFIG" && \
13640     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13641   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13642   ac_status=$?
13643   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644   test $ac_status = 0; }; then
13645   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13646                       test "x$?" != "x0" && pkg_failed=yes
13647 else
13648   pkg_failed=yes
13649 fi
13650  else
13651     pkg_failed=untried
13652 fi
13653
13654
13655
13656 if test $pkg_failed = yes; then
13657         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 printf "%s\n" "no" >&6; }
13659
13660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13661         _pkg_short_errors_supported=yes
13662 else
13663         _pkg_short_errors_supported=no
13664 fi
13665         if test $_pkg_short_errors_supported = yes; then
13666                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13667         else
13668                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13669         fi
13670         # Put the nasty error message in config.log where it belongs
13671         echo "$fuse3_PKG_ERRORS" >&5
13672
13673
13674                        for ac_header in pthread.h fuse.h
13675 do :
13676   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13678 #define FUSE_USE_VERSION 29
13679 "
13680 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13681 then :
13682   cat >>confdefs.h <<_ACEOF
13683 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13684 _ACEOF
13685
13686 else $as_nop
13687   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13688 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13689 as_fn_error $? "Cannot find fuse2fs headers.
13690 See \`config.log' for more details" "$LINENO" 5; }
13691 fi
13692
13693 done
13694
13695                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13696 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13697 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13698 then :
13699   printf %s "(cached) " >&6
13700 else $as_nop
13701   ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-losxfuse  $LIBS"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h.  */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707    Use char because int might match the return type of a GCC
13708    builtin and then its argument prototype would still apply.  */
13709 char fuse_main ();
13710 int
13711 main (void)
13712 {
13713 return fuse_main ();
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_c_try_link "$LINENO"
13719 then :
13720   ac_cv_lib_osxfuse_fuse_main=yes
13721 else $as_nop
13722   ac_cv_lib_osxfuse_fuse_main=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13725     conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13727 fi
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13729 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13730 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13731 then :
13732   FUSE_LIB=-losxfuse
13733 else $as_nop
13734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13735 printf %s "checking for fuse_main in -lfuse... " >&6; }
13736 if test ${ac_cv_lib_fuse_fuse_main+y}
13737 then :
13738   printf %s "(cached) " >&6
13739 else $as_nop
13740   ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-lfuse  $LIBS"
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744
13745 /* Override any GCC internal prototype to avoid an error.
13746    Use char because int might match the return type of a GCC
13747    builtin and then its argument prototype would still apply.  */
13748 char fuse_main ();
13749 int
13750 main (void)
13751 {
13752 return fuse_main ();
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"
13758 then :
13759   ac_cv_lib_fuse_fuse_main=yes
13760 else $as_nop
13761   ac_cv_lib_fuse_fuse_main=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13764     conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13766 fi
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13768 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13769 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13770 then :
13771   FUSE_LIB=-lfuse
13772 else $as_nop
13773   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13774 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13775 as_fn_error $? "Cannot find fuse library.
13776 See \`config.log' for more details" "$LINENO" 5; }
13777 fi
13778
13779 fi
13780
13781
13782 elif test $pkg_failed = untried; then
13783         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 printf "%s\n" "no" >&6; }
13785
13786                        for ac_header in pthread.h fuse.h
13787 do :
13788   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13790 #define FUSE_USE_VERSION 29
13791 "
13792 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13793 then :
13794   cat >>confdefs.h <<_ACEOF
13795 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13796 _ACEOF
13797
13798 else $as_nop
13799   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error $? "Cannot find fuse2fs headers.
13802 See \`config.log' for more details" "$LINENO" 5; }
13803 fi
13804
13805 done
13806
13807                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13808 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13809 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13810 then :
13811   printf %s "(cached) " >&6
13812 else $as_nop
13813   ac_check_lib_save_LIBS=$LIBS
13814 LIBS="-losxfuse  $LIBS"
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 char fuse_main ();
13822 int
13823 main (void)
13824 {
13825 return fuse_main ();
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"
13831 then :
13832   ac_cv_lib_osxfuse_fuse_main=yes
13833 else $as_nop
13834   ac_cv_lib_osxfuse_fuse_main=no
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13837     conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13839 fi
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13841 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13842 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13843 then :
13844   FUSE_LIB=-losxfuse
13845 else $as_nop
13846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13847 printf %s "checking for fuse_main in -lfuse... " >&6; }
13848 if test ${ac_cv_lib_fuse_fuse_main+y}
13849 then :
13850   printf %s "(cached) " >&6
13851 else $as_nop
13852   ac_check_lib_save_LIBS=$LIBS
13853 LIBS="-lfuse  $LIBS"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h.  */
13856
13857 /* Override any GCC internal prototype to avoid an error.
13858    Use char because int might match the return type of a GCC
13859    builtin and then its argument prototype would still apply.  */
13860 char fuse_main ();
13861 int
13862 main (void)
13863 {
13864 return fuse_main ();
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 if ac_fn_c_try_link "$LINENO"
13870 then :
13871   ac_cv_lib_fuse_fuse_main=yes
13872 else $as_nop
13873   ac_cv_lib_fuse_fuse_main=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13876     conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13878 fi
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13880 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13881 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13882 then :
13883   FUSE_LIB=-lfuse
13884 else $as_nop
13885   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13887 as_fn_error $? "Cannot find fuse library.
13888 See \`config.log' for more details" "$LINENO" 5; }
13889 fi
13890
13891 fi
13892
13893
13894 else
13895         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
13896         fuse3_LIBS=$pkg_cv_fuse3_LIBS
13897         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13898 printf "%s\n" "yes" >&6; }
13899
13900                 FUSE_LIB=-lfuse3
13901
13902 fi
13903         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13904 printf "%s\n" "Enabling fuse2fs" >&6; }
13905 fi
13906
13907 else $as_nop
13908
13909 pkg_failed=no
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13911 printf %s "checking for fuse3... " >&6; }
13912
13913 if test -n "$fuse3_CFLAGS"; then
13914     pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13915  elif test -n "$PKG_CONFIG"; then
13916     if test -n "$PKG_CONFIG" && \
13917     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13918   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13919   ac_status=$?
13920   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921   test $ac_status = 0; }; then
13922   pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13923                       test "x$?" != "x0" && pkg_failed=yes
13924 else
13925   pkg_failed=yes
13926 fi
13927  else
13928     pkg_failed=untried
13929 fi
13930 if test -n "$fuse3_LIBS"; then
13931     pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13932  elif test -n "$PKG_CONFIG"; then
13933     if test -n "$PKG_CONFIG" && \
13934     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13935   ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13936   ac_status=$?
13937   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938   test $ac_status = 0; }; then
13939   pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13940                       test "x$?" != "x0" && pkg_failed=yes
13941 else
13942   pkg_failed=yes
13943 fi
13944  else
13945     pkg_failed=untried
13946 fi
13947
13948
13949
13950 if test $pkg_failed = yes; then
13951         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 printf "%s\n" "no" >&6; }
13953
13954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13955         _pkg_short_errors_supported=yes
13956 else
13957         _pkg_short_errors_supported=no
13958 fi
13959         if test $_pkg_short_errors_supported = yes; then
13960                 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13961         else
13962                 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13963         fi
13964         # Put the nasty error message in config.log where it belongs
13965         echo "$fuse3_PKG_ERRORS" >&5
13966
13967
13968                for ac_header in pthread.h fuse.h
13969 do :
13970   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13972 #define FUSE_USE_VERSION 29
13973 #ifdef __linux__
13974 # include <linux/fs.h>
13975 # include <linux/falloc.h>
13976 # include <linux/xattr.h>
13977 #endif
13978 "
13979 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13980 then :
13981   cat >>confdefs.h <<_ACEOF
13982 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13983 _ACEOF
13984
13985 else $as_nop
13986   FUSE_CMT="#"
13987 fi
13988
13989 done
13990         if test -z "$FUSE_CMT"
13991         then
13992                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13993 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13994 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13995 then :
13996   printf %s "(cached) " >&6
13997 else $as_nop
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-losxfuse  $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h.  */
14002
14003 /* Override any GCC internal prototype to avoid an error.
14004    Use char because int might match the return type of a GCC
14005    builtin and then its argument prototype would still apply.  */
14006 char fuse_main ();
14007 int
14008 main (void)
14009 {
14010 return fuse_main ();
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_link "$LINENO"
14016 then :
14017   ac_cv_lib_osxfuse_fuse_main=yes
14018 else $as_nop
14019   ac_cv_lib_osxfuse_fuse_main=no
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14022     conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14024 fi
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14026 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14027 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14028 then :
14029   FUSE_LIB=-losxfuse
14030 else $as_nop
14031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14032 printf %s "checking for fuse_main in -lfuse... " >&6; }
14033 if test ${ac_cv_lib_fuse_fuse_main+y}
14034 then :
14035   printf %s "(cached) " >&6
14036 else $as_nop
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lfuse  $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h.  */
14041
14042 /* Override any GCC internal prototype to avoid an error.
14043    Use char because int might match the return type of a GCC
14044    builtin and then its argument prototype would still apply.  */
14045 char fuse_main ();
14046 int
14047 main (void)
14048 {
14049 return fuse_main ();
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"
14055 then :
14056   ac_cv_lib_fuse_fuse_main=yes
14057 else $as_nop
14058   ac_cv_lib_fuse_fuse_main=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061     conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14065 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14066 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14067 then :
14068   FUSE_LIB=-lfuse
14069 else $as_nop
14070   FUSE_CMT="#"
14071 fi
14072
14073 fi
14074
14075         fi
14076
14077 elif test $pkg_failed = untried; then
14078         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 printf "%s\n" "no" >&6; }
14080
14081                for ac_header in pthread.h fuse.h
14082 do :
14083   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14085 #define FUSE_USE_VERSION 29
14086 #ifdef __linux__
14087 # include <linux/fs.h>
14088 # include <linux/falloc.h>
14089 # include <linux/xattr.h>
14090 #endif
14091 "
14092 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14093 then :
14094   cat >>confdefs.h <<_ACEOF
14095 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14096 _ACEOF
14097
14098 else $as_nop
14099   FUSE_CMT="#"
14100 fi
14101
14102 done
14103         if test -z "$FUSE_CMT"
14104         then
14105                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14106 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14107 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14108 then :
14109   printf %s "(cached) " >&6
14110 else $as_nop
14111   ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-losxfuse  $LIBS"
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h.  */
14115
14116 /* Override any GCC internal prototype to avoid an error.
14117    Use char because int might match the return type of a GCC
14118    builtin and then its argument prototype would still apply.  */
14119 char fuse_main ();
14120 int
14121 main (void)
14122 {
14123 return fuse_main ();
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"
14129 then :
14130   ac_cv_lib_osxfuse_fuse_main=yes
14131 else $as_nop
14132   ac_cv_lib_osxfuse_fuse_main=no
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14135     conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14137 fi
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14139 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14140 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14141 then :
14142   FUSE_LIB=-losxfuse
14143 else $as_nop
14144   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14145 printf %s "checking for fuse_main in -lfuse... " >&6; }
14146 if test ${ac_cv_lib_fuse_fuse_main+y}
14147 then :
14148   printf %s "(cached) " >&6
14149 else $as_nop
14150   ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-lfuse  $LIBS"
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h.  */
14154
14155 /* Override any GCC internal prototype to avoid an error.
14156    Use char because int might match the return type of a GCC
14157    builtin and then its argument prototype would still apply.  */
14158 char fuse_main ();
14159 int
14160 main (void)
14161 {
14162 return fuse_main ();
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"
14168 then :
14169   ac_cv_lib_fuse_fuse_main=yes
14170 else $as_nop
14171   ac_cv_lib_fuse_fuse_main=no
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14174     conftest$ac_exeext conftest.$ac_ext
14175 LIBS=$ac_check_lib_save_LIBS
14176 fi
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14178 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14179 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14180 then :
14181   FUSE_LIB=-lfuse
14182 else $as_nop
14183   FUSE_CMT="#"
14184 fi
14185
14186 fi
14187
14188         fi
14189
14190 else
14191         fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14192         fuse3_LIBS=$pkg_cv_fuse3_LIBS
14193         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14194 printf "%s\n" "yes" >&6; }
14195
14196         FUSE_LIB=-lfuse3
14197
14198 fi
14199 if test -z "$FUSE_CMT"
14200 then
14201         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14202 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14203 fi
14204
14205 fi
14206
14207
14208
14209 if test "$FUSE_LIB" = "-lfuse3"
14210 then
14211         FUSE_USE_VERSION=35
14212         CFLAGS="$CFLAGS $fuse3_CFLAGS"
14213         LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14214                for ac_header in pthread.h fuse.h
14215 do :
14216   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
14218 #define FUSE_USE_VERSION 35
14219 #ifdef __linux__
14220 #include <linux/fs.h>
14221 #include <linux/falloc.h>
14222 #include <linux/xattr.h>
14223 #endif
14224 "
14225 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14226 then :
14227   cat >>confdefs.h <<_ACEOF
14228 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14229 _ACEOF
14230
14231 else $as_nop
14232   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14234 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14235 See \`config.log' for more details" "$LINENO" 5; }
14236 fi
14237
14238 done
14239 elif test -n "$FUSE_LIB"
14240 then
14241         FUSE_USE_VERSION=29
14242 fi
14243 if test -n "$FUSE_USE_VERSION"
14244 then
14245
14246 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14247
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14250 printf %s "checking for optreset... " >&6; }
14251 if test ${ac_cv_have_optreset+y}
14252 then :
14253   printf %s "(cached) " >&6
14254 else $as_nop
14255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h.  */
14257 #include <unistd.h>
14258
14259 _ACEOF
14260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14261   $EGREP "optreset" >/dev/null 2>&1
14262 then :
14263   ac_cv_have_optreset=yes
14264 else $as_nop
14265   ac_cv_have_optreset=no
14266 fi
14267 rm -rf conftest*
14268
14269 fi
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14271 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14272 if test $ac_cv_have_optreset = yes; then
14273
14274 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14275
14276 fi
14277
14278 SEM_INIT_LIB=''
14279 echo GL_THREADS_API: ${gl_threads_api}
14280 if test "${gl_threads_api}" != none
14281 then
14282   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14283 if test "x$ac_cv_func_sem_init" = xyes
14284 then :
14285
14286 else $as_nop
14287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14288 printf %s "checking for sem_init in -lpthread... " >&6; }
14289 if test ${ac_cv_lib_pthread_sem_init+y}
14290 then :
14291   printf %s "(cached) " >&6
14292 else $as_nop
14293   ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lpthread  $LIBS"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297
14298 /* Override any GCC internal prototype to avoid an error.
14299    Use char because int might match the return type of a GCC
14300    builtin and then its argument prototype would still apply.  */
14301 char sem_init ();
14302 int
14303 main (void)
14304 {
14305 return sem_init ();
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"
14311 then :
14312   ac_cv_lib_pthread_sem_init=yes
14313 else $as_nop
14314   ac_cv_lib_pthread_sem_init=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317     conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14319 fi
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14321 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14322 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14323 then :
14324   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14325
14326         SEM_INIT_LIB=-lpthread
14327 else $as_nop
14328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14329 printf %s "checking for sem_init in -lrt... " >&6; }
14330 if test ${ac_cv_lib_rt_sem_init+y}
14331 then :
14332   printf %s "(cached) " >&6
14333 else $as_nop
14334   ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-lrt  $LIBS"
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h.  */
14338
14339 /* Override any GCC internal prototype to avoid an error.
14340    Use char because int might match the return type of a GCC
14341    builtin and then its argument prototype would still apply.  */
14342 char sem_init ();
14343 int
14344 main (void)
14345 {
14346 return sem_init ();
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"
14352 then :
14353   ac_cv_lib_rt_sem_init=yes
14354 else $as_nop
14355   ac_cv_lib_rt_sem_init=no
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14358     conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS
14360 fi
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14362 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14363 if test "x$ac_cv_lib_rt_sem_init" = xyes
14364 then :
14365   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14366
14367         SEM_INIT_LIB=-lrt
14368 else $as_nop
14369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14370 printf %s "checking for sem_init in -lposix4... " >&6; }
14371 if test ${ac_cv_lib_posix4_sem_init+y}
14372 then :
14373   printf %s "(cached) " >&6
14374 else $as_nop
14375   ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lposix4  $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h.  */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381    Use char because int might match the return type of a GCC
14382    builtin and then its argument prototype would still apply.  */
14383 char sem_init ();
14384 int
14385 main (void)
14386 {
14387 return sem_init ();
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_link "$LINENO"
14393 then :
14394   ac_cv_lib_posix4_sem_init=yes
14395 else $as_nop
14396   ac_cv_lib_posix4_sem_init=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14399     conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14401 fi
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14403 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14404 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14405 then :
14406   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14407
14408         SEM_INIT_LIB=-lposix4
14409 fi
14410
14411 fi
14412
14413 fi
14414
14415 fi
14416 fi
14417
14418 if test "$ac_cv_func_qsort_r" != no
14419 then :
14420
14421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14422 printf %s "checking whether qsort_r is GNU version... " >&6; }
14423 if test ${e2_cv_gnu_qsort_r+y}
14424 then :
14425   printf %s "(cached) " >&6
14426 else $as_nop
14427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429
14430 #include <stdlib.h>
14431 void (qsort_r)(void *base, size_t nmemb, size_t size,
14432             int (*compar)(const void *, const void *, void *),
14433             void *arg);
14434
14435 int
14436 main (void)
14437 {
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_compile "$LINENO"
14444 then :
14445   e2_cv_gnu_qsort_r=yes
14446 else $as_nop
14447   e2_cv_gnu_qsort_r=no
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14450
14451 fi
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14453 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14455 printf %s "checking whether qsort_r is BSD version... " >&6; }
14456 if test ${e2_cv_bsd_qsort_r+y}
14457 then :
14458   printf %s "(cached) " >&6
14459 else $as_nop
14460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14462
14463 #include <stdlib.h>
14464 void (qsort_r)(void *base, size_t nmemb, size_t size,
14465              void *arg, int (*compar)(void *, const void *, const void *));
14466
14467 int
14468 main (void)
14469 {
14470
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"
14476 then :
14477   e2_cv_bsd_qsort_r=yes
14478 else $as_nop
14479   e2_cv_bsd_qsort_r=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14482
14483 fi
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14485 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14486   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14487   yes:no) :
14488
14489
14490 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14491
14492    ;; #(
14493   no:yes) :
14494
14495
14496 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14497
14498    ;; #(
14499   *) :
14500      ;;
14501 esac
14502
14503 fi
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14505 printf %s "checking for unified diff option... " >&6; }
14506 if diff -u $0 $0 > /dev/null 2>&1 ; then
14507    UNI_DIFF_OPTS=-u
14508 else
14509    UNI_DIFF_OPTS=-c
14510 fi
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14512 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14513
14514 case "$host_os" in
14515 linux*)
14516
14517 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14518
14519         ;;
14520 esac
14521
14522     printf %s "checking for mount 'nosuid' option... "
14523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h.  */
14525 #include <sys/mount.h>
14526 int
14527 main (void)
14528 {
14529 void *temp = (void *)(MS_NOSUID); (void) temp;
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_compile "$LINENO"
14535 then :
14536
14537 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14538
14539          ac_cv_mount_nosuid=yes
14540          printf "%s\n" "yes"
14541 else $as_nop
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 #include <sys/mount.h>
14545 int
14546 main (void)
14547 {
14548 void *temp = (void *)(MNT_NOSUID); (void) temp;
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_c_try_compile "$LINENO"
14554 then :
14555
14556 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14557
14558              ac_cv_mount_nosuid=yes
14559              printf "%s\n" "yes"
14560 else $as_nop
14561   ac_cv_mount_nosuid=no
14562              printf "%s\n" "no"
14563
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14566
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14569
14570
14571     printf %s "checking for mount 'nodev' option... "
14572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574 #include <sys/mount.h>
14575 int
14576 main (void)
14577 {
14578 void *temp = (void *)(MS_NODEV); (void) temp;
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"
14584 then :
14585
14586 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14587
14588          ac_cv_mount_nodev=yes
14589          printf "%s\n" "yes"
14590 else $as_nop
14591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h.  */
14593 #include <sys/mount.h>
14594 int
14595 main (void)
14596 {
14597 void *temp = (void *)(MNT_NODEV); (void) temp;
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 if ac_fn_c_try_compile "$LINENO"
14603 then :
14604
14605 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14606
14607              ac_cv_mount_nodev=yes
14608              printf "%s\n" "yes"
14609 else $as_nop
14610   ac_cv_mount_nodev=no
14611              printf "%s\n" "no"
14612
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14615
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14618
14619 # Check whether --enable-lto was given.
14620 if test ${enable_lto+y}
14621 then :
14622   enableval=$enable_lto;
14623 else $as_nop
14624   enable_lto=no
14625 fi
14626
14627 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14628         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14629 printf %s "checking if C compiler supports LTO... " >&6; }
14630         OLD_CFLAGS="$CFLAGS"
14631         OLD_LDFLAGS="$LDFLAGS"
14632         LTO_FLAGS="-g -flto -ffat-lto-objects"
14633         CFLAGS="$CFLAGS $LTO_FLAGS"
14634         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h.  */
14637
14638 int
14639 main (void)
14640 {
14641
14642   ;
14643   return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"
14647 then :
14648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 printf "%s\n" "yes" >&6; }
14650                 lto_cflags=$LTO_FLAGS
14651                 lto_ldflags=$LTO_FLAGS
14652                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14653 set dummy gcc-ar; ac_word=$2
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 printf %s "checking for $ac_word... " >&6; }
14656 if test ${ac_cv_path_gcc_ar+y}
14657 then :
14658   printf %s "(cached) " >&6
14659 else $as_nop
14660   case $gcc_ar in
14661   [\\/]* | ?:[\\/]*)
14662   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14663   ;;
14664   *)
14665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14667 do
14668   IFS=$as_save_IFS
14669   case $as_dir in #(((
14670     '') as_dir=./ ;;
14671     */) ;;
14672     *) as_dir=$as_dir/ ;;
14673   esac
14674     for ac_exec_ext in '' $ac_executable_extensions; do
14675   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14676     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14677     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14678     break 2
14679   fi
14680 done
14681   done
14682 IFS=$as_save_IFS
14683
14684   ;;
14685 esac
14686 fi
14687 gcc_ar=$ac_cv_path_gcc_ar
14688 if test -n "$gcc_ar"; then
14689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14690 printf "%s\n" "$gcc_ar" >&6; }
14691 else
14692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 printf "%s\n" "no" >&6; }
14694 fi
14695
14696
14697                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14698 set dummy gcc-ranlib; ac_word=$2
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 printf %s "checking for $ac_word... " >&6; }
14701 if test ${ac_cv_path_gcc_ranlib+y}
14702 then :
14703   printf %s "(cached) " >&6
14704 else $as_nop
14705   case $gcc_ranlib in
14706   [\\/]* | ?:[\\/]*)
14707   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14708   ;;
14709   *)
14710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14712 do
14713   IFS=$as_save_IFS
14714   case $as_dir in #(((
14715     '') as_dir=./ ;;
14716     */) ;;
14717     *) as_dir=$as_dir/ ;;
14718   esac
14719     for ac_exec_ext in '' $ac_executable_extensions; do
14720   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14721     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14722     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14723     break 2
14724   fi
14725 done
14726   done
14727 IFS=$as_save_IFS
14728
14729   ;;
14730 esac
14731 fi
14732 gcc_ranlib=$ac_cv_path_gcc_ranlib
14733 if test -n "$gcc_ranlib"; then
14734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14735 printf "%s\n" "$gcc_ranlib" >&6; }
14736 else
14737   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 printf "%s\n" "no" >&6; }
14739 fi
14740
14741
14742 else $as_nop
14743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 printf "%s\n" "no" >&6; }
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14747     conftest$ac_exeext conftest.$ac_ext
14748         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14749                 have_lto=yes
14750                 AR="${gcc_ar}"
14751                 RANLIB="${gcc_ranlib}"
14752         fi
14753         CFLAGS="${OLD_CFLAGS}"
14754         LDFLAGS="${OLD_LDFLAGS}"
14755
14756
14757
14758 fi
14759 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14760         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14761 fi
14762 # Check whether --enable-ubsan was given.
14763 if test ${enable_ubsan+y}
14764 then :
14765   enableval=$enable_ubsan;
14766 else $as_nop
14767   enable_ubsan=no
14768 fi
14769
14770 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14771         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14772 printf %s "checking if C compiler supports UBSAN... " >&6; }
14773         OLD_CFLAGS="$CFLAGS"
14774         OLD_LDFLAGS="$LDFLAGS"
14775         UBSAN_FLAGS="-fsanitize=undefined"
14776         CFLAGS="$CFLAGS $UBSAN_FLAGS"
14777         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14778         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h.  */
14780
14781 int
14782 main (void)
14783 {
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 if ac_fn_c_try_link "$LINENO"
14790 then :
14791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14792 printf "%s\n" "yes" >&6; }
14793                 ubsan_cflags=$UBSAN_FLAGS
14794                 ubsan_ldflags=$UBSAN_FLAGS
14795                 have_ubsan=yes
14796 else $as_nop
14797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 printf "%s\n" "no" >&6; }
14799 fi
14800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14801     conftest$ac_exeext conftest.$ac_ext
14802         CFLAGS="${OLD_CFLAGS}"
14803         LDFLAGS="${OLD_LDFLAGS}"
14804
14805
14806
14807 fi
14808 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14809         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14810 fi
14811 # Check whether --enable-addrsan was given.
14812 if test ${enable_addrsan+y}
14813 then :
14814   enableval=$enable_addrsan;
14815 else $as_nop
14816   enable_addrsan=no
14817 fi
14818
14819 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14820         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14821 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14822         OLD_CFLAGS="$CFLAGS"
14823         OLD_LDFLAGS="$LDFLAGS"
14824         ADDRSAN_FLAGS="-fsanitize=address"
14825         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14826         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14827         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h.  */
14829
14830 int
14831 main (void)
14832 {
14833
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"
14839 then :
14840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14841 printf "%s\n" "yes" >&6; }
14842                 addrsan_cflags=$ADDRSAN_FLAGS
14843                 addrsan_ldflags=$ADDRSAN_FLAGS
14844                 have_addrsan=yes
14845 else $as_nop
14846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 printf "%s\n" "no" >&6; }
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14850     conftest$ac_exeext conftest.$ac_ext
14851         CFLAGS="${OLD_CFLAGS}"
14852         LDFLAGS="${OLD_LDFLAGS}"
14853
14854
14855
14856 fi
14857 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14858         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14859 fi
14860 # Check whether --enable-threadsan was given.
14861 if test ${enable_threadsan+y}
14862 then :
14863   enableval=$enable_threadsan;
14864 else $as_nop
14865   enable_threadsan=no
14866 fi
14867
14868 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14869         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14870 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14871         OLD_CFLAGS="$CFLAGS"
14872         OLD_LDFLAGS="$LDFLAGS"
14873         THREADSAN_FLAGS="-fsanitize=thread"
14874         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14875         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14876         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h.  */
14878
14879 int
14880 main (void)
14881 {
14882
14883   ;
14884   return 0;
14885 }
14886 _ACEOF
14887 if ac_fn_c_try_link "$LINENO"
14888 then :
14889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890 printf "%s\n" "yes" >&6; }
14891                 threadsan_cflags=$THREADSAN_FLAGS
14892                 threadsan_ldflags=$THREADSAN_FLAGS
14893                 have_threadsan=yes
14894 else $as_nop
14895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14899     conftest$ac_exeext conftest.$ac_ext
14900         CFLAGS="${OLD_CFLAGS}"
14901         LDFLAGS="${OLD_LDFLAGS}"
14902
14903
14904
14905 fi
14906 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14907         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14908 fi
14909 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14910         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14911 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14912 fi
14913 FUZZING_CMT="#"
14914 # Check whether --enable-fuzzing was given.
14915 if test ${enable_fuzzing+y}
14916 then :
14917   enableval=$enable_fuzzing;
14918 else $as_nop
14919   enable_fuzzing=no
14920 fi
14921
14922 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14923
14924
14925
14926
14927
14928
14929 ac_ext=cpp
14930 ac_cpp='$CXXCPP $CPPFLAGS'
14931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14934 if test -z "$CXX"; then
14935   if test -n "$CCC"; then
14936     CXX=$CCC
14937   else
14938     if test -n "$ac_tool_prefix"; then
14939   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14940   do
14941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944 printf %s "checking for $ac_word... " >&6; }
14945 if test ${ac_cv_prog_CXX+y}
14946 then :
14947   printf %s "(cached) " >&6
14948 else $as_nop
14949   if test -n "$CXX"; then
14950   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14951 else
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $PATH
14954 do
14955   IFS=$as_save_IFS
14956   case $as_dir in #(((
14957     '') as_dir=./ ;;
14958     */) ;;
14959     *) as_dir=$as_dir/ ;;
14960   esac
14961     for ac_exec_ext in '' $ac_executable_extensions; do
14962   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14963     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14964     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14965     break 2
14966   fi
14967 done
14968   done
14969 IFS=$as_save_IFS
14970
14971 fi
14972 fi
14973 CXX=$ac_cv_prog_CXX
14974 if test -n "$CXX"; then
14975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14976 printf "%s\n" "$CXX" >&6; }
14977 else
14978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 printf "%s\n" "no" >&6; }
14980 fi
14981
14982
14983     test -n "$CXX" && break
14984   done
14985 fi
14986 if test -z "$CXX"; then
14987   ac_ct_CXX=$CXX
14988   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14989 do
14990   # Extract the first word of "$ac_prog", so it can be a program name with args.
14991 set dummy $ac_prog; ac_word=$2
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993 printf %s "checking for $ac_word... " >&6; }
14994 if test ${ac_cv_prog_ac_ct_CXX+y}
14995 then :
14996   printf %s "(cached) " >&6
14997 else $as_nop
14998   if test -n "$ac_ct_CXX"; then
14999   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15000 else
15001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15003 do
15004   IFS=$as_save_IFS
15005   case $as_dir in #(((
15006     '') as_dir=./ ;;
15007     */) ;;
15008     *) as_dir=$as_dir/ ;;
15009   esac
15010     for ac_exec_ext in '' $ac_executable_extensions; do
15011   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15012     ac_cv_prog_ac_ct_CXX="$ac_prog"
15013     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15014     break 2
15015   fi
15016 done
15017   done
15018 IFS=$as_save_IFS
15019
15020 fi
15021 fi
15022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15023 if test -n "$ac_ct_CXX"; then
15024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15025 printf "%s\n" "$ac_ct_CXX" >&6; }
15026 else
15027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 printf "%s\n" "no" >&6; }
15029 fi
15030
15031
15032   test -n "$ac_ct_CXX" && break
15033 done
15034
15035   if test "x$ac_ct_CXX" = x; then
15036     CXX="g++"
15037   else
15038     case $cross_compiling:$ac_tool_warned in
15039 yes:)
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15042 ac_tool_warned=yes ;;
15043 esac
15044     CXX=$ac_ct_CXX
15045   fi
15046 fi
15047
15048   fi
15049 fi
15050 # Provide some information about the compiler.
15051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15052 set X $ac_compile
15053 ac_compiler=$2
15054 for ac_option in --version -v -V -qversion; do
15055   { { ac_try="$ac_compiler $ac_option >&5"
15056 case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15061 printf "%s\n" "$ac_try_echo"; } >&5
15062   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15063   ac_status=$?
15064   if test -s conftest.err; then
15065     sed '10a\
15066 ... rest of stderr output deleted ...
15067          10q' conftest.err >conftest.er1
15068     cat conftest.er1 >&5
15069   fi
15070   rm -f conftest.er1 conftest.err
15071   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072   test $ac_status = 0; }
15073 done
15074
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15076 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15077 if test ${ac_cv_cxx_compiler_gnu+y}
15078 then :
15079   printf %s "(cached) " >&6
15080 else $as_nop
15081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083
15084 int
15085 main (void)
15086 {
15087 #ifndef __GNUC__
15088        choke me
15089 #endif
15090
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_cxx_try_compile "$LINENO"
15096 then :
15097   ac_compiler_gnu=yes
15098 else $as_nop
15099   ac_compiler_gnu=no
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15102 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15103
15104 fi
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15106 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15108
15109 if test $ac_compiler_gnu = yes; then
15110   GXX=yes
15111 else
15112   GXX=
15113 fi
15114 ac_test_CXXFLAGS=${CXXFLAGS+y}
15115 ac_save_CXXFLAGS=$CXXFLAGS
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15117 printf %s "checking whether $CXX accepts -g... " >&6; }
15118 if test ${ac_cv_prog_cxx_g+y}
15119 then :
15120   printf %s "(cached) " >&6
15121 else $as_nop
15122   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15123    ac_cxx_werror_flag=yes
15124    ac_cv_prog_cxx_g=no
15125    CXXFLAGS="-g"
15126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h.  */
15128
15129 int
15130 main (void)
15131 {
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_cxx_try_compile "$LINENO"
15138 then :
15139   ac_cv_prog_cxx_g=yes
15140 else $as_nop
15141   CXXFLAGS=""
15142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h.  */
15144
15145 int
15146 main (void)
15147 {
15148
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 if ac_fn_cxx_try_compile "$LINENO"
15154 then :
15155
15156 else $as_nop
15157   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15158          CXXFLAGS="-g"
15159          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161
15162 int
15163 main (void)
15164 {
15165
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_cxx_try_compile "$LINENO"
15171 then :
15172   ac_cv_prog_cxx_g=yes
15173 fi
15174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15177 fi
15178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15179    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15180 fi
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15182 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15183 if test $ac_test_CXXFLAGS; then
15184   CXXFLAGS=$ac_save_CXXFLAGS
15185 elif test $ac_cv_prog_cxx_g = yes; then
15186   if test "$GXX" = yes; then
15187     CXXFLAGS="-g -O2"
15188   else
15189     CXXFLAGS="-g"
15190   fi
15191 else
15192   if test "$GXX" = yes; then
15193     CXXFLAGS="-O2"
15194   else
15195     CXXFLAGS=
15196   fi
15197 fi
15198 ac_prog_cxx_stdcxx=no
15199 if test x$ac_prog_cxx_stdcxx = xno
15200 then :
15201   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15202 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15203 if test ${ac_cv_prog_cxx_cxx11+y}
15204 then :
15205   printf %s "(cached) " >&6
15206 else $as_nop
15207   ac_cv_prog_cxx_cxx11=no
15208 ac_save_CXX=$CXX
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h.  */
15211 $ac_cxx_conftest_cxx11_program
15212 _ACEOF
15213 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15214 do
15215   CXX="$ac_save_CXX $ac_arg"
15216   if ac_fn_cxx_try_compile "$LINENO"
15217 then :
15218   ac_cv_prog_cxx_cxx11=$ac_arg
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.beam
15221   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15222 done
15223 rm -f conftest.$ac_ext
15224 CXX=$ac_save_CXX
15225 fi
15226
15227 if test "x$ac_cv_prog_cxx_cxx11" = xno
15228 then :
15229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15230 printf "%s\n" "unsupported" >&6; }
15231 else $as_nop
15232   if test "x$ac_cv_prog_cxx_cxx11" = x
15233 then :
15234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15235 printf "%s\n" "none needed" >&6; }
15236 else $as_nop
15237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15238 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15239      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15240 fi
15241   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15242   ac_prog_cxx_stdcxx=cxx11
15243 fi
15244 fi
15245 if test x$ac_prog_cxx_stdcxx = xno
15246 then :
15247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15248 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15249 if test ${ac_cv_prog_cxx_cxx98+y}
15250 then :
15251   printf %s "(cached) " >&6
15252 else $as_nop
15253   ac_cv_prog_cxx_cxx98=no
15254 ac_save_CXX=$CXX
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h.  */
15257 $ac_cxx_conftest_cxx98_program
15258 _ACEOF
15259 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15260 do
15261   CXX="$ac_save_CXX $ac_arg"
15262   if ac_fn_cxx_try_compile "$LINENO"
15263 then :
15264   ac_cv_prog_cxx_cxx98=$ac_arg
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext conftest.beam
15267   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15268 done
15269 rm -f conftest.$ac_ext
15270 CXX=$ac_save_CXX
15271 fi
15272
15273 if test "x$ac_cv_prog_cxx_cxx98" = xno
15274 then :
15275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15276 printf "%s\n" "unsupported" >&6; }
15277 else $as_nop
15278   if test "x$ac_cv_prog_cxx_cxx98" = x
15279 then :
15280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15281 printf "%s\n" "none needed" >&6; }
15282 else $as_nop
15283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15284 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15285      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15286 fi
15287   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15288   ac_prog_cxx_stdcxx=cxx98
15289 fi
15290 fi
15291
15292 ac_ext=c
15293 ac_cpp='$CPP $CPPFLAGS'
15294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15297
15298         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15299 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15300         ac_ext=cpp
15301 ac_cpp='$CXXCPP $CPPFLAGS'
15302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15305
15306         OLD_CXXFLAGS="$CXXFLAGS"
15307         OLD_LDFLAGS="$LDFLAGS"
15308         FUZZER_FLAGS="-fsanitize=fuzzer"
15309         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15310         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15311
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h.  */
15314
15315                 #include <stddef.h>
15316                 #include <stdint.h>
15317
15318 int
15319 main (void)
15320 {
15321  return 0;
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_cxx_try_compile "$LINENO"
15327 then :
15328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329 printf "%s\n" "yes" >&6; }
15330                 fuzzer_cflags=$FUZZER_FLAGS
15331                 fuzzer_ldflags=$FUZZER_FLAGS
15332                 FUZZING_CMT=
15333                 have_fuzzer=yes
15334 else $as_nop
15335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15336 printf "%s\n" "no" >&6; }
15337                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15340         CXXFLAGS="${OLD_CXXFLAGS}"
15341         LDFLAGS="${OLD_LDFLAGS}"
15342         ac_ext=c
15343 ac_cpp='$CPP $CPPFLAGS'
15344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347
15348
15349
15350
15351 fi
15352 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15353         as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15354 fi
15355
15356 LINUX_CMT="#"
15357 CYGWIN_CMT="#"
15358 UNIX_CMT=
15359 case "$host_os" in
15360 linux*)
15361         LINUX_CMT=
15362         ;;
15363 cygwin)
15364         CYGWIN_CMT=
15365         UNIX_CMT="#"
15366         ;;
15367 esac
15368
15369
15370
15371 E2SCRUB_CMT="$LINUX_CMT"
15372
15373 case "$host_os" in
15374 linux* | gnu* | k*bsd*-gnu)
15375         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15376                 root_prefix="";
15377                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15378 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15379         fi
15380         ;;
15381 esac
15382 case "$host_os" in
15383 linux* | gnu* | k*bsd*-gnu)
15384         if test "$prefix" = NONE ; then
15385                 prefix="/usr";
15386                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15387 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15388                 if test "$mandir" = '${prefix}/man' ; then
15389                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15390 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15391                         mandir=/usr/share/man
15392                 fi
15393         fi
15394 ;;
15395 esac
15396 if test "$root_prefix" = NONE ; then
15397         if test "$prefix" = NONE ; then
15398                 root_prefix="$ac_default_prefix"
15399         else
15400                 root_prefix="$prefix"
15401         fi
15402         root_bindir=$bindir
15403         root_sbindir=$sbindir
15404         root_libdir=$libdir
15405         root_sysconfdir=$sysconfdir
15406 else
15407         root_bindir='${root_prefix}/bin'
15408         root_sbindir='${root_prefix}/sbin'
15409         root_libdir='${root_prefix}/lib'
15410         root_sysconfdir='${root_prefix}/etc'
15411 fi
15412 if test "$bindir" != '${exec_prefix}/bin'; then
15413     root_bindir=$bindir
15414     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15415 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15416 fi
15417 if test "$sbindir" != '${exec_prefix}/sbin'; then
15418     root_sbindir=$sbindir
15419     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15420 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15421 fi
15422 if test "$libdir" != '${exec_prefix}/lib'; then
15423     root_libdir=$libdir
15424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15425 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15426 fi
15427 if test "$sysconfdir" != '${prefix}/etc'; then
15428     root_sysconfdir=$sysconfdir
15429     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15430 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15431 fi
15432
15433
15434
15435
15436
15437
15438 # Check whether --with-multiarch was given.
15439 if test ${with_multiarch+y}
15440 then :
15441   withval=$with_multiarch; if test "$withval" = "lib64"; then
15442     libdir=/usr/lib64
15443     root_libdir=/lib64
15444 else
15445     libdir=$libdir/$withval
15446     root_libdir=$root_libdir/$withval
15447 fi
15448
15449 fi
15450
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15452 printf %s "checking whether we can link with -static... " >&6; }
15453 if test ${ac_cv_e2fsprogs_use_static+y}
15454 then :
15455   printf %s "(cached) " >&6
15456 else $as_nop
15457   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h.  */
15460 #include <stdio.h>
15461 int
15462 main (void)
15463 {
15464 fflush(stdout);
15465   ;
15466   return 0;
15467 }
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"
15470 then :
15471   ac_cv_e2fsprogs_use_static=yes
15472 else $as_nop
15473   ac_cv_e2fsprogs_use_static=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15476     conftest$ac_exeext conftest.$ac_ext
15477 LDFLAGS=$SAVE_LDFLAGS
15478 fi
15479
15480 case "$host_os" in
15481 solaris2.*)
15482         ac_cv_e2fsprogs_use_static=no
15483 ;;
15484 esac
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15486 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15487 if test $ac_cv_e2fsprogs_use_static = yes; then
15488         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15489 fi
15490
15491 case "$host_os" in
15492 darwin*)
15493         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15494 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15495
15496 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15497
15498         ;;
15499 esac
15500 if test "$cross_compiling" = yes ; then
15501   DO_TEST_SUITE=
15502 else
15503   DO_TEST_SUITE=check
15504 fi
15505
15506 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15507 if test -n "$CPPFLAGS" ; then
15508         INCLUDES="$INCLUDES $CPPFLAGS"
15509 fi
15510 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15511         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15512 fi
15513 if test -n "$WITH_DIET_LIBC" ; then
15514         INCLUDES="$INCLUDES -D_REENTRANT"
15515 fi
15516 case "$host_os" in
15517 mingw*)
15518         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15519         ;;
15520 esac
15521
15522 if test $cross_compiling = no; then
15523    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15524    BUILD_LDFLAGS="$LDFLAGS"
15525 fi
15526
15527
15528 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15529 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15530 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15531
15532
15533
15534
15535
15536 # Check whether --with-udev_rules_dir was given.
15537 if test ${with_udev_rules_dir+y}
15538 then :
15539   withval=$with_udev_rules_dir;
15540 else $as_nop
15541   with_udev_rules_dir=yes
15542 fi
15543
15544 if test "x${with_udev_rules_dir}" != "xno"
15545 then :
15546
15547         if test "x${with_udev_rules_dir}" = "xyes"
15548 then :
15549
15550
15551 pkg_failed=no
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15553 printf %s "checking for udev... " >&6; }
15554
15555 if test -n "$udev_CFLAGS"; then
15556     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15557  elif test -n "$PKG_CONFIG"; then
15558     if test -n "$PKG_CONFIG" && \
15559     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15560   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15561   ac_status=$?
15562   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563   test $ac_status = 0; }; then
15564   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15565                       test "x$?" != "x0" && pkg_failed=yes
15566 else
15567   pkg_failed=yes
15568 fi
15569  else
15570     pkg_failed=untried
15571 fi
15572 if test -n "$udev_LIBS"; then
15573     pkg_cv_udev_LIBS="$udev_LIBS"
15574  elif test -n "$PKG_CONFIG"; then
15575     if test -n "$PKG_CONFIG" && \
15576     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15577   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15578   ac_status=$?
15579   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15580   test $ac_status = 0; }; then
15581   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15582                       test "x$?" != "x0" && pkg_failed=yes
15583 else
15584   pkg_failed=yes
15585 fi
15586  else
15587     pkg_failed=untried
15588 fi
15589
15590
15591
15592 if test $pkg_failed = yes; then
15593         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 printf "%s\n" "no" >&6; }
15595
15596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15597         _pkg_short_errors_supported=yes
15598 else
15599         _pkg_short_errors_supported=no
15600 fi
15601         if test $_pkg_short_errors_supported = yes; then
15602                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15603         else
15604                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15605         fi
15606         # Put the nasty error message in config.log where it belongs
15607         echo "$udev_PKG_ERRORS" >&5
15608
15609
15610                         with_udev_rules_dir=""
15611
15612 elif test $pkg_failed = untried; then
15613         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 printf "%s\n" "no" >&6; }
15615
15616                         with_udev_rules_dir=""
15617
15618 else
15619         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15620         udev_LIBS=$pkg_cv_udev_LIBS
15621         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15622 printf "%s\n" "yes" >&6; }
15623
15624                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15625
15626 fi
15627
15628 fi
15629         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15630 printf %s "checking for udev rules dir... " >&6; }
15631         pkg_udev_rules_dir="${with_udev_rules_dir}"
15632         if test -n "${pkg_udev_rules_dir}"
15633 then :
15634
15635                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15636 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15637                 have_udev="yes"
15638
15639 else $as_nop
15640
15641                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 printf "%s\n" "no" >&6; }
15643                 have_udev="no"
15644
15645 fi
15646
15647 else $as_nop
15648
15649         have_udev="disabled"
15650
15651 fi
15652
15653
15654
15655
15656 # Check whether --with-crond_dir was given.
15657 if test ${with_crond_dir+y}
15658 then :
15659   withval=$with_crond_dir;
15660 else $as_nop
15661   with_crond_dir=yes
15662 fi
15663
15664 if test "x${with_crond_dir}" != "xno"
15665 then :
15666
15667         if test "x${with_crond_dir}" = "xyes"
15668 then :
15669
15670                 if test -d "/etc/cron.d"
15671 then :
15672   with_crond_dir="/etc/cron.d"
15673 else $as_nop
15674   have_crond="no"; with_crond_dir=""
15675 fi
15676
15677 fi
15678         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15679 printf %s "checking for system crontab dir... " >&6; }
15680         crond_dir="${with_crond_dir}"
15681         if test -n "${crond_dir}"
15682 then :
15683
15684                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15685 printf "%s\n" "${crond_dir}" >&6; }
15686                 have_crond="yes"
15687
15688 else $as_nop
15689
15690                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 printf "%s\n" "no" >&6; }
15692                 have_crond="no"
15693
15694 fi
15695
15696 else $as_nop
15697
15698         have_crond="disabled"
15699
15700 fi
15701
15702
15703
15704
15705 # Check whether --with-systemd_unit_dir was given.
15706 if test ${with_systemd_unit_dir+y}
15707 then :
15708   withval=$with_systemd_unit_dir;
15709 else $as_nop
15710   with_systemd_unit_dir=yes
15711 fi
15712
15713 if test "x${with_systemd_unit_dir}" != "xno"
15714 then :
15715
15716         if test "x${with_systemd_unit_dir}" = "xyes"
15717 then :
15718
15719
15720 pkg_failed=no
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15722 printf %s "checking for systemd... " >&6; }
15723
15724 if test -n "$systemd_CFLAGS"; then
15725     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15726  elif test -n "$PKG_CONFIG"; then
15727     if test -n "$PKG_CONFIG" && \
15728     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15729   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15730   ac_status=$?
15731   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732   test $ac_status = 0; }; then
15733   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15734                       test "x$?" != "x0" && pkg_failed=yes
15735 else
15736   pkg_failed=yes
15737 fi
15738  else
15739     pkg_failed=untried
15740 fi
15741 if test -n "$systemd_LIBS"; then
15742     pkg_cv_systemd_LIBS="$systemd_LIBS"
15743  elif test -n "$PKG_CONFIG"; then
15744     if test -n "$PKG_CONFIG" && \
15745     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15746   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15747   ac_status=$?
15748   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15749   test $ac_status = 0; }; then
15750   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15751                       test "x$?" != "x0" && pkg_failed=yes
15752 else
15753   pkg_failed=yes
15754 fi
15755  else
15756     pkg_failed=untried
15757 fi
15758
15759
15760
15761 if test $pkg_failed = yes; then
15762         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 printf "%s\n" "no" >&6; }
15764
15765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15766         _pkg_short_errors_supported=yes
15767 else
15768         _pkg_short_errors_supported=no
15769 fi
15770         if test $_pkg_short_errors_supported = yes; then
15771                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15772         else
15773                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15774         fi
15775         # Put the nasty error message in config.log where it belongs
15776         echo "$systemd_PKG_ERRORS" >&5
15777
15778
15779                         with_systemd_unit_dir=""
15780
15781 elif test $pkg_failed = untried; then
15782         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 printf "%s\n" "no" >&6; }
15784
15785                         with_systemd_unit_dir=""
15786
15787 else
15788         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15789         systemd_LIBS=$pkg_cv_systemd_LIBS
15790         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 printf "%s\n" "yes" >&6; }
15792
15793                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15794
15795 fi
15796
15797
15798 fi
15799         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15800 printf %s "checking for systemd system unit dir... " >&6; }
15801         systemd_system_unit_dir="${with_systemd_unit_dir}"
15802         if test -n "${systemd_system_unit_dir}"
15803 then :
15804
15805                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15806 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15807                 have_systemd="yes"
15808
15809 else $as_nop
15810
15811                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 printf "%s\n" "no" >&6; }
15813                 have_systemd="no"
15814
15815 fi
15816
15817 else $as_nop
15818
15819         have_systemd="disabled"
15820
15821 fi
15822
15823
15824 OS_IO_FILE=""
15825 case "$host_os" in
15826   mingw*)
15827     OS_IO_FILE=windows_io
15828   ;;
15829   *)
15830     OS_IO_FILE=unix_io
15831   ;;
15832 esac
15833
15834
15835 # Check whether --enable-largefile was given.
15836 if test ${enable_largefile+y}
15837 then :
15838   enableval=$enable_largefile;
15839 fi
15840
15841 if test "$enable_largefile" != no; then
15842
15843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15844 printf %s "checking for special C compiler options needed for large files... " >&6; }
15845 if test ${ac_cv_sys_largefile_CC+y}
15846 then :
15847   printf %s "(cached) " >&6
15848 else $as_nop
15849   ac_cv_sys_largefile_CC=no
15850      if test "$GCC" != yes; then
15851        ac_save_CC=$CC
15852        while :; do
15853          # IRIX 6.2 and later do not support large files by default,
15854          # so use the C compiler's -n32 option if that helps.
15855          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h.  */
15857 #include <sys/types.h>
15858  /* Check that off_t can represent 2**63 - 1 correctly.
15859     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15860     since some C++ compilers masquerading as C compilers
15861     incorrectly reject 9223372036854775807.  */
15862 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15863   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15864                        && LARGE_OFF_T % 2147483647 == 1)
15865                       ? 1 : -1];
15866 int
15867 main (void)
15868 {
15869
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874          if ac_fn_c_try_compile "$LINENO"
15875 then :
15876   break
15877 fi
15878 rm -f core conftest.err conftest.$ac_objext conftest.beam
15879          CC="$CC -n32"
15880          if ac_fn_c_try_compile "$LINENO"
15881 then :
15882   ac_cv_sys_largefile_CC=' -n32'; break
15883 fi
15884 rm -f core conftest.err conftest.$ac_objext conftest.beam
15885          break
15886        done
15887        CC=$ac_save_CC
15888        rm -f conftest.$ac_ext
15889     fi
15890 fi
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15892 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15893   if test "$ac_cv_sys_largefile_CC" != no; then
15894     CC=$CC$ac_cv_sys_largefile_CC
15895   fi
15896
15897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15898 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15899 if test ${ac_cv_sys_file_offset_bits+y}
15900 then :
15901   printf %s "(cached) " >&6
15902 else $as_nop
15903   while :; do
15904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h.  */
15906 #include <sys/types.h>
15907  /* Check that off_t can represent 2**63 - 1 correctly.
15908     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15909     since some C++ compilers masquerading as C compilers
15910     incorrectly reject 9223372036854775807.  */
15911 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15912   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15913                        && LARGE_OFF_T % 2147483647 == 1)
15914                       ? 1 : -1];
15915 int
15916 main (void)
15917 {
15918
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_compile "$LINENO"
15924 then :
15925   ac_cv_sys_file_offset_bits=no; break
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h.  */
15930 #define _FILE_OFFSET_BITS 64
15931 #include <sys/types.h>
15932  /* Check that off_t can represent 2**63 - 1 correctly.
15933     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15934     since some C++ compilers masquerading as C compilers
15935     incorrectly reject 9223372036854775807.  */
15936 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15937   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15938                        && LARGE_OFF_T % 2147483647 == 1)
15939                       ? 1 : -1];
15940 int
15941 main (void)
15942 {
15943
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 if ac_fn_c_try_compile "$LINENO"
15949 then :
15950   ac_cv_sys_file_offset_bits=64; break
15951 fi
15952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15953   ac_cv_sys_file_offset_bits=unknown
15954   break
15955 done
15956 fi
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15958 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15959 case $ac_cv_sys_file_offset_bits in #(
15960   no | unknown) ;;
15961   *)
15962 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15963 ;;
15964 esac
15965 rm -rf conftest*
15966   if test $ac_cv_sys_file_offset_bits = unknown; then
15967     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15968 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15969 if test ${ac_cv_sys_large_files+y}
15970 then :
15971   printf %s "(cached) " >&6
15972 else $as_nop
15973   while :; do
15974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h.  */
15976 #include <sys/types.h>
15977  /* Check that off_t can represent 2**63 - 1 correctly.
15978     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15979     since some C++ compilers masquerading as C compilers
15980     incorrectly reject 9223372036854775807.  */
15981 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15982   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15983                        && LARGE_OFF_T % 2147483647 == 1)
15984                       ? 1 : -1];
15985 int
15986 main (void)
15987 {
15988
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_compile "$LINENO"
15994 then :
15995   ac_cv_sys_large_files=no; break
15996 fi
15997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000 #define _LARGE_FILES 1
16001 #include <sys/types.h>
16002  /* Check that off_t can represent 2**63 - 1 correctly.
16003     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16004     since some C++ compilers masquerading as C compilers
16005     incorrectly reject 9223372036854775807.  */
16006 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16007   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16008                        && LARGE_OFF_T % 2147483647 == 1)
16009                       ? 1 : -1];
16010 int
16011 main (void)
16012 {
16013
16014   ;
16015   return 0;
16016 }
16017 _ACEOF
16018 if ac_fn_c_try_compile "$LINENO"
16019 then :
16020   ac_cv_sys_large_files=1; break
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16023   ac_cv_sys_large_files=unknown
16024   break
16025 done
16026 fi
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16028 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
16029 case $ac_cv_sys_large_files in #(
16030   no | unknown) ;;
16031   *)
16032 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
16033 ;;
16034 esac
16035 rm -rf conftest*
16036   fi
16037 fi
16038
16039
16040 test -d lib || mkdir lib
16041 test -d include || mkdir include
16042 test -d include/linux || mkdir include/linux
16043 test -d include/asm || mkdir include/asm
16044 if test -z "$UUID_CMT" ; then
16045         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16046                 lib/uuid/uuid_types.h"
16047 fi
16048 if test -z "$BLKID_CMT" ; then
16049         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16050                 lib/blkid/blkid_types.h"
16051 fi
16052 for i in MCONFIG Makefile \
16053         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16054         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16055         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16056         $uuid_out_list $blkid_out_list lib/support/Makefile \
16057         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16058         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16059         debugfs/Makefile tests/Makefile tests/progs/Makefile \
16060         tests/fuzz/Makefile resize/Makefile doc/Makefile \
16061         po/Makefile.in scrub/Makefile; do
16062         if test -d `dirname ${srcdir}/$i` ; then
16063                 outlist="$outlist $i"
16064         fi
16065 done
16066 ac_config_files="$ac_config_files $outlist"
16067
16068 cat >confcache <<\_ACEOF
16069 # This file is a shell script that caches the results of configure
16070 # tests run on this system so they can be shared between configure
16071 # scripts and configure runs, see configure's option --config-cache.
16072 # It is not useful on other systems.  If it contains results you don't
16073 # want to keep, you may remove or edit it.
16074 #
16075 # config.status only pays attention to the cache file if you give it
16076 # the --recheck option to rerun configure.
16077 #
16078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16080 # following values.
16081
16082 _ACEOF
16083
16084 # The following way of writing the cache mishandles newlines in values,
16085 # but we know of no workaround that is simple, portable, and efficient.
16086 # So, we kill variables containing newlines.
16087 # Ultrix sh set writes to stderr and can't be redirected directly,
16088 # and sets the high bit in the cache file unless we assign to the vars.
16089 (
16090   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16091     eval ac_val=\$$ac_var
16092     case $ac_val in #(
16093     *${as_nl}*)
16094       case $ac_var in #(
16095       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16096 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16097       esac
16098       case $ac_var in #(
16099       _ | IFS | as_nl) ;; #(
16100       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16101       *) { eval $ac_var=; unset $ac_var;} ;;
16102       esac ;;
16103     esac
16104   done
16105
16106   (set) 2>&1 |
16107     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16108     *${as_nl}ac_space=\ *)
16109       # `set' does not quote correctly, so add quotes: double-quote
16110       # substitution turns \\\\ into \\, and sed turns \\ into \.
16111       sed -n \
16112         "s/'/'\\\\''/g;
16113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16114       ;; #(
16115     *)
16116       # `set' quotes correctly as required by POSIX, so do not add quotes.
16117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16118       ;;
16119     esac |
16120     sort
16121 ) |
16122   sed '
16123      /^ac_cv_env_/b end
16124      t clear
16125      :clear
16126      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16127      t end
16128      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16129      :end' >>confcache
16130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16131   if test -w "$cache_file"; then
16132     if test "x$cache_file" != "x/dev/null"; then
16133       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16134 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16135       if test ! -f "$cache_file" || test -h "$cache_file"; then
16136         cat confcache >"$cache_file"
16137       else
16138         case $cache_file in #(
16139         */* | ?:*)
16140           mv -f confcache "$cache_file"$$ &&
16141           mv -f "$cache_file"$$ "$cache_file" ;; #(
16142         *)
16143           mv -f confcache "$cache_file" ;;
16144         esac
16145       fi
16146     fi
16147   else
16148     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16149 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16150   fi
16151 fi
16152 rm -f confcache
16153
16154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16155 # Let make expand exec_prefix.
16156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16157
16158 DEFS=-DHAVE_CONFIG_H
16159
16160 ac_libobjs=
16161 ac_ltlibobjs=
16162 U=
16163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16164   # 1. Remove the extension, and $U if already installed.
16165   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16166   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16167   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16168   #    will be set to the directory where LIBOBJS objects are built.
16169   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16170   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16171 done
16172 LIBOBJS=$ac_libobjs
16173
16174 LTLIBOBJS=$ac_ltlibobjs
16175
16176
16177
16178
16179 : "${CONFIG_STATUS=./config.status}"
16180 ac_write_fail=0
16181 ac_clean_files_save=$ac_clean_files
16182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16184 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16185 as_write_fail=0
16186 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16187 #! $SHELL
16188 # Generated by $as_me.
16189 # Run this file to recreate the current configuration.
16190 # Compiler output produced by configure, useful for debugging
16191 # configure, is in config.log if it exists.
16192
16193 debug=false
16194 ac_cs_recheck=false
16195 ac_cs_silent=false
16196
16197 SHELL=\${CONFIG_SHELL-$SHELL}
16198 export SHELL
16199 _ASEOF
16200 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16201 ## -------------------- ##
16202 ## M4sh Initialization. ##
16203 ## -------------------- ##
16204
16205 # Be more Bourne compatible
16206 DUALCASE=1; export DUALCASE # for MKS sh
16207 as_nop=:
16208 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16209 then :
16210   emulate sh
16211   NULLCMD=:
16212   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16213   # is contrary to our usage.  Disable this feature.
16214   alias -g '${1+"$@"}'='"$@"'
16215   setopt NO_GLOB_SUBST
16216 else $as_nop
16217   case `(set -o) 2>/dev/null` in #(
16218   *posix*) :
16219     set -o posix ;; #(
16220   *) :
16221      ;;
16222 esac
16223 fi
16224
16225
16226
16227 # Reset variables that may have inherited troublesome values from
16228 # the environment.
16229
16230 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16231 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16232 # side effect of setting IFS to empty, thus disabling word splitting.)
16233 # Quoting is to prevent editors from complaining about space-tab.
16234 as_nl='
16235 '
16236 export as_nl
16237 IFS=" ""        $as_nl"
16238
16239 PS1='$ '
16240 PS2='> '
16241 PS4='+ '
16242
16243 # Ensure predictable behavior from utilities with locale-dependent output.
16244 LC_ALL=C
16245 export LC_ALL
16246 LANGUAGE=C
16247 export LANGUAGE
16248
16249 # We cannot yet rely on "unset" to work, but we need these variables
16250 # to be unset--not just set to an empty or harmless value--now, to
16251 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16252 # also avoids known problems related to "unset" and subshell syntax
16253 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16254 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16255 do eval test \${$as_var+y} \
16256   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16257 done
16258
16259 # Ensure that fds 0, 1, and 2 are open.
16260 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16261 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16262 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16263
16264 # The user is always right.
16265 if ${PATH_SEPARATOR+false} :; then
16266   PATH_SEPARATOR=:
16267   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16268     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16269       PATH_SEPARATOR=';'
16270   }
16271 fi
16272
16273
16274 # Find who we are.  Look in the path if we contain no directory separator.
16275 as_myself=
16276 case $0 in #((
16277   *[\\/]* ) as_myself=$0 ;;
16278   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16280 do
16281   IFS=$as_save_IFS
16282   case $as_dir in #(((
16283     '') as_dir=./ ;;
16284     */) ;;
16285     *) as_dir=$as_dir/ ;;
16286   esac
16287     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16288   done
16289 IFS=$as_save_IFS
16290
16291      ;;
16292 esac
16293 # We did not find ourselves, most probably we were run as `sh COMMAND'
16294 # in which case we are not to be found in the path.
16295 if test "x$as_myself" = x; then
16296   as_myself=$0
16297 fi
16298 if test ! -f "$as_myself"; then
16299   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16300   exit 1
16301 fi
16302
16303
16304
16305 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16306 # ----------------------------------------
16307 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16308 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16309 # script with STATUS, using 1 if that was 0.
16310 as_fn_error ()
16311 {
16312   as_status=$1; test $as_status -eq 0 && as_status=1
16313   if test "$4"; then
16314     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16315     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16316   fi
16317   printf "%s\n" "$as_me: error: $2" >&2
16318   as_fn_exit $as_status
16319 } # as_fn_error
16320
16321
16322
16323 # as_fn_set_status STATUS
16324 # -----------------------
16325 # Set $? to STATUS, without forking.
16326 as_fn_set_status ()
16327 {
16328   return $1
16329 } # as_fn_set_status
16330
16331 # as_fn_exit STATUS
16332 # -----------------
16333 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16334 as_fn_exit ()
16335 {
16336   set +e
16337   as_fn_set_status $1
16338   exit $1
16339 } # as_fn_exit
16340
16341 # as_fn_unset VAR
16342 # ---------------
16343 # Portably unset VAR.
16344 as_fn_unset ()
16345 {
16346   { eval $1=; unset $1;}
16347 }
16348 as_unset=as_fn_unset
16349
16350 # as_fn_append VAR VALUE
16351 # ----------------------
16352 # Append the text in VALUE to the end of the definition contained in VAR. Take
16353 # advantage of any shell optimizations that allow amortized linear growth over
16354 # repeated appends, instead of the typical quadratic growth present in naive
16355 # implementations.
16356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16357 then :
16358   eval 'as_fn_append ()
16359   {
16360     eval $1+=\$2
16361   }'
16362 else $as_nop
16363   as_fn_append ()
16364   {
16365     eval $1=\$$1\$2
16366   }
16367 fi # as_fn_append
16368
16369 # as_fn_arith ARG...
16370 # ------------------
16371 # Perform arithmetic evaluation on the ARGs, and store the result in the
16372 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16373 # must be portable across $(()) and expr.
16374 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16375 then :
16376   eval 'as_fn_arith ()
16377   {
16378     as_val=$(( $* ))
16379   }'
16380 else $as_nop
16381   as_fn_arith ()
16382   {
16383     as_val=`expr "$@" || test $? -eq 1`
16384   }
16385 fi # as_fn_arith
16386
16387
16388 if expr a : '\(a\)' >/dev/null 2>&1 &&
16389    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16390   as_expr=expr
16391 else
16392   as_expr=false
16393 fi
16394
16395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16396   as_basename=basename
16397 else
16398   as_basename=false
16399 fi
16400
16401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16402   as_dirname=dirname
16403 else
16404   as_dirname=false
16405 fi
16406
16407 as_me=`$as_basename -- "$0" ||
16408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16409          X"$0" : 'X\(//\)$' \| \
16410          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16411 printf "%s\n" X/"$0" |
16412     sed '/^.*\/\([^/][^/]*\)\/*$/{
16413             s//\1/
16414             q
16415           }
16416           /^X\/\(\/\/\)$/{
16417             s//\1/
16418             q
16419           }
16420           /^X\/\(\/\).*/{
16421             s//\1/
16422             q
16423           }
16424           s/.*/./; q'`
16425
16426 # Avoid depending upon Character Ranges.
16427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16430 as_cr_digits='0123456789'
16431 as_cr_alnum=$as_cr_Letters$as_cr_digits
16432
16433
16434 # Determine whether it's possible to make 'echo' print without a newline.
16435 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16436 # for compatibility with existing Makefiles.
16437 ECHO_C= ECHO_N= ECHO_T=
16438 case `echo -n x` in #(((((
16439 -n*)
16440   case `echo 'xy\c'` in
16441   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16442   xy)  ECHO_C='\c';;
16443   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16444        ECHO_T=' ';;
16445   esac;;
16446 *)
16447   ECHO_N='-n';;
16448 esac
16449
16450 # For backward compatibility with old third-party macros, we provide
16451 # the shell variables $as_echo and $as_echo_n.  New code should use
16452 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16453 as_echo='printf %s\n'
16454 as_echo_n='printf %s'
16455
16456 rm -f conf$$ conf$$.exe conf$$.file
16457 if test -d conf$$.dir; then
16458   rm -f conf$$.dir/conf$$.file
16459 else
16460   rm -f conf$$.dir
16461   mkdir conf$$.dir 2>/dev/null
16462 fi
16463 if (echo >conf$$.file) 2>/dev/null; then
16464   if ln -s conf$$.file conf$$ 2>/dev/null; then
16465     as_ln_s='ln -s'
16466     # ... but there are two gotchas:
16467     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16468     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16469     # In both cases, we have to default to `cp -pR'.
16470     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16471       as_ln_s='cp -pR'
16472   elif ln conf$$.file conf$$ 2>/dev/null; then
16473     as_ln_s=ln
16474   else
16475     as_ln_s='cp -pR'
16476   fi
16477 else
16478   as_ln_s='cp -pR'
16479 fi
16480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16481 rmdir conf$$.dir 2>/dev/null
16482
16483
16484 # as_fn_mkdir_p
16485 # -------------
16486 # Create "$as_dir" as a directory, including parents if necessary.
16487 as_fn_mkdir_p ()
16488 {
16489
16490   case $as_dir in #(
16491   -*) as_dir=./$as_dir;;
16492   esac
16493   test -d "$as_dir" || eval $as_mkdir_p || {
16494     as_dirs=
16495     while :; do
16496       case $as_dir in #(
16497       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16498       *) as_qdir=$as_dir;;
16499       esac
16500       as_dirs="'$as_qdir' $as_dirs"
16501       as_dir=`$as_dirname -- "$as_dir" ||
16502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16503          X"$as_dir" : 'X\(//\)[^/]' \| \
16504          X"$as_dir" : 'X\(//\)$' \| \
16505          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16506 printf "%s\n" X"$as_dir" |
16507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16508             s//\1/
16509             q
16510           }
16511           /^X\(\/\/\)[^/].*/{
16512             s//\1/
16513             q
16514           }
16515           /^X\(\/\/\)$/{
16516             s//\1/
16517             q
16518           }
16519           /^X\(\/\).*/{
16520             s//\1/
16521             q
16522           }
16523           s/.*/./; q'`
16524       test -d "$as_dir" && break
16525     done
16526     test -z "$as_dirs" || eval "mkdir $as_dirs"
16527   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16528
16529
16530 } # as_fn_mkdir_p
16531 if mkdir -p . 2>/dev/null; then
16532   as_mkdir_p='mkdir -p "$as_dir"'
16533 else
16534   test -d ./-p && rmdir ./-p
16535   as_mkdir_p=false
16536 fi
16537
16538
16539 # as_fn_executable_p FILE
16540 # -----------------------
16541 # Test if FILE is an executable regular file.
16542 as_fn_executable_p ()
16543 {
16544   test -f "$1" && test -x "$1"
16545 } # as_fn_executable_p
16546 as_test_x='test -x'
16547 as_executable_p=as_fn_executable_p
16548
16549 # Sed expression to map a string onto a valid CPP name.
16550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16551
16552 # Sed expression to map a string onto a valid variable name.
16553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16554
16555
16556 exec 6>&1
16557 ## ----------------------------------- ##
16558 ## Main body of $CONFIG_STATUS script. ##
16559 ## ----------------------------------- ##
16560 _ASEOF
16561 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16562
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 # Save the log message, to keep $0 and so on meaningful, and to
16565 # report actual input values of CONFIG_FILES etc. instead of their
16566 # values after options handling.
16567 ac_log="
16568 This file was extended by $as_me, which was
16569 generated by GNU Autoconf 2.71.  Invocation command line was
16570
16571   CONFIG_FILES    = $CONFIG_FILES
16572   CONFIG_HEADERS  = $CONFIG_HEADERS
16573   CONFIG_LINKS    = $CONFIG_LINKS
16574   CONFIG_COMMANDS = $CONFIG_COMMANDS
16575   $ $0 $@
16576
16577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16578 "
16579
16580 _ACEOF
16581
16582 case $ac_config_files in *"
16583 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16584 esac
16585
16586 case $ac_config_headers in *"
16587 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16588 esac
16589
16590
16591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592 # Files that config.status was made for.
16593 config_files="$ac_config_files"
16594 config_headers="$ac_config_headers"
16595 config_commands="$ac_config_commands"
16596
16597 _ACEOF
16598
16599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16600 ac_cs_usage="\
16601 \`$as_me' instantiates files and other configuration actions
16602 from templates according to the current configuration.  Unless the files
16603 and actions are specified as TAGs, all are instantiated by default.
16604
16605 Usage: $0 [OPTION]... [TAG]...
16606
16607   -h, --help       print this help, then exit
16608   -V, --version    print version number and configuration settings, then exit
16609       --config     print configuration, then exit
16610   -q, --quiet, --silent
16611                    do not print progress messages
16612   -d, --debug      don't remove temporary files
16613       --recheck    update $as_me by reconfiguring in the same conditions
16614       --file=FILE[:TEMPLATE]
16615                    instantiate the configuration file FILE
16616       --header=FILE[:TEMPLATE]
16617                    instantiate the configuration header FILE
16618
16619 Configuration files:
16620 $config_files
16621
16622 Configuration headers:
16623 $config_headers
16624
16625 Configuration commands:
16626 $config_commands
16627
16628 Report bugs to the package provider."
16629
16630 _ACEOF
16631 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16632 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16634 ac_cs_config='$ac_cs_config_escaped'
16635 ac_cs_version="\\
16636 config.status
16637 configured by $0, generated by GNU Autoconf 2.71,
16638   with options \\"\$ac_cs_config\\"
16639
16640 Copyright (C) 2021 Free Software Foundation, Inc.
16641 This config.status script is free software; the Free Software Foundation
16642 gives unlimited permission to copy, distribute and modify it."
16643
16644 ac_pwd='$ac_pwd'
16645 srcdir='$srcdir'
16646 INSTALL='$INSTALL'
16647 MKDIR_P='$MKDIR_P'
16648 AWK='$AWK'
16649 test -n "\$AWK" || AWK=awk
16650 _ACEOF
16651
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 # The default lists apply if the user does not specify any file.
16654 ac_need_defaults=:
16655 while test $# != 0
16656 do
16657   case $1 in
16658   --*=?*)
16659     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16660     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16661     ac_shift=:
16662     ;;
16663   --*=)
16664     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16665     ac_optarg=
16666     ac_shift=:
16667     ;;
16668   *)
16669     ac_option=$1
16670     ac_optarg=$2
16671     ac_shift=shift
16672     ;;
16673   esac
16674
16675   case $ac_option in
16676   # Handling of the options.
16677   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16678     ac_cs_recheck=: ;;
16679   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16680     printf "%s\n" "$ac_cs_version"; exit ;;
16681   --config | --confi | --conf | --con | --co | --c )
16682     printf "%s\n" "$ac_cs_config"; exit ;;
16683   --debug | --debu | --deb | --de | --d | -d )
16684     debug=: ;;
16685   --file | --fil | --fi | --f )
16686     $ac_shift
16687     case $ac_optarg in
16688     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16689     '') as_fn_error $? "missing file argument" ;;
16690     esac
16691     as_fn_append CONFIG_FILES " '$ac_optarg'"
16692     ac_need_defaults=false;;
16693   --header | --heade | --head | --hea )
16694     $ac_shift
16695     case $ac_optarg in
16696     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16697     esac
16698     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16699     ac_need_defaults=false;;
16700   --he | --h)
16701     # Conflict between --help and --header
16702     as_fn_error $? "ambiguous option: \`$1'
16703 Try \`$0 --help' for more information.";;
16704   --help | --hel | -h )
16705     printf "%s\n" "$ac_cs_usage"; exit ;;
16706   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16707   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16708     ac_cs_silent=: ;;
16709
16710   # This is an error.
16711   -*) as_fn_error $? "unrecognized option: \`$1'
16712 Try \`$0 --help' for more information." ;;
16713
16714   *) as_fn_append ac_config_targets " $1"
16715      ac_need_defaults=false ;;
16716
16717   esac
16718   shift
16719 done
16720
16721 ac_configure_extra_args=
16722
16723 if $ac_cs_silent; then
16724   exec 6>/dev/null
16725   ac_configure_extra_args="$ac_configure_extra_args --silent"
16726 fi
16727
16728 _ACEOF
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 if \$ac_cs_recheck; then
16731   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16732   shift
16733   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16734   CONFIG_SHELL='$SHELL'
16735   export CONFIG_SHELL
16736   exec "\$@"
16737 fi
16738
16739 _ACEOF
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 exec 5>>config.log
16742 {
16743   echo
16744   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16745 ## Running $as_me. ##
16746 _ASBOX
16747   printf "%s\n" "$ac_log"
16748 } >&5
16749
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16752 #
16753 # INIT-COMMANDS
16754 #
16755 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16756     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16757     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16758     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16759     LINGUAS="${LINGUAS-%UNSET%}"
16760
16761
16762 _ACEOF
16763
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16765
16766 # Handling of arguments.
16767 for ac_config_target in $ac_config_targets
16768 do
16769   case $ac_config_target in
16770     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16771     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16772     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16773
16774   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16775   esac
16776 done
16777
16778
16779 # If the user did not use the arguments to specify the items to instantiate,
16780 # then the envvar interface is used.  Set only those that are not.
16781 # We use the long form for the default assignment because of an extremely
16782 # bizarre bug on SunOS 4.1.3.
16783 if $ac_need_defaults; then
16784   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16785   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16786   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16787 fi
16788
16789 # Have a temporary directory for convenience.  Make it in the build tree
16790 # simply because there is no reason against having it here, and in addition,
16791 # creating and moving files from /tmp can sometimes cause problems.
16792 # Hook for its removal unless debugging.
16793 # Note that there is a small window in which the directory will not be cleaned:
16794 # after its creation but before its name has been assigned to `$tmp'.
16795 $debug ||
16796 {
16797   tmp= ac_tmp=
16798   trap 'exit_status=$?
16799   : "${ac_tmp:=$tmp}"
16800   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16801 ' 0
16802   trap 'as_fn_exit 1' 1 2 13 15
16803 }
16804 # Create a (secure) tmp directory for tmp files.
16805
16806 {
16807   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16808   test -d "$tmp"
16809 }  ||
16810 {
16811   tmp=./conf$$-$RANDOM
16812   (umask 077 && mkdir "$tmp")
16813 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16814 ac_tmp=$tmp
16815
16816 # Set up the scripts for CONFIG_FILES section.
16817 # No need to generate them if there are no CONFIG_FILES.
16818 # This happens for instance with `./config.status config.h'.
16819 if test -n "$CONFIG_FILES"; then
16820
16821 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16822   ac_cs_awk_getline=:
16823   ac_cs_awk_pipe_init=
16824   ac_cs_awk_read_file='
16825       while ((getline aline < (F[key])) > 0)
16826         print(aline)
16827       close(F[key])'
16828   ac_cs_awk_pipe_fini=
16829 else
16830   ac_cs_awk_getline=false
16831   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16832   ac_cs_awk_read_file='
16833       print "|#_!!_#|"
16834       print "cat " F[key] " &&"
16835       '$ac_cs_awk_pipe_init
16836   # The final `:' finishes the AND list.
16837   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16838 fi
16839 ac_cr=`echo X | tr X '\015'`
16840 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16841 # But we know of no other shell where ac_cr would be empty at this
16842 # point, so we can use a bashism as a fallback.
16843 if test "x$ac_cr" = x; then
16844   eval ac_cr=\$\'\\r\'
16845 fi
16846 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16847 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16848   ac_cs_awk_cr='\\r'
16849 else
16850   ac_cs_awk_cr=$ac_cr
16851 fi
16852
16853 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16854 _ACEOF
16855
16856 # Create commands to substitute file output variables.
16857 {
16858   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16859   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16860   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16861   echo "_ACAWK" &&
16862   echo "_ACEOF"
16863 } >conf$$files.sh &&
16864 . ./conf$$files.sh ||
16865   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16866 rm -f conf$$files.sh
16867
16868 {
16869   echo "cat >conf$$subs.awk <<_ACEOF" &&
16870   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16871   echo "_ACEOF"
16872 } >conf$$subs.sh ||
16873   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16875 ac_delim='%!_!# '
16876 for ac_last_try in false false false false false :; do
16877   . ./conf$$subs.sh ||
16878     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16879
16880   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16881   if test $ac_delim_n = $ac_delim_num; then
16882     break
16883   elif $ac_last_try; then
16884     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16885   else
16886     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16887   fi
16888 done
16889 rm -f conf$$subs.sh
16890
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16893 _ACEOF
16894 sed -n '
16895 h
16896 s/^/S["/; s/!.*/"]=/
16897 p
16898 g
16899 s/^[^!]*!//
16900 :repl
16901 t repl
16902 s/'"$ac_delim"'$//
16903 t delim
16904 :nl
16905 h
16906 s/\(.\{148\}\)..*/\1/
16907 t more1
16908 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16909 p
16910 n
16911 b repl
16912 :more1
16913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16914 p
16915 g
16916 s/.\{148\}//
16917 t nl
16918 :delim
16919 h
16920 s/\(.\{148\}\)..*/\1/
16921 t more2
16922 s/["\\]/\\&/g; s/^/"/; s/$/"/
16923 p
16924 b
16925 :more2
16926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16927 p
16928 g
16929 s/.\{148\}//
16930 t delim
16931 ' <conf$$subs.awk | sed '
16932 /^[^""]/{
16933   N
16934   s/\n//
16935 }
16936 ' >>$CONFIG_STATUS || ac_write_fail=1
16937 rm -f conf$$subs.awk
16938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16939 _ACAWK
16940 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16941   for (key in S) S_is_set[key] = 1
16942   FS = "\a"
16943   \$ac_cs_awk_pipe_init
16944 }
16945 {
16946   line = $ 0
16947   nfields = split(line, field, "@")
16948   substed = 0
16949   len = length(field[1])
16950   for (i = 2; i < nfields; i++) {
16951     key = field[i]
16952     keylen = length(key)
16953     if (S_is_set[key]) {
16954       value = S[key]
16955       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16956       len += length(value) + length(field[++i])
16957       substed = 1
16958     } else
16959       len += 1 + keylen
16960   }
16961   if (nfields == 3 && !substed) {
16962     key = field[2]
16963     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16964       \$ac_cs_awk_read_file
16965       next
16966     }
16967   }
16968   print line
16969 }
16970 \$ac_cs_awk_pipe_fini
16971 _ACAWK
16972 _ACEOF
16973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16974 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16975   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16976 else
16977   cat
16978 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16979   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16980 _ACEOF
16981
16982 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16983 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16984 # trailing colons and then remove the whole line if VPATH becomes empty
16985 # (actually we leave an empty line to preserve line numbers).
16986 if test "x$srcdir" = x.; then
16987   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16988 h
16989 s///
16990 s/^/:/
16991 s/[      ]*$/:/
16992 s/:\$(srcdir):/:/g
16993 s/:\${srcdir}:/:/g
16994 s/:@srcdir@:/:/g
16995 s/^:*//
16996 s/:*$//
16997 x
16998 s/\(=[   ]*\).*/\1/
16999 G
17000 s/\n//
17001 s/^[^=]*=[       ]*$//
17002 }'
17003 fi
17004
17005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17006 fi # test -n "$CONFIG_FILES"
17007
17008 # Set up the scripts for CONFIG_HEADERS section.
17009 # No need to generate them if there are no CONFIG_HEADERS.
17010 # This happens for instance with `./config.status Makefile'.
17011 if test -n "$CONFIG_HEADERS"; then
17012 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17013 BEGIN {
17014 _ACEOF
17015
17016 # Transform confdefs.h into an awk script `defines.awk', embedded as
17017 # here-document in config.status, that substitutes the proper values into
17018 # config.h.in to produce config.h.
17019
17020 # Create a delimiter string that does not exist in confdefs.h, to ease
17021 # handling of long lines.
17022 ac_delim='%!_!# '
17023 for ac_last_try in false false :; do
17024   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17025   if test -z "$ac_tt"; then
17026     break
17027   elif $ac_last_try; then
17028     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17029   else
17030     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17031   fi
17032 done
17033
17034 # For the awk script, D is an array of macro values keyed by name,
17035 # likewise P contains macro parameters if any.  Preserve backslash
17036 # newline sequences.
17037
17038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17039 sed -n '
17040 s/.\{148\}/&'"$ac_delim"'/g
17041 t rset
17042 :rset
17043 s/^[     ]*#[    ]*define[       ][      ]*/ /
17044 t def
17045 d
17046 :def
17047 s/\\$//
17048 t bsnl
17049 s/["\\]/\\&/g
17050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17051 D["\1"]=" \3"/p
17052 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17053 d
17054 :bsnl
17055 s/["\\]/\\&/g
17056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17057 D["\1"]=" \3\\\\\\n"\\/p
17058 t cont
17059 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17060 t cont
17061 d
17062 :cont
17063 n
17064 s/.\{148\}/&'"$ac_delim"'/g
17065 t clear
17066 :clear
17067 s/\\$//
17068 t bsnlc
17069 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17070 d
17071 :bsnlc
17072 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17073 b cont
17074 ' <confdefs.h | sed '
17075 s/'"$ac_delim"'/"\\\
17076 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17077
17078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17079   for (key in D) D_is_set[key] = 1
17080   FS = "\a"
17081 }
17082 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17083   line = \$ 0
17084   split(line, arg, " ")
17085   if (arg[1] == "#") {
17086     defundef = arg[2]
17087     mac1 = arg[3]
17088   } else {
17089     defundef = substr(arg[1], 2)
17090     mac1 = arg[2]
17091   }
17092   split(mac1, mac2, "(") #)
17093   macro = mac2[1]
17094   prefix = substr(line, 1, index(line, defundef) - 1)
17095   if (D_is_set[macro]) {
17096     # Preserve the white space surrounding the "#".
17097     print prefix "define", macro P[macro] D[macro]
17098     next
17099   } else {
17100     # Replace #undef with comments.  This is necessary, for example,
17101     # in the case of _POSIX_SOURCE, which is predefined and required
17102     # on some systems where configure will not decide to define it.
17103     if (defundef == "undef") {
17104       print "/*", prefix defundef, macro, "*/"
17105       next
17106     }
17107   }
17108 }
17109 { print }
17110 _ACAWK
17111 _ACEOF
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17114 fi # test -n "$CONFIG_HEADERS"
17115
17116
17117 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17118 shift
17119 for ac_tag
17120 do
17121   case $ac_tag in
17122   :[FHLC]) ac_mode=$ac_tag; continue;;
17123   esac
17124   case $ac_mode$ac_tag in
17125   :[FHL]*:*);;
17126   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17127   :[FH]-) ac_tag=-:-;;
17128   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17129   esac
17130   ac_save_IFS=$IFS
17131   IFS=:
17132   set x $ac_tag
17133   IFS=$ac_save_IFS
17134   shift
17135   ac_file=$1
17136   shift
17137
17138   case $ac_mode in
17139   :L) ac_source=$1;;
17140   :[FH])
17141     ac_file_inputs=
17142     for ac_f
17143     do
17144       case $ac_f in
17145       -) ac_f="$ac_tmp/stdin";;
17146       *) # Look for the file first in the build tree, then in the source tree
17147          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17148          # because $ac_f cannot contain `:'.
17149          test -f "$ac_f" ||
17150            case $ac_f in
17151            [\\/$]*) false;;
17152            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17153            esac ||
17154            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17155       esac
17156       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17157       as_fn_append ac_file_inputs " '$ac_f'"
17158     done
17159
17160     # Let's still pretend it is `configure' which instantiates (i.e., don't
17161     # use $as_me), people would be surprised to read:
17162     #    /* config.h.  Generated by config.status.  */
17163     configure_input='Generated from '`
17164           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17165         `' by configure.'
17166     if test x"$ac_file" != x-; then
17167       configure_input="$ac_file.  $configure_input"
17168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17169 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17170     fi
17171     # Neutralize special characters interpreted by sed in replacement strings.
17172     case $configure_input in #(
17173     *\&* | *\|* | *\\* )
17174        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17175        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17176     *) ac_sed_conf_input=$configure_input;;
17177     esac
17178
17179     case $ac_tag in
17180     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17181       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17182     esac
17183     ;;
17184   esac
17185
17186   ac_dir=`$as_dirname -- "$ac_file" ||
17187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17188          X"$ac_file" : 'X\(//\)[^/]' \| \
17189          X"$ac_file" : 'X\(//\)$' \| \
17190          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17191 printf "%s\n" X"$ac_file" |
17192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17193             s//\1/
17194             q
17195           }
17196           /^X\(\/\/\)[^/].*/{
17197             s//\1/
17198             q
17199           }
17200           /^X\(\/\/\)$/{
17201             s//\1/
17202             q
17203           }
17204           /^X\(\/\).*/{
17205             s//\1/
17206             q
17207           }
17208           s/.*/./; q'`
17209   as_dir="$ac_dir"; as_fn_mkdir_p
17210   ac_builddir=.
17211
17212 case "$ac_dir" in
17213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17214 *)
17215   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17216   # A ".." for each directory in $ac_dir_suffix.
17217   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17218   case $ac_top_builddir_sub in
17219   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17220   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17221   esac ;;
17222 esac
17223 ac_abs_top_builddir=$ac_pwd
17224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17225 # for backward compatibility:
17226 ac_top_builddir=$ac_top_build_prefix
17227
17228 case $srcdir in
17229   .)  # We are building in place.
17230     ac_srcdir=.
17231     ac_top_srcdir=$ac_top_builddir_sub
17232     ac_abs_top_srcdir=$ac_pwd ;;
17233   [\\/]* | ?:[\\/]* )  # Absolute name.
17234     ac_srcdir=$srcdir$ac_dir_suffix;
17235     ac_top_srcdir=$srcdir
17236     ac_abs_top_srcdir=$srcdir ;;
17237   *) # Relative name.
17238     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17239     ac_top_srcdir=$ac_top_build_prefix$srcdir
17240     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17241 esac
17242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17243
17244
17245   case $ac_mode in
17246   :F)
17247   #
17248   # CONFIG_FILE
17249   #
17250
17251   case $INSTALL in
17252   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17253   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17254   esac
17255   ac_MKDIR_P=$MKDIR_P
17256   case $MKDIR_P in
17257   [\\/$]* | ?:[\\/]* ) ;;
17258   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17259   esac
17260 _ACEOF
17261
17262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17263 # If the template does not know about datarootdir, expand it.
17264 # FIXME: This hack should be removed a few years after 2.60.
17265 ac_datarootdir_hack=; ac_datarootdir_seen=
17266 ac_sed_dataroot='
17267 /datarootdir/ {
17268   p
17269   q
17270 }
17271 /@datadir@/p
17272 /@docdir@/p
17273 /@infodir@/p
17274 /@localedir@/p
17275 /@mandir@/p'
17276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17277 *datarootdir*) ac_datarootdir_seen=yes;;
17278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17280 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17281 _ACEOF
17282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283   ac_datarootdir_hack='
17284   s&@datadir@&$datadir&g
17285   s&@docdir@&$docdir&g
17286   s&@infodir@&$infodir&g
17287   s&@localedir@&$localedir&g
17288   s&@mandir@&$mandir&g
17289   s&\\\${datarootdir}&$datarootdir&g' ;;
17290 esac
17291 _ACEOF
17292
17293 # Neutralize VPATH when `$srcdir' = `.'.
17294 # Shell code in configure.ac might set extrasub.
17295 # FIXME: do we really want to maintain this feature?
17296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297 ac_sed_extra="$ac_vpsub
17298 $extrasub
17299 _ACEOF
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17301 :t
17302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17303 s|@configure_input@|$ac_sed_conf_input|;t t
17304 s&@top_builddir@&$ac_top_builddir_sub&;t t
17305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17306 s&@srcdir@&$ac_srcdir&;t t
17307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17308 s&@top_srcdir@&$ac_top_srcdir&;t t
17309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17310 s&@builddir@&$ac_builddir&;t t
17311 s&@abs_builddir@&$ac_abs_builddir&;t t
17312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17313 s&@INSTALL@&$ac_INSTALL&;t t
17314 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17315 $ac_datarootdir_hack
17316 "
17317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17318 if $ac_cs_awk_getline; then
17319   $AWK -f "$ac_tmp/subs.awk"
17320 else
17321   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17322 fi \
17323   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17324
17325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17326   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17327   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17328       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17330 which seems to be undefined.  Please make sure it is defined" >&5
17331 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17332 which seems to be undefined.  Please make sure it is defined" >&2;}
17333
17334   rm -f "$ac_tmp/stdin"
17335   case $ac_file in
17336   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17337   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17338   esac \
17339   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17340  ;;
17341   :H)
17342   #
17343   # CONFIG_HEADER
17344   #
17345   if test x"$ac_file" != x-; then
17346     {
17347       printf "%s\n" "/* $configure_input  */" >&1 \
17348       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17349     } >"$ac_tmp/config.h" \
17350       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17351     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17352       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17353 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17354     else
17355       rm -f "$ac_file"
17356       mv "$ac_tmp/config.h" "$ac_file" \
17357         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17358     fi
17359   else
17360     printf "%s\n" "/* $configure_input  */" >&1 \
17361       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17362       || as_fn_error $? "could not create -" "$LINENO" 5
17363   fi
17364  ;;
17365
17366   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17367 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17368  ;;
17369   esac
17370
17371
17372   case $ac_file$ac_mode in
17373     "po-directories":C)
17374     for ac_file in $CONFIG_FILES; do
17375       # Support "outfile[:infile[:infile...]]"
17376       case "$ac_file" in
17377         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17378       esac
17379       # PO directories have a Makefile.in generated from Makefile.in.in.
17380       case "$ac_file" in */Makefile.in)
17381         # Adjust a relative srcdir.
17382         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17383         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17384         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17385         # In autoconf-2.13 it is called $ac_given_srcdir.
17386         # In autoconf-2.50 it is called $srcdir.
17387         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17388         case "$ac_given_srcdir" in
17389           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17390           /*) top_srcdir="$ac_given_srcdir" ;;
17391           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17392         esac
17393         # Treat a directory as a PO directory if and only if it has a
17394         # POTFILES.in file. This allows packages to have multiple PO
17395         # directories under different names or in different locations.
17396         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17397           rm -f "$ac_dir/POTFILES"
17398           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17399           gt_tab=`printf '\t'`
17400           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17401           POMAKEFILEDEPS="POTFILES.in"
17402           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17403           # on $ac_dir but don't depend on user-specified configuration
17404           # parameters.
17405           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17406             # The LINGUAS file contains the set of available languages.
17407             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17408               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17409             fi
17410             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17411             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17412           else
17413             # The set of available languages was given in configure.in.
17414             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17415           fi
17416           # Compute POFILES
17417           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17418           # Compute UPDATEPOFILES
17419           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17420           # Compute DUMMYPOFILES
17421           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17422           # Compute GMOFILES
17423           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17424           case "$ac_given_srcdir" in
17425             .) srcdirpre= ;;
17426             *) srcdirpre='$(srcdir)/' ;;
17427           esac
17428           POFILES=
17429           UPDATEPOFILES=
17430           DUMMYPOFILES=
17431           GMOFILES=
17432           for lang in $ALL_LINGUAS; do
17433             POFILES="$POFILES $srcdirpre$lang.po"
17434             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17435             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17436             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17437           done
17438           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17439           # environment variable.
17440           INST_LINGUAS=
17441           if test -n "$ALL_LINGUAS"; then
17442             for presentlang in $ALL_LINGUAS; do
17443               useit=no
17444               if test "%UNSET%" != "$LINGUAS"; then
17445                 desiredlanguages="$LINGUAS"
17446               else
17447                 desiredlanguages="$ALL_LINGUAS"
17448               fi
17449               for desiredlang in $desiredlanguages; do
17450                 # Use the presentlang catalog if desiredlang is
17451                 #   a. equal to presentlang, or
17452                 #   b. a variant of presentlang (because in this case,
17453                 #      presentlang can be used as a fallback for messages
17454                 #      which are not translated in the desiredlang catalog).
17455                 case "$desiredlang" in
17456                   "$presentlang"*) useit=yes;;
17457                 esac
17458               done
17459               if test $useit = yes; then
17460                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17461               fi
17462             done
17463           fi
17464           CATALOGS=
17465           if test -n "$INST_LINGUAS"; then
17466             for lang in $INST_LINGUAS; do
17467               CATALOGS="$CATALOGS $lang.gmo"
17468             done
17469           fi
17470           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17471           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17472           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17473             if test -f "$f"; then
17474               case "$f" in
17475                 *.orig | *.bak | *~) ;;
17476                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17477               esac
17478             fi
17479           done
17480         fi
17481         ;;
17482       esac
17483     done ;;
17484
17485   esac
17486 done # for ac_tag
17487
17488
17489 as_fn_exit 0
17490 _ACEOF
17491 ac_clean_files=$ac_clean_files_save
17492
17493 test $ac_write_fail = 0 ||
17494   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17495
17496
17497 # configure is writing to config.log, and then calls config.status.
17498 # config.status does its own redirection, appending to config.log.
17499 # Unfortunately, on DOS this fails, as config.log is still kept open
17500 # by configure, so config.status won't be able to write to it; its
17501 # output is simply discarded.  So we exec the FD to /dev/null,
17502 # effectively closing config.log, so it can be properly (re)opened and
17503 # appended to by config.status.  When coming back to configure, we
17504 # need to make the FD available again.
17505 if test "$no_create" != yes; then
17506   ac_cs_success=:
17507   ac_config_status_args=
17508   test "$silent" = yes &&
17509     ac_config_status_args="$ac_config_status_args --quiet"
17510   exec 5>/dev/null
17511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17512   exec 5>>config.log
17513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17514   # would make configure fail if this is the last instruction.
17515   $ac_cs_success || as_fn_exit 1
17516 fi
17517 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17519 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17520 fi
17521
17522 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17523